/* «Афиша выходных» — панель модерации. Токены, кнопки, чипы, метки, поля и карты — из app.css.
   Здесь только раскладка админки: вход, статистика, очередь + карточка (две колонки на компьютере,
   одна на телефоне), правка, диалоги и пятничная подборка. */

.page-admin { --adm-top: 64px; }
.page-admin .footer.adm-footer { padding-bottom: 28px; margin-top: 24px; }
.page-admin .toast { bottom: calc(20px + var(--safe-b)); }
.adm-top__mod { color: var(--gold); font-weight: 700; }
.adm-small { font-size: 13px; line-height: 1.45; }
.adm-mt { margin-top: 10px; }
.adm-h2 { font-size: clamp(19px, 3.4vw, 24px); font-weight: 800; }
.adm-h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
html.adm-dlg-open { overflow: hidden; }

.adm-main { max-width: 1440px; margin: 0 auto; padding: 18px var(--gutter) 24px; min-height: calc(100vh - var(--adm-top) - 120px); outline: none; }
@media (min-width: 1024px) { .adm-main { padding-top: 24px; } }

/* ───────── Вход ───────── */
.adm-login { display: flex; justify-content: center; padding: 6vh 0 4vh; }
.adm-login__card { width: 100%; max-width: 440px; padding: 30px 26px 26px; background: linear-gradient(160deg, rgba(74, 36, 104, .55), rgba(42, 26, 58, .92) 55%); border-color: var(--line-2); box-shadow: var(--shadow); }
.adm-login__icon { display: block; font-size: 40px; margin-bottom: 10px; }
.adm-login__title { font-size: 24px; font-weight: 800; margin: 6px 0 8px; }
.adm-login__lead { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.adm-login__form { display: grid; gap: 12px; margin-top: 12px; }
.adm-login__form .field { margin-bottom: 0; }
.adm-login .note { margin-bottom: 4px; }
.adm-pw { position: relative; display: block; }
.adm-pw .input { padding-right: 52px; }
.adm-pw__eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 18px; color: var(--text-2); }
.adm-pw__eye:hover { background: rgba(255, 255, 255, .06); }
.adm-stop { display: grid; gap: 8px; justify-items: start; margin-top: 8px; padding: 16px; border-radius: var(--r-s); border: 1px dashed var(--line-2); background: rgba(10, 5, 16, .25); }
.adm-stop__icon { font-size: 30px; }
.adm-stop p { color: var(--text-2); font-size: 14px; }
.is-shake { animation: admShake .42s var(--ease); }
@keyframes admShake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ───────── Разделы и статистика ───────── */
.adm-sections { display: flex; gap: 6px; padding: 4px; margin-bottom: 16px; border-radius: 999px; background: rgba(10, 5, 16, .3); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.adm-sections::-webkit-scrollbar { display: none; }
.adm-section { flex: none; border: 0; background: transparent; color: var(--text-2); font-weight: 800; font-size: 15px; padding: 9px 16px; border-radius: 999px; cursor: pointer; min-height: 40px; white-space: nowrap; transition: background .2s, color .2s; }
.adm-section:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.adm-section.is-on { background: var(--gold); color: var(--ink); }

.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; align-items: stretch; }
body[data-section="digest"] .adm-stats { display: none; }
.adm-stat { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; min-width: 0; }
button.adm-stat { cursor: pointer; transition: border-color .2s, transform .18s var(--ease), background .2s; }
button.adm-stat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.adm-stat.is-on { border-color: rgba(245, 185, 71, .6); background: linear-gradient(140deg, rgba(245, 185, 71, .14), var(--surface)); }
.adm-stat.is-hot .adm-stat__value { color: var(--coral-2); }
.adm-stat.is-ok .adm-stat__value { color: var(--ok); }
.adm-stat.is-off .adm-stat__value { color: var(--muted); }
.adm-stat--wide { grid-column: span 2; }
@media (max-width: 400px) { .adm-stat--wide { grid-column: 1 / -1; } }
.adm-stat__icon { font-size: 20px; line-height: 1.2; flex: none; }
.adm-stat__text { display: flex; flex-direction: column; min-width: 0; }
.adm-stat__value { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
.adm-stat__value--s { font-family: var(--font); font-size: 15px; font-weight: 800; color: var(--gold-2); line-height: 1.3; }
.adm-stat.is-off .adm-stat__value--s { color: var(--text-2); }
.adm-stat.is-ok .adm-stat__value--s { color: var(--ok); }
.adm-stat__label { font-size: 13px; color: var(--text-2); font-weight: 700; }
.adm-stat__sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 520px) { .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ───────── Панель инструментов очереди ───────── */
.adm-toolbar { display: grid; gap: 10px; margin-bottom: 14px; }
.adm-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; -webkit-overflow-scrolling: touch; min-width: 0; }
.adm-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .adm-tabs { flex-wrap: wrap; overflow: visible; } }
.adm-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 800; }
.adm-tab.is-on .adm-count { background: rgba(20, 12, 30, .16); }
.adm-count.is-hot { background: var(--coral); color: #2A0E12; }
.adm-toolbar__row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.adm-search { flex: 1; min-width: 0; }
.adm-search .input { min-height: 44px; }
#refreshBtn.is-spin { animation: spin .8s linear; }

/* ───────── Список + карточка ───────── */
.adm-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.adm-listcol { min-width: 0; }
.adm-detail { display: none; min-width: 0; outline: none; }
.adm-layout.has-detail .adm-listcol { display: none; }
.adm-layout.has-detail .adm-detail { display: block; }
@media (min-width: 1024px) {
  .adm-layout { grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); }
  .adm-layout .adm-listcol, .adm-layout.has-detail .adm-listcol { display: block; }
  .adm-detail, .adm-layout.has-detail .adm-detail {
    display: flex; flex-direction: column; position: sticky; top: calc(var(--adm-top) + 12px);
    max-height: calc(100vh - var(--adm-top) - 24px); overflow: hidden;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: var(--shadow);
  }
  .adm-detail > .adm-detail__pad, .adm-detail > .adm-edit { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
  .adm-back { display: none; }
}
.adm-detail__pad { padding: 4px 0 8px; }
@media (min-width: 1024px) { .adm-detail__pad { padding: 20px 24px 16px; } }
.adm-detail__empty { display: flex; align-items: center; justify-content: center; min-height: 360px; }
.adm-detail__empty .empty { border: 0; }

.adm-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 0 10px; flex-wrap: wrap; }
.adm-list-head h2 { font-size: 18px; font-weight: 700; }
.adm-list { display: grid; gap: 10px; }
.adm-item {
  position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%;
  padding: 10px; text-align: left; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; cursor: pointer; transition: border-color .2s, transform .2s var(--ease), background .2s, box-shadow .2s;
}
.adm-item:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.adm-item.is-selected { border-color: var(--gold); background: linear-gradient(120deg, rgba(245, 185, 71, .14), var(--surface) 60%); box-shadow: 0 0 0 1px rgba(245, 185, 71, .35) inset; }
.adm-item__thumb { display: block; width: 88px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.adm-item__thumb .cover { aspect-ratio: 1 / 1; }
.adm-item__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-right: 74px; }
.adm-item__title { font-weight: 800; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.adm-item__when { font-size: 13px; color: var(--gold-2); font-weight: 700; }
.adm-item__where { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-item__tags { margin-top: 4px; }
.adm-item__time { position: absolute; top: 10px; right: 12px; font-size: 11px; color: var(--muted); font-weight: 700; max-width: 70px; text-align: right; line-height: 1.2; }
.adm-item--skel { cursor: default; min-height: 108px; }
.adm-item--skel .adm-item__thumb { height: 88px; }
.adm-skel { display: block; height: 14px; border-radius: 6px; background: rgba(255, 255, 255, .08); margin: 6px 0; width: 80%; }
.adm-skel--s { width: 50%; }
.adm-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 16px 0 4px; }
.adm-pager .chip { min-width: 40px; justify-content: center; }
.adm-pager .chip:disabled { opacity: .4; cursor: not-allowed; }
.adm-pager__gap { align-self: center; color: var(--muted); padding: 0 4px; }

/* статусы */
.adm-st--warn { background: rgba(245, 185, 71, .16); color: var(--gold-2); }
.adm-st--ok { background: rgba(94, 211, 154, .16); color: #8FF0BE; }
.adm-st--err { background: rgba(255, 92, 122, .16); color: #FFB3C1; }
.adm-st--off { background: rgba(168, 152, 179, .16); color: var(--text-2); }
.adm-tag-star { background: rgba(245, 185, 71, .22); color: var(--gold-2); }

/* ───────── Карточка события ───────── */
.adm-dh { display: grid; gap: 10px; margin-bottom: 14px; }
.adm-dh__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adm-dh__ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); margin-left: auto; overflow-wrap: anywhere; }
.adm-dh__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.adm-dh__info { display: grid; gap: 8px; min-width: 0; align-content: start; }
@media (min-width: 560px) { .adm-dh__main { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; } }
@media (min-width: 1280px) { .adm-dh__main { grid-template-columns: 220px minmax(0, 1fr); } }
.adm-dh__cover { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.adm-dh__cover .cover { aspect-ratio: 16 / 9; }
@media (min-width: 560px) { .adm-dh__cover .cover { aspect-ratio: 3 / 4; } }
.adm-dh__poster { display: block; }
.adm-dh__poster .cover__img { object-fit: contain; background: rgba(10, 5, 16, .7); }
.adm-dh__where { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.adm-dh__price { color: var(--muted); font-size: 14px; font-weight: 700; }
.adm-dh__noposter { position: absolute; left: 8px; right: 8px; bottom: 8px; width: max-content; max-width: calc(100% - 16px); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(20, 12, 30, .72); color: var(--text-2); }
.adm-dh__title { font-size: clamp(20px, 3.4vw, 26px); font-weight: 800; overflow-wrap: anywhere; outline: none; }
.adm-dh__when { color: var(--gold-2); font-weight: 700; font-size: 15px; }
.adm-notes { display: grid; gap: 10px; margin-bottom: 14px; }
.adm-diff { display: grid; gap: 6px; }
.adm-diff p { color: var(--text-2); font-size: 14px; }
.adm-diff__list { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text); }
.adm-diff__list li { overflow-wrap: anywhere; }
.adm-diff__from { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 92, 122, .6); }
.adm-diff__to { color: #8FF0BE; font-weight: 700; }
.adm-diff__poster { display: inline-block; vertical-align: middle; margin-left: 8px; }
.adm-diff__poster img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; display: inline-block; }

.adm-fields { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: rgba(10, 5, 16, .2); }
@media (min-width: 640px) { .adm-fields { grid-template-columns: 1fr 1fr; } }
.adm-fields__row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.adm-fields dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.adm-fields dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.adm-fields__row.is-changed, .adm-block.is-changed, .adm-dh__cover.is-changed { background: rgba(245, 185, 71, .1); box-shadow: inset 3px 0 0 var(--gold); }
.adm-dh__cover.is-changed { box-shadow: 0 0 0 2px var(--gold); }
.adm-chmark { color: var(--gold); font-size: 12px; font-weight: 800; }
.adm-block { margin-bottom: 14px; padding: 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: rgba(10, 5, 16, .2); }
.adm-block > .adm-h3 { margin-bottom: 8px; }
.adm-block__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-desc { color: var(--text-2); font-size: 15px; }
.adm-minimap { height: 220px; }
@media (min-width: 1024px) { .adm-minimap { height: 240px; } }
.adm-pd { border-style: dashed; border-color: rgba(88, 178, 240, .4); background: rgba(88, 178, 240, .06); }
.adm-pd__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-pd__lock { background: rgba(88, 178, 240, .16); color: #A9D8FF; white-space: normal; }
.adm-fields--pd { grid-template-columns: 1fr; margin-bottom: 8px; }
.adm-contact { font-weight: 800; margin-right: 8px; overflow-wrap: anywhere; }
.adm-copy { margin-top: 4px; }
.adm-feat.is-on { border-color: rgba(245, 185, 71, .5); background: linear-gradient(130deg, rgba(245, 185, 71, .12), rgba(10, 5, 16, .2)); }
.adm-feat__now { color: var(--text-2); margin-bottom: 8px; }
.adm-feat .btn-row { margin-bottom: 8px; }
.adm-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 14px; margin: 4px 0 8px; font-size: 13px; }
.adm-meta dt { color: var(--muted); font-weight: 700; font-size: 12px; }
.adm-meta dd { margin: 0; color: var(--text-2); }

.adm-actions {
  position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 calc(12px + var(--safe-b));
  background: linear-gradient(180deg, rgba(26, 16, 38, 0), rgba(26, 16, 38, .96) 26%); margin-top: 6px;
}
@media (min-width: 1024px) { .adm-actions { position: static; flex: none; padding: 12px 24px 14px; border-top: 1px solid var(--line); background: var(--bg-2); margin: 0; } }
.adm-actions .btn { flex: 1 1 auto; }
.adm-actions__del { flex: 0 1 auto !important; margin-left: auto; color: #FFB3C1; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; left: calc(50% - 9px); top: calc(50% - 9px); border-radius: 50%; border: 2px solid var(--text); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn--coral.is-busy::after, .btn--gold.is-busy::after { border-color: var(--ink); border-right-color: transparent; }
.btn.is-busy[aria-busy="true"] { color: inherit !important; }
.btn.is-busy[aria-busy="true"]::after { display: none; }

/* ───────── Правка ───────── */
.adm-edit { display: flex; flex-direction: column; min-width: 0; }
.adm-edit > .adm-dh, .adm-edit > .note, .adm-edit > .adm-form-grid { margin-left: 0; margin-right: 0; }
@media (min-width: 1024px) { .adm-edit > .adm-dh, .adm-edit > .note, .adm-edit > .adm-form-grid { margin: 0 24px; } .adm-edit > .adm-dh { margin-top: 20px; } .adm-edit > .note { margin-bottom: 12px; } }
.adm-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
@media (min-width: 640px) { .adm-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-span2 { grid-column: 1 / -1; } }
.adm-form-grid .field { min-width: 0; }
.field__err[hidden] { display: none !important; }
.is-invalid > .field__label, .is-invalid > legend { color: #FFB3C1; }
.adm-editmap { height: 260px; cursor: crosshair; }
.adm-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.adm-coords__f { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 700; min-width: 0; }
.adm-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-bottom: 14px; padding-top: 4px; }
.adm-seg { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.adm-seg__opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.adm-seg__opt { position: relative; cursor: pointer; }
.adm-seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.adm-seg__opt span { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text-2); font-weight: 700; font-size: 14px; }
.adm-seg__opt input:checked + span { background: var(--text); color: var(--ink); border-color: var(--text); }
.adm-seg__opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.adm-poster-edit { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; }
.adm-poster-edit__img { border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.adm-poster-edit__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.adm-poster-edit__img .cover { aspect-ratio: 3 / 4; }
.adm-poster-edit__ctl { display: grid; gap: 6px; min-width: 0; }
.adm-actions--edit { padding-left: 0; padding-right: 0; }
@media (min-width: 1024px) { .adm-actions--edit { padding: 12px 24px 14px; } }
@media (max-width: 380px) { .adm-poster-edit { grid-template-columns: 1fr; } .adm-poster-edit__img { max-width: 160px; } .adm-fields__row { grid-template-columns: 1fr; gap: 2px; } }

/* ───────── Диалоги ───────── */
.adm-dialog { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 16px; }
.adm-dialog__scrim { position: absolute; inset: 0; background: rgba(8, 3, 14, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s var(--ease); }
.adm-dialog__box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px 22px 20px; background: var(--bg-2); border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(16px) scale(.97); opacity: 0; transition: transform .3s var(--ease-spring), opacity .2s; }
.adm-dialog.is-open .adm-dialog__scrim { opacity: 1; }
.adm-dialog.is-open .adm-dialog__box { transform: none; opacity: 1; }
.adm-dialog__emoji { display: block; font-size: 34px; margin-bottom: 8px; }
.adm-dialog__box h2 { margin-bottom: 8px; }
.adm-dialog__box > p { color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }
.adm-dialog__btns { justify-content: flex-end; margin-top: 18px; }
.adm-reject { max-width: 560px; }
.adm-reasons { margin: 12px 0 10px; }
.adm-reason { white-space: normal; text-align: left; min-height: 34px; font-size: 13px; line-height: 1.3; flex: 0 1 auto; }
.field__hint.is-bad { color: #FFB3C1; font-weight: 700; }

/* ───────── Пятничная подборка ───────── */
.adm-digest__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.adm-digest__head > div:first-child { max-width: 640px; }
.adm-digest__head p { margin-top: 4px; }
.adm-weeks { min-width: 0; max-width: 100%; }
.adm-weeks .chip { flex-direction: column; align-items: flex-start; gap: 0; min-height: 50px; line-height: 1.2; padding: 7px 14px; border-radius: 16px; }
.adm-weeks .chip b { font-size: 14px; }
.adm-weeks .chip__n { font-size: 12px; opacity: .85; }
.adm-digest__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1024px) { .adm-digest__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } .adm-digest__card { position: sticky; top: calc(var(--adm-top) + 12px); } }
.adm-digest__card { padding: 14px; }
.adm-canvas-wrap { position: relative; border-radius: var(--r); overflow: hidden; background: #160C22; aspect-ratio: 1 / 1; }
.adm-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.adm-canvas-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(20, 12, 30, .6); color: var(--text-2); font-weight: 700; }
.adm-digest__btns { margin-top: 12px; }
.adm-digest__btns .btn { flex: 1 1 auto; }
.adm-digest__side { display: grid; gap: 16px; min-width: 0; }
.adm-box { padding: 16px; display: grid; gap: 10px; min-width: 0; }
.adm-featured-field { margin-bottom: 0; }
.adm-featured-field .select { min-width: 0; text-overflow: ellipsis; }
.adm-post-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adm-post-copy { margin-left: auto; }
.adm-post {
  margin: 0; max-height: 380px; overflow: auto; padding: 14px; border-radius: var(--r-s); background: rgba(10, 5, 16, .4);
  border: 1px solid var(--line); color: var(--text); font: 14px/1.5 var(--font); white-space: pre-wrap; overflow-wrap: anywhere;
}
.adm-post--s { max-height: 220px; font-size: 13px; margin-top: 8px; }
.adm-pub-status { display: grid; gap: 8px; }
.adm-pub { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: rgba(10, 5, 16, .25); font-size: 14px; overflow-wrap: anywhere; }
.adm-pub .muted { font-size: 13px; }
.adm-pub--sent { border-color: rgba(94, 211, 154, .4); background: rgba(94, 211, 154, .08); }
.adm-pub--failed { border-color: rgba(255, 92, 122, .4); background: rgba(255, 92, 122, .08); }
.adm-pub--sending { border-color: rgba(245, 185, 71, .4); background: rgba(245, 185, 71, .08); }
.adm-pub--none { color: var(--muted); }
.adm-pub__week { font-weight: 800; color: var(--gold-2); font-size: 13px; }
.adm-history { margin-top: 16px; }
.adm-history .adm-list-head { margin: 0; }
.adm-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.adm-hist__text summary { cursor: pointer; font-size: 13px; color: var(--text-2); font-weight: 700; margin-top: 6px; }

/* ───────── Узкие экраны ───────── */
@media (max-width: 420px) {
  .adm-item { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .adm-item__thumb { width: 64px; }
  .adm-item__body { padding-right: 0; }
  .adm-item__time { position: static; grid-column: 2; text-align: left; max-width: none; margin-top: -4px; }
  .adm-fields__row { grid-template-columns: 104px minmax(0, 1fr); }
  .adm-actions .btn { padding-left: 12px; padding-right: 12px; font-size: 14px; }
  .adm-box, .adm-digest__card { padding: 12px; }
  .adm-login__card { padding: 24px 18px 20px; }
  .adm-section { padding: 8px 12px; font-size: 14px; }
  .adm-digest__btns .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .adm-item:hover, button.adm-stat:hover { transform: none; }
}
@media (min-width: 1024px) { .adm-detail > .adm-edit .adm-actions--edit { position: sticky; bottom: 0; z-index: 5; } }

/* телефон: открытая карточка — без статистики и фильтров, кнопки компактнее */
@media (max-width: 1023px) {
  body[data-section="queue"].adm-detail-open .adm-stats, body[data-section="queue"].adm-detail-open .adm-toolbar, body[data-section="queue"].adm-detail-open .adm-sections { display: none; }
  .adm-actions .btn { min-height: 40px; padding: 8px 12px; font-size: 14px; }
}
/* шапка на узких экранах: название не заезжает под кнопки */
.adm-top .brand { flex: 1 1 auto; min-width: 0; }
.adm-top .brand__text { min-width: 0; }
.adm-top .brand__name { overflow: hidden; text-overflow: ellipsis; }
.adm-top .topbar__right { flex: none; }
@media (max-width: 640px) { .adm-top__mod { display: none; } }
@media (max-width: 380px) { .adm-top .brand__logo { width: 34px; height: 34px; } .adm-top .brand__name { font-size: 15px; } }
