.cabinet {
  --gutter: clamp(24px, 4.5vw, 88px);
  --frame: 100%;
  --header-height: 135px;
  display: block;
  min-width: 0;
  background: radial-gradient(ellipse 75% 570px at 85% 0, #181c23 0%, #08090c 74%);
}
.cabinet-head {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #0c0e12;
  box-shadow: 0 1px 0 var(--line);
}
.masthead, .sections-inner, .cabinet .main {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.workspace-identity, .account-actions { display: flex; align-items: center; min-width: 0; }
.workspace-identity { gap: clamp(18px, 2.15vw, 38px); }
.workspace-identity .wordmark { margin: 0; flex: none; }
.workspace-identity .brand { font-size: 30px; }
.workspace-project {
  display: grid;
  align-content: center;
  min-width: 0;
  padding-left: clamp(18px, 2.15vw, 38px);
  border-left: 1px solid var(--line);
}
.workspace-project > :first-child { color: #aab4c3; font-size: 13px; line-height: 1.4; }
.workspace-project strong, .workspace-project select {
  display: block;
  min-width: 0;
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 480 18px/1.35 Onest, sans-serif;
  color: #f2f4f7;
  letter-spacing: -.025em;
}
.multi-project > div { position: relative; }
.multi-project select {
  appearance: none;
  width: 100%;
  min-height: 29px;
  margin: 0;
  padding: 0 27px 0 0;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.multi-project select option { color: #f2f4f7; background: #14171c; }
.multi-project .icon { position: absolute; top: 50%; right: 3px; transform: translateY(-50%); pointer-events: none; }
.account-actions { flex: none; gap: 8px; }
.account-info { position: relative; }
.account-info summary, .exit-account, .all-sections {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  gap: 9px;
  border: 1px solid #ffffff30;
  border-radius: 100px;
  padding: 0 16px;
  font: 450 15px/1.2 Onest, sans-serif;
  color: #eff2f6;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.account-info summary { background: transparent; list-style: none; }
.account-info summary::-webkit-details-marker { display: none; }
.account-short { display: none; }
.exit-account { background: #232831; }
.account-info[open] summary, .account-info summary:hover, .exit-account:hover { border-color: #9daabc; background: #303640; }
.account-card {
  display: grid;
  gap: 5px;
  position: absolute;
  z-index: 3;
  right: 0;
  top: calc(100% + 10px);
  min-width: min(250px, 75vw);
  max-width: min(320px, 78vw);
  padding: 20px;
  color: #c3ccd8;
  border: 1px solid #46505e;
  border-radius: 16px;
  background: #191d24;
  box-shadow: 0 14px 40px #0006;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.account-card strong { color: #f2f4f7; font-size: 17px; }
.account-card a { display: flex; align-items: center; gap: 9px; margin-top: 9px; padding-top: 14px; border-top: 1px solid var(--line); color: #edf2f7; }
.cabinet-sections { border-top: 1px solid #ffffff0f; background: #111419; }
.sections-inner { display: flex; align-items: center; }
.section-strip { display: flex; align-items: stretch; position: relative; gap: clamp(6px, 1.4vw, 24px); min-width: 0; }
.cabinet-tab.rail-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 8px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #aeb8c6;
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
  white-space: nowrap;
}
.cabinet-tab.rail-link:first-child { padding-left: 0; }
.cabinet-tab.rail-link.active, .cabinet-tab.rail-link:hover { color: #fff; background: transparent; }
.cabinet-tab.active::after {
  content: "";
  position: absolute;
  inset: auto 6px 0;
  height: 2px;
  border-radius: 2px;
  background: #dce5f0;
}
.cabinet-tab.active:first-child::after { left: 0; }
.cabinet-tab.rail-link .icon { width: 17px; height: 17px; }
.all-sections { display: none; }
.cabinet .main { padding-top: clamp(34px, 3.8vw, 64px); padding-bottom: 76px; }
.cabinet .graph-layout { grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr); }
.cabinet .graph-card, .cabinet .contents { top: calc(var(--header-height) + 12px); }
html:has(.cabinet) { scroll-padding-top: 145px; }
.cabinet .btn.small { font-size: 14px; min-height: 42px; }
.cabinet .section-head > .btn { flex: 0 0 auto; padding-inline: 16px; gap: 8px; white-space: nowrap; }
.feed-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 22px 0 16px; }
.feed-tools > span, .feed-edits small { color: #b7c1ce; font-size: 14px; }
.feed-edits section { border-top: 1px solid var(--line); padding-block: 18px; }
.feed-edits h3 { margin-bottom: 5px; font-size: 19px; line-height: 1.3; }
.feed-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(150px,100%),1fr)); gap: 12px; margin-top: 16px; }
.feed-panel dd { overflow-wrap: anywhere; }
.feed-visibility { font-size: 15px; font-weight: 450; }
.row-feed { display: grid; gap: 7px; min-width: 190px; max-width: 290px; }
.row-visibility { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; font-size: 15px; cursor: pointer; }
.row-id, .row-id label { display: flex; align-items: center; gap: 7px; min-width: 0; }
.row-id label { flex: 1; color: #b7c1ce; font-size: 13px; white-space: nowrap; }
.row-id input { width: 100%; min-width: 0; min-height: 40px; padding: 6px 10px; border: 1px solid #49515d; border-radius: 9px; background: #101318; color: #f2f4f7; font: 15px Onest,sans-serif; }
.save-row-id { justify-self:start; min-height:36px; padding:6px 13px; font-size:14px; border:1px solid #688575; border-radius:999px; background:#24382e; color:#e4f0e9; }
.save-row-id:disabled { opacity:1; cursor:default; color:#b4bdc4; background:transparent; border-color:#38434d; }
.row-feed[data-state="saved"] .save-row-id { color:#b4d9c1; border-color:transparent; padding-left:0; }
.row-feed[data-state="busy"] .save-row-id { cursor:progress; }
.inline-alias { display:grid; gap:5px; font-size:14px; }
.feed-panel .row-feed { margin:16px 0; }
.publication-price .article-remove { display:block; padding:6px 0; margin-top:5px; background:transparent; color:var(--steel); border:0; font-size:14px; }
.publication-price .article-remove:hover { color:#eee; text-decoration:underline; }
.article-grid .row-feed small { margin: 0; color: #aab8c7; font-size: 13px; }
.article-filters { align-items: end; }
.article-filters label.field > span { font-size: 13px; }
.article-grid td:nth-child(2) { min-width: min(280px,30vw); }
.export-selection summary { cursor: pointer; min-height: 40px; }
.cabinet .flow-controls { font-size: 14px; line-height: 1.45; gap: 12px 16px; }
.cabinet .flow-controls a { display: inline-flex; align-items: center; min-height: 40px; }
.cabinet .flow-meter {
  appearance: none; width: 100%; height: 3px; flex-basis: 100%;
  border: 0; border-radius: 3px; overflow: hidden; background: #38424a; color: #a4d6b6;
}
.flow-meter::-webkit-progress-bar { background-color: #38424a; }
.flow-meter::-webkit-progress-value { background: #a4d6b6; transition: width .45s ease-out; }
.flow-meter::-moz-progress-bar { background: #a4d6b6; }
.list-step.is-flowing { box-shadow: inset 3px 0 #9cceac; }
.list-step.is-flowing:not(.selected) { background: #21352d; }
.list-step.is-waiting:not(.selected) { box-shadow: inset 3px 0 #e7c486; }
@media (prefers-reduced-motion: reduce) { .flow-meter::-webkit-progress-value { transition: none; } }

@media (max-width: 860px) {
  .cabinet { --gutter: clamp(17px, 3.8vw, 30px); --header-height: 116px; }
  .masthead { min-height: 66px; }
  .cabinet-tab.rail-link { min-height: 49px; padding-inline: 5px; font-size: 14px; }
  .section-strip { flex: 1; gap: 9px; overflow-x: auto; scrollbar-width: none; }
  .section-strip::-webkit-scrollbar { display: none; }
  .cabinet .graph-layout { grid-template-columns: minmax(0, 1.35fr) minmax(237px, 1fr); }
  html:has(.cabinet) { scroll-padding-top: 126px; }
}
@media (max-width: 730px) {
  .cabinet .graph-layout { grid-template-columns: minmax(0, 1fr); }
  .sections-inner { align-items: flex-start; gap: 8px; }
  .all-sections {
    display: flex; flex: none; min-height: 44px; width: 40px; padding: 0;
    margin-top: 2px; background: transparent; border: 0; border-radius: 8px;
  }
  .all-sections[aria-expanded=true] { background: #2a3039; }
  .menu-open .section-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 6px; padding-block: 4px; overflow: visible; }
  .menu-open .cabinet-tab.rail-link { justify-content: flex-start; padding-inline: 3px; font-size: 14px; }
  .menu-open .cabinet-tab .icon { display: none; }
  .menu-open .cabinet-tab.active::after { right: 8px; left: 3px; bottom: 5px; }
  .cabinet .graph-card { position: static; }
}
@media (max-width: 600px) {
  .cabinet { --header-height: 141px; }
  html:has(.cabinet) { scroll-padding-top: 151px; }
  .masthead { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 8px; padding-block: 9px 5px; }
  .workspace-identity { display: contents; }
  .workspace-identity .wordmark { grid-area: 1 / 1; }
  .workspace-identity .brand { font-size: 25px; }
  .workspace-project { display: flex; align-items: center; grid-area: 2 / 1 / 3 / -1; padding: 3px 0 0; gap: 10px; min-height: 31px; border: 0; }
  .workspace-project > :first-child { font-size: 13px; }
  .workspace-project > div { max-width: 78%; }
  .workspace-project strong, .workspace-project select { font-size: 15px; }
  .account-actions { grid-area: 1 / 2; gap: 5px; }
  .account-info summary { min-height: 44px; padding: 0 10px; font-size: 14px; }
  .account-info summary .icon, .account-full { display: none; }
  .account-short { display: inline; }
  .exit-account { min-height: 44px; gap: 6px; padding-inline: 12px; font-size: 14px; }
  .account-card { right: -49px; }
  .cabinet .main { padding-block: 29px 48px; }
  .cabinet .block { margin-top: 37px; }
  .cabinet .metric { padding-block: 18px; column-gap: 16px; row-gap: 6px; }
  .cabinet .metric strong { letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
  .cabinet .metric small { font-size: 14px; }
  .cabinet .metric span { font-size: 13px; line-height: 1.45; }
  .cabinet .section-head { flex-wrap: wrap; gap: 14px 22px; margin-bottom: 19px; }
  .cabinet .section-head h2 { font-size: clamp(24px, 6.7vw, 29px); }
  .cabinet .section-head .btn { min-height: 44px; }
  .cabinet .library-row {
    display: grid; grid-template-columns: 76px minmax(0,1fr);
    gap: 10px 15px; padding-block: 20px; align-items: start;
  }
  .cabinet .library-row .article-thumb { grid-column: 1; grid-row: 1 / span 2; width: 76px; height: 64px; }
  .cabinet .library-row > div { grid-column: 2; }
  .cabinet .library-row small { font-size: 13px; line-height: 1.4; }
  .cabinet .library-row h3 { font-size: 19px; line-height: 1.23; }
  .cabinet .library-row > .pill { grid-column: 2; justify-self: start; margin: 0; }
  .cabinet .library-row:not(:has(.article-thumb)) { grid-template-columns: minmax(0,1fr); }
  .cabinet .library-row:not(:has(.article-thumb)) > :is(div,.pill) { grid-column: 1; }
  .cabinet .library-arrow { display: none; }
  .article-filters .control { min-height: 44px; }
  .article-grid.table-wrap { overflow: visible; border: 0; background: transparent; }
  .article-grid table, .article-grid tbody { display: block; min-width: 0; width: 100%; }
  .article-grid table thead { display: block; border-block: 1px solid var(--line); }
  .article-grid thead tr, .article-grid thead th:first-child { display: flex; align-items: center; min-height: 44px; }
  .article-grid thead th:first-child::after { content: "Выбрать все"; margin-left: 12px; }
  .article-grid thead th { display: none; background: transparent; border: 0; }
  .article-grid tbody tr { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 7px 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .article-grid tbody td { border: 0; padding: 0; min-width: 0; }
  .article-grid tbody td:first-child { grid-column: 1; grid-row: 1; }
  .article-grid tbody td:nth-child(2), .article-grid tbody td:nth-child(3) { grid-column: 2 / -1; }
  .article-grid tbody td:nth-child(4) { grid-column: 2; font-size: 13px; color: var(--muted); }
  .article-grid tbody td:nth-child(5) { grid-column: 3; font-size: 13px; }
  .article-grid .main-link { font-size: 17px; line-height: 1.35; }
}
@media (max-width: 440px) {
  .cabinet .section-head { flex-direction: column; align-items: flex-start; }
  .workspace-identity .brand { font-size:clamp(19px,5.4vw,23px); }
  body:not(.menu-open) .sections-inner .section-strip { mask-image:linear-gradient(to right,#000 calc(100% - 18px),transparent); }
}
@media (max-width: 355px) {
  .cabinet { --gutter: 15px; }
  .workspace-identity .brand { font-size: 21px; }
  .exit-account { padding-inline: 10px; }
  .exit-account .icon { display: none; }
}
@media (max-height: 590px) {
  .cabinet-head { position: relative; }
  html:has(.cabinet) { scroll-padding-top: 10px; }
  .cabinet .graph-card, .cabinet .contents { top: 12px; }
}
@media print {
  .cabinet-head { display: none !important; }
  .cabinet .main { padding: 0; }
}
.cabinet .main:has(.graph-layout) { max-width: none; }
.cabinet .graph-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
.cabinet .graph-layout .graph-card { width: 100%; position: relative; top: auto; min-height: 0; }
.cabinet .graph-top { padding: 18px clamp(17px,2.1vw,36px) 5px; align-items: center; }
.cabinet .graph-caption { padding: 0; border: 0; border-radius: 0; background: none; color: #e6ecf3; font-size: 19px; font-weight: 450; letter-spacing: -.025em; }
.cabinet .graph-scroll { width: 100%; min-width: 0; max-height: none; margin-block: 18px 56px; padding: 0; }
.cabinet .graph-node b { font-size: 15px; line-height: 1.25; max-width: 158px; }
.cabinet .flow-controls { margin: 0; padding: 14px clamp(17px,2.1vw,36px) 0; }
.trace-info { display: grid; gap: 4px; max-width: 80ch; }
.trace-info small { font-size: 13px; color: #b6c1cf; }
.trace-info strong { font: 430 clamp(16px,1.35vw,22px)/1.35 Onest,sans-serif; color: #edf2f7; }
.cabinet .flow-controls .trace-actions { gap: 8px; flex-wrap: wrap; }
.cabinet .flow-controls .trace-actions :is(a,button) {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 16px;
  min-height: 44px; font-size: 15px !important; font-weight: 450;
  border: 1px solid #49515d; background: #1b2028; color: #e3eaf1; border-radius: 24px; text-decoration: none;
}
.cabinet .flow-controls .trace-actions [data-replay] { background: #263b32; border-color: #527060; color: #dcf4e3; }
.cabinet .flow-controls .trace-actions :is(a,button):hover { border-color: #a7b3c2; }
.cabinet .flow-controls .trace-actions [hidden] { display: none; }
.cabinet .graph-layout > .inspector { min-height: 0; max-height: none; overflow: visible; }
.return-canvas { display: inline-flex; width: fit-content; min-height: 42px; align-items: center; gap: 6px; background: transparent; padding: 0; margin-bottom: 12px; border: 0; color: #c1ccda; font-size: 15px; }
.return-canvas:hover { color: #fff; text-decoration: underline; }
.cabinet .inspector-rule-text { font-size: 15px; line-height: 1.6; }
.cabinet .inspect-phase, .cabinet .inspect-meta { font-size: 14px; }
@media(min-width: 900px) {
  .cabinet .graph-layout > .inspector { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 clamp(25px,3vw,54px); }
  .cabinet .inspector > :not(.inspect-group) { grid-column: 1/-1; }
  .cabinet .inspector h2 { font-size: clamp(30px,3vw,46px); }
  .cabinet .inspect-prompt .inspector-rule-text { max-height: 280px; }
}
@media(max-width:610px) {
  .cabinet .flow-controls { padding-top: 9px; gap: 12px; }
  .trace-info { max-width: 100%; }
  .cabinet .flow-controls .trace-actions :is(a,button) { padding-inline: 12px; font-size: 14px !important; }
  .cabinet .graph-layout .graph-switch { display: inline-flex; min-height: 42px; }
  .cabinet .mobile-canvas .graph-scroll { display: grid; }
  .cabinet .mobile-canvas .graph-list { display: none; }
  .cabinet .mobile-canvas .zoom { display: flex; }
}
.entrance { padding-block: clamp(95px,12vh,150px) clamp(36px,6vh,80px); }
.entrance .login-center { padding-top: clamp(16px,2.4vh,42px); }
.entrance .entrance-form { display: block; width: min(100%, 620px); max-width: 100%; margin-top: clamp(25px,3.8vh,44px); }
.login-fields { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.login-fields label { font: 440 16px/1.4 Onest,sans-serif; color: #e2e8ef; }
.login-fields label:not(:first-child) { margin-top: 11px; }
.login-fields input {
  display: block; width: 100%; height: 58px; min-width: 0; padding: 0 20px;
  appearance: none; border: 1px solid #59616e; border-radius: 17px;
  background: #101318ec; color: #f2f4f7; font: 400 19px/1.3 Onest,sans-serif;
}
.login-fields input:focus { outline: 2px solid #c1ccda; outline-offset: 2px; }
.login-secret { position: relative; }
.login-secret input { padding-right: 61px; }
.login-secret .view-password {
  display: grid; place-items: center; position: absolute; top: 50%; right: 7px; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%; color: #cbd4df; background: transparent;
}
.login-secret .view-password:hover { background: #282f38; }
.entrance .entrance-submit {
  display: inline-flex; align-items: center; justify-content: space-between;
  width: auto; min-width: 205px; min-height: 53px; margin: 20px 0 0;
  padding: 5px 6px 5px 23px; gap: 20px; border: 0; border-radius: 40px;
  background: #f2f4f7; color: #08090c; font-size: 17px; font-weight: 480;
}
.entrance .entrance-submit i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.entrance .demo summary { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
@media(max-width: 610px){
  .entrance { justify-content: flex-start; padding: 117px 22px 40px; }
  .entrance .entrance-media::after { background: linear-gradient(90deg,#08090cc9 0%,#08090c8c 63%,#08090c2b),linear-gradient(0deg,#08090c 0%,transparent 42%); }
  .entrance .login-center { padding-top: 22px; }
  .entrance .entrance-form { margin-top: 28px; }
  .login-fields input { height: 56px; font-size: 18px; }
  .entrance .entrance-submit { width: 100%; }
}
.account-security { max-width:860px; padding:clamp(22px,4vw,48px); }
.account-security .actions { margin-top:20px; flex-wrap:wrap; gap:12px; }
.account-security .field, .entrance .login-factor { margin:18px 0; max-width:600px; }
.account-security .recovery-list { line-height:1.75; overflow-wrap:anywhere; white-space:pre-wrap; }
