@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    --navy: #071f3d;
    --navy-2: #0b2b50;
    --blue: #155eef;
    --orange: #ff6b2c;
    --ink: #152238;
    --muted: #6b778c;
    --line: #e6eaf0;
    --soft: #f5f7fa;
    --white: #fff;
    --green: #079455;
    --amber: #d97706;
    --red: #d92d20;
    --purple: #7a5af8;
    --shadow: 0 8px 28px rgba(20, 34, 56, .07);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: "DM Sans", sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, .button { border: 1px solid var(--line); background: #fff; border-radius: 9px; min-height: 42px; padding: 0 16px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
button:hover, .button:hover { border-color: #b8c1cf; }
.primary { background: linear-gradient(135deg, var(--orange), #f14d21); border-color: transparent; color: white; box-shadow: 0 7px 16px rgba(255, 107, 44, .2); }
.primary:hover { border-color: transparent; filter: brightness(.97); }
.danger { color: var(--red); border-color: #fecaca; background: #fff8f7; }
.wide { width: 100%; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #061c38 0%, #09274a 100%); color: white; padding: 25px 18px 18px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { padding: 0 9px 23px; border-bottom: 1px solid rgba(255,255,255,.11); }
.brand img { display: block; width: 143px; height: 35px; object-fit: contain; object-position: left center; }
.product-lockup { margin: 18px 4px; padding: 12px; display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; }
.product-lockup img { width: 39px; height: 39px; object-fit: contain; background: white; border-radius: 8px; padding: 3px; }
.product-lockup div { min-width: 0; }
.product-lockup strong, .product-lockup span { display: block; }
.product-lockup strong { font-size: .91rem; }
.product-lockup span { color: #9cb1c8; font-size: .72rem; margin-top: 2px; }
.sidebar nav { flex: 1; }
.sidebar nav p { color: #718ba6; font-size: .66rem; font-weight: 800; letter-spacing: .14em; margin: 22px 12px 8px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: #c3d0dd; border-radius: 8px; margin: 2px 0; font-size: .89rem; font-weight: 600; }
.sidebar nav a i { width: 19px; text-align: center; color: #91a9c1; font-style: normal; font-size: 1.08rem; }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(255,255,255,.09); color: white; }
.sidebar nav a.active { box-shadow: inset 3px 0 var(--orange); }
.sidebar nav a.active i { color: var(--orange); }
.sidebar-user { display: grid; grid-template-columns: 38px 1fr 32px; gap: 9px; align-items: center; padding: 15px 5px 2px; border-top: 1px solid rgba(255,255,255,.11); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #244f78; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: .8rem; }
.sidebar-user small { color: #91a9c1; font-size: .63rem; margin-top: 2px; }
.sidebar-user button { padding: 0; min-height: 30px; width: 30px; color: #9cb1c8; border: 0; background: transparent; }

.main { min-width: 0; }
.topbar { height: 58px; padding: 0 34px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 4px #d1fadf; margin-right: 9px; }
.page { padding: 34px; max-width: 1480px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; gap: 25px; align-items: flex-end; margin-bottom: 27px; }
.page-heading h1 { font: 800 1.85rem/1.15 Manrope, sans-serif; margin: 4px 0 7px; letter-spacing: -.035em; }
.page-heading p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--orange) !important; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #ffb18d !important; }
.muted { color: var(--muted); }
.flash { padding: 13px 16px; margin-bottom: 20px; border-radius: 9px; border: 1px solid; }
.flash.success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.flash.warning { background: #fffaeb; border-color: #fedf89; color: #b54708; }
.flash.error { background: #fef3f2; border-color: #fecdca; color: #b42318; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.metrics article { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 19px; display: flex; align-items: center; gap: 14px; box-shadow: 0 3px 14px rgba(20,34,56,.025); }
.metric-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; }
.metric-icon.orange { color: var(--orange); background: #fff0e8; }
.metric-icon.purple { color: var(--purple); background: #f0edff; }
.metric-icon.amber { color: var(--amber); background: #fff7dc; }
.metric-icon.green { color: var(--green); background: #e8f8ef; }
.metrics strong { display: block; font: 800 1.55rem Manrope, sans-serif; }
.metrics h3 { margin: 1px 0; font-size: .82rem; }
.metrics p { margin: 0; font-size: .7rem; color: var(--muted); }
.panel { background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .72fr); gap: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 21px 22px 17px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0 0 3px; font: 700 1rem Manrope, sans-serif; }
.panel-head p { margin: 0; color: var(--muted); font-size: .75rem; }
.panel-head a { color: var(--blue); font-size: .77rem; font-weight: 700; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 18px; color: #8a96a8; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: #fafbfc; border-bottom: 1px solid var(--line); }
td { padding: 15px 18px; border-bottom: 1px solid #edf0f4; color: #465267; font-size: .79rem; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td strong { color: var(--ink); font-size: .82rem; }
td small { color: var(--muted); margin-top: 3px; }
.empty { text-align: center; padding: 42px; color: var(--muted); }
.table-action, .row-actions a { color: var(--blue); font-weight: 700; white-space: nowrap; }
.row-actions { display: flex; align-items: center; gap: 10px; }
.row-actions form { display: inline; }
.row-actions button { min-height: auto; padding: 0; border: 0; color: var(--orange); background: none; font-size: .74rem; }
.row-actions > span { color: #98a2b3; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; background: #f2f4f7; color: #475467; border-radius: 999px; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tag-list { display: flex; gap: 5px; flex-wrap: wrap; }
.status-active, .status-approved, .status-completed { color: #067647; background: #ecfdf3; }
.status-pending, .status-review { color: #b54708; background: #fffaeb; }
.status-draft { color: #475467; background: #f2f4f7; }
.status-scheduled { color: #175cd3; background: #eff8ff; }
.status-published { color: #067647; background: #ecfdf3; }
.status-paused, .status-changes_requested { color: #6941c6; background: #f4f3ff; }
.status-rejected, .status-inactive { color: #b42318; background: #fef3f2; }
.flow-list { list-style: none; padding: 15px 22px 22px; margin: 0; }
.flow-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf0f4; }
.flow-list li:last-child { border-bottom: 0; }
.flow-list li > span, .section-title > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--orange); background: #fff0e8; font-weight: 800; font-size: .72rem; }
.flow-list strong, .flow-list small { display: block; }
.flow-list strong { font-size: .79rem; }
.flow-list small { color: var(--muted); font-size: .68rem; margin-top: 2px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.campaign-card { padding: 22px; }
.card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .7rem; }
.campaign-card h2 { margin: 18px 0 8px; font: 700 1.05rem Manrope, sans-serif; }
.campaign-card > p { color: var(--muted); font-size: .79rem; line-height: 1.55; min-height: 48px; }
.campaign-dates { display: flex; align-items: center; gap: 13px; background: var(--soft); border-radius: 9px; padding: 12px; margin: 18px 0; }
.campaign-dates span { font-size: .76rem; font-weight: 700; }
.campaign-dates small { display: block; font-size: .58rem; color: #98a2b3; margin-bottom: 2px; }
.campaign-dates i { color: #98a2b3; font-style: normal; }
.campaign-card > a { color: var(--blue); font-size: .76rem; font-weight: 700; }
.empty-card { grid-column: 1/-1; text-align: center; padding: 55px 20px; }
.empty-card h2 { font: 700 1.1rem Manrope, sans-serif; }
.empty-card p { color: var(--muted); }

.form-layout { display: grid; gap: 18px; }
.form-layout.narrow { max-width: 920px; }
.form-card { padding: 23px; }
.section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.section-title h2 { font: 700 1rem Manrope, sans-serif; margin: 0; }
.section-title p { color: var(--muted); margin: 3px 0 0; font-size: .74rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1/-1; }
label { display: grid; gap: 7px; color: #344054; font-size: .76rem; font-weight: 700; }
label small { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; border: 1px solid #d5dbe4; border-radius: 9px; background: white; color: var(--ink); padding: 11px 12px; outline: none; }
input, select { height: 44px; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: #84adff; box-shadow: 0 0 0 3px #eef4ff; }
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.role-option { display: flex; align-items: flex-start; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.role-option:has(input:checked) { border-color: #84adff; background: #f5f8ff; }
.role-option input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--blue); }
.role-option strong, .role-option small { display: block; }
.role-option small { margin-top: 3px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }

.creator-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.creator-grid aside { display: grid; gap: 17px; }
.creator-grid aside h2 { margin: 0; font: 700 1rem Manrope, sans-serif; }
.version-note { display: flex; gap: 11px; align-items: center; background: #f5f8ff; border: 1px solid #dbe7ff; border-radius: 9px; padding: 12px; }
.version-note > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--blue); background: white; border-radius: 8px; font-weight: 800; font-size: .7rem; }
.version-note p, .version-note strong, .version-note small { display: block; margin: 0; }
.version-note strong { font-size: .72rem; }
.version-note small { color: var(--muted); font-size: .63rem; margin-top: 2px; }
.editor-card { padding: 24px; }
.title-input { height: 54px; font: 700 1.15rem Manrope, sans-serif; }
.body-editor { min-height: 345px; margin-bottom: 19px; }
.editor-card > label + label { margin-top: 18px; }
.editor-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: .7rem; padding-top: 18px; border-top: 1px solid var(--line); }
.editor-footer > div { display: flex; gap: 9px; }

.approval-stack { display: grid; gap: 17px; }
.approval-card { overflow: hidden; }
.approval-meta { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: #fafbfc; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.approval-content { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 28px; padding: 24px; }
.approval-content > div:first-child > small { color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.approval-content h2 { margin: 8px 0 10px; font: 700 1.13rem Manrope, sans-serif; }
.approval-content p { color: #536076; font-size: .82rem; line-height: 1.65; white-space: pre-line; }
.decision-form { padding-left: 25px; border-left: 1px solid var(--line); }
.decision-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.decision-actions button { font-size: .7rem; }
.decision-summary { background: #f8fafc; border-radius: 10px; padding: 16px; align-self: start; }
.decision-summary strong { font-size: .78rem; }
.decision-summary p { margin-bottom: 0; }

.news-grid, .calendar-list, .integration-grid { display: grid; gap: 16px; }
.news-card { padding: 22px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: .68rem; }
.news-card h2 { margin: 14px 0 8px; font: 700 1.05rem Manrope, sans-serif; }
.news-card > p { margin: 0; color: #536076; line-height: 1.6; font-size: .8rem; }
.news-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.news-actions > a { margin-right: auto; color: var(--blue); font-size: .75rem; font-weight: 700; }
.news-actions form { display: flex; align-items: center; gap: 7px; }
.news-actions input { width: 75px; }
.news-actions select { width: 125px; }
.news-actions input, .news-actions select, .news-actions button { height: 36px; padding: 7px 9px; font-size: .7rem; }
.filter-form select { min-width: 190px; }
.heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.row-actions button.danger { color: var(--red); }
.schedule-form { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(260px, 1.4fr) 210px auto; align-items: end; gap: 14px; padding: 18px; margin-bottom: 18px; }
.schedule-form strong, .schedule-form small { display: block; }
.schedule-form small { color: var(--muted); margin-top: 4px; font-size: .68rem; }
.calendar-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px 22px; }
.calendar-row time { display: grid; place-items: center; padding-right: 18px; border-right: 1px solid var(--line); }
.calendar-row time strong { font: 800 1.55rem Manrope, sans-serif; }
.calendar-row time span, .calendar-row time small { color: var(--muted); font-size: .62rem; font-weight: 800; }
.calendar-row h2 { margin: 7px 0 3px; font: 700 .95rem Manrope, sans-serif; }
.calendar-row p { margin: 0; color: var(--muted); font-size: .7rem; }
.channel-state { color: #b54708; background: #fffaeb; border-radius: 8px; padding: 9px 11px; font-size: .68rem; font-weight: 700; }
.integration-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.integration-section { margin-top: 28px; }
.integration-section + .integration-section { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font: 800 1.18rem Manrope, sans-serif; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }
.integration-card { padding: 22px; display: grid; align-content: start; gap: 18px; }
.integration-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #eff8ff; color: var(--blue); font: 800 1rem Manrope, sans-serif; }
.integration-card h2 { margin: 11px 0 7px; font: 700 1.05rem Manrope, sans-serif; }
.integration-card p { color: var(--muted); line-height: 1.55; font-size: .76rem; }
.integration-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.default-badge { padding: 5px 8px; border-radius: 999px; color: #175cd3; background: #eff8ff; font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.compact-button { width: 100%; padding: 10px 13px; font-size: .68rem; }
.card-actions { display: grid; gap: 8px; }
.integration-note { margin-top: auto; padding: 13px; border-radius: 9px; background: var(--soft); }
.integration-note strong, .integration-note span { display: block; }
.integration-note strong { font-size: .7rem; }
.integration-note span { margin-top: 3px; color: var(--muted); font-size: .64rem; line-height: 1.4; }
.checkbox-row { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.checkbox-row input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--blue); }
.danger-text { display: block; margin-top: 7px; color: #b42318; }
.ai-note { padding: 13px; border: 1px solid #dbe7ff; border-radius: 9px; background: #f5f8ff; }
.ai-note strong { color: var(--blue); font-size: .73rem; }
.ai-note p { margin: 5px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.45; }
.link-button { border: 0; padding: 0; background: none; color: var(--blue); box-shadow: none; font-weight: 700; }
.pagination-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; color: var(--muted); font-size: .72rem; }
.pagination-bar .disabled { opacity: .45; cursor: default; }
.bulk-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 14px; margin-bottom: 14px; }
.bulk-toolbar > span { margin-right: auto; }
.bulk-toolbar strong, .bulk-toolbar small { display: block; }
.bulk-toolbar strong { font-size: .74rem; }
.bulk-toolbar small { color: var(--muted); font-size: .64rem; margin-top: 2px; }
.bulk-toolbar select { width: 220px; }
.news-select { width: 17px; height: 17px; accent-color: var(--blue); }
.danger { color: #b42318; border-color: #fecdca; background: #fff6f5; }
.ai-writer-panel { margin-bottom: 18px; padding: 20px 22px; display: grid; gap: 16px; border-color: #cfe0ff; background: linear-gradient(135deg, #fff, #f7faff); }
.ai-writer-heading, .ai-writer-heading > div, .ai-proposal > div:first-child, .ai-proposal-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-writer-heading > div { justify-content: flex-start; }
.ai-writer-heading h2 { margin: 0 0 3px; font-size: 1rem; }
.ai-writer-heading p { margin: 0; color: var(--muted); font-size: .68rem; }
.ai-spark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; color: white; background: linear-gradient(135deg, #1862a4, #4d8cff); font-size: 1rem; }
.ai-writer-form { display: grid; grid-template-columns: minmax(210px, .85fr) minmax(280px, 1.6fr) auto; align-items: end; gap: 12px; }
.ai-writer-form label { margin: 0; }
.ai-writer-form small { color: var(--muted); font-weight: 500; }
.ai-writer-form button { white-space: nowrap; }
.ai-safety-note { margin: -7px 0 0; color: var(--muted); font-size: .63rem; }
.ai-proposal { padding: 16px; border: 1px solid #b7d0ff; border-radius: 11px; background: white; display: grid; gap: 11px; }
.ai-proposal > div:first-child strong, .ai-proposal > div:first-child span { display: block; }
.ai-proposal > div:first-child strong { font-size: .78rem; }
.ai-proposal > div:first-child span { color: var(--muted); font-size: .64rem; text-align: right; }
.ai-proposal textarea { min-height: 210px; background: #fbfcfe; line-height: 1.65; }
.ai-proposal-actions span { color: var(--muted); font-size: .63rem; }
.ai-package-action { padding: 14px; border: 1px solid #b7d0ff; border-radius: 10px; background: white; display: flex; align-items: center; gap: 10px; }
.ai-package-action > div { flex: 1; }
.ai-package-action strong, .ai-package-action span { display: block; }
.ai-package-action strong { font-size: .75rem; }
.ai-package-action span { margin-top: 3px; color: var(--muted); font-size: .63rem; line-height: 1.4; }
.package-summary { display: grid; grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(120px, .55fr)); gap: 1px; padding: 0; overflow: hidden; margin-bottom: 18px; background: var(--line); }
.package-summary > div { min-height: 90px; padding: 19px; background: white; display: flex; flex-direction: column; justify-content: center; }
.package-summary strong, .package-summary span { display: block; }
.package-summary strong { font-size: .9rem; }
.package-summary span { margin-top: 4px; color: var(--muted); font-size: .64rem; overflow-wrap: anywhere; }
.package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.package-card { padding: 19px; display: grid; gap: 13px; }
.package-card header { display: flex; align-items: center; gap: 10px; }
.channel-selector { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--orange); }
.package-card header > div { flex: 1; }
.package-card h2 { margin: 0 0 5px; font-size: .9rem; }
.channel-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--blue); background: #eef6ff; font-weight: 800; }
.publication-state { padding: 6px 8px; border-radius: 999px; background: #fff7e6; color: #b54708; font-size: .58rem; font-weight: 800; }
.package-card footer { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .61rem; }
.package-toolbar { position: sticky; bottom: 16px; z-index: 3; margin-top: 18px; padding: 14px 18px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; box-shadow: 0 14px 35px rgba(11, 42, 75, .14); }
.package-toolbar span { margin-right: auto; color: var(--muted); font-size: .67rem; }
.package-toolbar form { flex: 1; display: flex; align-items: center; gap: 9px; }
.package-card-excluded { opacity: .72; background: #fafafa; }
.status-excluded { color: #667085; background: #f2f4f7; }
.status-queued { color: #175cd3; background: #eff8ff; }
.package-badge { padding: 5px 8px; border-radius: 999px; color: #175cd3; background: #eff8ff; font-size: .58rem; font-weight: 800; }
.approval-package-intro { color: var(--muted); }
.approval-variant-list { display: grid; gap: 7px; margin: 14px 0; }
.approval-variant-list details { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: #fbfcfe; }
.approval-variant-list summary { cursor: pointer; display: flex; gap: 10px; font-size: .68rem; }
.approval-variant-list summary strong { min-width: 75px; }
.approval-variant-list summary span { color: var(--muted); }
.approval-variant-list details p { white-space: pre-wrap; font-size: .68rem; line-height: 1.6; }
.visual-workbench { margin-bottom: 18px; padding: 20px; display: grid; gap: 17px; border-color: #cfe0ff; background: linear-gradient(135deg, #fff, #f7faff); }
.visual-heading, .visual-actions, .visual-footer, .visual-meta { display: flex; align-items: center; gap: 10px; }
.visual-heading { justify-content: space-between; }
.visual-heading h2 { margin: 2px 0 4px; font-size: 1.05rem; }
.visual-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .68rem; }
.visual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.visual-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.visual-preview { display: grid; place-items: center; width: 100%; overflow: hidden; color: #8a98a9; background: #edf2f7; font-size: .68rem; }
.visual-preview-square { aspect-ratio: 1; }
.visual-preview-landscape { aspect-ratio: 16 / 9; }
.visual-preview-portrait { aspect-ratio: 4 / 5; max-height: 360px; }
.visual-preview img { width: 100%; height: 100%; object-fit: cover; }
.visual-meta { padding: 11px 12px; }
.visual-meta > div { flex: 1; }
.visual-meta strong, .visual-meta small { display: block; }
.visual-meta strong { font-size: .72rem; }
.visual-meta small { margin-top: 2px; color: var(--muted); font-size: .6rem; }
.visual-meta form { margin: 0; }
.visual-meta .danger { padding: 6px 9px; }
.visual-footer { justify-content: flex-end; padding-top: 2px; }
.visual-footer > span { margin-right: auto; color: var(--muted); font-size: .66rem; }
.visual-footer form { margin: 0; }
.status-waiting_media { color: #b54708; background: #fff7e6; }
.calendar-heading { margin-bottom: 15px; }
.view-switcher { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.view-switcher a { padding: 9px 16px; border-radius: 7px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.view-switcher a.active { color: white; background: var(--blue); }
.calendar-filters { margin-bottom: 14px; padding: 13px 15px; display: grid; grid-template-columns: 170px 1fr 1fr auto auto; gap: 10px; align-items: end; }
.calendar-filters label { margin: 0; font-size: .62rem; }
.calendar-filters input, .calendar-filters select { min-height: 40px; }
.month-calendar { padding: 0; overflow: hidden; }
.month-navigation { padding: 15px 18px; display: flex; align-items: center; justify-content: center; gap: 18px; border-bottom: 1px solid var(--line); }
.month-navigation h2 { min-width: 210px; margin: 0; text-align: center; font-size: 1.05rem; }
.month-weekdays, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-weekdays { border-bottom: 1px solid var(--line); background: #f8fafc; }
.month-weekdays span { padding: 10px; color: var(--muted); text-align: center; font-size: .61rem; font-weight: 800; }
.month-day { min-height: 145px; padding: 8px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.month-day:nth-child(7n) { border-right: 0; }
.month-day > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: #344054; }
.month-day > header span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; font-size: .67rem; font-weight: 800; }
.month-day > header small { color: var(--muted); font-size: .52rem; text-transform: uppercase; }
.month-day.outside-month { background: #fafbfc; }
.month-day.outside-month > header { opacity: .42; }
.month-day.today > header span { color: white; background: var(--orange); }
.day-events { display: grid; gap: 5px; }
.calendar-event { width: 100%; padding: 7px 8px; display: grid; gap: 2px; border: 0; border-left: 3px solid #98a2b3; border-radius: 6px; color: #172b4d; background: #f4f6f8; text-align: left; box-shadow: none; }
.calendar-event:hover { transform: none; filter: brightness(.985); }
.calendar-event span, .calendar-event small { overflow: hidden; color: #667085; font-size: .5rem; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event strong { overflow: hidden; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.event-waiting_media { border-left-color: #f79009; background: #fffaeb; }
.event-waiting_connection { border-left-color: #667085; background: #f2f4f7; }
.event-queued { border-left-color: #2e90fa; background: #eff8ff; }
.event-publishing { border-left-color: #7f56d9; background: #f4f3ff; }
.event-scheduled { border-left-color: #7f56d9; background: #f4f3ff; }
.event-published { border-left-color: #12b76a; background: #ecfdf3; }
.event-failed { border-left-color: #f04438; background: #fef3f2; }
.calendar-list-button { width: 100%; padding: 16px 18px; display: grid; grid-template-columns: 70px 90px 1fr; align-items: center; gap: 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: inherit; background: white; text-align: left; box-shadow: none; }
.calendar-list-button:hover { transform: none; background: #fbfcfe; }
.calendar-list-button time { text-align: center; }
.calendar-list-button time strong, .calendar-list-button time span, .calendar-list-button time small { display: block; }
.calendar-list-button time strong { font-size: 1.5rem; }
.calendar-list-button time span, .calendar-list-button time small { color: var(--muted); font-size: .57rem; }
.calendar-list-button > img { width: 90px; height: 58px; border-radius: 7px; object-fit: cover; }
.calendar-list-button h2 { margin: 7px 0 4px; font-size: .78rem; }
.calendar-list-button p { margin: 0; color: var(--muted); font-size: .62rem; }
.manual-scheduler { margin-top: 15px; padding: 0; }
.manual-scheduler > summary { padding: 14px 17px; cursor: pointer; font-size: .7rem; font-weight: 800; }
.manual-scheduler .schedule-form { border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.publication-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; border: 0; border-radius: 16px; box-shadow: 0 30px 90px rgba(6, 27, 54, .28); }
.publication-dialog::backdrop { background: rgba(6, 27, 54, .58); backdrop-filter: blur(3px); }
.publication-dialog > img { width: 100%; max-height: 360px; display: block; object-fit: cover; background: #eef2f6; }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 34px; height: 34px; padding: 0; border-radius: 50%; color: #172b4d; background: rgba(255,255,255,.94); }
.dialog-content { padding: 24px; }
.dialog-badges { display: flex; gap: 7px; }
.dialog-badges span { padding: 5px 8px; border-radius: 999px; color: #175cd3; background: #eff8ff; font-size: .59rem; font-weight: 800; }
.dialog-content h2 { margin: 13px 0 9px; font-size: 1.2rem; }
.dialog-content > p { max-height: 210px; overflow: auto; white-space: pre-wrap; color: #475467; font-size: .72rem; line-height: 1.65; }
.dialog-content form { margin-top: 18px; padding-top: 16px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; border-top: 1px solid var(--line); }
.dialog-content form label { margin: 0; }

.login-body { min-height: 100vh; background: white; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(470px, .95fr); }
.login-brand { position: relative; overflow: hidden; background: radial-gradient(circle at 86% 20%, rgba(24,98,164,.5), transparent 35%), linear-gradient(145deg, #061b36, #0a3159); color: white; padding: 55px clamp(45px, 7vw, 110px); display: flex; flex-direction: column; }
.login-brand::after { content: ""; position: absolute; width: 410px; height: 410px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -190px; bottom: -130px; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.softmas-login { width: 175px; height: 45px; object-fit: contain; object-position: left; }
.login-message { margin: auto 0; max-width: 600px; position: relative; z-index: 1; }
.login-message h1 { font: 800 clamp(2.1rem, 4vw, 4.1rem)/1.06 Manrope, sans-serif; letter-spacing: -.055em; margin: 15px 0 22px; }
.login-message > p { color: #b9c9d9; font-size: 1.02rem; line-height: 1.65; max-width: 530px; }
.security-note { color: #9fb2c5; font-size: .75rem; position: relative; z-index: 1; }
.security-note span { color: #55d99b; margin-right: 7px; }
.login-panel { display: grid; place-items: center; padding: 45px; background: #fbfcfd; }
.login-card { width: min(100%, 430px); background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 20px 55px rgba(18, 34, 56, .1); padding: 42px; display: grid; gap: 18px; }
.se-login { width: 75px; height: 75px; object-fit: contain; margin-bottom: 5px; }
.login-card h2 { font: 800 1.8rem Manrope, sans-serif; letter-spacing: -.035em; margin: -12px 0 -10px; }
.login-card > p { margin: 0; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.form-error { padding: 11px; border-radius: 8px; background: #fef3f2; color: #b42318; font-size: .74rem; }
.login-help { text-align: center; color: var(--muted); line-height: 1.5; }

@media (max-width: 1050px) {
    .metrics { grid-template-columns: 1fr 1fr; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .approval-content { grid-template-columns: 1fr; }
    .integration-grid { grid-template-columns: 1fr 1fr; }
    .schedule-form { grid-template-columns: 1fr 1fr; }
    .decision-form { padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 800px) {
    .app-shell { grid-template-columns: 76px 1fr; }
    .sidebar { padding: 20px 10px; }
    .brand img { width: 48px; object-fit: cover; object-position: left; }
    .product-lockup div, .sidebar nav p, .sidebar nav a:not(.active) span, .sidebar-user div, .sidebar-user form { display: none; }
    .product-lockup { padding: 8px; margin: 14px 0; }
    .sidebar nav a { justify-content: center; padding: 12px; font-size: 0; }
    .sidebar nav a i { font-size: 1.15rem; }
    .sidebar-user { display: flex; justify-content: center; }
    .page, .topbar { padding-left: 20px; padding-right: 20px; }
    .creator-grid { grid-template-columns: 1fr; }
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { min-height: 360px; }
}

@media (max-width: 600px) {
    .page-heading { align-items: flex-start; flex-direction: column; }
    .metrics, .card-grid, .form-grid, .role-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .topbar span:last-child { display: none; }
    .page { padding: 22px 14px; }
    .login-panel { padding: 20px; }
    .login-card { padding: 28px 22px; }
    .login-brand { padding: 35px 28px; }
    .integration-grid, .schedule-form { grid-template-columns: 1fr; }
    .calendar-filters { grid-template-columns: 1fr 1fr; }
    .month-calendar { overflow-x: auto; }
    .month-weekdays, .month-grid { min-width: 850px; }
    .calendar-row { grid-template-columns: 60px 1fr; }
    .channel-state { grid-column: 1/-1; }
    .pagination-bar { flex-wrap: wrap; }
    .bulk-toolbar { align-items: stretch; flex-direction: column; }
    .bulk-toolbar > span { margin: 0; }
    .bulk-toolbar select { width: 100%; }
    .ai-writer-heading, .ai-proposal-actions { align-items: flex-start; flex-direction: column; }
    .ai-writer-form { grid-template-columns: 1fr; }
    .ai-writer-form button { width: 100%; }
    .ai-package-action, .package-toolbar { align-items: stretch; flex-direction: column; }
    .ai-package-action form, .ai-package-action button, .package-toolbar button { width: 100%; }
    .package-summary, .package-grid { grid-template-columns: 1fr; }
    .package-toolbar span { margin: 0; }
    .visual-heading, .visual-footer { align-items: stretch; flex-direction: column; }
    .visual-actions { display: grid; grid-template-columns: 1fr; }
    .visual-grid { grid-template-columns: 1fr; }
    .visual-footer > span { margin: 0; }
    .calendar-filters { grid-template-columns: 1fr; }
    .calendar-list-button { grid-template-columns: 52px 1fr; }
    .calendar-list-button > img { display: none; }
    .dialog-content form { grid-template-columns: 1fr; }
}
