/* Дополнения к app.css для админки «Макета» */
[x-cloak] { display: none !important; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: var(--cream); padding: 1px 6px; border-radius: 5px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.break { word-break: break-all; }
.nowrap { white-space: nowrap; }
.section-title { font-size: 17px; margin: 0 0 12px; }
.card--accent { border: 2px solid var(--red); }
.pre, pre.code { background: var(--dark); color: #F2F2F2; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 12.5px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.input--sm { padding: 6px 9px; font-size: 13px; }
.select--inline { width: auto; }
.grid--side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters .select { width: auto; min-width: 160px; }
.checklist { display: grid; gap: 6px; margin-top: 8px; padding: 10px 12px; background: var(--cream); border-radius: var(--radius-sm); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 8px; border-bottom: 1px solid var(--cream-d); vertical-align: middle; }

.badge--open { background: var(--danger-bg); color: var(--danger); }
.badge--in_progress { background: var(--warn-bg); color: var(--warn); }
.badge--resolved { background: var(--ok-bg); color: var(--ok); }
.badge--wontfix { background: #EEF1F5; color: #7A8699; }
.badge--active { background: var(--ok-bg); color: var(--ok); }
.badge--archived { background: #EEF1F5; color: #7A8699; }

.mockup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mockup-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; background: #fff; display: grid; gap: 6px; }
.mockup-tile__preview { display: flex; align-items: flex-start; justify-content: center; height: 140px; overflow: hidden; background: var(--cream); border-radius: 7px; }
.mockup-tile__preview img { width: 100%; height: auto; }
.mockup-tile__html { margin: auto; font-weight: 800; letter-spacing: 2px; color: var(--muted); }
.mockup-tile__meta { display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
.mockup-tile__path { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pin-row { align-items: flex-start; }
.pin-num { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--danger); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pin-num--in_progress { background: var(--warn); }
.pin-num--resolved { background: var(--ok); }
.pin-num--wontfix { background: #9AA3AF; }
.pin-req { margin-top: 4px; font-size: 14px; padding: 6px 10px; border-radius: 8px; background: var(--cream); }
.pin-req--ok { background: var(--ok-bg); }

.thread { display: grid; gap: 10px; }
.msg { background: var(--cream); border-radius: var(--radius-sm); padding: 10px 12px; }
.msg--team, .msg--agent { background: #F3ECEB; }
.msg__head { font-size: 12.5px; margin-bottom: 3px; }
.msg audio { width: 100%; margin-top: 6px; height: 34px; }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; }

@media (max-width: 860px) {
    .grid--side, .grid--4 { grid-template-columns: 1fr; }
    .table { display: block; overflow-x: auto; }
}

/* ── Changelog, передача правок, история страницы ── */
.pre-line { white-space: pre-line; }
.badge--review-collecting { background: #EEF1F5; color: #7A8699; }
.badge--review-ready { background: var(--warn-bg); color: var(--warn); }
.badge--review-in_work { background: #E7EEFB; color: #3E6FB0; }
.badge--review-done { background: var(--ok-bg); color: var(--ok); }
.review--ready, .review--in_work { border-left: 4px solid var(--warn); }
.review--done { border-left: 4px solid var(--ok); }
.pin-num--sm { width: 22px; height: 22px; font-size: 11px; display: inline-flex; vertical-align: middle; }
.timeline { position: relative; padding-left: 64px; }
.timeline::before { content: ''; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline__item { position: relative; margin-bottom: 16px; }
.timeline__dot { position: absolute; left: -64px; top: 14px; width: 52px; height: 30px; border-radius: 99px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.timeline__item--absent .timeline__dot { background: #B9C2CE; }
.timeline__item--absent .timeline__card { opacity: .75; }
.tl-block { margin-top: 12px; }
.tl-block__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
.tl-list { display: grid; gap: 6px; }
.tl-list li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; }
