.login-shell {
  width: min(440px, calc(100% - 40px));
  min-height: 65vh;
  padding-block: clamp(48px, 9vh, 105px) 56px;
}
.login-shell header { padding-bottom: 20px; margin-bottom: 24px; }
.login-shell h1 { font-size: clamp(38px, 6vw, 56px); }
.login-panel form, .login-panel label { display: block; }
.login-panel input, .cab-card input { display: block; width: 100%; max-width: 32rem; margin: 7px 0 16px; padding: 12px 14px; font: inherit; background: #fffdf6; border: 1px solid var(--rule); border-radius: 3px; }
.login-panel button { width: 100%; }
.login-panel p { margin: 0 0 20px; }
.login-panel .telegram-login, #telegram-check { margin-top: 10px; }
.telegram-open { width: 100%; }
.telegram-login button, #telegram-check button { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.telegram-login button:hover, #telegram-check button:hover { background: #e7e8ef; }
.telegram-login button::after, #telegram-check button::after { content: none; }
.login-panel .telegram-open[hidden], #telegram-check[hidden] { display: none; }
.login-panel form + a { display: inline-block; margin-top: 20px; }
.form-links { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; margin-top: 19px; }
.login-register { color: var(--blue); font-weight: 600; }
.login-panel [role="alert"] { color: #962e1c; }
.mail-handoff { margin: 20px 0; }
.mail-handoff summary { cursor: pointer; color: var(--blue); }
.mail-handoff[open] summary { margin-bottom: 12px; }
.cab-card .cab-secret { padding: .8rem; border: 1px solid var(--rule); background: var(--paper); user-select: all; }
.cab-card .cab-copy { background: transparent; padding: 0; min-height: 36px; color: var(--blue); font-size: 15px; }
.cab-copy::after { content: none; }
.cab-copy[hidden] { display: none; }
.cab-card form + a { display: inline-block; margin-top: 16px; }
.cab-card summary { cursor: pointer; font-weight: 600; }
#activate-order:not(:target) { display: none; }
.tariffs fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tariffs legend { margin-bottom: .6rem; padding: 0; font-weight: 600; }
.tariffs button { display: flex; width: 100%; justify-content: space-between; gap: .75rem; margin-bottom: 6px; padding: 12px 16px; }
.tariffs button::after { content: none; }
.plan-note { color: var(--muted); font-size: .88rem; }
.ops { grid-column: 1 / -1; min-width: 0; color: var(--ink); }
.ops-nav, .ops-actions, .ops-pagination { display: flex; gap: .6rem 1rem; align-items: center; flex-wrap: wrap; }
.ops-nav { border-bottom: 1px solid var(--rule); gap: .3rem; padding-bottom: .65rem; }
.ops-nav a { padding: .5rem .85rem; text-decoration: none; border-radius: 3px; }
.ops-nav [aria-current] { background: var(--blue); color: white; }
.ops-section { margin: 20px 0; padding: clamp(16px,2.4vw,27px); border: 1px solid var(--rule); background: #fffcf4; }
.ops-section h2 { margin: 0 0 16px; }
.ops-section p { margin: 8px 0 16px; }
.ops-details, .ops-counts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(175px,100%),1fr)); gap: 18px; }
.ops-details dt, .ops-counts span { font-size: .85rem; color: var(--muted); }
.ops-details dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.ops-counts a { display: grid; text-decoration: none; gap: 3px; }
.ops-counts strong { color: var(--blue); font-size: 1.65rem; }
.ops-counts a:hover span { text-decoration: underline; }
.ops-actions, .ops-pagination { margin-top: 16px; }
.ops-filters { display: flex; align-items: flex-end; gap: .7rem; flex-wrap: wrap; margin-bottom: 14px; }
.ops-filters label { flex: 1 1 9rem; font-size: .86rem; }
.ops-filters label:first-child { flex-basis: 17rem; }
.ops-filters input, .ops-filters select { display: block; width: 100%; margin-top: 4px; background: white; border: 1px solid var(--rule); padding: 8px; min-height: 41px; font: inherit; }
.ops button { font: inherit; min-height: 41px; padding: 8px 14px; }
.ops button::after { content: none; }
.ops-scroll { width: 100%; overflow-x: auto; margin: 12px 0; }
.ops table { border-collapse: collapse; width: 100%; text-align: left; font-size: .9rem; }
.ops th, .ops td { white-space: nowrap; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.ops th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ops-empty { color: var(--muted); }
@media (max-width: 650px) {
  .ops-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .ops-filters label:first-of-type, .ops-filters button { grid-column: 1 / -1; }
  .ops-filters button { justify-self: start; }
  .ops-scroll table, .ops-scroll tbody { display: block; }
  .ops-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ops-scroll tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 12px; border-top: 1px solid var(--rule); padding: 12px 0; }
  .ops-scroll td { min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .ops-scroll td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .73rem; }
}
.legal { max-width: 760px; padding-block: 48px 64px; }
.legal h1 { font: 400 clamp(36px,6vw,58px)/1.08 var(--display); }
.legal h2 { font-size: 1.25rem; line-height: 1.3; margin-top: 1.65rem; }
.legal p, .legal li { margin-block: .6rem; }
.legal .edition { color: var(--muted); margin: 1rem 0 2rem; }
.legal nav { display: block; margin-top: 2rem; border-top: 1px solid var(--rule); }
.legal nav ul { list-style: none; padding: 0; }
.legal nav a[aria-current] { color: var(--blue); font-weight: 700; }
.login-panel .legal-consent { font-size: .92rem; margin-bottom: 1rem; }
.login-panel .legal-consent input { display: inline-block; width: 1.15rem; height: 1.15rem; padding: 0; margin: 0 .45rem 0 0; vertical-align: middle; accent-color: var(--blue); }
.cab-brand { font-weight: 650; font-size: .85rem; letter-spacing: .04em; }
.support-room { max-width: 800px; }
.support-room > header { margin-bottom: 12px; padding-block: 0 8px; }
.support-card { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: clamp(12px,2vw,22px); }
.support-pages { font-size: .9rem; }
.support-scrollbox { position: relative; height: clamp(10rem,42vh,32rem); }
#support-history { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.support-feed { padding-inline: 3px .5rem; }
#support-new { position: absolute; right: 1.25rem; bottom: .5rem; min-height: 34px; padding: .35rem .7rem; font-size: .85rem; }
#support-new::after { content: none; }
#support-new[hidden] { display: none; }
@supports selector(body:has(.support-card)) {
  body:has(.support-card) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
  body:has(.support-card) > header, body:has(.support-card) > footer, .support-room > header { flex: none; }
  main:has(.support-card), .support-room, .support-room .cab-grid, .support-scrollbox { flex: 1 1 0; min-height: 0; }
  main:has(.support-card), .support-room, .support-room .cab-grid { display: flex; flex-direction: column; }
  .support-room { padding-block: clamp(10px,2vh,22px); }
  .support-card { flex: 1 1 0; }
}
.support-card .support-state { display: inline-block; font-size: .9rem; color: var(--muted); }
.support-thread { list-style: none; padding: 0; margin: .5rem 0 .25rem; display: grid; gap: .75rem; }
.support-item { min-width: 0; max-width: 90%; width: fit-content; padding: .8rem 1rem; border-radius: 4px; background: #eae6d9; }
.support-out { justify-self: end; background: #edeffc; }
.support-event { justify-self: center; padding: .4rem; color: var(--muted); background: transparent; font-size: .9rem; }
.support-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.support-meta strong { font-size: .9rem; }
.support-meta time { font-size: .78rem; color: var(--muted); }
.support-thread .support-item p { margin: .25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-image { display: block; width: fit-content; margin-top: .5rem; }
.support-image img { display: block; max-width: min(275px,100%); max-height: 240px; object-fit: contain; }
.support-card .support-compose { display: grid; flex: none; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px 10px; border-top: 1px solid var(--rule); margin-top: .55rem; padding-top: .55rem; }
.support-compose label { grid-column: 1/-1; font-weight: 600; }
.support-compose label small { color: var(--muted); font-weight: 400; }
.support-compose textarea { grid-column: 1/-1; width: 100%; min-height: 3rem; max-height: 15vh; padding: .45rem .65rem; resize: vertical; font: inherit; background: #fffdf6; border: 1px solid var(--rule); border-radius: 3px; }
.support-compose input[type=file] { min-width: 0; max-width: 100%; margin: 0; padding: .4rem; font-size: .85rem; }
.support-compose button { justify-self: start; min-height: 40px; padding: .45rem .8rem; }
.support-pages { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-block: .5rem 1rem; }
.support-card [role=alert] { color: #962e1c; }
@media (max-width: 560px) {
  .support-item { max-width: 96%; }
  .support-compose button { width: 100%; }
}
@media (max-height: 680px) {
  body:has(.support-card) > header { min-height: 42px; }
  body:has(.support-card) > footer { gap: 2px 12px; padding-block: 5px; font-size: .83rem; }
  body:has(.support-card) > footer div { gap: 3px 12px; }
  .support-room { padding-block: 5px; }
  .support-room > header { margin-bottom: 5px; padding: 0; }
  .support-room h1 { font-size: clamp(25px,6vw,35px); }
  .support-card { padding: 8px 10px; }
  .support-compose textarea { height: 3rem; padding-block: .25rem; }
}
@media (max-height: 460px) {
  .support-compose label[for=support-text] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

.cabinet:has(.ops) { width: min(1420px, calc(100% - clamp(32px,8vw,112px))); padding-top: 21px; }
.cabinet:has(.ops) > header { margin-bottom: 20px; }
.cabinet:has(.ops) h1 { font-size: clamp(32px,4vw,48px); }
.ops { display: grid; grid-template-columns: minmax(145px, .75fr) minmax(0, 4fr); gap: clamp(16px,2.4vw,38px); align-items: start; --ops-border: #d8d4c6; }
.ops-main { min-width: 0; }
.ops-nav { display: grid; position: sticky; top: 16px; padding: 4px 0; gap: 2px; border: 0; align-content: start; }
.ops-nav a { display: block; padding: 10px 12px; color: #46463f; border-radius: 6px; font-size: .95rem; }
.ops-nav a[aria-current] { background: #e2e5fc; color: #202f94; font-weight: 720; }
.ops-nav a[aria-current]::after { content: ''; float: right; height: .45rem; width: .45rem; margin-top: .55rem; background: var(--blue); border-radius: 50%; }
.ops-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; margin: 0 0 15px; }
.ops-head h2, .ops-section h2 { font: 650 clamp(20px,2vw,26px)/1.18 var(--sans); letter-spacing: -.025em; }
.ops-head h2 { margin: 0; }
.ops-period { display: inline-flex; gap: 2px; border: 1px solid var(--ops-border); border-radius: 7px; background: #f9f6ec; padding: 3px; }
.ops-period a { display: inline-flex; min-height: 33px; align-items: center; justify-content: center; padding: 4px 10px; white-space: nowrap; border-radius: 4px; color: var(--muted); font-size: .83rem; }
.ops-period [aria-current] { background: #fff; box-shadow: 0 1px 3px #35352426; color: #202f94; font-weight: 700; }
.ops-metrics, .ops-state-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.ops-overview-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ops-metric { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 1px solid var(--ops-border); border-radius: 9px; background: #fffdf6; padding: clamp(13px,1.55vw,21px); color: var(--ink); text-decoration: none; }
.ops-metric-label { font-weight: 650; color: #4b4c45; font-size: .9rem; }
.ops-metric strong { font: 600 clamp(25px,2.65vw,40px)/1.13 var(--sans); letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ops-metric small { color: var(--muted); font-size: .77rem; line-height: 1.4; }
.ops-metric.ops-accent { background: var(--blue); border-color: var(--blue); color: #fff; }
.ops-accent .ops-metric-label, .ops-accent small { color: #f1f1ff; }
a.ops-metric:hover, .ops-breakdown a:hover { border-color: #727fd5; }
a.ops-metric:hover .ops-metric-label, .ops-breakdown a:hover span { color: var(--blue); text-decoration: underline; }
a.ops-accent:hover .ops-metric-label { color: white; }
.ops-state-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ops-state-list .ops-metric { flex-direction: row; align-items: center; justify-content: space-between; }
.ops-state-list .ops-metric strong { font-size: clamp(20px,2vw,28px); }
.ops-section { min-width: 0; margin: 14px 0; border: 1px solid var(--ops-border); border-radius: 10px; padding: clamp(15px,2vw,24px); background: #fffdf7; }
.ops-main > .ops-section:first-child { margin-top: 0; }
.ops-section h2 { font-size: clamp(18px,1.6vw,23px); margin-bottom: 15px; }
.ops-section h3 { font: 650 1rem/1.3 var(--sans); margin: 17px 0 6px; }
.ops-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.ops-pair .ops-section { display: flex; flex-direction: column; margin: 0; }
.ops-pair .ops-more { margin-top: auto; padding-top: 15px; }
.ops-spotlight { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ops-spotlight strong { font: 650 2rem/1.1 var(--sans); letter-spacing: -.055em; color: #26369a; }
.ops-spotlight span, .ops-note { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.ops-note { margin: 11px 0; }
.ops-breakdown { display: grid; gap: 8px; }
.ops-breakdown a { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; color: inherit; text-decoration: none; font-size: .87rem; }
.ops-breakdown meter { display: block; grid-column: 1/-1; height: 7px; width: 100%; background: #e8e9f4; border: 0; border-radius: 8px; }
.ops-breakdown meter::-webkit-meter-bar { background: #e8e9f4; border: 0; border-radius: 8px; }
.ops-breakdown meter::-webkit-meter-optimum-value { background: #5967c8; border-radius: 8px; }
.ops-breakdown meter::-moz-meter-bar { background: #5967c8; border-radius: 8px; }
.ops-breakdown + .ops-details { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--ops-border); }
.ops-more { display: inline-block; font-size: .86rem; font-weight: 650; color: var(--blue); }
.ops-filters { padding: 12px; border-radius: 7px; background: #f2efe5; gap: 10px; }
.ops-filters label, .ops-event { min-width: 0; }
.ops-filters input, .ops-filters select { border-radius: 5px; background: #fffdf9; }
.ops td, .ops th { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.ops-details { row-gap: 13px; }
.ops-event { min-width: 6rem; }
.ops-event summary { cursor: pointer; color: var(--blue); font-size: .86rem; }
.ops-event .ops-details { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px; background: #f5f2e9; margin-top: 6px; border-radius: 5px; }
.ops-event .ops-details dt { font-size: .73rem; }
.ops-event .ops-details dd { margin: 0; }
.ops-status { display: inline-flex; border-radius: 30px; padding: 3px 8px; background: #eeeae0; font-size: .8rem; color: #4d4b43; }
.ops .status-sent { background: #dcece3; color: #25513b; }
.ops .status-retrying, .ops .status-pending { background: #f6e8c7; color: #715312; }
.ops .status-failed, .ops .status-blocked { background: #f8ddd8; color: #842e20; }
.ops-switches { display: flex; flex-wrap: wrap; gap: 9px; }
.ops-toggle { display: inline-flex; gap: 12px; align-items: center; background: #f7f5eb; color: var(--ink); border: 1px solid var(--ops-border); border-radius: 8px; }
.ops-toggle:hover { background: #e9ebfa; color: var(--ink); }
.ops-toggle-track { display: inline-flex; align-items: center; width: 34px; height: 20px; padding-inline: 3px; border-radius: 14px; background: #74756e; }
.ops-toggle-track::after { content: ''; width: 14px; height: 14px; background: #fff; border-radius: 50%; }
.ops-toggle[aria-checked=true] .ops-toggle-track { background: var(--blue); justify-content: flex-end; }
@media (max-width: 940px) {
  .ops { display: block; }
  .ops-nav { display: flex; position: static; flex-wrap: wrap; gap: 4px; padding: 0 0 12px; margin-bottom: 15px; border-bottom: 1px solid var(--ops-border); }
  .ops-nav a { padding: 7px 10px; }
  .ops-nav a[aria-current]::after { display: none; }
}
@media (max-width: 650px) {
  .cabinet:has(.ops) { width: calc(100% - 24px); padding-top: 11px; }
  .cabinet:has(.ops) > header { margin-bottom: 10px; padding-bottom: 10px; }
  .ops-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px; text-align: center; }
  .ops-nav a { padding: 9px 2px; font-size: .84rem; }
  .ops-period { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; }
  .ops-period a { min-height: 37px; padding: 4px; }
  .ops-metrics, .ops-state-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .ops-pair { grid-template-columns: 1fr; }
  .ops-filters { padding: 9px; }
  .ops-metric { padding: 12px; gap: 6px; }
  .ops-state-list .ops-metric { gap: 4px; }
  .ops-scroll td::before { margin-bottom: 2px; }
  .ops-scroll td:has(.ops-event) { grid-column: 1/-1; }
  .ops-event .ops-details { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 12px; }
  .ops .ops-scroll tr { padding: 12px 0; }
  .ops-switches { display: grid; }
  .ops-toggle { width: 100%; justify-content: space-between; }
}
