@font-face { font-family: "Roboto"; src: url("/static/fonts/Roboto.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Momo Trust Display"; src: url("/static/fonts/MomoTrustDisplay-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
:root {
  --fg: #fff; --muted: #9a9a9a; --line: #2e2e2e; --line-strong: #fff; --bg: #000; --panel: #0b0b0b; --panel-2: #141414;
  --accent: #fff; --link: #6cb6ff; --ok: #5fd68a; --bad: #ff6b6b; --warn: #f0b84a;
  --radius: 8px; --font: "Roboto", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Momo Trust Display", "Montserrat", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--fg); background: var(--bg); }
a { color: var(--link); }
::selection { background: #fff; color: #000; }
.muted { color: var(--muted); }
.container { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
.container--narrow { max-width: 480px; }
.container--wide { max-width: 1280px; }

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 44px; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { display: block; height: 44px; width: auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 16px 0; }
.button { display: inline-block; padding: 8px 16px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: #000; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.button:hover { background: #d9d9d9; border-color: #d9d9d9; }
.button--ghost { background: transparent; color: #fff; }
.button--ghost:hover { background: #fff; color: #000; border-color: #fff; }
.button--danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.button--danger:hover { background: var(--bad); border-color: var(--bad); color: #000; }
.button--small { padding: 3px 10px; font-size: 13px; border-width: 1.5px; }
.button--big { padding: 10px 22px; font-size: 20px; border-width: 4px; background: transparent; color: #fff; }
.button--big:hover { background: #fff; color: #000; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.button[disabled] { opacity: .45; cursor: default; }
input, select, textarea { padding: 6px 10px; border: 1.5px solid #3a3a3a; border-radius: var(--radius); background: #0b0b0b; color: #fff; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: #fff; outline: none; }
input::placeholder, textarea::placeholder { color: #666; }
.notice { padding: 10px 14px; border: 1px solid #2a3b55; border-radius: var(--radius); background: #0d1624; }
.notice--error { background: #1f0d0d; border-color: #5c2222; color: var(--bad); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.key { padding: 8px; border: 1px dashed #444; border-radius: var(--radius); }
.key__value { display: block; word-break: break-all; margin: 4px 0; font-size: 12px; }
.avatar { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; }

.badge { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; background: #1e1e1e; color: #ccc; }
.badge--running, .badge--active { background: #0f2a1a; color: var(--ok); }
.badge--failed, .badge--expired { background: #2d1111; color: var(--bad); }
.badge--restarting { background: #2d230d; color: var(--warn); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table--clickable tbody tr { cursor: pointer; } .table--clickable tbody tr:hover { background: #151515; }
.table th { color: var(--muted); font-weight: 500; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.toolbar input[type=search] { flex: 1; min-width: 220px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); } .stat__value { font-size: 20px; font-weight: 600; }
.editor { margin-top: 16px; padding-top: 12px; border-top: 2px solid #3a3a3a; }
.editor h3 { margin: 16px 0 6px; }
.form-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 2px 4px 2px 10px; border-radius: 12px; background: #1e1e1e; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--bad); font-size: 15px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.log-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.log-panel__head { display: flex; gap: 8px; align-items: center; padding: 6px 10px; background: var(--panel-2); }
.log-panel pre { margin: 0; padding: 10px; max-height: 360px; overflow: auto; font: 12px/1.4 ui-monospace, monospace; background: #050505; color: #d7dde3; }
.toast { position: fixed; right: 16px; bottom: 16px; max-width: 420px; padding: 10px 14px; border-radius: var(--radius); background: #1a1a1a; border: 2px solid #fff; color: #fff; z-index: 10; white-space: pre-wrap; }
.toast--error { background: #2d1111; border-color: var(--bad); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.tab { padding: 6px 14px; border: 1.5px solid #3a3a3a; border-radius: var(--radius); background: transparent; color: #fff; font: inherit; cursor: pointer; }
.tab:hover { border-color: #fff; }
.tab--active { background: #fff; border-color: #fff; color: #000; }
.scroll { overflow-x: auto; }
[hidden] { display: none !important; }
.cell-null { color: var(--muted); font-style: italic; }
.cell-secret { color: var(--muted); }
.table td.cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor textarea { width: 100%; min-height: 64px; font: 13px ui-monospace, monospace; }

.products { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.product { margin: 0; }
.product--expired { opacity: .7; }
.product__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.product__title { margin: 0; font-size: 18px; }
.product__term { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.product__links { margin-left: auto; display: flex; gap: 6px; }
.product__fields { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 8px 0; }
.field__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.field__hint { font-size: 12px; }
.key__value { word-break: break-all; padding: 4px 8px; background: #1a1a1a; border-radius: 4px; }
.product__section { margin-top: 14px; }
.product__section h4 { margin: 0 0 6px; font-size: 14px; }
.product .stats { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.table-wrap { overflow-x: auto; }

.bars { display: flex; align-items: flex-end; gap: 2px; height: 70px; margin: 10px 0; }
.bar { flex: 1; min-width: 2px; background: #fff; border-radius: 2px 2px 0 0; min-height: 1px; opacity: .85; }
.config-text { width: 100%; box-sizing: border-box; font: 13px/1.45 ui-monospace, monospace; tab-size: 4; white-space: pre; overflow: auto; }
.msg { padding: 6px 10px; border-radius: var(--radius); margin: 6px 0; font-size: 14px; background: #1a1a1a; }
.msg--ok { background: #0f2a1a; color: var(--ok); }
.msg--bad { background: #2d1111; color: var(--bad); }
.msg--warn { background: #2d230d; color: var(--warn); }
.step { border: 1px solid var(--line); border-radius: var(--radius); margin: 6px 0; padding: 6px 10px; }
.step summary { cursor: pointer; font-weight: 600; }
.step--failed { border-color: var(--bad); } .step--warn { border-color: var(--warn); }
.step__out { margin: 8px 0 0; padding: 10px; max-height: 320px; overflow: auto; font: 12px/1.4 ui-monospace, monospace; background: #101418; color: #d7dde3; border-radius: 6px; white-space: pre-wrap; }

.ansi-bold { font-weight: 700; } .ansi-dim { opacity: .65; } .ansi-underline { text-decoration: underline; }
.ansi-fg-black { color: #6b7682; } .ansi-fg-red { color: #e06c75; } .ansi-fg-green { color: #7fc87f; } .ansi-fg-yellow { color: #e5c07b; }
.ansi-fg-blue { color: #61afef; } .ansi-fg-magenta { color: #c678dd; } .ansi-fg-cyan { color: #56b6c2; } .ansi-fg-white { color: #d7dde3; }
.ansi-fg-bright-black { color: #8b95a1; } .ansi-fg-bright-red { color: #ff7b86; } .ansi-fg-bright-green { color: #98e698; } .ansi-fg-bright-yellow { color: #ffd98a; }
.ansi-fg-bright-blue { color: #82c4ff; } .ansi-fg-bright-magenta { color: #e09bff; } .ansi-fg-bright-cyan { color: #7be0ec; } .ansi-fg-bright-white { color: #fff; }
.ansi-bg-black { background: #2b3138; } .ansi-bg-red { background: #b4414b; } .ansi-bg-green { background: #3f7a3f; } .ansi-bg-yellow { background: #9a7a2c; }
.ansi-bg-blue { background: #2f6aa8; } .ansi-bg-magenta { background: #8a4a9c; } .ansi-bg-cyan { background: #2f808a; } .ansi-bg-white { background: #aab3bc; color: #101418; }
.ansi-bg-bright-black { background: #4a525b; } .ansi-bg-bright-red { background: #d9545f; } .ansi-bg-bright-green { background: #55a355; } .ansi-bg-bright-yellow { background: #c9a23c; }
.ansi-bg-bright-blue { background: #4a8ad0; } .ansi-bg-bright-magenta { background: #ad63c4; } .ansi-bg-bright-cyan { background: #4aa7b3; } .ansi-bg-bright-white { background: #e6ebef; color: #101418; }

#code-form { display: flex; gap: 8px; flex-wrap: wrap; }
#code-input { font: 20px/1.2 ui-monospace, monospace; letter-spacing: 2px; text-transform: uppercase; max-width: 11em; padding: 6px 10px; }

.cabinet { max-width: 1000px; margin: 0 auto; padding: 36px 24px 64px; }
.profile { display: flex; gap: 40px; align-items: flex-start; padding: 8px 0 40px; border-bottom: 3px solid #4a4a4a; margin: 0 8px; }
.profile__photo { width: 170px; height: 170px; flex: none; border-radius: var(--radius); object-fit: cover; background: #1a1a1a; }
.profile__name { margin: 4px 0 4px; font-size: 56px; line-height: 1.05; font-weight: 700; word-break: break-word; }
.profile__id { margin: 0; font-size: 28px; font-weight: 400; }
.profile__tag { margin: 8px 0 0; color: var(--muted); }
.section-title { margin: 44px 8px 20px; font-size: 36px; font-weight: 400; }
.cabinet .products { margin: 0 8px; }
@media (max-width: 720px) {
  .site-header { padding: 14px 16px; } .logo-img { height: 34px; }
  .profile { gap: 20px; flex-direction: column; } .profile__photo { width: 120px; height: 120px; } .profile__name { font-size: 38px; } .profile__id { font-size: 20px; }
  .section-title { font-size: 28px; }
}
.check { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); cursor: pointer; }
