/* Admin pages: content list and editor. */
.adm { max-width: 1040px; margin: 0 auto; padding: 28px 24px 80px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 640px) { .adm { padding: 18px 16px 72px; } }
.adm h1 { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.15; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.adm-table th { text-align: left; font-size: 13px; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 10px 8px; border-bottom: 1px solid var(--chip); vertical-align: middle; }
.adm-table td.act { white-space: nowrap; text-align: right; }
.adm-table a, .adm-table button.link { font-weight: 700; margin-left: 10px; }
button.link { border: 0; background: none; color: var(--danger); cursor: pointer; font: inherit; padding: 0; }

.ed-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ed-card > h2 { font-size: 19px; }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ed-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ed-field > span { font-weight: 600; font-size: 14px; }
.ed-field .input { min-height: 44px; font-size: 16px; }
.ed-field textarea.input { min-height: 120px; padding: 10px 12px; line-height: 1.5; resize: vertical; font: 15px/1.5 var(--sans); }
.ed-field textarea.mono { font: 14px/1.55 ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.ed-field textarea.tall { min-height: 260px; }
.ed-field .hint { font-size: 13px; }
.ed-check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.ed-check input { width: 20px; height: 20px; accent-color: var(--primary); }

.part-card { border: 2px solid var(--line2); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: #FBFAF8; }
.part-head, .grp-head, .blk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.part-head h3 { font-size: 18px; }
.tools { display: flex; gap: 4px; flex-wrap: wrap; }
.tools button { min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: #fff; font: 600 13px var(--sans); color: var(--ink); cursor: pointer; }
.tools button.del { color: var(--danger); }
.grp-card, .blk-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.grp-head select, .blk-head select { min-height: 38px; border-radius: 8px; border: 1.5px solid var(--line2); font: 600 15px var(--sans); padding: 0 8px; background: #fff; }
.check-ok { color: var(--deep); font-weight: 700; font-size: 14px; }
.check-bad { color: var(--danger); font-size: 14px; }
.check-bad li { margin-top: 2px; }
.add-btn { align-self: flex-start; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px dashed var(--line2); background: #fff; font: 700 14px var(--sans); color: var(--primary); cursor: pointer; }
.upload-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.upload-row audio { max-width: 100%; }
.upload-row img { max-height: 120px; border-radius: 8px; }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 -10px 30px -20px rgba(0,0,0,.5); }
.save-bar .msg { font-weight: 600; flex: 1 1 200px; }
.save-bar .msg.bad { color: #FFB4A3; }
.fmt-help { font-size: 14px; color: var(--ink2); background: var(--ground); border-radius: 10px; padding: 10px 12px; }
.fmt-help code, .guide code { font: 13px ui-monospace, Consolas, monospace; background: #fff; padding: 1px 5px; border-radius: 5px; }

.guide { max-width: 820px; font-size: 17px; line-height: 1.6; }
.guide h2 { font-size: 22px; margin-top: 18px; }
.guide ol, .guide ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.guide pre { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow-x: auto; font: 14px/1.55 ui-monospace, Consolas, monospace; white-space: pre-wrap; }
