:root{--brand-red:#c9202f;--brand-red-dark:#a91623;--brand-black:#141414;--paper:#f5f5f2;--white:#fff;--line:#deded8;--muted:#6d6d67;--soft:#ecece8;--green:#19713e;--amber:#9b5c00;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--brand-black);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,#fbfbfa 0,var(--paper) 100%);color:var(--brand-black)}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.topbar{min-height:76px;padding:13px clamp(16px,4vw,54px);display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.93);backdrop-filter:blur(14px);position:sticky;top:0;z-index:20}
.brand-link{display:flex;align-items:center;gap:10px;min-width:max-content}.brand-logo{width:48px;height:48px;object-fit:contain;display:block}.brand-copy{display:flex;flex-direction:column}
.brand-kicker,.eyebrow{font-size:10px;font-weight:850;letter-spacing:.13em;text-transform:uppercase;color:var(--brand-red)}
.brand-title{font-size:17px;font-weight:850;margin-top:3px}
.main-nav{display:flex;gap:8px;margin-inline:auto}
.main-nav a{padding:9px 12px;border-radius:10px;color:#4d4d49;font-size:14px;font-weight:700}
.main-nav a:hover{background:var(--soft);color:var(--brand-black)}
.topbar-actions,.card-head-actions,.media-actions,.detail-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.page-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:clamp(28px,5vw,58px) 0 72px}
.ghost-button,.primary-button,.danger-button,.primary-link,.ghost-link{border:0;border-radius:11px;padding:10px 15px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.ghost-button,.ghost-link{background:var(--soft);color:#30302d}
.primary-button,.primary-link{background:var(--brand-red);color:white}
.primary-button:hover,.primary-link:hover{background:var(--brand-red-dark)}
.danger-button{background:#fff0f0;color:#9c1721;border:1px solid #e9b8bc}
.auto-width{width:auto!important}
.primary-link.small{padding:8px 11px;font-size:13px}
.success-box,.error-box{padding:13px 16px;border-radius:12px;margin-bottom:20px;line-height:1.6}
.success-box{background:#edf8f1;border:1px solid #bfdec9;color:#145f34}
.error-box{background:#fff0f0;border:1px solid #e8c0c0;color:#92202a}
.muted{color:var(--muted)}
.section-head,.dashboard-head{display:flex;justify-content:space-between;align-items:flex-end;gap:26px;margin-bottom:28px}
.section-head h1,.dashboard-head h1{font-size:clamp(34px,5vw,56px);line-height:1.08;letter-spacing:-.035em;margin:9px 0}
.section-head p,.dashboard-head p,.card p{line-height:1.75;color:#595954}
.back-link{display:inline-block;color:var(--muted);font-size:13px;font-weight:750;margin-bottom:18px}
.content-detail-head h1{font-size:clamp(32px,4vw,48px)}
.card,.editor-card,.table-card,.stat-card,.account-chip{background:var(--white);border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 34px rgba(0,0,0,.035)}
.card,.editor-card{padding:clamp(20px,3vw,30px)}
.card h2{margin:7px 0 18px;font-size:22px}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.filter-chip{padding:9px 12px;border-radius:999px;background:white;border:1px solid var(--line);font-size:12px;font-weight:750;color:#55554f}
.filter-chip.active{background:var(--brand-black);border-color:var(--brand-black);color:white}
.table-card{overflow:hidden}
.content-table{overflow-x:auto}
.content-row{display:grid;grid-template-columns:minmax(190px,2fr) .8fr 1.25fr 1.15fr 1.05fr auto;align-items:center;gap:14px;padding:15px 18px;border-bottom:1px solid #eeeeea;min-width:930px;font-size:13px}
.content-row:last-child{border-bottom:0}
.content-row-head{background:#fafaf8;color:var(--muted);font-size:11px;font-weight:850;text-transform:uppercase}
.text-link{color:var(--brand-red);font-weight:800}
.text-link:hover{text-decoration:underline}
.status-badge{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:850;line-height:1.25}
.status-draft{background:#eee;color:#555}
.status-pending_review{background:#fff0d7;color:#8a5200}
.status-changes_requested{background:#ffe6e7;color:#9a2430}
.status-approved{background:#e5f5eb;color:#176b3a}
.status-published{background:#e8e8e8;color:#222}
.editor-card{max-width:860px;display:grid;gap:20px}
.field{display:grid;gap:8px}
.field-label,.stack label>span{font-size:12px;font-weight:850;color:#494944}
.field-label em{font-style:normal;font-weight:500;color:var(--muted)}
.field input,.field textarea,.field select,.stack input[type=email],.stack input[type=password],.stack input[type=url],.stack textarea{width:100%;border:1px solid #ccccc6;border-radius:11px;background:#fcfcfb;padding:12px 13px;outline:none;color:var(--brand-black)}
.field textarea,.stack textarea{resize:vertical;line-height:1.65}
.field input:focus,.field textarea:focus,.field select:focus,.stack input:focus,.stack textarea:focus{border-color:#999991;box-shadow:0 0 0 3px rgba(201,32,47,.08)}
.field small{color:var(--muted);line-height:1.6}
.static-value{padding:12px 13px;border-radius:11px;background:var(--soft)}
.form-actions{padding-top:5px}
.detail-grid,.workflow-grid,.history-grid,.dashboard-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:18px;margin-bottom:18px}
.history-grid{grid-template-columns:1fr 1fr}
.comments-card{grid-column:1/-1}
.caption-preview{white-space:pre-wrap;line-height:2;background:#fafaf8;border:1px solid #e7e7e2;border-radius:14px;padding:18px;min-height:160px}
.media-list{display:grid;gap:10px}
.media-item{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;border:1px solid #e7e7e2;border-radius:13px}
.media-file-meta{display:flex;flex-direction:column;gap:4px;min-width:0}
.media-file-meta strong{overflow:hidden;text-overflow:ellipsis}
.media-file-meta span{font-size:11px;color:var(--muted)}
.upload-box{margin-top:16px;padding:18px;border:1px dashed #bdbdb5;border-radius:15px;background:#fafaf8;display:grid;gap:12px}
.upload-copy{display:flex;flex-direction:column;gap:4px}
.upload-copy span,.upload-status{font-size:12px;color:var(--muted)}
.upload-status.failed{color:#a51e28}
.upload-box input[type=file]{max-width:100%}
.compact-dl,.settings-list{margin:20px 0 0}
.compact-dl>div,.settings-list>div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid #ecece8}
.compact-dl>div:last-child,.settings-list>div:last-child{border-bottom:0}
.compact-dl dt,.settings-list dt{font-size:11px;font-weight:800;color:var(--muted)}
.compact-dl dd,.settings-list dd{margin:0;text-align:end;font-size:13px}
.review-actions{margin-bottom:16px}
.compact-form{display:grid;gap:13px}
.status-panel{padding:15px;border-radius:12px;background:var(--soft);font-weight:750}
.publication-record{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:13px 0;border-bottom:1px solid #eee}
.timeline{display:grid}
.timeline-item{padding:14px 0;border-bottom:1px solid #ecece8;display:grid;gap:5px}
.timeline-item:last-child{border-bottom:0}
.timeline-item span{font-size:11px;color:var(--muted)}
.timeline-item p{margin:2px 0 0!important}
.comment-list{display:grid;gap:10px;margin-bottom:18px}
.comment-item{padding:13px 15px;background:#fafaf8;border:1px solid #e9e9e4;border-radius:13px}
.comment-item>div{display:flex;gap:10px;align-items:center}
.comment-item span{font-size:11px;color:var(--muted)}
.comment-item p{margin:8px 0 0}
.empty-state{padding:24px;border:1px dashed #c9c9c1;border-radius:14px;text-align:center;color:var(--muted);background:#fafaf8}
.empty-state.large{padding:58px}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.stat-card{padding:18px;display:flex;flex-direction:column;gap:18px}
.stat-card span{font-size:12px;color:var(--muted);font-weight:750}
.stat-card strong{font-size:34px}
.account-chip{min-width:230px;padding:14px 16px}
.account-chip small{display:block;color:var(--muted);margin-bottom:5px}
.recent-content{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #ecece8}
.recent-content>div{display:flex;flex-direction:column;gap:3px}
.recent-content>div span{font-size:11px;color:var(--muted)}
.system-card{align-self:start}
.auth-grid{min-height:calc(100vh - 190px);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);align-items:center;gap:clamp(32px,7vw,96px)}
.intro-panel h1{font-size:clamp(38px,6vw,70px);line-height:1.04;letter-spacing:-.045em;margin:14px 0 18px}
.intro-panel p{font-size:16px;line-height:1.8;color:#585853}
.notice{margin-top:28px;padding:15px 17px;border-inline-start:3px solid var(--brand-red);background:#f1f1ed;border-radius:8px;line-height:1.7;color:#494944}
.login-card{max-width:480px;width:100%}
.login-card h2{font-size:28px;margin:0 0 22px}
.stack{display:grid;gap:16px}
.checkbox-row{display:flex!important;align-items:center;gap:8px;font-size:13px}
.checkbox-row span{margin:0!important}
.security-copy{font-size:11px;line-height:1.65;margin-top:18px}
.pagination-wrap{margin-top:18px}
.pagination-wrap nav svg{width:18px;height:18px}
.pagination-wrap nav>div{gap:8px}
@media(max-width:900px){.main-nav{display:none}.detail-grid,.workflow-grid,.history-grid,.dashboard-grid{grid-template-columns:1fr}.comments-card{grid-column:auto}.stats-grid{grid-template-columns:repeat(2,1fr)}.auth-grid{grid-template-columns:1fr;align-items:start}.login-card{max-width:none}.dashboard-head,.section-head{align-items:flex-start;flex-direction:column}.account-chip{width:100%}}
@media(max-width:560px){.topbar{gap:10px;padding:12px}.brand-kicker{display:none}.brand-title{font-size:14px}.topbar-actions{margin-inline-start:auto}.ghost-button{padding:8px 9px;font-size:12px}.page-shell{width:calc(100% - 22px);padding-top:28px}.stats-grid{grid-template-columns:1fr 1fr}.stat-card{padding:14px}.stat-card strong{font-size:28px}.media-item{align-items:flex-start;flex-direction:column}.section-head h1,.dashboard-head h1{font-size:36px}.card,.editor-card{border-radius:16px;padding:18px}}
.notification-link{position:relative;display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border-radius:11px;background:#f1f1ee;font-size:12px;font-weight:800}
.notification-icon{font-size:9px;color:var(--brand-red)}
.notification-count{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--brand-red);color:white;display:inline-flex;align-items:center;justify-content:center;font-size:10px}
.notification-list{display:grid;gap:10px}
.notification-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;padding:16px 18px;background:white;border:1px solid var(--line);border-radius:15px}
.notification-item.is-unread{border-color:#e3b5b9;background:#fffafa}
.notification-dot{width:8px;height:8px;border-radius:50%;background:#c8c8c2}
.notification-item.is-unread .notification-dot{background:var(--brand-red)}
.notification-copy{display:flex;flex-direction:column;gap:4px}
.notification-copy span{font-size:13px;color:#55554f}
.notification-copy small{font-size:11px;color:var(--muted)}
.unread-label{font-size:10px;font-weight:850;color:var(--brand-red)}
@media(max-width:650px){.notification-label{display:none}.notification-item{grid-template-columns:auto 1fr}.unread-label{display:none}.brand-copy .brand-kicker{display:none}.brand-logo{width:42px;height:42px}}
.link-button{border:0;background:transparent;padding:0;font-size:12px;font-weight:800}
.danger-text{color:#a51e28}
.danger-text:hover{text-decoration:underline}
.order-button{width:28px;height:28px;border:1px solid #d6d6d0;border-radius:8px;background:#f7f7f4;font-weight:900;line-height:1}
.order-button:hover{background:#ecece8;border-color:#bdbdb6}
.account-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:18px;align-items:start}
@media(max-width:800px){.account-grid{grid-template-columns:1fr}}
.calendar-nav{display:flex;gap:8px;flex-wrap:wrap}
.calendar-card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 10px 34px rgba(0,0,0,.035)}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-weekdays{background:#fafaf8;border-bottom:1px solid var(--line)}
.calendar-weekdays>div{padding:11px;text-align:center;font-size:11px;font-weight:850;color:var(--muted)}
.calendar-day{min-height:150px;padding:10px;border-inline-end:1px solid #ecece8;border-bottom:1px solid #ecece8;background:#fff}
.calendar-day:nth-child(7n){border-inline-end:0}
.calendar-day.is-empty{background:#fafaf8}
.calendar-day.is-today{box-shadow:inset 0 0 0 2px var(--brand-red)}
.calendar-date{font-size:12px;font-weight:850;margin-bottom:9px}
.calendar-items{display:grid;gap:7px}
.calendar-item{display:grid;gap:4px;padding:8px;border-radius:10px;background:#f6f6f3;border:1px solid #e5e5df}
.calendar-item:hover{border-color:#c7c7c0}
.calendar-item strong{font-size:11px;line-height:1.35}
.calendar-time{font-size:10px;color:var(--muted)}
.calendar-item .status-badge{justify-self:start;font-size:9px;padding:4px 6px}
.calendar-empty{margin-top:16px}
@media(max-width:850px){.calendar-card{overflow-x:auto}.calendar-weekdays,.calendar-grid{min-width:780px}.calendar-day{min-height:130px}}

.new-content-upload{margin-top:4px;padding:22px;border-width:2px;background:linear-gradient(180deg,#fff,#fafaf8)}
.new-content-upload .upload-copy{gap:7px}
.new-content-upload .upload-copy strong{font-size:15px}
.upload-type-hint{font-weight:700;color:var(--text)!important}
.new-content-upload input[type=file]{width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}
.new-content-upload input[type=file]::file-selector-button{margin-inline-end:12px;padding:9px 14px;border:0;border-radius:9px;background:#171717;color:#fff;font:inherit;font-weight:800;cursor:pointer}
.selected-files{padding:10px 12px;border-radius:10px;background:#f1f1ed;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
#content-submit-button:disabled,.new-content-upload input:disabled{opacity:.58;cursor:not-allowed}
@media(max-width:640px){.new-content-upload{padding:16px}.new-content-upload input[type=file]{padding:10px}.new-content-upload input[type=file]::file-selector-button{display:block;margin:0 0 10px;width:100%}}

.detail-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.archived-badge{background:#f0f0ed;color:#555;border-color:#d8d8d1}
.media-list{display:grid;gap:18px}
.media-item{display:grid;gap:12px}
.media-preview-frame{display:block;width:100%;overflow:hidden;border-radius:16px;background:#111;border:1px solid var(--line)}
.media-preview-image{display:block;width:100%;max-height:680px;object-fit:contain;background:#f3f3ef}
.video-frame{background:#000}
.media-preview-video{display:block;width:100%;max-height:680px;background:#000}
.resend-publication-form{margin-top:14px}
@media(max-width:640px){.detail-actions{width:100%}.detail-actions>*{flex:1}.detail-actions .ghost-link,.detail-actions .ghost-button{width:100%;justify-content:center}.media-preview-image,.media-preview-video{max-height:520px}}

/* Content overview cards */
.content-overview-section{margin-top:30px}
.overview-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 18px}
.overview-heading h2{margin:6px 0 0;font-size:26px}
.content-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.content-library-grid{margin-top:22px}
.content-preview-card{background:#fff;border:1px solid #e1ded8;border-radius:20px;padding:16px;box-shadow:0 8px 28px rgba(0,0,0,.035);display:flex;flex-direction:column;min-width:0}
.content-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.content-card-type{font-size:11px;font-weight:850;color:#47443f;padding-top:5px}
.content-card-statuses{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.content-card-media{position:relative;display:block;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:15px;background:#f0efeb;border:1px solid #e8e5df}
.content-card-media>img,.card-video-still{display:block;width:100%;height:100%;object-fit:contain;background:#f3f1ed}
.card-video-still{pointer-events:none}
.carousel-card-preview{width:100%;height:100%;display:grid;grid-template-columns:1fr;background:#f3f1ed}
.carousel-card-preview.has-two{grid-template-columns:1fr 1fr;gap:2px}
.carousel-card-preview img{width:100%;height:100%;object-fit:contain;min-width:0;background:#f3f1ed}
.carousel-count,.reel-preview-mark{position:absolute;inset-inline-end:11px;bottom:11px;background:rgba(20,20,20,.82);color:#fff;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:850}
.reel-preview-mark{width:38px;height:38px;display:flex;align-items:center;justify-content:center;padding:0;font-size:14px}
.content-card-media-empty{height:100%;display:flex;align-items:center;justify-content:center;padding:20px;color:var(--muted);font-size:12px;text-align:center}
.content-card-body{padding:16px 3px 14px;flex:1}
.content-card-date{font-size:11px;color:var(--muted);margin-bottom:8px}
.content-card-body h3{font-size:19px;line-height:1.38;margin:0 0 9px;letter-spacing:-.015em}
.content-card-body h3 a:hover{color:var(--brand-red)}
.content-card-body p{font-size:13px;line-height:1.8;color:#68625c;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.content-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #eeeae4;padding-top:12px;font-size:11px;color:var(--muted)}
.ghost-link.small{padding:8px 10px;font-size:11px}
.system-section{margin-top:24px}
.system-section .system-card{max-width:720px}
.status-rejected{background:#f8e2e5;color:#921d29}

/* Reviewer decision */
.review-decision-form{display:grid;gap:18px}
.review-help{margin:-6px 0 0!important}
.review-choice-list{display:grid;gap:11px}
.review-choice{position:relative;display:flex;align-items:center;gap:13px;padding:16px;border:1px solid #dcd8d1;border-radius:14px;background:#fff;cursor:pointer;transition:.15s ease}
.review-choice:hover{border-color:#bbb5ab;background:#fcfbf9}
.review-choice input{position:absolute;opacity:0;pointer-events:none}
.review-radio-mark{width:22px;height:22px;border:2px solid #8d8880;border-radius:50%;position:relative;flex:0 0 22px}
.review-choice:has(input:checked){border-color:#b8b1a8;box-shadow:0 0 0 2px rgba(0,0,0,.025)}
.review-choice:has(input:checked) .review-radio-mark:after{content:"";position:absolute;inset:4px;border-radius:50%;background:#25221f}
.review-choice-approved:has(input:checked){background:#f1f8f3;border-color:#b8d7c2}
.review-choice-approved:has(input:checked) .review-radio-mark{border-color:#267145}
.review-choice-approved:has(input:checked) .review-radio-mark:after{background:#267145}
.review-choice-changes:has(input:checked){background:#fff8e9;border-color:#e8cb8f}
.review-choice-changes:has(input:checked) .review-radio-mark{border-color:#b56b00}
.review-choice-changes:has(input:checked) .review-radio-mark:after{background:#b56b00}
.review-choice-rejected:has(input:checked){background:#fff1f2;border-color:#e3b5ba}
.review-choice-rejected:has(input:checked) .review-radio-mark{border-color:#a5232d}
.review-choice-rejected:has(input:checked) .review-radio-mark:after{background:#a5232d}
.review-comment-field{display:grid;gap:8px}
.review-comment-field>span{font-size:12px;font-weight:850;color:#494944}
.review-comment-field textarea{width:100%;border:1px solid #cbc7c0;border-radius:13px;padding:13px;line-height:1.7;resize:vertical;background:#fff}
.review-save-button{width:100%;padding:13px 18px}

/* Notification palette: amber/orange, separate from Basha red */
.notification-link{background:#fff3d8;color:#704400}
.notification-icon{color:#dc8a18}
.notification-count{background:#e79a2f;color:#2e210f}
.notification-item.is-unread{border-color:#efd19a;background:#fff9ec}
.notification-item.is-unread .notification-dot{background:#e79a2f}
.unread-label{color:#a65f00}

/* Dashboard/card responsive */
@media(max-width:980px){.content-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.overview-heading{align-items:flex-start;flex-direction:column}.content-card-grid{grid-template-columns:1fr;gap:16px}.content-preview-card{border-radius:17px;padding:13px}.content-card-media{aspect-ratio:4/3}.content-card-body h3{font-size:18px}}

.delete-content-dialog{border:0;padding:0;border-radius:20px;max-width:560px;width:calc(100% - 28px);background:transparent}
.delete-content-dialog::backdrop{background:rgba(15,15,15,.56);backdrop-filter:blur(3px)}
.delete-dialog-card{background:#fff;border:1px solid #e0dbd5;border-radius:20px;padding:26px;box-shadow:0 24px 80px rgba(0,0,0,.2)}
.delete-dialog-card h2{margin:8px 0 12px;font-size:25px}
.delete-dialog-card p{margin:0;color:#625c56;line-height:1.8}
.delete-dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:24px}
.publication-record-social{gap:14px}
