c4a7d2ef08
Made-with: Cursor
1333 lines
30 KiB
CSS
1333 lines
30 KiB
CSS
/* Базовые токены и точечные стили в духе webapp-nginx/cabinet-theme. */
|
|
|
|
:root {
|
|
--surface: #ffffff;
|
|
--surface-container-low: #f3f8f9;
|
|
--surface-container: #eaf3f5;
|
|
--on-surface: #0d1b1d;
|
|
--on-surface-variant: #3d5357;
|
|
--primary: #007168;
|
|
--primary-hover: #00645b;
|
|
--outline-variant: #b9bc94;
|
|
--shadow-card: 0 8px 40px rgba(0, 0, 0, 0.08);
|
|
--radius-card: 2rem;
|
|
--max-content: 42rem;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100dvh;
|
|
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
|
background: var(--surface-container-low);
|
|
color: var(--on-surface);
|
|
-webkit-tap-highlight-color: transparent;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.material-symbols-outlined {
|
|
font-family: 'Material Symbols Outlined', sans-serif;
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
line-height: 1;
|
|
letter-spacing: normal;
|
|
text-transform: none;
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
word-wrap: normal;
|
|
font-variation-settings:
|
|
'FILL' 0,
|
|
'wght' 400,
|
|
'GRAD' 0,
|
|
'opsz' 24;
|
|
direction: ltr;
|
|
-webkit-font-feature-settings: 'liga';
|
|
font-feature-settings: 'liga';
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--primary);
|
|
outline-offset: 2px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
/* Небольшой "cabinet" акцент карточек/кнопок без переписывания шаблонов. */
|
|
.rounded-2xl.bg-white,
|
|
.rounded-xl.bg-white {
|
|
border-color: color-mix(in srgb, var(--outline-variant) 38%, transparent);
|
|
}
|
|
|
|
.bg-brand-600 {
|
|
background-color: var(--primary) !important;
|
|
}
|
|
|
|
.hover\:bg-brand-700:hover {
|
|
background-color: var(--primary-hover) !important;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* UI variants (оба режима на Flask, отличие только в компоновке UI). */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
/* Modern: плотная колонка и акцент на карточный контент. */
|
|
body.ui-modern .max-w-2xl {
|
|
max-width: 42rem !important;
|
|
}
|
|
|
|
body.ui-modern main {
|
|
padding-top: 1.25rem;
|
|
}
|
|
|
|
/* Legacy: идентичный cabinet layout. */
|
|
body.ui-legacy .max-w-2xl {
|
|
max-width: 42rem !important;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-app {
|
|
min-height: 100dvh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--surface);
|
|
}
|
|
|
|
body.ui-legacy .cabinet-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
background: color-mix(in srgb, var(--surface) 88%, transparent);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid color-mix(in srgb, var(--outline-variant) 35%, transparent);
|
|
}
|
|
|
|
body.ui-legacy .cabinet-header__inner {
|
|
max-width: var(--max-content);
|
|
margin: 0 auto;
|
|
padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
|
|
padding-bottom: 0.75rem;
|
|
padding-left: max(1.25rem, env(safe-area-inset-left, 0px) + 0.5rem);
|
|
padding-right: max(1.25rem, env(safe-area-inset-right, 0px) + 0.5rem);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.65rem;
|
|
color: var(--on-surface);
|
|
text-decoration: none;
|
|
min-width: 0;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-brand:hover {
|
|
text-decoration: none;
|
|
color: var(--on-surface);
|
|
}
|
|
|
|
body.ui-legacy .cabinet-brand__logo {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
object-fit: contain;
|
|
display: block;
|
|
}
|
|
body.ui-legacy .login-logo__img {
|
|
width: 96px;
|
|
height: 96px;
|
|
object-fit: contain;
|
|
display: block;
|
|
margin: 0 auto 0.5rem;
|
|
}
|
|
body.ui-legacy .cabinet-brand__icon {
|
|
font-size: 1.75rem;
|
|
color: var(--primary);
|
|
background: var(--surface-container-low);
|
|
border-radius: 0.75rem;
|
|
padding: 0.35rem;
|
|
border: 1px solid color-mix(in srgb, var(--outline-variant) 30%, transparent);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-brand__title {
|
|
font-family: 'Manrope', 'Inter', sans-serif;
|
|
font-weight: 800;
|
|
font-size: 1rem;
|
|
line-height: 1.2;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-header__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-user {
|
|
font-size: 0.8rem;
|
|
color: var(--on-surface-variant);
|
|
text-align: right;
|
|
max-width: 12rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
display: none;
|
|
}
|
|
|
|
@media (min-width: 480px) {
|
|
body.ui-legacy .cabinet-user {
|
|
display: inline;
|
|
}
|
|
}
|
|
|
|
body.ui-legacy .cabinet-user__role {
|
|
color: var(--secondary, #506965);
|
|
font-weight: 500;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-main {
|
|
flex: 1;
|
|
max-width: var(--max-content);
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
padding: 1.25rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
|
|
}
|
|
|
|
body.ui-legacy main {
|
|
padding-top: 0;
|
|
}
|
|
|
|
body.ui-legacy .rounded-2xl.bg-white,
|
|
body.ui-legacy .rounded-xl.bg-white {
|
|
border-radius: 0.85rem;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
/* Legacy catalog (портировано из старого webapp) */
|
|
body.ui-legacy .legacy-list-shell {
|
|
max-width: 42rem;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
body.ui-legacy .legacy-list-title {
|
|
font-size: 1.5rem;
|
|
margin: 0 0 0.75rem;
|
|
}
|
|
|
|
body.ui-legacy .legacy-list-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
body.ui-legacy .legacy-list-subtitle {
|
|
font-size: 1.1rem;
|
|
margin: 1.5rem 0 0.5rem;
|
|
}
|
|
|
|
body.ui-legacy .btn {
|
|
font-family: inherit;
|
|
font-size: 0.9375rem;
|
|
font-weight: 600;
|
|
padding: 0.55rem 1.1rem;
|
|
border-radius: 0.75rem;
|
|
border: 1.5px solid transparent;
|
|
cursor: pointer;
|
|
transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
|
|
text-decoration: none;
|
|
}
|
|
|
|
body.ui-legacy .btn-ghost {
|
|
background: transparent;
|
|
color: var(--primary);
|
|
border-color: color-mix(in srgb, var(--outline-variant) 70%, transparent);
|
|
}
|
|
|
|
body.ui-legacy .btn-ghost:hover {
|
|
background: var(--surface-container);
|
|
border-color: var(--primary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
body.ui-legacy .btn-primary {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
border-color: var(--primary);
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
|
|
}
|
|
body.ui-legacy .btn-primary:hover {
|
|
background: var(--primary-hover);
|
|
border-color: var(--primary-hover);
|
|
}
|
|
body.ui-legacy .btn-primary:active {
|
|
transform: translateY(0.5px);
|
|
}
|
|
|
|
body.ui-legacy .text-muted {
|
|
color: var(--on-surface-variant);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
body.ui-legacy .list-stack {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
body.ui-legacy .list-row {
|
|
display: block;
|
|
border: 1px solid color-mix(in srgb, var(--outline-variant) 30%, transparent);
|
|
border-radius: 1rem;
|
|
padding: 0.9rem 1rem;
|
|
background: var(--surface);
|
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
}
|
|
|
|
body.ui-legacy .list-row--split {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
gap: 0;
|
|
}
|
|
|
|
body.ui-legacy .list-row__main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
body.ui-legacy .list-row__link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1 1 auto;
|
|
padding: 0.9rem 1rem;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
body.ui-legacy .list-row__title {
|
|
display: block;
|
|
color: var(--on-surface);
|
|
font-weight: 600;
|
|
}
|
|
|
|
body.ui-legacy .list-row__meta {
|
|
color: var(--on-surface-variant);
|
|
font-size: 0.8rem;
|
|
display: block;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
body.ui-legacy .list-row__meta-tail {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
body.ui-legacy .list-row__side {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.5rem 0.9rem 0.5rem 0;
|
|
flex-shrink: 0;
|
|
border-left: 1px solid color-mix(in srgb, var(--outline-variant) 35%, transparent);
|
|
}
|
|
|
|
body.ui-legacy .list-row--hidden {
|
|
border-style: dashed;
|
|
opacity: 0.95;
|
|
}
|
|
|
|
body.ui-legacy .link-back {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
body.ui-legacy .callout {
|
|
border-radius: 1rem;
|
|
padding: 0.75rem 1rem;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
body.ui-legacy .callout--warning {
|
|
background: #fffbeb;
|
|
border: 1px solid #fde68a;
|
|
color: #92400e;
|
|
}
|
|
|
|
body.ui-legacy .callout--error {
|
|
background: #fef2f2;
|
|
border: 1px solid #fecaca;
|
|
color: #991b1b;
|
|
}
|
|
|
|
/* Страница входа (legacy) */
|
|
body.ui-legacy .login-page {
|
|
display: flex;
|
|
justify-content: center;
|
|
width: 100%;
|
|
padding: 1rem 0;
|
|
}
|
|
body.ui-legacy .login-shell {
|
|
width: 100%;
|
|
max-width: 22rem;
|
|
}
|
|
body.ui-legacy .login-logo {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
body.ui-legacy .login-logo .font-headline {
|
|
margin: 0.5rem 0 0;
|
|
font-size: 1.35rem;
|
|
font-weight: 700;
|
|
}
|
|
body.ui-legacy .login-card {
|
|
background: var(--surface);
|
|
border: 1px solid color-mix(in srgb, var(--outline-variant) 38%, transparent);
|
|
border-radius: 1rem;
|
|
padding: 1.35rem 1.25rem 1.5rem;
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
body.ui-legacy .form-field + .form-field {
|
|
margin-top: 1rem;
|
|
}
|
|
body.ui-legacy .login-card .btn-primary {
|
|
width: 100%;
|
|
margin-top: 1rem;
|
|
min-height: 2.65rem;
|
|
justify-content: center;
|
|
}
|
|
|
|
body.ui-legacy .muted,
|
|
body.ui-legacy .text-muted,
|
|
body.ui-legacy .text-secondary {
|
|
color: #506965;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
body.ui-legacy .mono {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
}
|
|
|
|
body.ui-legacy .form-label {
|
|
display: block;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
color: var(--on-surface);
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
body.ui-legacy .form-input {
|
|
width: 100%;
|
|
padding: 11px 13px;
|
|
border: 1.5px solid var(--outline-variant);
|
|
border-radius: 0.75rem;
|
|
font-size: 15px;
|
|
font-family: inherit;
|
|
outline: none;
|
|
background: var(--surface-container-low);
|
|
color: var(--on-surface);
|
|
transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
|
|
}
|
|
|
|
body.ui-legacy .form-input:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(0, 113, 104, 0.12);
|
|
background: #fff;
|
|
}
|
|
body.ui-legacy select.form-input {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
padding-right: 2.5rem;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 0.75rem center;
|
|
background-size: 1rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
body.ui-legacy .surface-card {
|
|
background: var(--surface);
|
|
border: 1px solid color-mix(in srgb, var(--outline-variant) 30%, transparent);
|
|
border-radius: 1rem;
|
|
padding: 1rem 1.1rem;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
body.ui-legacy .cabinet-brick {
|
|
margin-bottom: 1.1rem;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-brick--hero {
|
|
padding: 0.1rem 0 0.6rem;
|
|
border-bottom: 1px solid color-mix(in srgb, var(--outline-variant) 45%, transparent);
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.hero-brick__meta-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 0.35rem;
|
|
margin-top: 0.5rem;
|
|
font-size: 0.82rem;
|
|
color: var(--ink-500, #6b7280);
|
|
}
|
|
.hero-brick__sep { opacity: 0.45; }
|
|
|
|
.hero-brick__divider {
|
|
margin-top: 0.75rem;
|
|
border-top: 1px solid color-mix(in srgb, var(--outline-variant, #e5e7eb) 60%, transparent);
|
|
}
|
|
|
|
.hero-brick__tags {
|
|
margin-top: 0.6rem;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.45rem;
|
|
align-items: center;
|
|
}
|
|
.hero-brick__tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
font-size: 0.82rem;
|
|
color: var(--ink-600, #4b5563);
|
|
padding: 0.18rem 0.6rem;
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--outline-variant, #e5e7eb) 35%, transparent);
|
|
border: 1px solid color-mix(in srgb, var(--outline-variant, #e5e7eb) 65%, transparent);
|
|
cursor: default;
|
|
white-space: nowrap;
|
|
}
|
|
.hero-brick__tag--toggle { cursor: pointer; }
|
|
.hero-brick__tag--toggle:hover {
|
|
background: color-mix(in srgb, var(--primary, #0d9488) 10%, transparent);
|
|
border-color: color-mix(in srgb, var(--primary, #0d9488) 40%, transparent);
|
|
}
|
|
.hero-brick__tag input[type="checkbox"] {
|
|
accent-color: var(--primary, #0d9488);
|
|
cursor: pointer;
|
|
}
|
|
/* keep old chip classes for any stale references */
|
|
.hero-brick__chips { display: none; }
|
|
|
|
.hero-brick__title {
|
|
display: block;
|
|
width: 100%;
|
|
margin-top: 0.5rem;
|
|
border: 1px solid transparent;
|
|
background: transparent;
|
|
font-size: 1.65rem;
|
|
line-height: 1.2;
|
|
font-weight: 700;
|
|
padding: 0.3rem 0.4rem;
|
|
border-radius: 0.5rem;
|
|
outline: none;
|
|
resize: none;
|
|
overflow: hidden;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-family: inherit;
|
|
min-height: 2.4rem;
|
|
}
|
|
.hero-brick__title:hover { border-color: color-mix(in srgb, var(--outline-variant) 50%, transparent); }
|
|
.hero-brick__title:focus { border-color: var(--primary, #0d9488); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #0d9488) 18%, transparent); background: #fff; }
|
|
|
|
.hero-brick__desc {
|
|
display: block;
|
|
width: 100%;
|
|
margin-top: 0.35rem;
|
|
border: 1px solid transparent;
|
|
background: transparent;
|
|
font-size: 0.95rem;
|
|
color: var(--ink-700, #374151);
|
|
padding: 0.3rem 0.4rem;
|
|
border-radius: 0.5rem;
|
|
resize: none;
|
|
overflow: hidden;
|
|
outline: none;
|
|
font-family: inherit;
|
|
}
|
|
.hero-brick__desc:hover { border-color: color-mix(in srgb, var(--outline-variant) 50%, transparent); }
|
|
.hero-brick__desc:focus { border-color: var(--primary, #0d9488); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #0d9488) 18%, transparent); background: #fff; }
|
|
|
|
.hero-brick__chips {
|
|
margin-top: 0.65rem;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
.hero-brick__chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
padding: 0.25rem 0.55rem;
|
|
background: color-mix(in srgb, var(--surface, #fff) 80%, var(--outline-variant, #e5e7eb));
|
|
border: 1px solid color-mix(in srgb, var(--outline-variant, #e5e7eb) 70%, transparent);
|
|
border-radius: 999px;
|
|
font-size: 0.85rem;
|
|
color: var(--ink-700, #374151);
|
|
cursor: pointer;
|
|
}
|
|
.hero-brick__chip--readonly { cursor: default; }
|
|
.hero-brick__chip input[type="number"] {
|
|
width: 3.2rem;
|
|
border: none;
|
|
background: transparent;
|
|
text-align: right;
|
|
font: inherit;
|
|
outline: none;
|
|
padding: 0;
|
|
}
|
|
.hero-brick__chip input[type="checkbox"] { accent-color: var(--primary, #0d9488); }
|
|
|
|
.q-item { transition: box-shadow .15s ease, transform .12s ease; }
|
|
.q-item.q-dragging { opacity: 0.55; box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
|
|
.q-item.q-drop-before { box-shadow: 0 -2px 0 0 var(--primary, #0d9488) inset; }
|
|
.q-item.q-drop-after { box-shadow: 0 2px 0 0 var(--primary, #0d9488) inset; }
|
|
.q-drag { cursor: grab; color: var(--ink-500, #6b7280); }
|
|
.q-drag:active { cursor: grabbing; }
|
|
|
|
.q-item.q-removed > *:not(.q-removed-banner) { opacity: 0.45; }
|
|
.q-item.q-removed .q-text,
|
|
.q-item.q-removed .q-multi,
|
|
.q-item.q-removed .q-options,
|
|
.q-item.q-removed .q-add-option,
|
|
.q-item.q-removed .q-ai,
|
|
.q-item.q-removed .q-up,
|
|
.q-item.q-removed .q-down,
|
|
.q-item.q-removed .q-delete,
|
|
.q-item.q-removed .q-drag {
|
|
pointer-events: none;
|
|
}
|
|
.q-item.q-removed .q-text { text-decoration: line-through; }
|
|
.q-removed-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: .5rem;
|
|
margin-bottom: .5rem;
|
|
padding: .35rem .6rem;
|
|
background: color-mix(in srgb, #fff7ed 65%, transparent);
|
|
border: 1px solid color-mix(in srgb, #fbbf24 50%, transparent);
|
|
border-radius: .5rem;
|
|
color: #92400e;
|
|
font-size: .85rem;
|
|
}
|
|
.q-removed-banner .q-restore { pointer-events: auto; }
|
|
|
|
body.ui-legacy .cabinet-disclosure {
|
|
border: 1px solid color-mix(in srgb, var(--outline-variant) 30%, transparent);
|
|
border-radius: 1rem;
|
|
background: var(--surface);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
body.ui-legacy .cabinet-disclosure__summary {
|
|
cursor: pointer;
|
|
list-style: none;
|
|
user-select: none;
|
|
padding: 0.85rem 1rem 0.75rem;
|
|
font-size: 1.05rem;
|
|
border-radius: 1rem 1rem 0 0;
|
|
min-height: 2.75rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-disclosure__summary::-webkit-details-marker { display: none; }
|
|
|
|
body.ui-legacy .cabinet-disclosure__summary::after {
|
|
content: 'expand_more';
|
|
font-family: 'Material Symbols Outlined', sans-serif;
|
|
margin-left: auto;
|
|
font-size: 1.25rem;
|
|
opacity: 0.55;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-disclosure[open] .cabinet-disclosure__summary::after {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
body.ui-legacy .cabinet-disclosure__summary-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 0.15rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-disclosure__summary-title {
|
|
font-size: 1.05rem;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-disclosure__summary-sub {
|
|
display: block;
|
|
font-size: 0.8rem;
|
|
font-weight: 400;
|
|
line-height: 1.3;
|
|
color: #506965;
|
|
}
|
|
|
|
body.ui-legacy .cabinet-disclosure__body {
|
|
padding: 1rem 1rem 1.25rem;
|
|
border-top: 1px solid color-mix(in srgb, var(--outline-variant) 35%, transparent);
|
|
}
|
|
|
|
/* ─── Question textarea + char counter ──────────────────────────── */
|
|
.q-text {
|
|
padding-bottom: 1.6rem; /* space for counter */
|
|
resize: none;
|
|
overflow: hidden;
|
|
line-height: 1.55;
|
|
}
|
|
.q-text-counter {
|
|
font-size: 0.68rem;
|
|
line-height: 1;
|
|
bottom: 6px !important;
|
|
right: 10px !important;
|
|
}
|
|
|
|
/* ─── Question editor blocks (AI panel sections) ─────────────────── */
|
|
body.ui-legacy .question-editor-block {
|
|
padding-top: 1rem;
|
|
margin-top: 1rem;
|
|
border-top: 1px solid color-mix(in srgb, var(--outline-variant) 28%, transparent);
|
|
}
|
|
body.ui-legacy .question-editor-block--first {
|
|
padding-top: 0;
|
|
margin-top: 0;
|
|
border-top: none;
|
|
}
|
|
body.ui-legacy .test-detail-subsection__title {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.6rem;
|
|
color: var(--ink-900, #111827);
|
|
}
|
|
body.ui-legacy .test-detail-ai-panel {
|
|
padding: 1rem 1.1rem 1.1rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
/* ─── Option row alignment ───────────────────────────────────────── */
|
|
.question-option-row {
|
|
align-items: flex-start;
|
|
}
|
|
.question-option-row__mark-wrap {
|
|
padding-top: 0.45rem; /* align checkbox with first line of textarea */
|
|
}
|
|
.opt-text {
|
|
line-height: 1.55;
|
|
}
|
|
.opt-delete {
|
|
margin-top: 0.2rem;
|
|
}
|
|
|
|
/* ─── Question AI overlay ────────────────────────────────────────── */
|
|
.q-ai-overlay {
|
|
transition: opacity 0.15s;
|
|
}
|
|
.q-item[style*="pointer-events: none"] .q-text,
|
|
.q-item[style*="pointer-events: none"] .opt-text {
|
|
opacity: 0.45;
|
|
}
|
|
|
|
/* ─── Drag-and-drop import dropzone ─────────────────────────────── */
|
|
.import-dropzone {
|
|
transition: border-color 0.15s, background-color 0.15s;
|
|
}
|
|
.import-dropzone--over {
|
|
border-color: var(--brand-500, #6366f1) !important;
|
|
background-color: color-mix(in srgb, var(--brand-100, #e0e7ff) 40%, transparent) !important;
|
|
}
|
|
.import-dropzone--loading {
|
|
opacity: 0.6;
|
|
pointer-events: none;
|
|
}
|
|
.import-dropzone--loading .material-symbols-outlined {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
.import-dropzone--done {
|
|
border-style: solid;
|
|
border-color: var(--primary, #007168) !important;
|
|
background-color: color-mix(in srgb, var(--primary, #007168) 6%, transparent) !important;
|
|
pointer-events: none;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
/* ─── Import modal (compact, like save-modal) ───────────────────── */
|
|
.save-modal {
|
|
padding: 0;
|
|
margin: 3rem auto auto;
|
|
border: none;
|
|
border-radius: 1rem;
|
|
background: #fff;
|
|
box-shadow: 0 8px 32px rgba(0,0,0,.18);
|
|
max-width: 26rem;
|
|
width: calc(100% - 2rem);
|
|
}
|
|
.save-modal::backdrop {
|
|
background: rgba(0,0,0,.4);
|
|
}
|
|
.save-modal__inner {
|
|
padding: 1.25rem 1.25rem 1rem;
|
|
}
|
|
|
|
.settings-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.65rem;
|
|
}
|
|
.settings-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
padding: 0.4rem 0.25rem;
|
|
border-bottom: 1px dashed color-mix(in srgb, var(--outline-variant) 30%, transparent);
|
|
}
|
|
.settings-row:last-child { border-bottom: none; }
|
|
.settings-row--block {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 0.4rem;
|
|
border: 1px solid color-mix(in srgb, var(--outline-variant) 30%, transparent);
|
|
border-radius: 0.75rem;
|
|
padding: 0.6rem 0.75rem;
|
|
}
|
|
.settings-row__label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-size: 0.92rem;
|
|
color: var(--ink-700, #2c3a37);
|
|
gap: 0.1rem;
|
|
}
|
|
.settings-row__hint {
|
|
font-size: 0.78rem;
|
|
color: #6b7d79;
|
|
font-weight: 400;
|
|
}
|
|
.settings-row__input {
|
|
width: 6.5rem;
|
|
text-align: right;
|
|
border-radius: 0.6rem;
|
|
border: 1px solid var(--ink-300, #c8d2cf);
|
|
padding: 0.5rem 0.75rem;
|
|
background: white;
|
|
}
|
|
.settings-row__input:focus {
|
|
outline: none;
|
|
border-color: var(--brand-500, #2bb39a);
|
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500, #2bb39a) 18%, transparent);
|
|
}
|
|
.settings-radio {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.55rem;
|
|
cursor: pointer;
|
|
font-size: 0.92rem;
|
|
padding: 0.25rem 0;
|
|
}
|
|
.settings-radio input { margin-top: 0.2rem; }
|
|
|
|
body.ui-legacy .test-detail-subsection {
|
|
margin-top: 1.25rem;
|
|
padding-top: 1.15rem;
|
|
border-top: 1px solid color-mix(in srgb, var(--outline-variant) 32%, transparent);
|
|
}
|
|
|
|
body.ui-legacy .test-detail-subsection--tight {
|
|
margin-top: 0;
|
|
padding-top: 0;
|
|
border-top: none;
|
|
}
|
|
|
|
body.ui-legacy .test-detail-subsection__title {
|
|
margin: 0 0 0.5rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
body.ui-legacy .test-detail-hint {
|
|
margin: 0 0 0.6rem;
|
|
font-size: 0.8rem;
|
|
line-height: 1.4;
|
|
color: #506965;
|
|
}
|
|
|
|
body.ui-legacy .test-detail-ai-panel {
|
|
padding: 1rem 1.1rem 1.1rem;
|
|
margin-bottom: 1.25rem;
|
|
background: var(--surface-container-low);
|
|
border: 1px solid color-mix(in srgb, var(--outline-variant) 32%, transparent);
|
|
border-radius: 0.85rem;
|
|
box-shadow: none;
|
|
}
|
|
|
|
body.ui-legacy .assign-toolbar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.65rem;
|
|
}
|
|
|
|
@media (min-width: 520px) {
|
|
body.ui-legacy .assign-toolbar {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
body.ui-legacy .assign-toolbar__search {
|
|
flex: 1 1 200px;
|
|
}
|
|
|
|
body.ui-legacy .assign-list {
|
|
max-height: min(40vh, 18rem);
|
|
overflow: auto;
|
|
border: 1px solid color-mix(in srgb, var(--outline-variant) 30%, transparent);
|
|
border-radius: 0.75rem;
|
|
background: var(--surface-container-low);
|
|
}
|
|
|
|
body.ui-legacy .assign-row {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
padding: 0.65rem 0.75rem;
|
|
border-bottom: 1px solid color-mix(in srgb, var(--outline-variant) 40%, transparent);
|
|
cursor: pointer;
|
|
align-items: center;
|
|
}
|
|
|
|
body.ui-legacy .assign-row:last-child { border-bottom: none; }
|
|
body.ui-legacy .assign-row--selected,
|
|
body.ui-legacy .assign-row:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
|
|
|
|
body.ui-legacy .assign-row__text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
body.ui-legacy .assign-row__fio { font-weight: 600; font-size: 0.95rem; }
|
|
body.ui-legacy .assign-row__login { font-size: 0.8rem; color: #506965; font-family: ui-monospace, Menlo, monospace; }
|
|
body.ui-legacy .assign-row__meta { font-size: 0.8rem; color: #506965; line-height: 1.35; }
|
|
|
|
body.ui-legacy .version-card-list,
|
|
body.ui-legacy .attempts-card-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* ─── Version items (compact row in top section) ─────────────────── */
|
|
body.ui-legacy .version-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 0.6rem;
|
|
background: var(--surface-container-low, #f5f5f5);
|
|
border: 1px solid var(--outline-variant, #e0e0e0);
|
|
}
|
|
body.ui-legacy .version-item[data-active="1"] {
|
|
background: color-mix(in srgb, var(--primary, #007168) 8%, white);
|
|
border-color: color-mix(in srgb, var(--primary, #007168) 25%, transparent);
|
|
}
|
|
body.ui-legacy .version-item__label {
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
}
|
|
body.ui-legacy .version-item__badge {
|
|
font-size: 0.65rem;
|
|
font-weight: 500;
|
|
padding: 0.1rem 0.4rem;
|
|
border-radius: 999px;
|
|
background: var(--primary, #007168);
|
|
color: #fff;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
body.ui-legacy .version-item__date {
|
|
font-size: 0.78rem;
|
|
flex: 1;
|
|
}
|
|
body.ui-legacy .version-item__spacer {
|
|
width: 1px;
|
|
}
|
|
body.ui-legacy #versions-section {
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
body.ui-legacy .attempts-card-list__item {
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
body.ui-legacy .attempts-card-list__row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
body.ui-legacy .attempts-card-list__main {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
}
|
|
body.ui-legacy .attempts-card-list__main p {
|
|
margin: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
body.ui-legacy .attempts-card-list__main p + p {
|
|
margin-top: 0.2rem;
|
|
}
|
|
body.ui-legacy .attempts-card-list__action {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ─── Прохождение теста: один вопрос, прогресс сверху, удобно с телефона ─── */
|
|
.attempt-root {
|
|
max-width: var(--max-content);
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.attempt-back-link {
|
|
display: inline-block;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.attempt-flow {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
min-height: min(70dvh, 900px);
|
|
}
|
|
|
|
.attempt-progress-head {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 15;
|
|
padding-top: max(0.25rem, env(safe-area-inset-top, 0px));
|
|
padding-bottom: 0.65rem;
|
|
margin-bottom: 0.5rem;
|
|
background: linear-gradient(
|
|
180deg,
|
|
var(--surface-container-low) 0%,
|
|
var(--surface-container-low) 72%,
|
|
transparent 100%
|
|
);
|
|
}
|
|
|
|
.attempt-progress-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
margin-bottom: 0.45rem;
|
|
}
|
|
|
|
.attempt-progress-label {
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
color: var(--on-surface-variant);
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.attempt-timer {
|
|
font-variant-numeric: tabular-nums;
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.attempt-progress-track {
|
|
height: 6px;
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--outline-variant) 45%, transparent);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.attempt-progress-fill {
|
|
height: 100%;
|
|
width: 0%;
|
|
border-radius: inherit;
|
|
background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 75%, #fff));
|
|
transition: width 0.22s ease;
|
|
}
|
|
|
|
.attempt-title {
|
|
margin: 0.65rem 0 0.25rem;
|
|
font-size: 1.125rem;
|
|
line-height: 1.28;
|
|
}
|
|
|
|
.attempt-subtitle {
|
|
margin: 0;
|
|
}
|
|
|
|
.attempt-stage {
|
|
flex: 1 1 auto;
|
|
min-height: 12rem;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.attempt-q-card {
|
|
border-radius: var(--radius-card);
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
|
|
.attempt-q-card__meta {
|
|
margin-bottom: 0.65rem;
|
|
}
|
|
|
|
.attempt-q-num {
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--on-surface-variant);
|
|
}
|
|
|
|
.attempt-q-text {
|
|
font-size: 1.05rem;
|
|
line-height: 1.45;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.attempt-q-badge {
|
|
display: inline-block;
|
|
margin-left: 0.35rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.attempt-q-badge--ok {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.attempt-q-badge--bad {
|
|
color: #b42318;
|
|
}
|
|
|
|
.attempt-q-options {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.attempt-opt-row {
|
|
margin: 0;
|
|
}
|
|
|
|
.attempt-opt-label {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.65rem;
|
|
padding: 0.85rem 1rem;
|
|
min-height: 2.75rem;
|
|
border-radius: 0.85rem;
|
|
border: 1px solid color-mix(in srgb, var(--outline-variant) 55%, transparent);
|
|
background: var(--surface);
|
|
cursor: pointer;
|
|
transition: border-color 0.15s, background 0.15s;
|
|
}
|
|
|
|
.attempt-opt-label:hover:not(.attempt-opt-label--locked) {
|
|
border-color: color-mix(in srgb, var(--primary) 45%, transparent);
|
|
background: color-mix(in srgb, var(--primary) 5%, var(--surface));
|
|
}
|
|
|
|
.attempt-opt-label--locked {
|
|
cursor: default;
|
|
}
|
|
|
|
.attempt-opt-input {
|
|
margin-top: 0.2rem;
|
|
flex-shrink: 0;
|
|
width: 1.15rem;
|
|
height: 1.15rem;
|
|
accent-color: var(--primary);
|
|
}
|
|
|
|
.attempt-opt-text {
|
|
flex: 1;
|
|
font-size: 0.96rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.attempt-mark {
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.attempt-mark--ok {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.attempt-mark--bad {
|
|
color: #b42318;
|
|
}
|
|
|
|
.attempt-answer-actions {
|
|
margin-top: 1.25rem;
|
|
padding-top: 0.25rem;
|
|
}
|
|
|
|
.attempt-reply-btn {
|
|
width: 100%;
|
|
min-height: 2.75rem;
|
|
}
|
|
|
|
.attempt-footer-bar {
|
|
position: sticky;
|
|
bottom: 0;
|
|
z-index: 12;
|
|
margin-top: auto;
|
|
padding-top: 0.65rem;
|
|
padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
|
|
margin-left: -0.25rem;
|
|
margin-right: -0.25rem;
|
|
padding-left: max(0.25rem, env(safe-area-inset-left, 0px));
|
|
padding-right: max(0.25rem, env(safe-area-inset-right, 0px));
|
|
background: linear-gradient(
|
|
180deg,
|
|
transparent 0%,
|
|
color-mix(in srgb, var(--surface-container-low) 92%, transparent) 28%,
|
|
var(--surface-container-low) 100%
|
|
);
|
|
border-top: 1px solid color-mix(in srgb, var(--outline-variant) 35%, transparent);
|
|
}
|
|
|
|
.attempt-footer-inner {
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: 0.5rem;
|
|
max-width: 42rem;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.attempt-footer-spacer {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.attempt-footer-btn {
|
|
min-height: 2.75rem;
|
|
padding-left: 1rem;
|
|
padding-right: 1rem;
|
|
}
|
|
|
|
.attempt-footer-btn[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.attempt-error-box {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.attempt-result-card {
|
|
padding: 1.25rem 1.35rem;
|
|
}
|
|
|
|
.attempt-result-title {
|
|
margin: 0 0 0.75rem;
|
|
}
|
|
|
|
.attempt-passed {
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.attempt-failed {
|
|
font-weight: 700;
|
|
color: #b42318;
|
|
}
|
|
|
|
.attempt-hint-verdict {
|
|
font-weight: 700;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.attempt-hint-verdict--ok {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.attempt-hint-verdict--bad {
|
|
color: #b42318;
|
|
}
|
|
|
|
body.ui-modern .attempt-flow {
|
|
min-height: min(75dvh, 880px);
|
|
}
|
|
|
|
body.ui-modern .attempt-title {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
body.ui-legacy .attempt-flow {
|
|
min-height: min(72dvh, 820px);
|
|
}
|
|
|
|
body.ui-legacy .attempt-progress-head {
|
|
background: linear-gradient(
|
|
180deg,
|
|
var(--surface) 0%,
|
|
var(--surface) 78%,
|
|
transparent 100%
|
|
);
|
|
}
|
|
|
|
body.ui-legacy .attempt-footer-bar {
|
|
background: linear-gradient(
|
|
180deg,
|
|
transparent 0%,
|
|
color-mix(in srgb, var(--surface) 94%, transparent) 35%,
|
|
var(--surface) 100%
|
|
);
|
|
}
|