/* --- бегущая строка --- */ .ticker { display: flex; align-items: center; gap: 0.4rem; height: 1rem; flex: 0 1 28rem; min-width: 0; padding-left: 0.35rem; border-radius: 0.25rem; background: var(--surface); font-size: var(--fs-2xs); color: var(--text); overflow: hidden; } .ticker-bell { flex: none; color: var(--c-orange); } .ticker-track { position: relative; flex: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); } .ticker-run { display: flex; width: max-content; animation: ticker 60s linear infinite; } .ticker-run > span { padding-right: 4rem; white-space: nowrap; } .ticker:hover .ticker-run { animation-play-state: paused; } @keyframes ticker { to { transform: translateX(-50%); } } /* --- плитки модулей --- */ .tiles { --tile-accent: var(--c-cream); container-type: inline-size; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0.625rem; align-self: start; } .tiles[data-mode='3d'] { --tile-accent: var(--c-green); } .tile { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem; padding-top: 0.35rem; min-height: 3.6rem; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); color: var(--text-3); transition: background-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s; } /* узкая полоса плиток: только иконки, подпись — во всплывающей подсказке */ @container (max-width: 700px) { .tile-label { display: none; } .tile { padding-top: 0; } } .tile:hover { color: var(--text); transform: translateY(-1px); } .tile.is-on { background: var(--tile-accent); color: #222; box-shadow: 0 0 20px var(--accent-glow); } .tile-label { max-width: 100%; padding: 0 0.15rem; font-size: 0.53rem; font-weight: var(--w-bold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } :root[data-contrast='true'] .tile { border: var(--stroke) solid var(--border); } /* --- уведомления от ведомств --- */ .notif { position: relative; min-height: 0; height: 100%; container-type: inline-size; } @container (max-width: 320px) { .notif-emblem { display: none; } .notif-card { grid-template-columns: minmax(0, 1fr) auto; padding: 0.45rem 0.6rem; } .notif-text p { -webkit-line-clamp: 1; } .notif-actions .btn { min-width: 0; padding: 0.15rem 0.45rem; } } .notif--empty { display: grid; place-items: center; border: var(--stroke) dashed var(--border-soft); border-radius: var(--radius-md); font-size: var(--fs-sm); } .notif-card { position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.55rem 0.8rem; border-radius: var(--radius-md); border: var(--stroke) solid rgba(255, 255, 255, 0.7); background: color-mix(in srgb, #727272 80%, transparent); backdrop-filter: blur(10px); color: #fff; animation: fade-in 0.25s ease-out; } .notif-card--back { transform: translate(calc(var(--depth) * -0.16rem), calc(var(--depth) * -0.1rem)); opacity: calc(1 - var(--depth) * 0.2); animation: none; } :root[data-night='false'] .notif-card { background: color-mix(in srgb, #4d4d4d 88%, transparent); } :root[data-contrast='true'] .notif-card { background: #000; border-color: #fff; } .notif-emblem { width: 2.55rem; height: 2.65rem; object-fit: contain; } .notif-emblem--icon { display: grid; place-items: center; border-radius: 50%; background: #222; color: var(--c-cream); } .notif-text { min-width: 0; } .notif-text h3 { font-size: var(--fs-sm); font-weight: var(--w-medium); margin-bottom: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .notif-text p { font-size: var(--fs-2xs); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .notif-actions { display: flex; flex-direction: column; gap: 0.35rem; } .notif-actions .btn { min-width: 4.2rem; } .notif-close { position: absolute; top: -0.55rem; right: -0.4rem; width: 0.75rem; height: 0.75rem; display: grid; place-items: center; border-radius: 50%; background: #222; border: 1px solid #fff; color: #fff; font-size: 0.7rem; line-height: 1; } .notif-close:hover { background: var(--c-red); } .notif-clear { position: absolute; right: 0.9rem; top: -0.95rem; height: 0.75rem; padding: 0 0.35rem; border-radius: 0.15rem; background: var(--surface-3); font-size: var(--fs-2xs); color: var(--text); z-index: 2; } .notif-clear:hover { background: var(--border); } .notif-count { position: absolute; left: 0.35rem; top: 0.35rem; min-width: 0.9rem; height: 0.9rem; padding: 0 0.2rem; border-radius: 999px; background: var(--c-red); font-size: var(--fs-2xs); font-weight: var(--w-bold); display: grid; place-items: center; } /* --- статус-бар --- */ .status { display: flex; align-items: center; justify-content: flex-end; gap: 1.3rem; height: 1.25rem; font-size: var(--fs-2xs); } .status-item { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text); } .status-item svg { color: var(--text-3); } button.status-item:hover svg { color: var(--text); } .ai-mode { position: relative; flex: none; } .ai-pill { display: inline-flex; align-items: center; gap: 0.35rem; height: 1.1rem; padding: 0 0.55rem; border-radius: 999px; white-space: nowrap; border: var(--stroke) solid var(--border); font-size: var(--fs-2xs); color: var(--text); } .ai-pill b { font-weight: var(--w-bold); } .ai-pill--auto { border-color: var(--c-green); color: var(--c-green); box-shadow: 0 0 12px color-mix(in srgb, var(--c-green) 35%, transparent); } .ai-pill--semi { border-color: var(--c-cream); } .ai-pill--semi svg { color: var(--c-cream); } .ai-pill--manual svg { color: var(--text-3); } .ai-menu { position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 50; width: 15rem; padding: 0.35rem; border-radius: var(--radius-md); border: var(--stroke) solid var(--border); background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); animation: fade-in 0.15s ease-out; } .ai-menu button { width: 100%; display: flex; flex-direction: column; gap: 0.1rem; padding: 0.45rem 0.55rem; border-radius: var(--radius-sm); text-align: left; font-size: var(--fs-sm); } .ai-menu button span { font-size: var(--fs-xs); color: var(--text-2); } .ai-menu button:hover, .ai-menu button[aria-selected='true'] { background: var(--surface-2); } .ai-menu button[aria-selected='true'] b { color: var(--c-green); } /* --- тосты --- */ .toasts { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; pointer-events: none; } .toast { pointer-events: auto; display: flex; align-items: center; gap: 0.5rem; max-width: 24rem; padding: 0.55rem 0.8rem; border-radius: var(--radius-md); border: var(--stroke) solid var(--border); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); font-size: var(--fs-sm); text-align: left; animation: fade-in 0.2s ease-out; } .toast--ai { border-color: var(--c-green); } .toast--ai svg { color: var(--c-green); } .toast--warn { border-color: var(--c-red); } .toast--warn svg { color: var(--c-red); } .toast--ok { border-color: var(--c-cream); }