/* Tokens and components of the ADVIZ cabinet prototype: --sh-* values of shared/shell.css, light theme and «Графит». */
@font-face {
    font-family: "Open Sans";
    src: url("./open-sans.woff") format("woff");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}
:root {
    color-scheme: light;
    --sh-bg: #f6f6f7;
    --sh-surface: #fff;
    --sh-hover: rgba(75, 70, 92, .04);
    --sh-line: #dbdade;
    --sh-line-2: rgb(201, 199, 206);
    --sh-ink: #4b465c;
    --sh-ink-2: #6f6b7d;
    --sh-primary: #30b271;
    --sh-primary-ink: rgb(30, 149, 83);
    --sh-primary-soft: color-mix(in srgb, rgb(48, 178, 113) 16%, transparent);
    --sh-on-accent: #fff;
    --sh-ok-bg: color-mix(in srgb, rgb(40, 199, 111) 16%, transparent);
    --sh-ok-ink: rgb(30, 149, 83);
    --sh-warn-bg: color-mix(in srgb, rgb(255, 159, 67) 16%, transparent);
    --sh-warn-ink: rgb(191, 119, 50);
    --sh-err-bg: color-mix(in srgb, rgb(234, 84, 85) 16%, transparent);
    --sh-err-ink: rgb(175, 63, 64);
    --sh-off-bg: #ebebed;
    --sh-head: 56px;
    --sh-r-card: 12px;
    --sh-r-ctl: 8px;
    --sh-r-badge: 6px;
    --sh-font: "Open Sans", "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --sh-bg: #181a1d;
        --sh-surface: #212429;
        --sh-hover: rgba(225, 222, 245, .06);
        --sh-line: #44485e;
        --sh-line-2: #56596f;
        --sh-ink: #cfcde4;
        --sh-ink-2: #acabc1;
        --sh-primary-ink: rgb(48, 178, 113);
        --sh-primary-soft: #2f474f;
        --sh-ok-bg: #2e4b4f;
        --sh-ok-ink: #5fd99a;
        --sh-warn-bg: #504448;
        --sh-warn-ink: #ffb36b;
        --sh-err-bg: #50374a;
        --sh-err-ink: #ff8a8b;
        --sh-off-bg: #363a41;
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --sh-bg: #181a1d;
    --sh-surface: #212429;
    --sh-hover: rgba(225, 222, 245, .06);
    --sh-line: #44485e;
    --sh-line-2: #56596f;
    --sh-ink: #cfcde4;
    --sh-ink-2: #acabc1;
    --sh-primary-ink: rgb(48, 178, 113);
    --sh-primary-soft: #2f474f;
    --sh-ok-bg: #2e4b4f;
    --sh-ok-ink: #5fd99a;
    --sh-warn-bg: #504448;
    --sh-warn-ink: #ffb36b;
    --sh-err-bg: #50374a;
    --sh-err-ink: #ff8a8b;
    --sh-off-bg: #363a41;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--sh-bg); color: var(--sh-ink-2); font: 400 15px/1.45 var(--sh-font); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--sh-ink); font-weight: 500; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sh-primary-ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 2; padding: 8px 12px; border-radius: var(--sh-r-ctl); background: var(--sh-surface); color: var(--sh-ink); transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 48px, 1200px); margin-inline: auto; }

/* Header of a separate site of the prototype: white bar with a line, logo on the left. */
.top { background: var(--sh-surface); border-bottom: 1px solid var(--sh-line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--sh-head); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--sh-ink); }
.wordmark { display: block; fill: currentColor; }

/* Button of the design system: 38 px, padding 0 20, radius 8, 15/18 500, icon 18 on the right. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 20px; border: 1px solid var(--sh-line-2); border-radius: var(--sh-r-ctl); background: transparent; color: var(--sh-ink); font: 500 15px/18px var(--sh-font); white-space: nowrap; }
.btn:hover { background: var(--sh-hover); border-color: var(--sh-primary); color: var(--sh-primary-ink); }
.btn.primary { background: var(--sh-primary); border-color: transparent; color: var(--sh-on-accent); }
.btn.primary:hover { background: linear-gradient(#0000001a, #0000001a), var(--sh-primary); color: var(--sh-on-accent); }
#refresh[aria-disabled="true"] { cursor: progress; }
#refresh.spin .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }

#main { display: flex; flex-direction: column; gap: 24px; padding-block: 24px 64px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
h1 { font: 500 24px/30px var(--sh-font); }
.card { background: var(--sh-surface); border-radius: var(--sh-r-card); padding: 24px; min-width: 0; }
.tile { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--sh-r-ctl); background: var(--sh-primary-soft); color: var(--sh-primary-ink); }
.tile .ic { width: 20px; height: 20px; }

/* Overall state: greeting card of the cabinet home page with the production pattern. */
.summary { display: flex; align-items: center; gap: 16px; background: var(--sh-surface) url("./header-bg.svg") right bottom no-repeat; }
.summary h2 { font: 500 18px/25px var(--sh-font); }
.summary p { margin-top: 4px; font-size: 13px; line-height: 18px; }
.summary[data-state="neutral"] .tile { background: var(--sh-off-bg); color: var(--sh-ink-2); }
.summary[data-state="ok"] .tile { background: var(--sh-ok-bg); color: var(--sh-ok-ink); }
.summary[data-state="warn"] .tile { background: var(--sh-warn-bg); color: var(--sh-warn-ink); }
.summary[data-state="err"] .tile { background: var(--sh-err-bg); color: var(--sh-err-ink); }

