/* Shared visual system for the studio and its secondary views. */
:root {
  --canvas: #f3f4f2;
  --paper: #ffffff;
  --ink: #202824;
  --muted: #68736d;
  --line: #dde3de;
  --accent: #ad593c;
  --accent-dark: #91462d;
  --sidebar: #17231e;
  --lavender: #e7ede7;
  --shadow: 0 4px 20px #20382a05, 0 1px 3px #20382a04;
}
body { background: radial-gradient(ellipse at 95% 0, #e4ebe3 0, transparent 42%), var(--canvas); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { transition: background .18s, box-shadow .18s, color .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ad593c80; outline-offset: 3px; }
[hidden] { display: none !important; }
.sidebar { width: 258px; height: 100dvh; position: sticky; top: 0; overflow-y: auto; padding: 32px 20px 20px; background: linear-gradient(165deg, #24372c, var(--sidebar) 55%); border-right: 1px solid #ffffff0a; }
.brand { padding: 0 8px 32px; }
.brand img { width: 190px; max-width: 100%; }
.workspace-switcher { padding: 13px 11px; background: #ffffff06; border-color: #ffffff20; border-radius: 12px; margin-bottom: 30px; }
.workspace-switcher > div:not(.workspace-avatar) { min-width: 0; }
.workspace-switcher strong { font-size: 12px; overflow-wrap: anywhere; }
.workspace-switcher span:not(.chevron) { font-size: 11px; color: #a3b5a9; }
.workspace-avatar { width: 36px; height: 36px; flex-shrink: 0; background: #e4c2a4; font-size: 12px; }
.nav-label { font-size: 10px; color: #94a89c; letter-spacing: 1.7px; margin-bottom: 12px; }
.nav-item { min-height: 46px; font-size: 13px; color: #bbcac0; padding: 12px; margin: 4px 0; }
.nav-item:hover { background: #ffffff09; color: #fff; }
.nav-item.active { background: #ffffff10; box-shadow: inset 3px 0 #e3b891; color: #fff; }
.nav-item span { color: #a5b9ac; }
.nav-item.active span { color: #e3b891; }
.nav-count { background: #ffffff12; color: #eed5bb; }
.sidebar-bottom { padding-top: 36px; }
.plan-card { background: #ffffff07; border: 1px solid #ffffff10; padding: 16px; }
.plan-card-top { color: #e6c4a4; font-size: 12px; }
.plan-card p { font-size: 11px; color: #b8c7bd; }
.plan-card small { font-size: 10px; color: #9aad9f; }
.profile-button { border-top: 1px solid #ffffff12; padding: 16px 0 0; }
.profile-button strong { font-size: 12px; }.profile-button small { font-size: 11px; color: #9aad9f; }
.profile-avatar { width: 34px; height: 34px; flex-shrink: 0; font-size: 11px; }
.more { font-size: 11px; letter-spacing: 0; color: #b8c7bd; }
.main-content { max-width: 1800px; }
.topbar { height: 84px; padding: 0 40px; background: #ffffff80; border-bottom-color: #dce3dc; }
.breadcrumb { font-size: 12px; }.breadcrumb-link { color: #69756d; }.breadcrumb-current { color: var(--ink); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.top-actions { gap: 10px; }
.primary-button, .outline-button, .primary-button.compact { min-height: 42px; padding: 11px 17px; font-size: 12px; border-radius: 9px; }
.primary-button { box-shadow: 0 4px 10px #ad593c18; }.outline-button { background: #ffffffb0; border-color: #d4ddd5; color: #45544a; }.outline-button:hover { background: #eaf0e9; }
.view { padding: 40px 40px 64px; }.view.active { animation: view-arrive .28s ease-out; }
.page-heading { margin-bottom: 30px; align-items: center; }
.page-heading h1 { font-size: clamp(27px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -1.3px; font-weight: 800; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; color: #68776b; margin-bottom: 10px; }
.heading-subtitle { font-size: 13px; line-height: 1.7; color: var(--muted); }
.wave { display: none; }
.metrics-grid { gap: 18px; margin-bottom: 36px; }
.metric-card, .panel, .upcoming-card, .media-card, .integration-card, .ads-panel { border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.metric-card { min-height: 204px; padding: 22px; }
.metric-label { font-size: 12px; color: #5f6d63; gap: 8px; }.metric-icon { width: 30px; height: 30px; flex-shrink: 0; }
.metric-card > strong { font-size: clamp(25px, 2.3vw, 35px); margin: 16px 0 8px; letter-spacing: -1.4px; overflow-wrap: anywhere; }
.metric-change { font-size: 11px; line-height: 1.55; }.metric-change i { color: var(--muted); }.metric-change.neutral { color: #80644b; }
.mini-bars, .sparkline { display: none; }
.donut-wrap { left: 22px; bottom: 17px; }.donut-wrap small { font-size: 10px; color: #5f6d63; }.donut-wrap .muted { color: var(--muted); }
.metric-footer-link { bottom: 22px; font-size: 11px; color: var(--accent); cursor: pointer; }
.section-heading h2, .panel-heading h2 { font-size: 17px; letter-spacing: -.5px; }.section-heading p, .panel-heading p { font-size: 12px; color: var(--muted); }
.text-button, .panel-footer-button { font-size: 12px; }.section-heading { align-items: center; gap: 16px; }
.upcoming-grid { grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 18px; }
.upcoming-media { height: 170px; }.media-lines { display: none; }.media-title { top: auto; bottom: 12px; font-size: 15px; text-shadow: 0 1px 8px #000; }.post-type { font-size: 10px; padding: 5px 8px; border-radius: 6px; }
.upcoming-info { padding: 18px; }.upcoming-info p { font-size: 13px; font-weight: 700; }.upcoming-meta { font-size: 11px; color: var(--muted); }
.channel { width: 21px; height: 21px; }.card-actions { margin-top: 16px; flex-wrap: wrap; }
.card-actions button, .small-button, .media-delete { font-size: 11px; min-height: 34px; padding: 8px 12px; border-radius: 7px; }
.panel { padding: 24px; }.bottom-grid { gap: 20px; }.panel-heading select { font-size: 11px; padding: 8px; }
.chart { height: 180px; }.chart-bars span { background: #ccd9cc; }.chart-bars span.current { background: #ad7655; }.chart-x, .chart-y { font-size: 10px; color: #6b776e; }
.activity { margin-bottom: 20px; }.activity-avatar { width: 34px; height: 34px; font-size: 10px; }.activity strong, .activity p { font-size: 12px; }.activity small { font-size: 11px; color: var(--muted); }
.filter-chip, .filter-select { min-height: 40px; font-size: 12px; border-radius: 8px; }.filter-chip.active { color: #914b32; border-color: #c89e87; background: #f8eee6; }
.month-switch strong { font-size: 16px; }.month-switch button { height: 36px; width: 36px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.calendar-board { border-radius: 14px; box-shadow: var(--shadow); }.weekdays { background: #edf1ec; }.weekdays span { font-size: 10px; color: #5a6a60; padding: 16px; }
.day { min-width: 0; min-height: 125px; padding: 12px; }.day-number { font-size: 12px; color: #637167; }.day.today { background: #faf8f3; }.calendar-event { font-size: 11px; padding: 7px; }
.search-field { display: flex; align-items: center; min-height: 42px; width: 300px; border-radius: 9px; }.search-field input { width: 100%; min-width: 0; font-size: 12px; }
.library-toolbar, .history-toolbar { flex-wrap: wrap; }.media-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.media-preview, .real-media img, .library-video { height: 190px; }.media-details { padding: 16px; }.media-details strong { font-size: 12px; }.media-details small { font-size: 11px; color: var(--muted); }
.history-item, .approval-item { padding: 18px; border-radius: 12px; gap: 18px; box-shadow: var(--shadow); }
.history-thumb { width: 80px; height: 72px; border-radius: 9px; }.history-thumb span { font-size: 10px; }
.history-copy strong, .approval-copy strong { font-size: 13px; }.history-copy p, .approval-copy p { font-size: 12px; color: var(--muted); }.history-copy small, .approval-copy small { font-size: 11px; color: var(--muted); }
.history-status, .status-pill, .role-pill { font-size: 10px; padding: 6px 10px; }.history-actions, .approval-actions { flex-wrap: wrap; }
.approval-tabs { gap: 28px; }.approval-tabs button { font-size: 13px; }.approval-tabs b { font-size: 10px; }.approval-video { width: 145px; height: 88px; border-radius: 8px; }
.approval-copy { min-width: 0; }.approval-copy strong { overflow-wrap: anywhere; }
.history-detail-head h2 { font-size: 23px; }.history-detail-head p:not(.eyebrow) { font-size: 12px; }.history-detail-grid h3 { font-size: 15px; }.panel-note, .history-muted { font-size: 12px; color: var(--muted); }
.interaction-platform, .history-log-list strong { font-size: 12px; }.history-log-list small, .comment-list small { font-size: 11px; color: var(--muted); }
.boost-card { padding: 20px; border: 1px solid #ead9c9; border-radius: 12px; }.boost-card strong { font-size: 13px; }.boost-card p { font-size: 12px; }
.ads-panel { padding: 24px; }.ads-panel-head h2 { font-size: 20px; }.ads-panel-head p:not(.eyebrow) { font-size: 12px; color: var(--muted); }.ads-panel-controls label { font-size: 12px; }.ads-panel-controls select { font-size: 12px; min-height: 42px; }.ads-sync-status { font-size: 12px; color: var(--muted); }.ads-summary { gap: 12px; }.ads-summary > div { padding: 16px; background: #f2f5f0; border-radius: 9px; }.ads-summary small { font-size: 11px; color: var(--muted); }.ads-summary strong { font-size: 20px; }.ads-campaigns h3 { font-size: 14px; }.ads-campaign strong { font-size: 12px; }.ads-campaign small, .ads-campaign span { font-size: 11px; color: var(--muted); }
.integration-card { padding: 24px; min-height: 210px; }.integration-card h3 { font-size: 17px; }.integration-card p { font-size: 12px; color: var(--muted); }.integration-card button { font-size: 13px; min-height: 36px; }.integration-note { padding: 20px; border-radius: 12px; }.integration-note p { font-size: 12px; }
.team-form-panel label, .modal form > label, .auth-card label { font-size: 12px; }.team-form-panel input, .team-form-panel select, .modal select, .modal textarea, .modal input[type=datetime-local], .auth-card input { font-size: 13px; padding: 12px 14px; border-radius: 9px; min-height: 44px; }
.team-member { padding: 14px; gap: 12px; }.team-member-info { min-width: 0; }.team-member-info strong { font-size: 13px; }.team-member-info small { font-size: 11px; overflow-wrap: anywhere; }.team-total, .form-message { font-size: 11px; }
.modal { border-radius: 18px; padding: 30px; max-height: 90dvh; overflow-y: auto; }.modal-header h2 { font-size: 25px; }.platform-option { font-size: 12px; padding: 12px; }.upload-drop { min-height: 90px; padding: 16px; }.upload-drop strong { font-size: 12px; }.upload-drop small { font-size: 11px; }.library-picker-toggle { font-size: 12px; }
.auth-screen { background: radial-gradient(ellipse at 15% 10%, #52644c 0, transparent 55%), linear-gradient(135deg, #24372c, #101c17); }
.auth-card { width: min(460px, 100%); padding: 44px; border-radius: 22px; background: #fff; border: 1px solid #ffffff30; box-shadow: 0 30px 100px #0004; }
.auth-brand { margin-bottom: 40px; }.auth-card h1 { font-size: 32px; line-height: 1.2; }.auth-subtitle { font-size: 13px; color: var(--muted); }.auth-error { font-size: 12px; }
.notifications-panel { width: min(340px, 90vw); padding: 20px; border-radius: 12px; }.notifications-panel strong { font-size: 14px; }.notification-item b, .notification-item span { font-size: 12px; }
.empty-state { padding: 44px 24px; font-size: 13px; color: var(--muted); border-radius: 12px; background: #ffffff90; }
.toast { max-width: calc(100vw - 40px); padding: 16px 20px; border-radius: 12px; }.toast p { font-size: 13px; }
@keyframes view-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 1250px) { .sidebar { width: 225px; padding-inline: 16px; }.view { padding: 30px 26px 48px; }.topbar { padding-inline: 26px; }.metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.integration-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }.history-item { flex-wrap: wrap; }.history-actions { margin-left: auto; } }
@media (max-width: 900px) { .bottom-grid, .team-layout, .history-detail-grid { grid-template-columns: 1fr; }.calendar-toolbar { flex-wrap: wrap; gap: 16px; }.calendar-filters { flex-wrap: wrap; }.ads-panel-controls { flex-wrap: wrap; } }
@media (max-width: 760px) {
  .app-shell { display: block; }.sidebar { position: relative; width: 100%; height: auto; padding: 18px; overflow: visible; }.brand { padding: 0; }.brand img { width: 170px; }
  .workspace-switcher, .nav-label, .sidebar-bottom, .nav-count { display: none; }.main-nav { display: flex; gap: 6px; overflow-x: auto; padding-top: 16px; padding-bottom: 3px; }.nav-item { font-size: 12px; flex: 0 0 auto; width: auto; min-height: 40px; padding: 9px 13px; margin: 0; gap: 8px; }.nav-item span { font-size: 15px; }.nav-item.active { box-shadow: inset 0 -2px #e3b891; }
  .topbar { height: auto; min-height: 72px; padding: 14px 18px; gap: 12px; flex-wrap: wrap; }.breadcrumb { font-size: 11px; }.primary-button.compact { font-size: 11px; padding: 10px 12px; }.view { padding: 28px 18px 44px; }.page-heading { align-items: flex-start; gap: 18px; }.page-heading h1 { font-size: 28px; }.heading-subtitle { font-size: 12px; }
  .metrics-grid { gap: 12px; }.metric-card { padding: 16px; min-height: 218px; }.metric-label { font-size: 11px; }.metric-card > strong { font-size: 28px; }.metric-change { font-size: 10px; }.donut-wrap { left: 16px; gap: 6px; }.donut-wrap small { font-size: 9px; }.metric-footer-link { font-size: 10px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }.upcoming-grid, .media-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }.history-toolbar .search-field { flex-basis: 100%; max-width: none; }.search-field { width: 100%; }.history-item { gap: 12px; padding: 14px; }.history-copy { flex-basis: calc(100% - 100px); }.history-copy strong { white-space: normal; }.history-actions { margin-left: auto; }.approval-actions { margin-left: 0; width: 100%; }.ads-panel { padding: 18px; }.ads-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.ads-panel-controls select { width: 100%; min-width: 0; }.ads-panel-controls label { width: 100%; }.boost-card { flex-direction: column; align-items: flex-start; }.team-member { flex-wrap: wrap; }.modal { padding: 22px; }.auth-card { padding: 32px 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
