:root {
  color: #203d35;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6f3;
  font-synthesis: none;
  --green-900: #203d35;
  --green-700: #2f7c68;
  --green-500: #70a48d;
  --green-100: #e6f0eb;
  --paper: #fff;
  --line: #e7ebe8;
  --muted: #77837e;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 1180px; background: #f4f6f3; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.auth-gate { position: fixed; z-index: 40; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 20%, #edf6f0 0, #f4f6f3 52%, #e9efeb 100%); }
.auth-gate[hidden] { display: none; }
.auth-gate-card { width: min(410px, calc(100vw - 48px)); padding: 42px 40px 38px; border: 1px solid #e2ebe5; border-radius: 22px; background: rgba(255, 255, 255, .94); box-shadow: 0 24px 70px rgba(32, 61, 53, .14); text-align: center; }
.auth-gate-mark { display: grid; width: 56px; height: 56px; margin: 0 auto 18px; place-items: center; border-radius: 17px; background: var(--green-100); color: var(--green-700); font-size: 23px; font-weight: 800; }
.auth-gate-card small { color: var(--green-700); font-size: 11px; font-weight: 700; }
.auth-gate-card h1 { margin: 9px 0 10px; color: var(--green-900); font-size: 26px; }
.auth-gate-card p { margin: 0 auto 25px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-gate-card .primary-action { width: 100%; }
.auth-locked .app-shell { visibility: hidden; }
.auth-locked .app-shell #loginModal.open, .auth-locked .app-shell #passwordModal.open { visibility: visible; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: 250px;
  flex-direction: column;
  padding: 24px 16px;
  border-right: 1px solid #e6ebe7;
  background: #fbfcfa;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 28px; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; }
.brand-mark { position: relative; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: #fff2cf; }
.brand-mark i, .brand-mark b { position: absolute; bottom: -9px; width: 34px; height: 29px; border-radius: 50%; }
.brand-mark i { left: -7px; background: #71a58e; }
.brand-mark b { right: -10px; background: #d98262; }

.nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5d6964;
  text-align: left;
}
.nav-item span { display: inline-flex; width: 20px; justify-content: center; font-size: 17px; }
.nav-item em { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: #d98262; color: white; font-size: 10px; font-style: normal; }
.nav-item:hover { background: #f0f4f1; }
.nav-item.active { background: var(--green-100); color: var(--green-700); font-weight: 700; }
.nav-divider { height: 1px; margin: 10px 8px; background: var(--line); }

.sidebar-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.sidebar-user .avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #dcebe4; color: var(--green-700); font-weight: 800; }
.sidebar-user > div:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.sidebar-user strong { font-size: 12px; }
.sidebar-user small { color: var(--muted); font-size: 10px; }
.sidebar-user button { border: 0; background: transparent; color: var(--muted); }

.main { width: calc(100% - 250px); margin-left: 250px; padding: 32px 36px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.breadcrumb { margin: 0 0 8px; color: #9aa39f; font-size: 11px; }
.breadcrumb span { color: #53605b; }
.topbar h1 { margin: 0; font-size: 25px; letter-spacing: -.4px; }
.topbar-actions { display: flex; gap: 10px; }
.icon-button { width: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #93a09a; }
.primary-action, .secondary-action { height: 40px; padding: 0 17px; border-radius: 10px; font-weight: 700; }
.primary-action { border: 0; background: var(--green-700); color: #fff; }
.primary-action:hover { background: #286c5b; }
.secondary-action { border: 1px solid var(--line); background: #fff; color: #53605b; }
button:disabled { cursor: not-allowed; opacity: .5; }
.cloud-connected { border-color: #b9dfc9; background: #e7f5ed; color: #28745d; }

.page-section { display: none; }
.page-section.active { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.stat-card { position: relative; overflow: hidden; min-height: 125px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.stat-card::after { position: absolute; right: -28px; bottom: -44px; width: 110px; height: 110px; border-radius: 50%; background: var(--accent); content: ""; opacity: .15; }
.stat-card div { display: flex; align-items: flex-end; justify-content: space-between; }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card strong { font-size: 33px; line-height: 1; }
.stat-card button { margin-top: 26px; padding: 0; border: 0; background: transparent; color: var(--accent-dark); font-size: 11px; font-weight: 700; }
.accent-green { --accent: #71a58e; --accent-dark: #2f7c68; }
.accent-orange { --accent: #d98262; --accent-dark: #a85b42; }
.accent-blue { --accent: #7da4b1; --accent-dark: #527783; }
.accent-cream { --accent: #eabf72; --accent-dark: #946d2e; }

.dashboard-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 15px; margin-top: 15px; }
.panel { border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 21px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 15px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.panel-head button { border: 0; background: transparent; color: var(--green-700); font-size: 11px; font-weight: 700; }
.task-list article { display: flex; align-items: center; gap: 12px; padding: 17px 22px; border-bottom: 1px solid #eef1ef; }
.task-list article:last-child { border-bottom: 0; }
.task-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; font-size: 12px; font-weight: 800; }
.task-icon.green { background: #e5f0eb; color: #2f7c68; }
.task-icon.orange { background: #f8e8e1; color: #a75b43; }
.task-icon.blue { background: #e3edf0; color: #557783; }
.task-list article > div { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.task-list strong { font-size: 12px; }
.task-list small { color: var(--muted); font-size: 10px; }
.status { display: inline-flex; width: max-content; padding: 5px 9px; border-radius: 999px; font-size: 10px; }
.status.pending { background: #fff2d7; color: #8b6628; }
.status.verify { background: #f8e7e0; color: #a4553e; }
.status.published { background: #e4f1ea; color: #2e7865; }
.age-chart { display: flex; align-items: center; justify-content: center; gap: 35px; padding: 28px 20px; }
.donut { display: grid; width: 140px; height: 140px; place-items: center; border-radius: 50%; background: conic-gradient(#71a58e 0 62%, #eabf72 62% 100%); }
.donut::before { position: absolute; width: 92px; height: 92px; border-radius: 50%; background: #fff; content: ""; }
.donut span { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; font-size: 19px; font-weight: 800; }
.donut small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 500; }
.legend { display: flex; min-width: 105px; flex-direction: column; gap: 16px; }
.legend div { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; font-size: 11px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.legend i.young { background: #71a58e; }
.legend i.older { background: #eabf72; }

.recent-panel { margin-top: 15px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 18px; background: #f8faf8; color: #89938f; font-size: 10px; font-weight: 600; text-align: left; }
td { padding: 15px 18px; border-top: 1px solid #edf0ee; color: #53605b; font-size: 11px; }
td:first-child { min-width: 280px; }
td strong, td small { display: block; }
td strong { color: #2c4038; font-size: 11px; }
td small { margin-top: 5px; color: #919b97; font-size: 9px; }
.age-tag { padding: 5px 8px; border-radius: 6px; font-size: 9px; }
.age-tag.young { background: #e4f0ea; color: #2f7c68; }
.age-tag.older { background: #f8ecd2; color: #926a2d; }

.list-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.module-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.module-toolbar select { height: 40px; padding: 0 34px 0 13px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #53605b; }
.module-toolbar .primary-action { margin-left: auto; }
.search-box { display: flex; align-items: center; gap: 8px; width: 320px; height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #8a9690; }
.search-box input { width: 100%; border: 0; outline: 0; }
.list-toolbar select { height: 40px; padding: 0 34px 0 13px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #53605b; }
.list-toolbar .primary-action { margin-left: auto; }
.table-panel { overflow: hidden; }
.mall-name { display: flex; align-items: center; gap: 10px; }
.mall-thumb { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; background: #e2eee8; color: #2f7c68; font-weight: 800; }
.mall-thumb img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }
.module-name { display: flex; align-items: center; gap: 10px; }
.module-name > img, .module-thumb { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; background: #e2eee8; color: #2f7c68; font-size: 12px; font-weight: 800; object-fit: cover; }
.module-title-link { display: block; max-width: 420px; overflow: hidden; padding: 0; border: 0; background: transparent; color: #2c4038; font-size: 11px; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.module-title-link:hover { color: var(--green-700); text-decoration: underline; }
.table-action { border: 0; background: transparent; color: var(--green-700); font-size: 11px; font-weight: 700; }

.detail-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.back-action { padding: 0; border: 0; background: transparent; color: var(--green-700); font-size: 12px; font-weight: 700; }
.back-action:hover { text-decoration: underline; }
.detail-toolbar__hint { color: var(--muted); font-size: 11px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .8fr); gap: 15px; align-items: start; }
.detail-preview-panel, .detail-aside { overflow: hidden; }
.detail-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.detail-panel-head small { color: var(--green-700); font-size: 10px; font-weight: 700; }
.detail-panel-head h2 { margin: 5px 0 0; font-size: 16px; }
.preview-device { padding: 5px 9px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: 10px; white-space: nowrap; }
.mini-preview { max-width: 570px; margin: 24px auto 28px; border: 1px solid #dfe8e2; border-radius: 22px; background: #f8f5ec; box-shadow: 0 14px 35px rgba(32, 61, 53, .1); }
.mini-preview__bar { display: flex; align-items: center; justify-content: space-between; padding: 15px 19px; border-bottom: 1px solid rgba(32, 61, 53, .08); color: #53605b; font-size: 11px; font-weight: 700; }
.mini-preview__cover { position: relative; height: 220px; overflow: hidden; background: #dcebe4; }
.mini-preview__cover:empty::after { position: absolute; inset: 0; display: grid; place-items: center; color: #70a48d; content: "暂无封面图"; font-size: 12px; font-weight: 700; }
.mini-preview__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mini-preview__body { padding: 22px 23px 26px; }
.mini-preview__type { color: var(--green-700); font-size: 10px; font-weight: 700; }
.mini-preview__body h1 { margin: 8px 0 0; color: var(--green-900); font-size: 22px; line-height: 1.45; }
.mini-preview__meta { margin: 10px 0 0; color: #7a8580; font-size: 11px; line-height: 1.6; }
.mini-preview__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.mini-preview__tags span { padding: 5px 9px; border-radius: 999px; background: #e6f0eb; color: var(--green-700); font-size: 10px; }
.mini-preview__divider { height: 1px; margin: 20px 0 17px; background: rgba(32, 61, 53, .1); }
.mini-preview__summary, .mini-preview__content { margin: 0; color: #53605b; font-size: 12px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.mini-preview__summary { color: #2c4038; font-weight: 700; }
.mini-preview__content:empty::before { color: #9aa39f; content: "暂无正文"; font-style: italic; }
.mini-preview__blocks { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.preview-block { padding: 12px; border: 1px solid #e7eee9; border-radius: 10px; background: #fffdf8; }
.preview-block h3 { margin: 0 0 9px; color: #24463c; font-size: 12px; }
.preview-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e7eee9; border-radius: 7px; }
.preview-overview-grid div { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-right: 1px solid #e7eee9; border-bottom: 1px solid #e7eee9; }
.preview-overview-grid div:nth-child(2n) { border-right: 0; }
.preview-overview-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.preview-overview-grid small, .preview-linked small, .preview-timeline span { color: #77837e; font-size: 9px; }
.preview-overview-grid strong, .preview-linked strong { color: #34463f; font-size: 10px; }
.preview-timeline { display: flex; flex-direction: column; }
.preview-timeline > div { display: grid; grid-template-columns: 40px 12px 1fr; min-height: 36px; gap: 5px; }
.preview-timeline time { color: var(--green-700); font-size: 9px; font-weight: 700; }
.preview-timeline i { position: relative; display: block; width: 8px; height: 8px; margin-top: 2px; border: 2px solid #e4efe9; border-radius: 50%; background: var(--green-700); }
.preview-timeline i::after { position: absolute; top: 7px; left: 1px; width: 2px; height: 27px; background: #cfe0d8; content: ""; }
.preview-timeline > div:last-child i::after { display: none; }
.preview-timeline p { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; }
.preview-timeline p strong { color: #34463f; font-size: 10px; }
.preview-linked { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 8px; background: #e6f0eb; }
.preview-linked--eat { background: #f4e2da; }
.preview-linked b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.75); color: var(--green-700); font-size: 11px; }
.preview-linked--eat b { color: #a45a43; }
.preview-linked span { display: flex; flex-direction: column; gap: 2px; }
.preview-note, .preview-block--editorial p { margin: 8px 0 0; color: #56635d; font-size: 10px; line-height: 1.6; white-space: pre-wrap; }
.preview-budget { display: flex; flex-direction: column; }
.preview-budget > div { display: flex; justify-content: space-between; padding: 7px 3px; border-bottom: 1px dashed #e2e6e3; color: #68736e; font-size: 10px; }
.preview-budget > div:last-child { border-bottom: 0; }
.preview-budget strong { color: #31483f; }
.preview-budget .is-total { margin-top: 4px; padding: 8px 9px; border: 0; border-radius: 7px; background: #e6f0eb; color: #24463c; font-weight: 700; }
.preview-block--warning { background: #fff5e3; }
.preview-block--warning ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.preview-block--warning li { display: grid; grid-template-columns: 15px 1fr; gap: 5px; align-items: start; color: #755638; font-size: 10px; line-height: 1.5; }
.preview-block--warning li b { display: grid; width: 14px; height: 14px; place-items: center; border-radius: 50%; background: #d98262; color: #fff; font-size: 8px; }
.preview-block--editorial { background: #eef4f0; }
.mini-preview__gallery-title { margin-top: 22px; color: #34463f; font-size: 12px; font-weight: 700; }
.mini-preview__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.mini-preview__gallery:empty::before { grid-column: 1 / -1; color: #9aa39f; content: "暂无配图"; font-size: 11px; }
.mini-preview__gallery img { display: block; width: 100%; height: 92px; border-radius: 9px; object-fit: cover; }
.detail-info { display: grid; grid-template-columns: 82px 1fr; gap: 0; margin: 0; padding: 6px 21px 20px; }
.detail-info dt, .detail-info dd { padding: 12px 0; border-bottom: 1px solid #eef1ef; font-size: 11px; line-height: 1.5; }
.detail-info dt { color: #8a9690; }
.detail-info dd { margin: 0; color: #34463f; font-weight: 700; word-break: break-word; }
.detail-aside__actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 21px 21px; }
.detail-aside__actions .secondary-action, .detail-aside__actions .primary-action { flex: 1; min-width: 120px; }

.empty-panel { display: flex; min-height: 560px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 18px; background: white; text-align: center; }
.empty-art { position: relative; width: 120px; height: 100px; margin-bottom: 18px; }
.empty-art i, .empty-art b { position: absolute; bottom: 0; width: 92px; height: 72px; border-radius: 50%; }
.empty-art i { left: 0; background: #dcebe4; }
.empty-art b { right: 0; background: #f4dfb9; }
.empty-panel h2 { margin: 0; font-size: 20px; }
.empty-panel p { max-width: 440px; margin: 10px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(24, 43, 36, .35); backdrop-filter: blur(3px); }
.modal-backdrop.open { display: flex; }
.modal { width: 560px; padding: 25px; border-radius: 18px; background: white; box-shadow: 0 24px 80px rgba(22, 46, 37, .22); }
.modal-large { width: min(760px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: auto; }
.mall-modal { width: min(640px, calc(100vw - 48px)); padding: 22px 24px; }
.mall-modal .modal-head { margin-bottom: 14px; }
.mall-modal form { gap: 10px; }
.mall-modal label { gap: 5px; }
.mall-modal input, .mall-modal select, .mall-modal textarea { height: 36px; padding: 8px 10px; }
.mall-modal input[type="file"] { height: auto; padding: 7px 9px; }
.mall-modal textarea { min-height: 70px; }
.mall-modal .image-preview { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.mall-modal .image-preview figure { height: 70px; }
.entity-modal { width: min(900px, calc(100vw - 48px)); padding: 22px 24px; }
.entity-modal .modal-head { margin-bottom: 14px; }
.review-modal { width: min(820px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: auto; }
.review-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -5px 0 18px; color: var(--muted); font-size: 11px; }
.review-meta strong { color: #34463f; font-weight: 700; }
.review-section { padding: 16px 0; border-top: 1px solid var(--line); }
.review-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.review-section h3 { margin: 0; color: #34463f; font-size: 13px; }
.review-type, .review-image-count { color: var(--green-700); font-size: 10px; font-weight: 700; }
.review-content { min-height: 72px; padding: 14px 15px; border-radius: 10px; background: #f7faf8; color: #53605b; font-size: 12px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.review-content.is-empty { color: #9aa39f; font-style: italic; }
.review-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.review-gallery:empty::before { padding: 18px 0; color: #9aa39f; content: "该投稿没有配图"; font-size: 11px; }
.review-gallery figure { position: relative; height: 112px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f4f7f5; }
.review-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.review-gallery a { display: block; width: 100%; height: 100%; }
.review-note-field { margin-top: 14px; }
.review-note-field textarea { min-height: 72px; }
.review-modal-actions { padding-top: 14px; border-top: 1px solid var(--line); }
.login-modal { width: 430px; }
.login-tip { margin: -7px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.modal-head small { color: var(--green-700); font-size: 10px; }
.modal-head h2 { margin: 5px 0 0; font-size: 21px; }
.modal-head button { border: 0; background: transparent; color: #7d8983; font-size: 24px; }
.modal form { display: flex; flex-direction: column; gap: 15px; }
.modal label { display: flex; flex: 1; flex-direction: column; gap: 7px; color: #4c5954; font-size: 11px; font-weight: 700; }
.modal input, .modal select, .modal textarea { width: 100%; padding: 11px 12px; border: 1px solid #dfe5e1; border-radius: 9px; outline: 0; color: #34463f; }
.modal input:focus, .modal textarea:focus { border-color: #71a58e; }
.modal textarea { min-height: 90px; resize: vertical; }
.field-hint { color: var(--muted); font-size: 10px; font-weight: 400; }
.auth-options { display: flex; align-items: center; justify-content: space-between; margin-top: -4px; color: var(--muted); font-size: 10px; }
.text-action { padding: 0; border: 0; background: transparent; color: var(--green-700); font-size: 10px; font-weight: 700; }
.text-action:hover { text-decoration: underline; }
.security-modal { width: 470px; }
.security-tabs { display: flex; gap: 4px; margin: -2px 0 18px; padding: 4px; border-radius: 10px; background: #f4f7f5; }
.security-tab { flex: 1; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #718079; font-size: 11px; font-weight: 700; }
.security-tab.active { background: #fff; color: var(--green-700); box-shadow: 0 1px 5px rgba(38, 75, 62, .1); }
.security-modal section[hidden], .security-modal form[hidden] { display: none; }
.image-preview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; min-height: 0; }
.image-preview:empty { display: none; }
.image-preview figure { position: relative; height: 76px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f4f7f5; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview button { position: absolute; top: 4px; right: 4px; display: grid; width: 20px; height: 20px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(32, 61, 53, .78); color: white; font-size: 13px; line-height: 1; }
.image-preview figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 3px 4px; background: rgba(32, 61, 53, .72); color: white; font-size: 8px; text-align: center; }
.form-row { display: flex; gap: 12px; }
.entity-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.entity-fields > label { min-width: 0; gap: 5px; }
.entity-fields > .field-wide { grid-column: 1 / -1; }
.entity-fields input, .entity-fields select, .entity-fields textarea { width: 100%; min-width: 0; height: 36px; padding: 8px 10px; border: 1px solid #dfe5e1; border-radius: 8px; outline: 0; color: #34463f; }
.entity-fields textarea { height: auto; min-height: 78px; resize: vertical; line-height: 1.5; }
.entity-fields .field-long textarea { min-height: 150px; }
.entity-fields .upload-field input { height: auto; padding: 7px 9px; }
.entity-fields .field-hint { margin-top: -1px; line-height: 1.4; }
.modular-hint { padding: 10px 12px; border: 1px solid #cfe4d9; border-radius: 8px; background: #eef7f2; color: #2e7d68; font-size: 12px; line-height: 1.55; }
.modular-editor { padding: 14px; border: 1px solid #dfe9e4; border-radius: 12px; background: #f7fbf8; }
.modular-editor__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.modular-editor__head div { display: flex; flex-direction: column; gap: 4px; }
.modular-editor__head span { color: var(--muted); font-size: 10px; font-weight: 400; }
.modular-editor__count { color: var(--green-700) !important; font-weight: 700 !important; }
.template-select { max-width: 260px; margin-bottom: 12px; }
.post-block-card { margin-top: 10px; padding: 12px; border: 1px solid #dfe5e1; border-radius: 10px; background: #fff; }
.post-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #34463f; }
.post-block-number { display: inline-grid; width: 22px; height: 22px; margin-right: 6px; place-items: center; border-radius: 50%; background: #e4efe9; color: #2e7d68; font-size: 11px; }
.post-block-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.post-block-fields label, .block-inline-fields label { display: flex; flex-direction: column; gap: 5px; color: #4c5954; font-size: 11px; font-weight: 700; }
.block-inline-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.block-inline-fields .field-wide { grid-column: 1 / -1; }
.block-rows { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.block-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 7px; align-items: center; }
.block-row--timeline { grid-template-columns: 80px 1fr 1.4fr auto; }
.block-row__wide { grid-column: 1 / 3; }
.block-row input { min-width: 0; padding: 8px 9px; border: 1px solid #dfe5e1; border-radius: 7px; }
.icon-action { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #f3dfd6; color: #a75b43; }
.row-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 4px; white-space: nowrap; font-size: 10px !important; }
.row-check input { width: auto; }
.block-add-row { margin-top: 7px; }
.block-toolbar { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.block-toolbar select { width: 180px; padding: 8px; border: 1px solid #dfe5e1; border-radius: 7px; background: #fff; color: #34463f; }
.block-empty { padding: 16px; border: 1px dashed #cfe0d8; border-radius: 8px; color: var(--muted); font-size: 11px; text-align: center; }
.danger-action { color: #a75b43; }
@media (max-width: 900px) {
  .post-block-fields, .block-inline-fields { grid-template-columns: 1fr; }
  .block-row, .block-row--timeline { grid-template-columns: 1fr; }
  .block-row__wide { grid-column: auto; }
}
.checkbox-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.checkbox-grid label { display: flex; flex-direction: row; align-items: center; gap: 5px; min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.checkbox-grid input { width: auto; }
.entity-modal .image-preview { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.entity-modal .image-preview figure { height: 70px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 5px; }

@media (max-width: 1300px) {
  .main { padding-inline: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
