/* ========================================================== Virtuality design system Light theme by default, dark via [data-theme="dark"] or system. ========================================================== */ @font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } :root { color-scheme: light; --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace; --bg: #f5f6fa; --surface: #ffffff; --surface-2: #fafbfc; --surface-3: #f1f3f7; --border: #e5e7ee; --border-strong: #d3d7e1; --text: #0e1525; --text-2: #4a5468; --text-3: #5f6980; --brand: #5a48f5; --brand-hover: #4a38e6; --brand-soft: #efedff; --brand-text: #4533d8; --on-brand: #ffffff; --focus: rgba(90, 72, 245, .28); --success: #0f9f5a; --success-soft: #e7f7ee; --warning: #c77c02; --warning-soft: #fff4dd; --danger: #e03e45; --danger-soft: #fdecec; --info: #2f73f0; --info-soft: #e9f1ff; --neutral: #6b7488; --neutral-soft: #eff1f5; /* Badge text: darker than the accents so small labels stay readable (WCAG 4.5:1 on the soft backgrounds). */ --success-text: #0b7a45; --warning-text: #8a5600; --danger-text: #b8262d; --info-text: #1f5fd0; --neutral-text: #525b6e; --switch-off: #8a93a6; --terminal-bg: #0d1117; --terminal-text: #d6deeb; --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05); --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04); --shadow-md: 0 8px 24px -6px rgba(16, 24, 40, .10), 0 2px 6px -2px rgba(16, 24, 40, .05); --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .22); --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-xl: 22px; --sidebar-w: 256px; --content-max: 1280px; } :root[data-theme="dark"] { color-scheme: dark; --bg: #0a0c11; --surface: #11141b; --surface-2: #151922; --surface-3: #1b2029; --border: #232935; --border-strong: #303746; --text: #edf0f6; --text-2: #a9b1c2; --text-3: #7a8395; --brand: #8576ff; --brand-hover: #9587ff; --brand-soft: rgba(133, 118, 255, .14); --brand-text: #aea4ff; --focus: rgba(133, 118, 255, .35); --success: #34c77b; --success-soft: rgba(52, 199, 123, .13); --warning: #f0a92b; --warning-soft: rgba(240, 169, 43, .13); --danger: #ff6369; --danger-soft: rgba(255, 99, 105, .13); --info: #5b9bff; --info-soft: rgba(91, 155, 255, .13); --neutral: #8d96a8; --neutral-soft: rgba(141, 150, 168, .13); --success-text: var(--success); --warning-text: var(--warning); --danger-text: var(--danger); --info-text: var(--info); --neutral-text: var(--neutral); --switch-off: #5c6678; --terminal-bg: #07090d; --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3); --shadow-sm: 0 1px 3px rgba(0, 0, 0, .35); --shadow-md: 0 10px 28px -8px rgba(0, 0, 0, .55); --shadow-lg: 0 28px 56px -12px rgba(0, 0, 0, .7); } *, *::before, *::after { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; } body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; } a { color: var(--brand-text); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; } h1, h2, h3, h4 { margin: 0; color: var(--text); letter-spacing: -.015em; } h1 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; } h2 { font-size: 16px; line-height: 1.35; font-weight: 650; } h3 { font-size: 14px; font-weight: 650; } p { margin: 0; } code, pre, .mono { font-family: var(--mono); } code { font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text); } hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; } [hidden] { display: none !important; } ::selection { background: var(--focus); } .icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; } .icon-sm { width: 15px; height: 15px; } .icon-lg { width: 22px; height: 22px; } .icon-xl { width: 28px; height: 28px; } /* ---------------------------------------------------------- layout */ .app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--surface) calc(var(--sidebar-w) - 1px), var(--border) calc(var(--sidebar-w) - 1px) var(--sidebar-w), transparent var(--sidebar-w)); } .sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 14px 14px; background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; } .logo { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; color: var(--text); } .logo:hover { text-decoration: none; } .brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #7b6bff 0%, #5a48f5 45%, #2f73f0 100%); box-shadow: 0 6px 16px -6px rgba(90, 72, 245, .7), inset 0 1px 0 rgba(255,255,255,.25); color: #fff; } .brand-mark svg { width: 20px; height: 20px; } .brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; } .brand-name small { display: block; margin-top: 2px; color: var(--text-3); font-size: 11.5px; font-weight: 500; letter-spacing: 0; } .nav { display: grid; gap: 2px; } .nav-section { margin: 14px 10px 6px; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; } .nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); font-weight: 500; transition: background .15s, color .15s; } .nav a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; } .nav a.active { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; } .nav a .icon { color: var(--text-3); } .nav a.active .icon, .nav a:hover .icon { color: inherit; } .nav a .nav-count { margin-left: auto; padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 600; } .nav a .nav-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); } .sidebar-footer { margin-top: auto; display: grid; gap: 10px; padding-top: 14px; } .server-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); } .server-chip .avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-text); font-weight: 700; } .server-chip div { min-width: 0; flex: 1; } .server-chip strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .server-chip span { display: block; color: var(--text-3); font-size: 12px; } .sidebar-actions { display: flex; gap: 6px; } .sidebar-actions form { display: contents; } .main { min-width: 0; display: flex; flex-direction: column; } .content { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 32px 36px 56px; } .mobilebar { display: none; } .page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; } .page-header .eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--text-3); font-size: 13px; font-weight: 500; } .page-header .eyebrow a { color: var(--text-3); } .page-header .eyebrow a:hover { color: var(--text); } .page-header p.lead { margin-top: 6px; color: var(--text-2); font-size: 14.5px; max-width: 720px; } .page-header .title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .stack { display: grid; gap: 20px; } .stack-sm { display: grid; gap: 12px; } .stack-xs { display: grid; gap: 6px; } .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .grid { display: grid; gap: 20px; } .grid > *, .stack > * { min-width: 0; } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .span-2 { grid-column: span 2; } .muted { color: var(--text-2); } .subtle { color: var(--text-3); } .small { font-size: 12.5px; } .strong { font-weight: 600; color: var(--text); } .nowrap { white-space: nowrap; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; } /* ---------------------------------------------------------- cards */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); } .card-body { padding: 22px; } .card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); } .card-header p { margin-top: 2px; color: var(--text-3); font-size: 13px; } .card-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); } .card-link { display: block; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; } .card-link:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-md); } .section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; } .section-title h2 { font-size: 15px; } /* stat cards */ .stat { padding: 18px 20px; } .stat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 500; } .stat-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-3); color: var(--text-2); } .stat-value { margin-top: 12px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; } .stat-value small { margin-left: 3px; color: var(--text-3); font-size: 14px; font-weight: 500; letter-spacing: 0; } .stat-foot { margin-top: 12px; color: var(--text-3); font-size: 12.5px; } .meter { height: 6px; margin-top: 14px; border-radius: 999px; background: var(--surface-3); overflow: hidden; } .meter > span { display: block; height: 100%; width: var(--value, 0%); border-radius: inherit; background: var(--success); transition: width .6s cubic-bezier(.2, .8, .2, 1); } .meter.warning > span { background: var(--warning); } .meter.danger > span { background: var(--danger); } .meter.brand > span { background: linear-gradient(90deg, var(--brand), #2f73f0); } .meter.lg { height: 10px; } /* ---------------------------------------------------------- badges */ .badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--neutral-soft); color: var(--neutral-text); } .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; } .badge.success { background: var(--success-soft); color: var(--success-text); } .badge.warning { background: var(--warning-soft); color: var(--warning-text); } .badge.danger { background: var(--danger-soft); color: var(--danger-text); } .badge.info { background: var(--info-soft); color: var(--info-text); } .badge.brand { background: var(--brand-soft); color: var(--brand-text); } .badge.success .dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent); animation: pulse 2.4s ease-in-out infinite; } .badge.info .dot { animation: pulse 1.4s ease-in-out infinite; } .badge.lg { height: 28px; padding: 0 11px; font-size: 13px; } @keyframes pulse { 50% { opacity: .45; } } .tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 500; } /* ---------------------------------------------------------- buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); font: 600 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, color .15s, transform .05s; } .btn:hover { background: var(--surface-3); text-decoration: none; } .btn:active { transform: translateY(1px); } .btn:focus-visible, .input:focus-visible, .select:focus-visible, textarea:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--focus); } .btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; } .btn-primary { border-color: transparent; background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 2px rgba(16,24,40,.1), inset 0 1px 0 rgba(255,255,255,.14); } .btn-primary:hover { background: var(--brand-hover); } .btn-success { border-color: transparent; background: var(--success); color: #fff; } .btn-success:hover { filter: brightness(1.06); background: var(--success); } .btn-danger { border-color: transparent; background: var(--danger); color: #fff; } .btn-danger:hover { filter: brightness(1.06); background: var(--danger); } .btn-danger-soft { border-color: transparent; background: var(--danger-soft); color: var(--danger); box-shadow: none; } .btn-danger-soft:hover { background: var(--danger); color: #fff; } .btn-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); } .btn-ghost:hover { background: var(--surface-3); color: var(--text); } .btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; } .btn-lg { height: 46px; padding: 0 20px; font-size: 14.5px; border-radius: 12px; } .btn-block { width: 100%; } .btn-icon { width: 38px; padding: 0; } .btn-icon.btn-sm { width: 32px; } .btn .spinner { width: 15px; height: 15px; border-width: 2px; } .inline-form { display: inline-flex; margin: 0; } /* ---------------------------------------------------------- forms */ .field { display: grid; gap: 7px; } .field > label, .label { color: var(--text); font-size: 13px; font-weight: 600; } .field .hint { color: var(--text-3); font-size: 12.5px; } .input, .select, textarea.input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: 400 14px/1.4 var(--font); box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s; } .input::placeholder { color: var(--text-3); } .input:focus, .select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--focus); } .input[disabled], .select[disabled] { background: var(--surface-3); color: var(--text-3); cursor: not-allowed; } .select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237b8498' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; } .input-group { display: flex; align-items: stretch; } .input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 10px 10px 0; background: var(--surface-3); color: var(--text-2); font-size: 13px; font-weight: 500; } .form-grid { display: grid; gap: 16px; } .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } /* switch */ .switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .switch-row .switch-text strong { display: block; font-weight: 600; } .switch-row .switch-text span { color: var(--text-3); font-size: 12.5px; } .switch { position: relative; width: 42px; height: 24px; flex: none; padding: 0; border: 0; border-radius: 999px; background: var(--switch-off); cursor: pointer; transition: background .2s; } .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.25); transition: transform .2s cubic-bezier(.2,.8,.2,1); } .switch[aria-checked="true"] { background: var(--success); } .switch[aria-checked="true"]::after { transform: translateX(18px); } /* checkbox row (consent for destructive actions) */ .check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; } .check input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; } .check > span { display: grid; gap: 2px; } .check > span > span { color: var(--text-3); font-size: 12.5px; } .check.danger { border-color: color-mix(in srgb, var(--danger) 30%, transparent); background: var(--danger-soft); } .check.danger input { accent-color: var(--danger); } .check.danger strong { color: var(--danger); } /* option cards (radio) */ .options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } .options-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } @media (max-width: 1400px) { .options-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } .option { position: relative; display: block; cursor: pointer; } .option input { position: absolute; opacity: 0; pointer-events: none; } .option-body { display: grid; gap: 6px; height: 100%; padding: 16px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; } .option:hover .option-body { border-color: var(--border-strong); } .option input:checked + .option-body { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); box-shadow: 0 0 0 4px var(--focus); } .option input:focus-visible + .option-body { box-shadow: 0 0 0 4px var(--focus); } .option input:disabled + .option-body { opacity: .5; cursor: not-allowed; } .option-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .option-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); } .option input:checked + .option-body .option-icon { background: var(--brand); color: #fff; } .option-check { width: 18px; height: 18px; border: 1.5px solid var(--border-strong); border-radius: 50%; transition: all .15s; } .option input:checked + .option-body .option-check { border: 5px solid var(--brand); } .option-title { font-weight: 650; font-size: 14px; } .option-text { color: var(--text-2); font-size: 12.5px; } /* Выбор образа в форме создания машины */ .image-picker { display: grid; gap: 10px; } .image-list { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; } .image-option { position: relative; display: block; cursor: pointer; } .image-option[hidden] { display: none; } .image-option input { position: absolute; opacity: 0; pointer-events: none; } .image-option-body { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, background .15s; } .image-option:hover .image-option-body { border-color: var(--border-strong); } .image-option input:checked + .image-option-body { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); box-shadow: 0 0 0 4px var(--focus); } .image-option input:focus-visible + .image-option-body { box-shadow: 0 0 0 4px var(--focus); } .image-option input:checked + .image-option-body .option-check { border: 5px solid var(--brand); } .image-option .grow { flex: 1; display: grid; gap: 2px; min-width: 0; } .image-title { font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .image-meta { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @media (max-width: 560px) { .image-option .list-icon { display: none; } .image-title, .image-meta { white-space: normal; overflow-wrap: anywhere; } } /* Расписание копий: день недели и список машин видны, только когда нужны (без :has — видны всегда). */ .schedule-form:has(input[name=frequency][value=daily]:checked) [data-when=weekly], .schedule-form:has(input[name=machines][value=all]:checked) [data-when=chosen] { display: none; } .option-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; } /* segmented */ .segmented { justify-self: start; display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-3); } .segmented a, .segmented button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: 600 13px/1 var(--font); cursor: pointer; } .segmented a:hover, .segmented button:hover { color: var(--text); text-decoration: none; } .segmented .active, .segmented [aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); } /* tabs */ .tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); overflow-x: auto; } .tabs a, .tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--text-2); font: 600 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; } .tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; } .tabs .active, .tabs [aria-selected="true"] { color: var(--brand-text); border-bottom-color: var(--brand); } /* ---------------------------------------------------------- lists & tables */ .list { display: grid; } .list-item { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--border); } .list-item:first-child { border-top: 0; } a.list-item { color: inherit; } a.list-item:hover { background: var(--surface-2); text-decoration: none; } .list-item .grow { flex: 1; min-width: 0; } .list-item .title { font-weight: 600; } .list-item .meta { color: var(--text-3); font-size: 12.5px; } .list-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--surface-3); color: var(--text-2); } .list-icon.success { background: var(--success-soft); color: var(--success); } .list-icon.danger { background: var(--danger-soft); color: var(--danger); } .list-icon.info { background: var(--info-soft); color: var(--info); } .list-icon.brand { background: var(--brand-soft); color: var(--brand-text); } .table-wrap { overflow-x: auto; } .table { width: 100%; border-collapse: collapse; } .table th { padding: 10px 22px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; } .table td { padding: 14px 22px; border-bottom: 1px solid var(--border); vertical-align: middle; } .table tr:last-child td { border-bottom: 0; } .table tbody tr:hover td { background: var(--surface-2); } .table .actions { display: flex; justify-content: flex-end; gap: 6px; } .kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); } .kv > div { padding: 12px 14px; box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); } .kv > div > span { display: block; color: var(--text-3); font-size: 12px; font-weight: 500; } .kv > div > strong { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; } .checklist { display: grid; } .check-item { display: flex; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--border); } .check-item:first-child { border-top: 0; } .check-item .icon { margin-top: 2px; } .check-item.success .icon { color: var(--success); } .check-item.warning .icon { color: var(--warning); } .check-item.danger .icon { color: var(--danger); } .check-item strong { display: block; font-weight: 600; } .check-item span { color: var(--text-3); font-size: 12.5px; } /* ---------------------------------------------------------- VM cards */ .vm-list { display: grid; } .vm-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--border); transition: background .15s; } .vm-row:first-child { border-top: 0; } .vm-row:hover { background: var(--surface-2); } .vm-ident { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; } .vm-ident:hover { text-decoration: none; } .vm-ident:hover .vm-name { color: var(--brand-text); } .vm-avatar { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--surface-3); color: var(--text-2); } .vm-avatar.on { background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--info-soft) 70%, transparent)); color: var(--brand-text); } .vm-avatar .status-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border: 2.5px solid var(--surface); border-radius: 50%; background: var(--neutral); } .vm-avatar .status-dot.success { background: var(--success); } .vm-avatar .status-dot.warning { background: var(--warning); } .vm-avatar .status-dot.danger { background: var(--danger); } .vm-name { font-size: 14.5px; font-weight: 650; transition: color .15s; } .vm-sub { color: var(--text-3); font-size: 12.5px; } .vm-cell-label { color: var(--text-3); font-size: 12px; } .vm-cell-value { font-weight: 500; } .vm-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; } /* ---------------------------------------------------------- menus & dialogs */ .menu { position: relative; } .menu > summary { list-style: none; } .menu > summary::-webkit-details-marker { display: none; } .menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 230px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); animation: pop .12s ease-out; } .menu-list form { margin: 0; } .menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 500 13.5px/1.2 var(--font); text-align: left; cursor: pointer; } .menu-item:hover { background: var(--surface-3); text-decoration: none; } .menu-item .icon { color: var(--text-3); } .menu-item.danger { color: var(--danger); } .menu-item.danger .icon { color: var(--danger); } .menu-item.danger:hover { background: var(--danger-soft); } .menu-item small { display: block; color: var(--text-3); font-size: 12px; font-weight: 400; margin-top: 2px; } .menu-sep { height: 1px; margin: 6px 4px; background: var(--border); } @keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } } dialog.dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); } dialog.dialog::backdrop { background: rgba(10, 13, 20, .45); backdrop-filter: blur(3px); } dialog.dialog[open] { animation: pop .16s ease-out; } .dialog-body { display: flex; gap: 16px; padding: 24px; } .dialog-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--danger-soft); color: var(--danger); } .dialog-icon.brand { background: var(--brand-soft); color: var(--brand-text); } .dialog-body h3 { font-size: 16px; } .dialog-body p { margin-top: 6px; color: var(--text-2); } .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-xl) var(--radius-xl); } /* ---------------------------------------------------------- feedback */ .alert { display: flex; gap: 12px; padding: 13px 16px; border: 1px solid transparent; border-radius: var(--radius); font-size: 13.5px; } .alert .icon { margin-top: 1px; } .alert strong { display: block; font-weight: 600; } .alert.success { background: var(--success-soft); color: color-mix(in srgb, var(--success) 70%, var(--text)); border-color: color-mix(in srgb, var(--success) 22%, transparent); } .alert.danger { background: var(--danger-soft); color: color-mix(in srgb, var(--danger) 72%, var(--text)); border-color: color-mix(in srgb, var(--danger) 22%, transparent); } .alert.warning { background: var(--warning-soft); color: color-mix(in srgb, var(--warning) 62%, var(--text)); border-color: color-mix(in srgb, var(--warning) 25%, transparent); } .alert.info { background: var(--info-soft); color: color-mix(in srgb, var(--info) 65%, var(--text)); border-color: color-mix(in srgb, var(--info) 22%, transparent); } .alert.brand { background: var(--brand-soft); color: var(--brand-text); } .alert .alert-action { margin-left: auto; align-self: center; } .alerts { display: grid; gap: 10px; margin-bottom: 22px; } .alerts:not(:has(> *)) { display: none; } .empty { display: grid; justify-items: center; gap: 10px; padding: 52px 24px; text-align: center; } .empty-art { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 18px; background: linear-gradient(135deg, var(--brand-soft), var(--info-soft)); color: var(--brand-text); } .empty h3 { font-size: 16px; } .empty p { max-width: 420px; color: var(--text-2); } .empty .row { justify-content: center; margin-top: 6px; } .progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; } .progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #2f73f0); transition: width .4s ease; } .progress.success > span { background: var(--success); } .progress.danger > span { background: var(--danger); } .progress.indeterminate > span { width: 35%; animation: indeterminate 1.3s ease-in-out infinite; } @keyframes indeterminate { from { transform: translateX(-100%); } to { transform: translateX(300%); } } .spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } #toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); } .toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); font-weight: 500; opacity: 0; transform: translateY(8px); transition: .22s ease; } .toast.show { opacity: 1; transform: none; } .toast .icon { margin-top: 1px; } .toast.success .icon { color: var(--success); } .toast.warning .icon { color: var(--warning); } .toast.danger .icon { color: var(--danger); } .toast.info .icon { color: var(--brand); } /* ---------------------------------------------------------- upload */ .dropzone { position: relative; display: grid; justify-items: center; gap: 8px; padding: 34px 24px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; } .dropzone:hover, .dropzone.dragover { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 50%, var(--surface)); } .dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; } .dropzone-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); color: var(--brand-text); box-shadow: var(--shadow-sm); } .dropzone strong { font-size: 14.5px; } .dropzone span { color: var(--text-3); font-size: 12.5px; } .upload-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); } .upload-file .grow { flex: 1; min-width: 0; } .upload-stats { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--text-3); font-size: 12.5px; } /* ---------------------------------------------------------- steps / wizard */ .step-card { position: relative; } .step-head { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px 0; } .step-num { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 0 0 5px var(--brand-soft); } .step-head h2 { font-size: 16px; } .step-head p { margin-top: 2px; color: var(--text-3); font-size: 13px; } .step-body { padding: 18px 22px 22px 64px; } .summary { position: sticky; top: 24px; } .summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 13.5px; } .summary-row:first-child { border-top: 0; } .summary-row span { color: var(--text-3); } .summary-row strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; } details.advanced { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); } details.advanced > summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; color: var(--text-2); font-weight: 600; cursor: pointer; list-style: none; } details.advanced > summary::-webkit-details-marker { display: none; } details.advanced > summary .chev { margin-left: auto; transition: transform .2s; } details.advanced[open] > summary .chev { transform: rotate(180deg); } details.advanced > .advanced-body { padding: 4px 16px 16px; } /* ---------------------------------------------------------- terminal / code */ .terminal { margin: 0; padding: 16px 18px; max-height: 520px; overflow: auto; border-radius: var(--radius); background: var(--terminal-bg); color: var(--terminal-text); font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; } .terminal.tall { max-height: 68vh; min-height: 360px; } .terminal-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius) var(--radius) 0 0; background: color-mix(in srgb, var(--terminal-bg) 88%, #fff); color: #8b95a7; font-size: 12px; font-weight: 600; } .terminal-head + .terminal { border-radius: 0 0 var(--radius) var(--radius); } .terminal-head i { width: 10px; height: 10px; border-radius: 50%; background: #3a4150; } .code-line { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font: 12.5px/1.4 var(--mono); overflow-x: auto; white-space: nowrap; } /* ---------------------------------------------------------- login */ .auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; } .auth-hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px; overflow: hidden; background: radial-gradient(1100px 600px at -10% -10%, rgba(123, 107, 255, .55), transparent 60%), radial-gradient(800px 500px at 110% 110%, rgba(47, 115, 240, .45), transparent 55%), #0b0a1f; color: #fff; } .auth-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); pointer-events: none; } .auth-hero > * { position: relative; z-index: 1; } .auth-hero .logo { padding: 0; color: #fff; } .auth-hero .brand-name small { color: rgba(255,255,255,.6); } .auth-hero h1 { max-width: 520px; color: #fff; font-size: 40px; line-height: 1.12; letter-spacing: -.035em; } .auth-hero h1 span { background: linear-gradient(90deg, #c4bcff, #8fb8ff); -webkit-background-clip: text; background-clip: text; color: transparent; } .auth-hero p { max-width: 460px; margin-top: 16px; color: rgba(255,255,255,.72); font-size: 15.5px; line-height: 1.6; } .auth-features { display: grid; gap: 14px; margin-top: 34px; } .auth-feature { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.86); font-weight: 500; } .auth-feature .icon-wrap { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); } .auth-foot { color: rgba(255,255,255,.5); font-size: 12.5px; } .auth-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); } .auth-form { width: min(380px, 100%); } .auth-form h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; } .auth-form > p { margin-top: 6px; color: var(--text-2); } .auth-mobile-brand { display: none; } /* ---------------------------------------------------------- console */ .console-page { display: flex; flex-direction: column; height: 100vh; background: #05070b; color: #e6e9ef; } .console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #0d1017; border-bottom: 1px solid #1d222d; } .console-bar .btn { background: #161b24; border-color: #262d3a; color: #e6e9ef; } .console-bar .btn:hover { background: #1f2531; } .console-frame { flex: 1; width: 100%; border: 0; background: #000; } /* ---------------------------------------------------------- misc */ .hero-card { position: relative; overflow: hidden; padding: 26px 28px; border: 0; background: radial-gradient(600px 240px at 100% 0%, rgba(47,115,240,.35), transparent 60%), radial-gradient(500px 260px at 0% 100%, rgba(123,107,255,.45), transparent 60%), #14112e; color: #fff; } .hero-card h2 { color: #fff; font-size: 20px; } .hero-card p { margin-top: 6px; color: rgba(255,255,255,.75); max-width: 560px; } .hero-card .btn { border-color: transparent; } .hero-card .btn-glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); box-shadow: none; } .hero-card .btn-glass:hover { background: rgba(255,255,255,.2); } .help-card h3 { margin-bottom: 6px; } .help-card p { color: var(--text-2); } .help-card ol, .help-card ul { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); } .help-card li { margin: 5px 0; } .release { padding: 18px 22px; border-top: 1px solid var(--border); } .release:first-child { border-top: 0; } .release ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); } .release li { margin: 4px 0; } /* ---------------------------------------------------------- responsive */ @media (max-width: 1180px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: 1fr; } .summary { position: static; } .vm-row { grid-template-columns: minmax(0, 1fr) auto; } .vm-row .vm-col { display: none; } } @media (max-width: 1024px) { .app { grid-template-columns: 1fr; background: none; } .sidebar { position: fixed; left: 0; top: 0; z-index: 200; width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); } body.nav-open .sidebar { transform: none; } body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 150; background: rgba(10,13,20,.4); } .mobilebar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); } .mobilebar .logo { padding: 0; } .content { padding: 22px 16px 48px; } .grid-2, .grid-3 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } .auth { grid-template-columns: 1fr; } .auth-hero { display: none; } .auth-mobile-brand { display: flex; margin-bottom: 28px; } } @media (max-width: 640px) { h1 { font-size: 22px; } .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; } .form-row, .form-row-3 { grid-template-columns: 1fr; } .stat { padding: 14px; } .stat-value { font-size: 21px; } .card-header, .card-body, .list-item, .vm-row, .table td, .table th { padding-left: 16px; padding-right: 16px; } .step-body { padding: 16px; } .page-header { align-items: flex-start; } .page-actions { width: 100%; } .vm-actions .btn-label { display: none; } .hide-sm { display: none !important; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } } /* ---------------------------------------------------------- setup wizard */ .setup-page { background: var(--bg); } .setup-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 32px; border-bottom: 1px solid var(--border); background: var(--surface); } .setup-top .logo { padding: 0; } .setup-main { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 32px 60px; } .setup-rail { display: grid; gap: 4px; align-content: start; position: sticky; top: 24px; } .setup-step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-3); } .setup-step:hover { text-decoration: none; } .setup-step[href]:hover { background: var(--surface-3); color: var(--text); } .setup-step strong { display: block; font-weight: 600; color: inherit; } .setup-step small { display: block; font-size: 12px; } .setup-step-num { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong); font-size: 12.5px; font-weight: 700; } .setup-step.active { color: var(--text); } .setup-step.active .setup-step-num { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); } .setup-step.done { color: var(--text-2); } .setup-step.done .setup-step-num { border-color: var(--success); background: var(--success-soft); color: var(--success); } .setup-content { min-width: 0; } .setup-card { box-shadow: var(--shadow-md); } .setup-card .card-header h2 { font-size: 20px; } .setup-card .card-header p { font-size: 14px; color: var(--text-2); margin-top: 4px; } @media (max-width: 900px) { .setup-top { padding: 12px 16px; } .setup-main { grid-template-columns: 1fr; padding: 20px 16px 48px; gap: 16px; } .setup-rail { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; } .setup-step { flex: none; padding: 6px 10px; } .setup-step small { display: none; } } /* ---------------------------------------------------------- downloads */ .downloads { margin-bottom: 20px; } .download-item .download-pct { flex: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; } .download-item[data-status="error"] .download-pct { color: var(--danger); } .download-item[data-status="success"] .download-pct { color: var(--success); } .download-error { color: var(--danger); } .catalog-item .meta code { padding: 1px 5px; border-radius: 5px; background: var(--surface-3); font: 12px/1.4 var(--mono); color: var(--text-2); } @media (max-width: 640px) { .download-item, .catalog-item { flex-wrap: wrap; } .download-item .grow, .catalog-item .grow { flex-basis: calc(100% - 50px); } } /* ---------------------------------------------------------- vmops: live load, disks, notes */ .list > * { min-width: 0; } /* длинное сообщение задачи обрезается, а не растягивает карточку на телефоне */ .vm-title { color: var(--text-2); font-weight: 500; } .vm-meters { display: grid; gap: 3px; margin-top: 6px; max-width: 220px; } .vm-meter { display: grid; grid-template-columns: 14px minmax(0, 1fr) 46px; align-items: center; gap: 7px; color: var(--text-3); font-size: 11.5px; } .vm-meter .icon-sm { width: 14px; height: 14px; } .vm-meter .meter { display: block; margin: 0; height: 5px; } .vm-meter b { font-weight: 600; color: var(--text-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .load-grid { display: grid; gap: 16px; } .load-row { display: grid; gap: 8px; } .load-row .row-between { font-size: 13px; } .load-row .row-between .subtle { display: inline-flex; align-items: center; gap: 6px; } .load-row .meter { margin-top: 0; } .disk-resize { display: flex; align-items: center; gap: 8px; flex: none; } .disk-resize .input { width: 84px; height: 32px; padding: 0 10px; border-radius: 8px 0 0 8px; font-size: 13px; } .disk-resize .addon { padding: 0 9px; border-radius: 0 8px 8px 0; font-size: 12px; } .disk-footer { display: block; } .disk-footer p { margin: 0; line-height: 1.5; } textarea.input { height: auto; min-height: 96px; padding: 9px 12px; resize: vertical; line-height: 1.45; } textarea.input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--focus); } @media (max-width: 640px) { .list-item.disk-item { flex-wrap: wrap; } .disk-resize { width: 100%; justify-content: flex-end; } }