:root {
  --navy-950: #07111f;
  --navy-900: #0b1728;
  --navy-800: #13243b;
  --ink: #18263a;
  --muted: #6e7d91;
  --line: #dce5ef;
  --line-soft: #edf2f7;
  --canvas: #f3f7fb;
  --white: #ffffff;
  --blue: #0a84ff;
  --blue-deep: #0867c8;
  --cyan: #35c5f0;
  --green: #18a56b;
  --amber: #d99524;
  --red: #d84d5f;
  --shadow: 0 18px 50px rgba(20, 46, 78, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--canvas); }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(10,132,255,.25); outline-offset: 2px; }

.auth-screen { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 75% 20%,rgba(37,167,233,.28),transparent 30%), linear-gradient(135deg,#06101e,#0b2746 55%,#0c5d8c); }
.auth-screen.is-hidden { display: none; }
.auth-card { width: min(100%,470px); padding: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; color: #fff; background: rgba(7,22,40,.76); backdrop-filter: blur(22px); box-shadow: 0 28px 90px rgba(0,0,0,.35); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.auth-brand > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; font-weight: 900; background: linear-gradient(135deg,var(--cyan),var(--blue)); }
.auth-brand strong,.auth-brand small { display: block; }
.auth-brand small { margin-top: 4px; color: #96b0cc; }
.auth-card h1 { margin: 7px 0 9px; font-size: 30px; }
.auth-card > p:not(.eyebrow) { color: #a9bdd2; font-size: 12px; line-height: 1.8; }
.auth-card form { display: grid; gap: 14px; margin-top: 24px; }
.auth-card label { display: grid; gap: 8px; color: #d7e5f3; font-size: 11px; font-weight: 800; }
.auth-card input { min-height: 48px; padding: 0 14px; color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
.auth-card form .btn { min-height: 48px; }
.login-error { min-height: 17px; color: #ffb4be; font-size: 10px; }
.prototype-code { margin-top: 22px; padding: 14px; border-radius: 13px; background: rgba(255,255,255,.07); }
.prototype-code span,.prototype-code code,.prototype-code small { display: block; }
.prototype-code span { color: #8ca7c3; font-size: 9px; }
.prototype-code code { margin: 7px 0; color: #77dbff; font-size: 14px; letter-spacing: .05em; }
.prototype-code small { color: #8299b3; font-size: 8px; line-height: 1.6; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0,1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; background: linear-gradient(180deg, var(--navy-950), #0b1b31 72%, #102944); color: #fff; padding: 25px 18px; display: flex; flex-direction: column; z-index: 30; overflow-y: auto; }
.brand-block { display: flex; align-items: center; gap: 12px; padding: 4px 8px 26px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; font-weight: 900; letter-spacing: -1px; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 10px 28px rgba(32,171,255,.3); }
.brand-block strong, .brand-block span { display: block; }
.brand-block strong { font-size: 15px; letter-spacing: .04em; }
.brand-block span { color: #8fa7c4; font-size: 11px; margin-top: 4px; }
.side-nav { display: grid; gap: 4px; }
.nav-section-label { margin: 13px 12px 4px; color: #6f8297; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.nav-section-label:first-child { margin-top: 0; }
.nav-item { min-height: 46px; width: 100%; border: 0; border-radius: 12px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; text-align: left; gap: 8px; padding: 0 13px; color: #9fb2c9; background: transparent; transition: .2s ease; text-decoration: none; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.is-active { color: #fff; background: linear-gradient(90deg, rgba(10,132,255,.3), rgba(45,191,244,.12)); box-shadow: inset 3px 0 var(--cyan); }
.nav-icon { font-size: 18px; text-align: center; }
.nav-count { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; font-size: 11px; background: rgba(255,255,255,.1); }
.sidebar-note { margin-top: 18px; border: 1px solid rgba(145,181,217,.18); border-radius: 14px; padding: 14px; display: flex; gap: 10px; background: rgba(0,0,0,.14); }
.sidebar-note strong { font-size: 12px; }
.sidebar-note p { margin: 5px 0 0; color: #86a0bd; font-size: 10px; line-height: 1.5; }
.status-dot { margin-top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #3ee3a1; box-shadow: 0 0 0 5px rgba(62,227,161,.1); flex: none; }

.workspace { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line-soft); }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; }
.global-search { width: min(450px,42vw); display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 42px; background: #f5f8fb; border: 1px solid #e7edf4; border-radius: 12px; color: #8492a5; }
.global-search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; color: var(--ink); }
.global-search kbd { padding: 3px 7px; border-radius: 6px; background: #fff; border: 1px solid #dce4ed; font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.simulation-badge { padding: 6px 9px; border: 1px solid #e8d9a8; border-radius: 99px; color: #8b6517; background: #fff9e8; font-size: 7px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.simulation-badge::first-letter { color: #e4a11b; }
.user-chip { display: flex; align-items: center; gap: 9px; }
.user-chip strong, .user-chip span { display: block; }
.user-chip strong { font-size: 12px; }
.user-chip div span { color: var(--muted); font-size: 10px; margin-top: 2px; }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid !important; place-items: center; color: #fff; background: linear-gradient(135deg,#273f5f,#0a84ff); }
.logout-button { border: 0; color: #8997a7; background: transparent; font-size: 10px; }
.logout-button:hover { color: var(--red); }

.main-content { padding: 34px; max-width: 1640px; margin: 0 auto; }
.view { display: none; animation: reveal .25s ease; }
.view.is-visible { display: block; }
@keyframes reveal { from { opacity: .25; transform: translateY(6px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.compact-heading { align-items: center; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.page-heading h1 { margin: 0; font-size: clamp(28px,3vw,40px); letter-spacing: -.035em; }
.page-heading p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.btn { min-height: 40px; border-radius: 11px; padding: 0 16px; border: 1px solid transparent; font-weight: 700; font-size: 12px; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg,var(--blue),#15a7e8); box-shadow: 0 8px 22px rgba(10,132,255,.2); }
.btn-secondary { color: #1766aa; background: #eef7ff; border-color: #cfe6fa; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-danger-ghost { color: var(--red); background: #fff4f5; border-color: #f1cbd0; }
.text-button { border: 0; background: transparent; color: var(--blue); font-weight: 700; font-size: 12px; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #f0f4f8; color: #53657a; font-size: 24px; line-height: 1; }

.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { background: #fff; border: 1px solid #e5ebf2; border-radius: var(--radius); padding: 20px; box-shadow: 0 8px 24px rgba(41,68,99,.045); }
.metric-card header { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.metric-card header span:last-child { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: #eff7ff; font-size: 17px; }
.metric-card strong { display: block; margin: 13px 0 6px; font-size: 30px; letter-spacing: -.03em; }
.metric-card small { color: #8391a4; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.8fr); gap: 20px; }
.panel { background: #fff; border: 1px solid #e5ebf2; border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 28px rgba(36,63,93,.045); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 17px; }
.panel-kicker { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.recent-list { display: grid; }
.recent-item { display: grid; grid-template-columns: 46px minmax(0,1fr) auto auto; gap: 13px; align-items: center; min-height: 66px; border-top: 1px solid var(--line-soft); }
.recent-item:first-child { border-top: 0; }
.recent-thumb { width: 46px; height: 40px; border-radius: 9px; background: linear-gradient(135deg,#10263e,#1b95e8); display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 9px; overflow: hidden; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-copy { min-width: 0; }
.recent-copy strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-copy span { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-draft { color: #62728a; background: #eef2f6; }
.status-review { color: #b6730d; background: #fff5dd; }
.status-scheduled { color: #7656d4; background: #f1edff; }
.status-published { color: #12805a; background: #e5f8f0; }
.status-archived { color: #a14955; background: #fdecef; }
.row-action { border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 700; }
.health-ring { width: 128px; height: 128px; border-radius: 50%; margin: 8px auto 22px; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at center,#fff 57%,transparent 59%), conic-gradient(var(--blue) var(--score-angle,0deg),#e7eef5 0); }
.health-ring strong { font-size: 25px; }
.health-ring span { color: var(--muted); font-size: 9px; }
.health-list { display: grid; gap: 10px; }
.health-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #5f6f82; }
.health-list b { color: var(--ink); }
.workflow-panel { margin-top: 20px; }
.workflow-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; }
.workflow-steps div { border: 1px solid #e7edf4; background: #f8fbfd; border-radius: 14px; padding: 15px; display: grid; grid-template-columns: 26px 1fr; gap: 2px 10px; }
.workflow-steps div span { grid-row: 1/3; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--blue); font-size: 10px; font-weight: 900; }
.workflow-steps strong { font-size: 11px; }
.workflow-steps small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.workflow-steps i { color: #9aa9ba; font-style: normal; }

.content-panel { padding: 0; overflow: hidden; }
.article-toolbar { min-height: 68px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-soft); gap: 16px; }
.status-tabs { display: flex; gap: 4px; overflow-x: auto; }
.status-tabs button { border: 0; background: transparent; color: var(--muted); padding: 9px 11px; border-radius: 8px; font-size: 11px; white-space: nowrap; }
.status-tabs button.is-active { color: var(--blue); background: #edf7ff; font-weight: 800; }
.toolbar-controls { display: flex; gap: 8px; }
select, input, textarea { border: 1px solid #dbe5ef; border-radius: 10px; color: var(--ink); background: #fff; }
select { min-height: 38px; padding: 0 30px 0 11px; font-size: 11px; }
.table-wrap { overflow-x: auto; }
.article-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.article-table th { height: 43px; padding: 0 16px; text-align: left; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: #8795a7; background: #f8fafc; }
.article-table td { padding: 14px 16px; border-top: 1px solid var(--line-soft); font-size: 11px; vertical-align: middle; }
.article-cell { display: grid; grid-template-columns: 58px minmax(220px,1fr); gap: 12px; align-items: center; }
.article-thumb { width: 58px; height: 42px; border-radius: 9px; background: linear-gradient(135deg,#122944,#19a7e8); display: grid; place-items: center; color: #fff; overflow: hidden; font-size: 9px; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-title { font-weight: 800; margin-bottom: 5px; max-width: 520px; }
.article-url { color: #8896a8; font-size: 9px; }
.seo-score { display: flex; gap: 7px; align-items: center; font-weight: 800; }
.seo-score span { width: 29px; height: 6px; border-radius: 99px; overflow: hidden; background: #e5ebf2; }
.seo-score span::after { content: ""; display: block; height: 100%; width: var(--seo-width); background: var(--seo-color); border-radius: inherit; }
.table-actions { display: flex; gap: 5px; }
.table-actions button { border: 1px solid #dde6ef; background: #fff; color: #53657a; border-radius: 8px; padding: 6px 8px; font-size: 10px; }
.table-actions button:hover { color: var(--blue); border-color: #a8d6fa; }
.empty-state { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty-state > span { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--blue); background: #edf7ff; font-size: 23px; }
.empty-state h3 { margin: 13px 0 5px; color: var(--ink); font-size: 15px; }
.empty-state p { margin: 0 0 16px; font-size: 11px; }

.site-preview-shell { border-radius: 20px; overflow: hidden; border: 1px solid #dce5ef; background: #fff; box-shadow: var(--shadow); }
.preview-browser-bar { height: 46px; padding: 0 16px; display: flex; gap: 7px; align-items: center; background: #e9eef4; }
.preview-browser-bar > span { width: 9px; height: 9px; border-radius: 50%; background: #fd665c; }
.preview-browser-bar > span:nth-child(2){background:#f8bd41}.preview-browser-bar > span:nth-child(3){background:#36c64f}
.preview-browser-bar div { width: 46%; min-width: 280px; height: 25px; display: grid; place-items: center; margin-left: 12px; border-radius: 7px; background: #fff; color: #8290a1; font-size: 9px; }
.portal-preview { background: #f6faff; }
.portal-header { height: 60px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; color: #16314e; background: #fff; }
.portal-header strong { color: var(--blue); font-size: 13px; letter-spacing: .08em; }
.portal-header nav { font-size: 10px; }
.portal-hero { min-height: 240px; display: grid; place-content: center; text-align: center; color: #fff; background: radial-gradient(circle at 70% 25%,rgba(39,190,255,.65),transparent 28%), linear-gradient(135deg,#06162c,#0e4b80 55%,#0a90ce); }
.portal-hero p { margin: 0; font-size: 10px; letter-spacing: .22em; color: #8bdfff; }
.portal-hero h2 { margin: 8px 0; font-size: clamp(26px,4vw,44px); }
.portal-hero span { font-size: 11px; color: #cee9fb; }
.portal-news { padding: 40px 5vw 54px; }
.portal-section-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.portal-section-title small { color: var(--blue); font-size: 8px; letter-spacing: .16em; font-weight: 900; }
.portal-section-title h3 { margin: 4px 0 0; font-size: 23px; }
.portal-section-title a { color: var(--blue); font-size: 10px; }
.portal-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.portal-card { border-radius: 15px; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(24,52,87,.08); }
.portal-card-cover { aspect-ratio: 16/9; display: grid; align-items: end; padding: 13px; color: #fff; background: linear-gradient(135deg,#102b48,#139edc); background-size: cover; background-position: center; }
.portal-card-cover span { justify-self: start; padding: 5px 8px; border-radius: 99px; font-size: 8px; background: rgba(6,18,35,.7); backdrop-filter: blur(8px); }
.portal-card-body { padding: 15px; }
.portal-card-body h4 { margin: 0 0 8px; line-height: 1.5; font-size: 12px; }
.portal-card-body p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.portal-card-body footer { margin-top: 13px; display: flex; justify-content: space-between; color: #8492a5; font-size: 8px; }

.two-column-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.taxonomy-list { display: grid; gap: 8px; }
.taxonomy-row { min-height: 45px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.taxonomy-row span { color: var(--muted); }
.taxonomy-row button { border: 0; background: transparent; color: var(--red); }
.inline-form { display: flex; gap: 8px; margin-top: 16px; }
.inline-form input { flex: 1; min-height: 40px; padding: 0 12px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span { padding: 7px 10px; border-radius: 999px; color: #42617f; background: #eff5fa; font-size: 10px; }
.helper-text { color: var(--muted); font-size: 10px; line-height: 1.6; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 14px; }
.media-item { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.media-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.media-item div { padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.media-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.media-item button { border: 0; background: transparent; color: var(--red); }
.members-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.65fr); gap: 20px; }
.member-list { display: grid; }
.member-row { min-height: 76px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; gap: 13px; align-items: center; border-top: 1px solid var(--line-soft); }
.member-row:first-child { border-top: 0; }
.member-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-weight: 900; background: linear-gradient(135deg,#173a5d,#0a84ff); }
.member-info strong,.member-info span { display: block; }
.member-info strong { font-size: 12px; }
.member-info span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.role-pill { padding: 5px 9px; border-radius: 99px; color: #1769a9; background: #edf7ff; font-size: 9px; font-weight: 800; }
.role-pill.is-off { color: #8a5960; background: #f9ecee; }
.member-actions { display: flex; gap: 6px; }
.member-actions button { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: #52657a; background: #fff; font-size: 9px; }
.member-actions button[data-remove-member] { color: var(--red); }
.member-actions button:disabled { cursor: not-allowed; color: #a4afbc; border-color: #e4e9ef; background: #f5f7f9; opacity: .72; }
.member-form { display: grid; gap: 14px; }
.member-form label { display: grid; gap: 7px; color: #44566c; font-size: 10px; font-weight: 800; }
.member-form input,.member-form select { width: 100%; min-height: 42px; padding: 0 11px; }
.code-field { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.code-field button { border: 1px solid #cfe4f6; border-radius: 9px; color: var(--blue-deep); background: #eff8ff; font-size: 9px; font-weight: 800; }
.role-guide { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.role-guide strong { font-size: 11px; }
.role-guide p { margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.audit-panel { margin-top: 20px; }
.audit-list { display: grid; }
.audit-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.audit-row:first-child { border-top: 0; }
.audit-row strong { display: block; font-size: 10px; }
.audit-row span { color: var(--muted); font-size: 9px; }
.trash-list { display: grid; }
.trash-row { min-height: 64px; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: center; }
.trash-row:last-child { border-bottom: 0; }
.trash-row strong { display: block; font-size: 12px; }
.trash-row span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.trash-row div:last-child { display: flex; gap: 8px; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,15,28,.62); backdrop-filter: blur(5px); }
.editor-sheet { position: absolute; inset: 16px; display: flex; flex-direction: column; border-radius: 19px; overflow: hidden; background: #f4f7fa; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.editor-header { min-height: 72px; padding: 0 20px 0 26px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.editor-header h2 { margin: 3px 0 0; font-size: 18px; }
.draft-indicator { color: var(--green); font-size: 9px; }
.editor-header-actions { display: flex; gap: 8px; align-items: center; }
.editor-layout { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0,1fr) 330px; overflow: auto; }
.article-form { padding: 28px clamp(22px,5vw,70px) 80px; background: #fff; }
.editor-sidebar { padding: 20px; display: grid; align-content: start; gap: 14px; background: #f4f7fa; border-left: 1px solid var(--line); }
.field { position: relative; margin-bottom: 20px; }
.field > label, .stacked-label { display: grid; gap: 7px; font-size: 10px; font-weight: 800; color: #44566c; }
.field em { color: var(--red); font-style: normal; }
.field input, .field textarea, .stacked-label input, .stacked-label select { width: 100%; padding: 11px 13px; line-height: 1.6; resize: vertical; }
.field input, .stacked-label input, .stacked-label select { min-height: 42px; }
.title-field textarea { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 45px 12px 0; font-size: clamp(22px,3vw,34px); font-weight: 800; line-height: 1.35; letter-spacing: -.025em; outline: 0; resize: none; }
.char-count { position: absolute; right: 8px; bottom: 8px; color: #9aa8b8; font-size: 8px; }
.slug-input { min-height: 42px; display: flex; align-items: center; border: 1px solid #dbe5ef; border-radius: 10px; overflow: hidden; }
.slug-input span { padding-left: 12px; color: #8290a2; font-size: 10px; white-space: nowrap; }
.slug-input input { border: 0; min-width: 0; padding-left: 3px; }
.field > small, .stacked-label + small, .editor-card > small { display: block; margin-top: 6px; color: #8997a8; font-size: 9px; line-height: 1.5; }
.editor-toolbar { height: 39px; display: flex; gap: 4px; align-items: center; padding: 0 8px; border: 1px solid #dbe5ef; border-bottom: 0; border-radius: 10px 10px 0 0; background: #f8fafc; }
.editor-toolbar button { height: 27px; min-width: 28px; padding: 0 8px; border: 0; border-radius: 6px; color: #52657a; background: transparent; font-size: 10px; }
.editor-toolbar button:hover { background: #e9f2f9; color: var(--blue); }
.editor-toolbar .insert-image-button { margin-left: auto; color: #0b78c8; background: #eaf6ff; font-weight: 800; }
.body-editor { border-radius: 0 0 10px 10px !important; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 12px; }
.form-section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section-title { margin-bottom: 20px; }
.form-section-title span { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.form-section-title h3 { margin: 4px 0 0; font-size: 18px; }
.serp-preview { padding: 16px; border: 1px solid #dce6ef; border-radius: 13px; background: #fafcff; }
.serp-preview small, .serp-preview a, .serp-preview span, .serp-preview p { display: block; }
.serp-preview small { color: #7f8ea0; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.serp-preview a { color: #1a0dab; font-size: 15px; }
.serp-preview span { color: #198038; font-size: 9px; margin: 5px 0; }
.serp-preview p { color: #566475; font-size: 10px; margin: 0; line-height: 1.6; }
.editor-card { padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #dfe7ef; }
.editor-card h3 { margin: 0 0 14px; font-size: 12px; }
.editor-card-note { margin: -7px 0 13px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.target-site-selector { display: grid; gap: 10px; }
.target-site-item { border: 1px solid #dfe7ef; border-radius: 12px; background: #f9fbfd; overflow: hidden; transition: .2s ease; }
.target-site-item.is-selected { border-color: #8ecdf6; background: #f3faff; box-shadow: 0 0 0 2px rgba(20,151,232,.06); }
.target-site-item.is-disabled { border-color: #d8dee6; background: #f2f4f7; opacity: .82; }
.target-site-item.is-disabled .target-site-head { cursor: not-allowed; }
.target-site-item.is-disabled .target-site-fields { display: none; }
.target-site-head { display: flex; gap: 10px; align-items: flex-start; padding: 12px; cursor: pointer; }
.target-site-head input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--blue); }
.target-site-head span, .target-site-head strong, .target-site-head small { display: block; }
.target-site-head strong { color: #203750; font-size: 10px; }
.target-site-head small { margin-top: 3px; color: #8190a2; font-size: 7px; line-height: 1.45; }
.target-site-fields { display: none; gap: 9px; padding: 0 12px 12px 39px; }
.target-site-item.is-selected .target-site-fields { display: grid; }
.target-site-fields label { color: #63748a; font-size: 8px; font-weight: 700; }
.target-site-fields input, .target-site-fields textarea, .target-site-fields select { width: 100%; margin-top: 5px; padding: 8px 9px; border: 1px solid #dbe5ee; border-radius: 8px; background: #fff; color: #20344c; font: inherit; font-weight: 500; resize: vertical; }
.mini-slug { display: flex; align-items: center; margin-top: 5px; border: 1px solid #dbe5ee; border-radius: 8px; overflow: hidden; background: #fff; }
.mini-slug span { padding-left: 8px; color: #8b9aac; font-size: 8px; white-space: nowrap; }
.mini-slug input { margin: 0; border: 0; border-radius: 0; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.heading-actions select { min-width: 180px; height: 38px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 10px; color: #32485f; background: #fff; }
.site-chips { display: flex; flex-wrap: wrap; gap: 5px; min-width: 100px; }
.site-chip { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 999px; background: #eef3f7; color: #607286; font-size: 8px; font-weight: 800; white-space: nowrap; }
.site-chip.is-live { background: #e7f7f0; color: #087553; }
.site-chip.is-empty { background: #fff2e4; color: #9a6819; }
.sites-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.8fr); gap: 20px; align-items: start; }
.site-list { display: grid; gap: 10px; }
.site-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line-soft); border-radius: 13px; }
.site-logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#057ad1,#21b6ef); font-weight: 900; }
.site-info strong, .site-info span, .site-info small { display: block; }
.site-info strong { color: #203750; font-size: 11px; }
.site-info span { margin-top: 4px; color: #63758a; font-size: 8px; }
.site-info small { margin-top: 3px; color: #91a0b1; font-size: 7px; }
.site-actions { display: flex; gap: 6px; }
.site-actions button { padding: 6px 9px; border: 1px solid #d8e3ec; border-radius: 8px; color: #64758a; background: #fff; font-size: 8px; }
.site-actions button:disabled { opacity: .4; cursor: not-allowed; }
.form-actions { display: flex; gap: 8px; }
.form-actions .btn { flex: 1; }
.stacked-label { margin-top: 12px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.toggle-row:first-of-type { margin-top: 14px; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { font-size: 10px; }
.toggle-row small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.toggle-row input { width: 38px; height: 21px; accent-color: var(--blue); }
.content-state-display { display: grid; gap: 6px; padding: 14px 15px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f7fafc; }
.content-state-display > span, .content-state-display small { color: var(--muted); }
.content-state-display strong { color: var(--navy); font-size: 16px; }
.cover-drop { min-height: 150px; display: grid; place-items: center; border: 1px dashed #afc3d5; border-radius: 12px; background: #f7fafc; cursor: pointer; overflow: hidden; }
#coverPreview { width: 100%; height: 100%; min-height: 148px; display: grid; place-content: center; text-align: center; color: #8493a5; }
#coverPreview span, #coverPreview strong, #coverPreview small { display: block; }
#coverPreview span { color: var(--blue); font-size: 25px; }
#coverPreview strong { color: #506277; font-size: 10px; margin: 6px 0 3px; }
#coverPreview small { font-size: 8px; }
#coverPreview img { width: 100%; height: 148px; object-fit: cover; display: block; }
.card-title-row { display: flex; justify-content: space-between; }
.card-title-row strong { color: var(--blue); }
.editor-checklist { display: grid; gap: 8px; }
.check-item { display: flex; gap: 8px; align-items: center; color: #778699; font-size: 9px; }
.check-item::before { content: "×"; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; color: var(--red); background: #fff0f2; font-weight: 900; }
.check-item.is-ok { color: #385e52; }
.check-item.is-ok::before { content: "✓"; color: var(--green); background: #e8f8f1; }

.preview-sheet { position: absolute; inset: 28px; border-radius: 18px; overflow: hidden; background: #dfe7ef; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.preview-toolbar { min-height: 58px; padding: 0 16px 0 22px; background: #fff; display: flex; justify-content: space-between; align-items: center; }
.preview-toolbar > div { display: flex; align-items: center; gap: 10px; }
.preview-toolbar strong { font-size: 13px; }
.preview-toolbar span { color: var(--muted); font-size: 9px; }
.preview-size { height: 32px; border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 0 11px; font-size: 10px; }
.preview-size.is-active { color: var(--blue); background: #edf7ff; border-color: #bcdcf6; }
.preview-stage { flex: 1; overflow: auto; padding: 28px; }
.public-article { width: min(100%,1080px); min-height: 100%; margin: 0 auto; background: #fff; box-shadow: 0 18px 50px rgba(30,56,87,.13); transition: width .2s ease; }
.public-article.is-mobile { width: 390px; }
.public-header { height: 62px; padding: 0 clamp(20px,5vw,56px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8eef4; }
.public-header strong { color: var(--blue); font-size: 12px; }
.public-header nav { color: #617187; font-size: 9px; }
.public-article-main { width: min(780px,calc(100% - 40px)); margin: 0 auto; padding: 48px 0 70px; }
.public-breadcrumb { color: #8a98aa; font-size: 9px; }
.public-article-main h1 { margin: 15px 0 12px; font-size: clamp(27px,4.2vw,43px); line-height: 1.3; letter-spacing: -.035em; }
.public-meta { display: flex; gap: 12px; color: #8795a7; font-size: 9px; }
.public-cover { aspect-ratio: 16/8.5; margin: 28px 0; border-radius: 17px; background: linear-gradient(135deg,#071a30,#0b75bb 68%,#35c5f0); background-size: cover; background-position: center; display: grid; place-items: center; color: rgba(255,255,255,.75); }
.public-cover span { font-size: 10px; letter-spacing: .2em; }
.public-lead { color: #53657a; font-size: 14px; line-height: 1.9; padding: 16px 18px; border-left: 3px solid var(--blue); background: #f4f9fd; }
.public-body { font-size: 14px; line-height: 2; color: #28394e; }
.public-body h2 { margin: 30px 0 8px; font-size: 21px; }
.public-body blockquote { margin: 20px 0; padding: 10px 16px; color: #53657a; background: #f4f7fa; border-left: 3px solid #9fb4c8; }
.public-body a { color: var(--blue); }
.public-body figure { margin: 28px 0; }
.public-body figure img { display: block; width: 100%; max-height: 620px; object-fit: cover; border-radius: 14px; box-shadow: 0 12px 32px rgba(22,49,78,.12); }
.public-body figcaption { margin-top: 8px; color: #7b899a; font-size: 9px; line-height: 1.6; text-align: center; }
.public-source { margin-top: 32px; padding-top: 17px; border-top: 1px solid var(--line); color: #8391a3; font-size: 9px; }
.public-article.is-mobile .public-header nav { display: none; }
.public-article.is-mobile .public-article-main { padding-top: 30px; }
.public-article.is-mobile .public-article-main h1 { font-size: 27px; }

/* Content operations pipeline */
.pipeline-strip { display: grid; grid-template-columns: 1.2fr repeat(4,1fr); align-items: stretch; margin: 0 0 20px; overflow: hidden; border: 1px solid #dfe8f1; border-radius: 17px; background: #fff; box-shadow: 0 8px 26px rgba(36,63,93,.05); }
.pipeline-title { padding: 17px 20px; display: grid; align-content: center; color: #fff; background: linear-gradient(135deg,#0b2440,#075d99); }
.pipeline-title span { color: #71d6ff; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.pipeline-title strong { margin-top: 4px; font-size: 12px; }
.pipeline-strip button { position: relative; min-width: 0; padding: 14px 18px; border: 0; border-right: 1px solid #edf2f7; display: flex; gap: 10px; align-items: center; text-align: left; color: #566b82; background: #fff; }
.pipeline-strip button:hover { background: #f6fbff; }
.pipeline-strip button i { width: 25px; height: 25px; flex: none; border-radius: 8px; display: grid; place-items: center; color: #168ad3; background: #eaf7ff; font-size: 9px; font-style: normal; font-weight: 900; }
.pipeline-strip button span { display: grid; gap: 2px; font-size: 9px; white-space: nowrap; }
.pipeline-strip button b { color: #18334f; font-size: 18px; line-height: 1; }
.pipeline-strip button em { position: absolute; right: -6px; z-index: 2; color: #aab8c7; font-style: normal; }

.intake-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 20px; align-items: start; }
.compact-select { display: flex; gap: 8px; align-items: center; color: #74869b; font-size: 9px; white-space: nowrap; }
.collection-list { display: grid; }
.collection-item { display: grid; grid-template-columns: 42px minmax(0,1fr) 128px; gap: 14px; align-items: center; min-height: 112px; padding: 16px 20px; border-top: 1px solid var(--line-soft); }
.collection-item:first-child { border-top: 0; }
.source-logo { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#163858,#149ee1); font-size: 14px; font-weight: 900; }
.collection-copy { min-width: 0; }
.collection-meta,.collection-facts { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #8492a4; font-size: 8px; }
.collection-meta span:first-child { color: #157cbe; font-weight: 900; }
.collection-copy h3 { margin: 8px 0; color: #203750; font-size: 12px; line-height: 1.55; }
.collection-state { display: grid; justify-items: end; gap: 7px; }
.collection-state a { color: #708197; font-size: 8px; text-decoration: none; }
.feed-status { padding: 5px 8px; border-radius: 99px; font-size: 8px; font-weight: 900; }
.feed-collected { color: #92600f; background: #fff3d9; }
.feed-processing { color: #156aa6; background: #e9f6ff; }
.feed-ready,.feed-queued { color: #087553; background: #e7f7f0; }
.feed-needs_check { color: #a33d4b; background: #fdecef; }
.feed-ignored { color: #68778a; background: #edf1f5; }
.btn-small { min-height: 32px; padding: 0 11px; border-radius: 8px; font-size: 9px; }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.danger-text { color: var(--red); font-size: 8px; }
.source-health-list { display: grid; }
.source-health-row { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.source-health-row:first-child { border-top: 0; padding-top: 0; }
.source-health-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #a7b1bd; box-shadow: 0 0 0 4px rgba(167,177,189,.12); }
.source-health-dot.is-healthy { background: #1ab378; box-shadow: 0 0 0 4px rgba(26,179,120,.12); }
.source-health-dot.is-checking { background: #d99a24; box-shadow: 0 0 0 4px rgba(217,154,36,.12); }
.source-health-row strong,.source-health-row small,.source-health-row em { display: block; }
.source-health-row strong { color: #263c55; font-size: 10px; }
.source-health-row small { margin-top: 4px; color: #718197; font-size: 8px; }
.source-health-row em { margin-top: 4px; color: #9aa6b4; font-size: 7px; font-style: normal; }
.mini-switch input { display: none; }
.mini-switch span { width: 31px; height: 18px; padding: 2px; display: block; border-radius: 20px; background: #cfd8e1; transition: .2s; }
.mini-switch span::after { content:""; width: 14px; height: 14px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.16); transition: .2s; }
.mini-switch input:checked + span { background: #169bdb; }
.mini-switch input:checked + span::after { transform: translateX(13px); }
.source-policy { margin-top: 18px; padding: 14px; border-radius: 12px; color: #d9edfb; background: linear-gradient(135deg,#102b47,#135c88); }
.source-policy strong { font-size: 10px; }
.source-policy p { margin: 6px 0 0; color: #a8c9df; font-size: 8px; line-height: 1.65; }

.queue-indicator { padding: 9px 12px; border: 1px solid #d8e9e2; border-radius: 99px; color: #26755a; background: #f0fbf7; font-size: 9px; }
.queue-indicator i { width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #20b27b; box-shadow: 0 0 0 4px rgba(32,178,123,.1); }
.queue-indicator.is-simulation { color: #8b6517; border-color: #ead9a5; background: #fff9e8; }
.queue-indicator.is-simulation i { background: #dda01f; box-shadow: 0 0 0 4px rgba(221,160,31,.11); }
.simulation-inline { padding: 2px 5px; border-radius: 5px; color: #8c671c !important; background: #fff5d9; font-weight: 900; }
.ai-summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 18px; }
.ai-summary-grid > div { min-height: 92px; padding: 16px; border: 1px solid #e2eaf2; border-radius: 15px; display: grid; align-content: center; background: #fff; }
.ai-summary-grid span,.ai-summary-grid small { color: #8290a2; font-size: 8px; }
.ai-summary-grid strong { margin: 4px 0; color: #183650; font-size: 23px; }
.ai-task-list { display: grid; gap: 14px; }
.ai-task { padding: 21px; border: 1px solid #dfe8f1; border-radius: 17px; background: #fff; box-shadow: 0 8px 26px rgba(36,63,93,.045); }
.ai-task.is-risky { border-color: #f0cbd0; box-shadow: inset 4px 0 #d75c6a; }
.ai-task header,.ai-task footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ai-task h3 { margin: 5px 0 0; color: #203750; font-size: 15px; }
.risk-pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 99px; font-size: 8px; font-weight: 900; white-space: nowrap; }
.risk-low { color: #087553; background: #e7f7f0; }
.risk-high { color: #a03e4a; background: #fdecef; }
.ai-comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 18px 0 12px; }
.ai-comparison div { min-height: 72px; padding: 12px; border-radius: 11px; background: #f5f8fb; }
.ai-comparison div:last-child { background: #eef8ff; }
.ai-comparison span { color: #8492a4; font-size: 8px; font-weight: 900; }
.ai-comparison p { margin: 6px 0 0; color: #344a61; font-size: 10px; line-height: 1.55; }
.ai-comparison i { color: #7fa6c4; font-style: normal; }
.ai-note { margin: 0 0 15px; color: #63758b; font-size: 9px; }
.ai-task footer { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.ai-task footer > div:last-child { display: flex; gap: 7px; }
.ai-signals { display: flex; gap: 8px; }
.ai-signals span { padding: 5px 8px; border-radius: 7px; color: #526c84; background: #f0f4f8; font-size: 8px; }
.processing-task { display: grid; grid-template-columns: 48px 1fr; gap: 15px; align-items: center; }
.processing-task h3 { margin: 5px 0 10px; }
.processing-task p { margin: 8px 0 0; color: #8190a2; font-size: 8px; }
.ai-progress-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg,#7658e8,#1b9ddb); font-size: 20px; animation: ai-pulse 1s infinite alternate; }
.progress-line { height: 6px; overflow: hidden; border-radius: 99px; background: #e6edf4; }
.progress-line i { width: 63%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#7759e5,#25abe5); animation: ai-progress 1s infinite alternate; }
@keyframes ai-pulse { to { transform: scale(1.05); box-shadow: 0 8px 20px rgba(72,118,210,.25); } }
@keyframes ai-progress { to { width: 82%; } }

.review-board { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.review-card { padding: 20px; border: 1px solid #e0e8f0; border-radius: 17px; background: #fff; box-shadow: 0 9px 28px rgba(36,63,93,.05); }
.review-card.is-blocked { border-color: #edcdd2; box-shadow: inset 4px 0 #d66a76, 0 9px 28px rgba(36,63,93,.05); }
.review-card header,.review-card footer { display: flex; justify-content: space-between; gap: 16px; }
.review-card h2 { margin: 6px 0 0; color: #1e3650; font-size: 15px; line-height: 1.5; }
.review-card > p { min-height: 42px; color: #68798d; font-size: 9px; line-height: 1.7; }
.review-score { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-content: center; text-align: center; color: #0d7fbd; background: #eaf7ff; font-size: 17px; font-weight: 900; }
.review-score small { display: block; color: #6e93ab; font-size: 7px; font-weight: 700; }
.review-meta,.review-checks { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.review-meta > span { padding: 5px 7px; border-radius: 7px; color: #5b7086; background: #f1f5f8; font-size: 8px; }
.review-checks { padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.review-checks span { color: #a16a24; font-size: 8px; }
.review-checks span::before { content: "○"; margin-right: 4px; }
.review-checks span.is-ok { color: #16815e; }
.review-checks span.is-ok::before { content: "✓"; }
.target-decision-grid { display: grid; gap: 7px; margin: 13px 0; }
.target-decision { display: grid; grid-template-columns: minmax(90px,1fr) minmax(145px,auto); align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #e5ebf1; border-radius: 10px; background: #f8fafc; }
.target-decision > span { color: #405a72; font-size: 9px; font-weight: 900; }
.target-decision select { min-height: 32px; border-radius: 8px; font-size: 8px; }
.publish-blockers { margin: 12px 0; padding: 11px 12px; border-radius: 10px; color: #934653; background: #fff0f2; }
.publish-blockers strong,.publish-blockers span { display: block; }
.publish-blockers strong { font-size: 9px; }
.publish-blockers span { margin-top: 5px; color: #aa6871; font-size: 8px; line-height: 1.55; }
.publish-ready { margin: 12px 0; padding: 9px 11px; border-radius: 9px; color: #137b5a; background: #eaf8f2; font-size: 8px; font-weight: 900; }
.review-note { margin: 12px 0; padding: 11px; border-left: 3px solid #d99a24; border-radius: 0 9px 9px 0; background: #fff9ea; }
.review-note strong { color: #7b5b1c; font-size: 8px; }
.review-note p { margin: 4px 0 0; color: #8b713e; font-size: 8px; line-height: 1.55; }
.review-card footer { align-items: center; color: #8996a7; font-size: 8px; }
.review-card footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }

.publication-summary { min-height: 88px; padding: 14px 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; border-bottom: 1px solid var(--line-soft); background: #f8fbfd; }
.publication-summary > div { padding: 8px 15px; border-left: 2px solid #d8e5ef; display: grid; align-content: center; }
.publication-summary > div:first-child { border-left-color: #1cb27b; }
.publication-summary span,.publication-summary small { color: #7e8d9e; font-size: 8px; }
.publication-summary strong { margin-top: 3px; color: #223b55; font-size: 20px; }
.publication-table strong,.publication-table small { display: block; }
.table-subtitle { margin-top: 5px; color: #8a98a8; font-size: 8px; }
.remote-url { max-width: 220px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4d718c; font-size: 8px; }
.seo-delivery { display: flex; flex-wrap: wrap; gap: 4px; }
.seo-delivery span { padding: 4px 5px; border-radius: 6px; color: #087553; background: #e7f7f0; font-size: 7px; }
.seo-delivery.is-pending span { color: #7d6a3b; background: #fff5d9; }
.simulation-status { padding: 5px 8px; border-radius: 99px; color: #80601d; background: #fff4d7; font-size: 8px; font-weight: 900; white-space: nowrap; }
.evidence-card { border-color: #bcdff3; background: linear-gradient(180deg,#fff,#f3faff); }
.evidence-source { padding: 11px; border-radius: 10px; background: #fff; }
.evidence-source span,.evidence-source strong,.evidence-source small { display: block; }
.evidence-source span { color: #8492a3; font-size: 7px; }
.evidence-source strong { margin: 5px 0; color: #29425b; font-size: 9px; line-height: 1.5; }
.evidence-source small { color: #8191a2; font-size: 7px; }
.evidence-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 10px 0; }
.evidence-stats span { padding: 8px 4px; border-radius: 8px; text-align: center; color: #74869a; background: #eaf4fa; font-size: 7px; }
.evidence-stats b { display: block; color: #146eaa; font-size: 11px; }
.evidence-original { margin: 10px 0; border: 1px solid #dce8f0; border-radius: 9px; background: #fff; }
.evidence-original summary { padding: 9px 10px; color: #31607f; font-size: 8px; font-weight: 900; cursor: pointer; }
.evidence-original p { margin: 0; padding: 0 10px 10px; color: #62758a; font-size: 8px; line-height: 1.7; }
.evidence-changes { display: grid; gap: 5px; margin: 10px 0; padding: 10px; border-radius: 9px; background: #edf7fd; }
.evidence-changes strong { color: #2c6488; font-size: 8px; }
.evidence-changes span { color: #55758c; font-size: 7px; }
.evidence-review-note { margin: 10px 0; padding: 10px; border-radius: 9px; color: #815f1c; background: #fff7e2; }
.evidence-review-note strong { font-size: 8px; }
.evidence-review-note p { margin: 4px 0 0; font-size: 8px; line-height: 1.55; }
.evidence-card > a { color: #167cbb; font-size: 8px; text-decoration: none; }

.toast-region { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 10px; }
.toast { min-width: 280px; max-width: 380px; padding: 14px 16px; border-radius: 13px; color: #fff; background: #10243b; box-shadow: var(--shadow); animation: toast-in .25s ease; font-size: 11px; }
.toast strong { display: block; margin-bottom: 4px; }
.toast span { color: #bdd0e3; }
.toast.success { background: #0c654b; }
.toast.warning { background: #8a5c12; }
@keyframes toast-in { from { opacity:0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: .2s ease; box-shadow: var(--shadow); }
  .sidebar.is-open { transform: translateX(0); }
  .workspace { grid-column: 1; }
  .mobile-menu { display: block; }
  .dashboard-grid, .two-column-panels, .members-layout, .sites-layout, .intake-layout { grid-template-columns: 1fr; }
  .pipeline-strip { grid-template-columns: repeat(4,1fr); }
  .pipeline-title { grid-column: 1/-1; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps i { transform: rotate(90deg); justify-self: center; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 16px; }
  .global-search { width: auto; flex: 1; margin: 0 12px; }
  .global-search kbd, .topbar .btn, .user-chip div, .simulation-badge { display: none; }
  .main-content { padding: 22px 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { padding: 15px; }
  .metric-card strong { font-size: 24px; }
  .article-toolbar { align-items: stretch; flex-direction: column; padding: 14px; }
  .toolbar-controls { width: 100%; }
  .toolbar-controls select { flex: 1; }
  .portal-card-grid { grid-template-columns: 1fr; }
  .pipeline-strip { grid-template-columns: 1fr 1fr; }
  .pipeline-strip button em { display: none; }
  .ai-summary-grid,.publication-summary { grid-template-columns: 1fr 1fr; }
  .review-board { grid-template-columns: 1fr; }
  .target-decision { grid-template-columns: 1fr; }
  .collection-item { grid-template-columns: 38px minmax(0,1fr); }
  .collection-state { grid-column: 2; justify-items: start; grid-template-columns: repeat(3,auto); align-items: center; }
  .ai-comparison { grid-template-columns: 1fr; }
  .ai-comparison > i { transform: rotate(90deg); justify-self: center; }
  .ai-task footer { align-items: flex-start; flex-direction: column; }
  .portal-header nav { display: none; }
  .editor-sheet { inset: 0; border-radius: 0; }
  .editor-header { padding: 10px 12px; }
  .editor-header-actions .btn-ghost, .editor-header-actions .btn-secondary { display: none; }
  .article-form { padding: 22px 16px 60px; }
  .preview-sheet { inset: 0; border-radius: 0; }
  .preview-stage { padding: 12px; }
  .public-article.is-mobile { width: 100%; }
  .preview-size { display: none; }
  .preview-browser-bar div { min-width: 0; width: 75%; }
  .member-row { grid-template-columns: 38px minmax(0,1fr) auto; }
  .member-actions { grid-column: 2/-1; padding-bottom: 12px; }
  .heading-actions { width: 100%; }
  .heading-actions select { min-width: 0; flex: 1; }
  .site-row { grid-template-columns: 40px minmax(0,1fr); }
  .site-actions { grid-column: 2/-1; }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }
  .editor-header h2 { font-size: 14px; }
  .editor-header-actions .btn { padding: 0 10px; }
  .pipeline-strip,.ai-summary-grid,.publication-summary { grid-template-columns: 1fr; }
  .collection-state { grid-template-columns: auto auto; }
}
