/* Approved Compact working typography. Presentation only; no behaviour or visibility rules. */
@font-face {
  font-family: "GramJet Inter";
  src: url("/static/gramjet-inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
body.gramjet-compact {
  --gj-ui-body: 14px;
  --gj-ui-label: 14px;
  --gj-ui-number: 24px;
  --gj-ui-avatar: 32px;
  --gj-ui-name: 14px;
  --gj-ui-nick: 12px;
  --gj-compact-font: "GramJet Inter", "Segoe UI", Arial, sans-serif;
  font-family: var(--gj-compact-font);
  font-size: 14px;
  line-height: 1.45;
}
/* Include body-level dialogs/popovers, but not embedded Telegram or publication canvases. */
body.gramjet-compact :where(.service-view, #staffWorkspace, dialog, [role=dialog],
  .gm-popover, .gm-proxy-report, .gm-floating-tip, .gm-proxy-picker, .neuro-prompt-backdrop,
  #projectAppearanceView, .service-sidebar) {
  font-family: var(--gj-compact-font) !important;
}
body.gramjet-compact :where(.service-view, #staffWorkspace, dialog, [role=dialog],
  .gm-popover, .gm-proxy-report, .gm-floating-tip, .gm-proxy-picker, .neuro-prompt-backdrop,
  #projectAppearanceView, .service-sidebar)
  :where(div, span, p, label, a, li, dt, dd, summary, legend, output, td, th,
  strong, b, button, input, select, textarea, h1, h2, h3, h4, h5, h6, small) {
  font-family: var(--gj-compact-font) !important;
}
body.gramjet-shell-active.gramjet-compact :where(.service-view, #staffWorkspace,
  dialog, [role=dialog], .gm-popover, .gm-proxy-report, .neuro-prompt-backdrop, #projectAppearanceView),
body.gramjet-shell-active.gramjet-compact :where(.service-view, #staffWorkspace,
  dialog, [role=dialog], .gm-popover, .gm-proxy-report, .neuro-prompt-backdrop, #projectAppearanceView)
  :where(div, span, p, label, a, li, dt, dd, summary, legend, output, td, th, strong, b, button, input, select, textarea) {
  font-size: 14px !important;
  line-height: 1.45 !important;
}
body.gramjet-shell-active.gramjet-compact :where(.service-view, #staffWorkspace, dialog, [role=dialog], .gm-popover)
  :is(small, .hint, .muted, .gm-note, .gm-phone, .gm-state, .neuro-account-pill,
    .neuro-role-chip, .neuro-copy-field, .ss-info, .ss-night, .ss-tile > span) {
  font-size: 12px !important;
  line-height: 1.45 !important;
}
body.gramjet-shell-active.gramjet-compact :where(.service-view, #staffWorkspace, dialog, [role=dialog]) :is(h1, h2, h3, h4) {
  font-family: var(--gj-compact-font) !important;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35 !important;
}
body.gramjet-shell-active.gramjet-compact :where(.service-view, #staffWorkspace, dialog, [role=dialog]) h1 { font-size: 22px !important; }
body.gramjet-shell-active.gramjet-compact :where(.service-view, #staffWorkspace, dialog, [role=dialog]) :is(h2,h3) { font-size: 16px !important; }
body.gramjet-shell-active.gramjet-compact :where(.service-view, #staffWorkspace, dialog, [role=dialog]) h4 { font-size: 14px !important; }
body.gramjet-shell-active.gramjet-compact :is(.service-view>h2, .service-header h2,
  .status-dashboard-header h2, .story-header h2, .proxy-header h2, .staff-header h2,
  .neuro-header h2, .neurodialogs-header h2, #accountManager.gm-next .manager-title h2) { font-size: 22px !important; }
body.gramjet-shell-active.gramjet-compact :is(dialog, [role=dialog])>h2 { font-size: 20px !important; }
body.gramjet-shell-active.gramjet-compact :where(.service-view, #staffWorkspace, dialog, [role=dialog], .gm-popover)
  :where(button, input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]), select) {
  box-sizing: border-box;
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}
body.gramjet-shell-active.gramjet-compact :where(.service-view, #staffWorkspace, dialog, [role=dialog], .gm-popover) button { font-weight: 500; }
body.gramjet-shell-active.gramjet-compact :where(.service-view, #staffWorkspace) :where(td,th) {
  padding-top: 10px;
  padding-bottom: 10px;
}
body.gramjet-shell-active.gramjet-compact :where(.service-view, #staffWorkspace) th { font-size: 12px !important; font-weight: 500; }
body.gramjet-shell-active.gramjet-compact :where(.service-view, #staffWorkspace) :where(pre,code) {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px !important;
}
/* The same value scale on overview, Stories, proxies and neuro modules. */
body.gramjet-shell-active.gramjet-compact :is(.manager-metric, .proxy-metric, .staff-manager-metric,
  .story-metric, .status-dashboard-card, .neuro-stat, .neuro-chat-launch-summary>div) {
  min-height: 70px;
  padding: 12px;
}
body.gramjet-shell-active.gramjet-compact :is(.manager-metric, .proxy-metric, .staff-manager-metric,
  .story-metric)>b,
body.gramjet-shell-active.gramjet-compact :is(.status-dashboard-card, .neuro-stat)>strong,
body.gramjet-shell-active.gramjet-compact .neuro-chat-launch-summary strong {
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Compact status cards retain the original coloured illustrations and filters. */
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-stats {
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 8px;
  margin: 4px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next button.gm-stat {
  min-height: 82px;
  padding: 10px;
  gap: 6px;
  border: 1px solid #d1e3ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 3px #173e5908;
  transform: none;
  font-size: 12px !important;
  font-weight: 500;
  justify-content: space-between;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next button.gm-stat>span:not([aria-hidden=true]) {
  font-size: 12px !important;
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next button.gm-stat strong {
  font-size: 24px !important; font-weight: 600; padding-right: 45px;
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next button.gm-stat .gs-picture {
  display: block; top: 8px; right: 8px; transform: scale(.5);
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next button.gm-stat>.gm-icon { display: none; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next button.gm-stat:hover,
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next button.gm-stat:focus-visible {
  background: var(--gm-tint); border-color: var(--gm-accent); box-shadow: 0 2px 6px #173e5912;
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next button.gm-stat[aria-pressed=true] {
  background: var(--gm-tint); border-color: var(--gm-accent); box-shadow: inset 0 0 0 1px var(--gm-accent);
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next button.gm-stat:focus-visible {
  outline: 2px solid var(--gm-accent); outline-offset: 2px;
}
@media(prefers-reduced-motion:reduce) {
  body.gramjet-shell-active.gramjet-compact #accountManager.gm-next button.gm-stat { transition: none; }
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next :is(.manager-actions>button,.manager-actions>.gm-disclosure>summary) {
  height: auto; min-height: 34px; padding: 6px 10px; border-radius: 8px; font-size: 14px !important;
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .manager-actions .gm-icon { width: 18px; height: 18px; padding: 0; background: transparent; color: #0088cc; box-shadow: none; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-search-toolbar { padding: 8px; border-radius: 9px; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-search-toolbar #managerSearch { height: 36px; min-height: 36px; padding-block: 6px; font-size: 14px !important; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-tool-buttons .gm-tool-button { width: 34px; height: 34px; min-height: 34px; padding: 5px; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-grid :is(th,td) { padding: 10px 7px; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-grid-wrap { overflow-x: auto; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-grid { table-layout: auto; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-grid :is(th,td) { overflow-wrap: normal; word-break: normal; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next :is(.gm-state,.gm-spam-badge,button.gm-role-chip),
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-grid td[data-column="Статус работы"] { white-space: nowrap; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-role-chip>span { white-space: nowrap; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-person { min-width: 170px; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-grid th :is(span,button) { font-size: 12px !important; font-weight: 500; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-grid th .gm-column-sort { min-height: 28px; padding: 3px 1px; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-name-line .gm-profile-button { font-size: 14px !important; font-weight: 600; min-height: 0; padding: 0; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-person { gap: 8px; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next button.gm-copy,
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next button.gm-copy>span { font-size: 12px !important; line-height: 1.45 !important; letter-spacing: 0; min-height: 20px; padding-block: 0; font-weight: 400; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next :is(.gm-state,.gm-spam-badge,.gm-date-badge,button.gm-role-chip) {
  font-size: 12px !important; min-height: 26px; padding: 3px 6px; font-weight: 500;
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-role-chip>span { font-size: 12px !important; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-proxy-title .gm-proxy-name { font-size: 12px !important; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next :is(.gm-proxy-number,.gm-proxy-assigned) { font-size: 12px !important; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-proxy-badge { padding: 5px 7px; }
/* Account photographs remain real; only their presentation size changes. */
body.gramjet-shell-active.gramjet-compact :is(.neuro-account-avatar,.manager-avatar,.manager-avatar-image,
  .manager-detail-avatar,.manager-detail-avatar-fallback,.proxy-bulk-avatar,.staff-person-avatar,
  .gm-avatar,.gm-delete-avatar,.sc-avatar,.sl-avatar,.neuro-chat-avatar,.neuro-story-avatar,.neuro-story-detail-avatar),
body.gramjet-shell-active.gramjet-compact #gj-stream-clients .gm-window .gm-photo {
  width: 32px !important; height: 32px !important; min-width: 32px !important; flex-basis: 32px !important;
}
body.gramjet-shell-active.gramjet-compact :is(.neuro-account-card,.sc-account),
body.gramjet-shell-active.gramjet-compact #gj-stream-clients .gm-window .gm-account {
  min-height: 64px !important; padding-top: 10px; padding-bottom: 10px;
}
body.gramjet-shell-active.gramjet-compact :is(.neuro-account-card-head strong,.manager-profile-open,
  .gm-account-name,.proxy-bulk-account-name,.sc-name,.sl-person strong,.neuro-run-contact strong,.neuro-story-person strong),
body.gramjet-shell-active.gramjet-compact #gj-stream-clients .gm-window :is(.gm-info strong,.gm-name) {
  font-size: 14px !important; font-weight: 600;
}
body.gramjet-shell-active.gramjet-compact :is(.neuro-account-card-head small,.sc-nick,.proxy-bulk-account-phone),
body.gramjet-shell-active.gramjet-compact #gj-stream-clients .gm-window :is(.gm-nick,.gm-handle) { font-size: 12px !important; }
body.gramjet-shell-active.gramjet-compact :is(.sc-count,.gm-count,.neuro-panel-head>span) { font-size: 12px !important; min-width: 24px; min-height: 24px; }
body.gramjet-shell-active.gramjet-compact #storiesView :is(button,input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]),select) { min-height: 34px; }
body.gramjet-shell-active.gramjet-compact #storiesView :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]),select) { height: 34px; }
body.gramjet-shell-active.gramjet-compact #storiesView #storyAccountsCompact :is(.sc-name,.sc-heading) { font-size: 14px !important; line-height: 1.4 !important; }
body.gramjet-shell-active.gramjet-compact #storiesView #storyAccountsCompact :is(.sc-nick,.sc-subtitle,.sc-footnote,.sc-empty,.sc-resize-footer>span) { font-size: 12px !important; line-height: 1.45 !important; }
body.gramjet-shell-active.gramjet-compact #storiesView #storyAccountsCompact.sc-unified .sc-move { flex: 0 0 auto; width: auto; height: 34px; min-height: 34px; padding: 6px 9px; white-space: nowrap; }
/* Compact forms retain all labels, help text, tabs, validation and keyboard focus. */
body.gramjet-shell-active.gramjet-compact :is(.neuro-section,.neuro-panel,.story-form-stage) { padding: 14px; }
body.gramjet-shell-active.gramjet-compact .neuro-panel-head { margin-bottom: 10px; }
body.gramjet-shell-active.gramjet-compact .neuro-grid { gap: 12px; }
body.gramjet-shell-active.gramjet-compact .gm-dialog { padding: 20px; }
body.gramjet-shell-active.gramjet-compact .gm-dialog h2 { font-size: 20px !important; margin-bottom: 14px; }
body.gramjet-shell-active.gramjet-compact .gm-dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea) { padding: 7px 9px; }
body.gramjet-shell-active.gramjet-compact .gm-dialog button { min-height: 34px; padding: 6px 10px; }
/* Sidebar geometry, pin/collapse behaviour, project colours and badge placement stay intact. */
body.gramjet-shell-active.gramjet-compact.gj-sidebar-auto .service-sidebar .gj-menu-item>.gj-menu-label,
body.gramjet-shell-active.gramjet-compact.gj-sidebar-auto .service-sidebar .gp-project-link,
body.gramjet-shell-active.gramjet-compact.gj-sidebar-auto .service-sidebar .gp-project-link>span {
  font-family: var(--gj-compact-font) !important; font-size: 14px !important; font-weight: 500 !important;
}
/* Do not change the typography/coordinates of exported Stories content. */
body.gramjet-shell-active.gramjet-compact #storiesView .eternal-story-canvas,
body.gramjet-shell-active.gramjet-compact #storiesView .eternal-story-canvas * {
  font-size: 16px !important; line-height: normal !important; font-family: "Segoe UI",Arial,sans-serif !important;
}
@media(max-width:1100px) {
  body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-stats { grid-template-columns: repeat(auto-fit,minmax(138px,1fr)); }
}
@container accounts (max-width:760px) {
  body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-person { min-width: 0; }
}
@media(max-width:760px) {
  body.gramjet-shell-active.gramjet-compact #accountManager.gm-next .gm-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.gramjet-shell-active.gramjet-compact :where(.service-view,dialog,[role=dialog]) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size: 16px !important; }
}
@media(pointer:coarse) {
  body.gramjet-shell-active.gramjet-compact :where(.service-view,dialog,[role=dialog]) button { min-height: 44px; }
}

/* Light bulk-action panel: notice the selection without moving the table. */
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next #managerSelection {
  background: #eff8ff;
  border: 1px solid #79b9e5;
  box-shadow: 0 6px 24px #174c7430, 0 1px 4px #174c7414;
  opacity: 0;
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next #managerSelection.visible {
  opacity: 1;
  animation: gj-selection-appear 220ms ease-out;
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next #managerSelectionText {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  min-width: 118px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #087ec1;
  color: #fff;
  font-size: 14px !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next #managerSelectionText::before { content: '✓'; }
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next #managerSelection .gm-disclosure>summary,
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next #managerClearSelection {
  background: #fff;
  border-color: #c3dced;
}
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next #managerSelection .gm-disclosure>summary:hover,
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next #managerSelection .gm-disclosure>summary:focus-visible,
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next #managerSelection .gm-disclosure[open]>summary,
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next #managerClearSelection:hover,
body.gramjet-shell-active.gramjet-compact #accountManager.gm-next #managerClearSelection:focus-visible {
  background: #deeffc;
  border-color: #62a9d9;
}
@keyframes gj-selection-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media(prefers-reduced-motion:reduce) {
  body.gramjet-shell-active.gramjet-compact #accountManager.gm-next #managerSelection.visible { animation: none; }
}

/* One selected Premium tab; inactive buttons remain light in every picker. */
body.gramjet-shell-active #neuroAccountsSection .neuro-premium-filters button,
body.gramjet-shell-active #storiesView #storyAccountsCompact .sc-filters button {
  background:#fff!important;color:#35627f!important;border:1px solid #cbdfee!important;
  box-shadow:none!important;transform:none!important;transition:background-color .15s,border-color .15s;
}
body.gramjet-shell-active #neuroAccountsSection .neuro-premium-filters button:hover,
body.gramjet-shell-active #storiesView #storyAccountsCompact .sc-filters button:hover {
  background:#eaf5ff!important;border-color:#83bcec!important;
}
body.gramjet-shell-active #neuroAccountsSection .neuro-premium-filters button[aria-pressed=true],
body.gramjet-shell-active #storiesView #storyAccountsCompact .sc-filters button[aria-pressed=true] {
  background:#187bd2!important;border-color:#187bd2!important;color:#fff!important;
}
body.gramjet-shell-active :is(#neuroAccountsSection,#storyAccountsCompact) button:focus-visible {
  outline:2px solid #187bd2;outline-offset:2px;
}
.gj-picker-loading {display:flex;align-items:center;justify-content:center;gap:10px;min-height:100px;color:#63829a;}
.gj-picker-loading::before {content:"";width:17px;height:17px;flex:none;border:2px solid #d4e9f8;border-top-color:#187bd2;border-radius:50%;animation:gj-picker-spin .85s linear infinite;}
@keyframes gj-picker-spin {to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.gj-picker-loading::before{animation:none}}

/* Compact picker: reserve only the action width, never a separate button row. */
body.gramjet-compact.neurodialogs-active .neuro-account-list.compact .neuro-account-card {
  min-height: 0 !important;
  container-type: inline-size;
}
body.gramjet-compact.neurodialogs-active .neuro-account-list.compact .neuro-account-card-main {
  display: grid;
  align-content: center;
  min-height: 34px;
  padding-right: 88px;
}
body.gramjet-compact.neurodialogs-active .neuro-account-list.compact .neuro-account-status-row {
  min-height: 0;
  margin-top: 0;
  padding-right: 0;
}
body.gramjet-compact.neurodialogs-active .neuro-account-list.compact .neuro-account-status-row > :is(.neuro-account-pill,.neuro-account-roles) {
  margin-top: 5px;
}
body.gramjet-compact.neurodialogs-active .neuro-account-list.compact .neuro-account-action {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  white-space: nowrap;
}
body.gramjet-compact.neurodialogs-active .neuro-account-list.compact .neuro-account-meta {
  display: flex;
  gap: 4px 7px;
  align-items: center;
}
body.gramjet-compact.neurodialogs-active .neuro-account-list.compact .neuro-account-meta > .neuro-country-badge {
  margin-right: 0;
}
body.gramjet-compact.neurodialogs-active .neuro-account-list.compact :is(.neuro-copy-field,.neuro-compact-account-id) {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.gramjet-compact.neurodialogs-active .neuro-account-list.compact .neuro-copy-field > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
body.gramjet-compact.neurodialogs-active .neuro-compact-hide-name.neuro-compact-hide-premium .neuro-account-list.compact .neuro-account-copy > strong,
body.gramjet-compact.neurodialogs-active .neuro-account-list.compact .neuro-account-roles:empty,
body.gramjet-compact.neurodialogs-active .neuro-compact-hide-name .neuro-account-list.compact .neuro-account-copy > strong:not(:has(.neuro-premium-star)),
body.gramjet-compact.neurodialogs-active .neuro-compact-hide-id.neuro-compact-hide-phone-country.neuro-compact-hide-phone.neuro-compact-hide-username .neuro-account-list.compact .neuro-account-meta {
  display: none;
}
body.gramjet-compact #storiesView #storyAccountsCompact.sc-unified.sc-compact .sc-account {
  gap: 0;
  min-height: 56px !important;
  padding-right: 99px;
  justify-content: center;
}
body.gramjet-compact #storiesView #storyAccountsCompact.sc-unified.sc-compact .sc-move {
  position: absolute;
  right: 11px;
  bottom: 10px;
  margin: 0;
}
body.gramjet-compact #storiesView #storyAccountsCompact.sc-unified.sc-compact .sc-card-bottom > :is(.sc-pill,.sc-restriction) {
  margin-top: 5px;
}
body.gramjet-compact #storiesView #storyAccountsCompact.sc-unified.sc-compact .sc-identity {
  align-items: flex-start;
}
body.gramjet-compact #storiesView #storyAccountsCompact.sc-unified.sc-compact :is(.sc-name,.sc-phone-line):not(:has([data-sc-field]:not([hidden]))) {
  display: none;
}
@media(max-width:600px) {
  body.gramjet-compact.neurodialogs-active .neuro-account-list.compact .neuro-account-card-main { min-height:44px; }
  body.gramjet-compact #storiesView #storyAccountsCompact.sc-unified.sc-compact .sc-account { min-height:66px !important; }
}
/* Only genuinely narrow cards move the action below, keeping text readable. */
@container(max-width:240px) {
  body.gramjet-compact.neurodialogs-active .neuro-account-list.compact .neuro-account-card-main { padding-right:0; }
  body.gramjet-compact.neurodialogs-active .neuro-account-list.compact .neuro-account-action { position:static; margin:5px 0 0 auto; }
}
@container(max-width:280px) {
  body.gramjet-compact #storiesView #storyAccountsCompact.sc-unified.sc-compact .sc-account { padding-right:11px; }
  body.gramjet-compact #storiesView #storyAccountsCompact.sc-unified.sc-compact .sc-move { position:static; margin:5px 0 0 auto; }
}