/* Alert of the design system: radius 6, padding 12/16, 500 15/22, icon 18 on a surface tile. */
.alert { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--sh-r-badge); background: var(--sh-warn-bg); color: var(--sh-ink); font: 500 15px/22px var(--sh-font); }
.alert > .ic { box-sizing: content-box; padding: 4px; border-radius: var(--sh-r-badge); background: var(--sh-surface); color: var(--sh-warn-ink); }

#groups { display: flex; flex-direction: column; gap: 24px; }
.group h2 { margin-bottom: 16px; font: 500 18px/25px var(--sh-font); }
.group > ul { margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 16px; padding: 16px 0; }
.row:first-child { padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.row + .row { border-top: 1px solid var(--sh-line); }
.row[data-tone="warn"] .tile { background: var(--sh-warn-bg); color: var(--sh-warn-ink); }
.row[data-tone="err"] .tile { background: var(--sh-err-bg); color: var(--sh-err-ink); }
.row h3 { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; font: 500 15px/22px var(--sh-font); }
.row p { font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.row .detail { margin-top: 4px; color: var(--sh-ink); }
.row[data-tone="err"] .detail { color: var(--sh-err-ink); }

/* Fact line of the design system (.sh-ilist): items divided by a 1 px line with 16 px on each side. */
.facts { --gap: 33px; display: flex; flex-wrap: wrap; row-gap: 4px; margin: 8px 0 0 calc(-1 * var(--gap)); padding: 0; list-style: none; clip-path: inset(-4px 0 -4px var(--gap)); font-size: 13px; line-height: 18px; }
.facts li { position: relative; margin-left: var(--gap); }
.facts li::before { content: ""; position: absolute; top: 50%; left: -17px; width: 1px; height: 1.1em; transform: translateY(-50%); background: var(--sh-line); }

/* StatusPill of the design system: 22 px, 11/16 500, radius 6, one width in the column. */
.pill { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 112px; height: 22px; padding: 0 8px; border-radius: var(--sh-r-badge); background: var(--sh-off-bg); color: var(--sh-ink-2); font: 500 11px/16px var(--sh-font); white-space: nowrap; }
.pill[data-tone="ok"] { background: var(--sh-ok-bg); color: var(--sh-ok-ink); }
.pill[data-tone="warn"] { background: var(--sh-warn-bg); color: var(--sh-warn-ink); }
.pill[data-tone="err"] { background: var(--sh-err-bg); color: var(--sh-err-ink); }

@media (max-width: 991.98px) {
    .logo { gap: 8px; }
    .logo .mark { width: 36px; height: 32px; }
    .wordmark { width: 70px; height: 13px; }
}
@media (max-width: 575.98px) {
    .wrap { width: calc(100% - 32px); }
    /* Small button of the design system: 28 px, padding 0 14, radius 6, 13/16, icon 16. */
    .top .btn { height: 28px; padding: 0 14px; gap: 6px; border-radius: var(--sh-r-badge); font-size: 13px; line-height: 16px; }
    .top .btn .ic { width: 16px; height: 16px; }
    #main { gap: 16px; padding-top: 16px; }
    h1 { font-size: 18px; line-height: 25px; }
    #refresh { width: 38px; padding: 0; }
    #refresh .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    #refresh .ic { width: 20px; height: 20px; }
    .card { padding: 16px; }
    .summary { gap: 12px; background-size: 300px auto; }
    #groups { gap: 16px; }
    .row { gap: 12px; padding: 12px 0; }
    .pill { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { #refresh.spin .ic { animation: none; } }
