:root {
  /* Socialito guideline tokens: #4622BA, #35D3ED, #FFFFFF, #000000. */
  --brand-primary: #4622BA;
  --brand-primary-hover: #351995;
  --brand-accent: #35D3ED;
  --brand-accent-soft: #E9FBFE;
  --brand-surface: #F7F7FC;
  --brand-text: #171522;
  --brand-border: #E3E1EF;
  --focus-ring: #35D3ED;
  --rose-900: var(--brand-primary);
  --rose-800: var(--brand-primary);
  --rose-600: var(--brand-accent);
  --rose-300: #83E7F4;
  --rose-100: var(--brand-accent-soft);
  --rose-50: #F4FCFE;
  --blue: #6D5CE7;
  --ink: var(--brand-text);
  --muted-ink: #666477;
  --paper: #FFFFFF;
  --canvas: var(--brand-surface);
  --line: var(--brand-border);
  --success: #047857;
  --warning: #a16207;
  --danger: #b91c1c;
  --shadow-sm: 0 1px 2px rgba(35, 22, 92, .06), 0 4px 14px rgba(35, 22, 92, .04);
  --shadow-md: 0 18px 48px rgba(35, 22, 92, .14);
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
  --sidebar: 246px;
  --ease: 220ms cubic-bezier(.22,1,.36,1);
  font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

/* Keep the accessible Inbox automation switch in the focus tree without letting
   the global form-control width create horizontal overflow in RTL/mobile views. */
.automation-switch input {
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

* { box-sizing: border-box; }
#main:focus { outline: none; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100dvh; background: var(--canvas); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.svg-sprite symbol:first-child path, .main-nav a:first-child svg path { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.eyebrow { margin: 0 0 4px; color: var(--rose-800); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted-ink); }
.wordmark { margin: 0; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.wordmark span { color: var(--brand-accent); }
.brand-logo { display: block; width: 132px; height: 58px; object-fit: contain; object-position: left center; }
.login-logo { display: block; width: min(260px, 42vw); height: auto; object-fit: contain; object-position: left center; }
.login-card-logo { width: 130px; margin-bottom: 20px; }

.login-screen { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); min-height: 100dvh; background: var(--paper); }
.login-brand { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; gap: 18px; padding: clamp(40px, 7vw, 100px); color: white; background: var(--brand-primary); }
.login-brand::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 72% 16%, rgba(53,211,237,.3), transparent 25%), linear-gradient(145deg, #4622BA 0%, #351995 58%, #24106F 100%); }
.login-brand::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .32; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.login-brand .eyebrow { color: var(--brand-accent); }
.login-brand h1 { max-width: 690px; margin: 8px 0 18px; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: clamp(48px, 6vw, 88px); font-weight: 700; line-height: .94; letter-spacing: -.06em; }
.login-brand > p:not(.eyebrow) { max-width: 580px; margin: 0; color: #dce9e4; font-size: clamp(17px, 1.8vw, 22px); }
.login-proof { display: flex; align-items: center; gap: 10px; margin-top: 40px; color: #e8f5f0; font-size: 13px; }
.signal-orbit { position: absolute; top: clamp(34px, 7vw, 90px); right: clamp(34px, 7vw, 90px); width: 230px; height: 230px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.signal-orbit::before, .signal-orbit::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.signal-orbit::before { inset: 32px; }.signal-orbit::after { inset: 72px; }
.signal-orbit span { position: absolute; width: 10px; height: 10px; background: white; border-radius: 50%; box-shadow: 0 0 28px 8px rgba(255,255,255,.3); }
.signal-orbit span:nth-child(1) { top: 17px; left: 52px; }.signal-orbit span:nth-child(2) { right: 14px; bottom: 55px; }.signal-orbit span:nth-child(3) { left: 79px; bottom: 57px; }
.login-card { align-self: center; width: min(430px, calc(100% - 48px)); margin: 0 auto; display: grid; gap: 14px; padding: 38px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.login-card > .wordmark { margin-bottom: 26px; }
.login-card h2 { margin: 0; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: 36px; font-weight: 750; line-height: 1.08; letter-spacing: -.04em; }
.login-card .muted { margin: 6px 0 16px; }
label, legend { color: #3f3034; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 13px; color: var(--ink); background: white; border: 1px solid #d8cdca; border-radius: var(--radius-sm); outline: none; transition: border-color var(--ease), box-shadow var(--ease); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--rose-600); box-shadow: 0 0 0 4px rgba(13,148,136,.12); }
.password-wrap { position: relative; }.password-wrap input { padding-right: 68px; }.text-button { position: absolute; top: 4px; right: 4px; min-width: 54px; min-height: 38px; color: var(--rose-800); background: transparent; border: 0; font-size: 12px; font-weight: 700; }
.form-error { min-height: 20px; margin: 0; color: var(--danger); font-size: 13px; }
.security-note { margin: 4px 0 0; color: var(--muted-ink); font-size: 11px; text-align: center; }
.live-dot { width: 8px; height: 8px; flex: 0 0 auto; background: #34d399; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; box-shadow: 0 0 0 4px rgba(52,211,153,.16); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; text-decoration: none; transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.button:active { transform: translateY(0); }
.button.primary { color: white; background: var(--blue); }.button.primary:hover { background: #1e40af; }
.button.ink { color: white; background: var(--ink); }.button.ink:hover { background: #243f38; }
.button.full { width: 100%; }
.button[disabled] { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }

.app-shell { min-height: 100dvh; padding-left: var(--sidebar); }
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar); padding: 24px 18px 18px; color: white; background: var(--brand-primary); border-right: 1px solid rgba(255,255,255,.13); box-shadow: 16px 0 44px rgba(35,22,92,.15); }
.brand-row { display: flex; align-items: center; min-height: 58px; padding: 0 8px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #0f322d; background: #7cebd6; border-radius: 10px 3px 10px 10px; font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif; font-size: 17px; font-weight: 800; }
.main-nav { display: grid; gap: 5px; margin-top: 38px; }
.main-nav a { position: relative; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 11px; min-height: 46px; padding: 8px 11px; color: #d9cdd1; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background var(--ease), color var(--ease); }
.main-nav a:hover { color: white; background: rgba(255,255,255,.07); }
.main-nav a.active { color: white; background: rgba(53,211,237,.2); box-shadow: inset 3px 0 var(--brand-accent); }
.main-nav b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; color: #fff; background: rgba(255,255,255,.14); border-radius: 99px; font-size: 10px; font-variant-numeric: tabular-nums; }
.sidebar-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 14px 4px 0; border-top: 1px solid rgba(255,255,255,.09); }
.user-chip { display: flex; align-items: center; gap: 9px; min-width: 0; }
.user-chip > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: var(--rose-900); background: var(--rose-100); border-radius: 50%; font-weight: 800; }
.user-chip div { display: grid; min-width: 0; }.user-chip strong { overflow: hidden; max-width: 115px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.user-chip small { color: #a9949b; font-size: 10px; text-transform: capitalize; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 10px; transition: background var(--ease), border-color var(--ease); }.icon-button:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.08); }

.topbar { position: sticky; z-index: 40; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 14px clamp(20px, 3.5vw, 54px); background: rgba(244,246,242,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px) saturate(130%); }
.topbar h1 { margin: 0; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: 27px; font-weight: 750; line-height: 1; letter-spacing: -.035em; }
.top-actions { display: flex; align-items: center; gap: 8px; }.topbar .icon-button { color: var(--ink); background: white; border-color: var(--line); }.topbar .icon-button:hover { background: var(--rose-50); }
.language-button { min-height: 38px; padding: 7px 13px; color: var(--rose-900); background: white; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; font-weight: 800; transition: color var(--ease), background var(--ease), border-color var(--ease); }
.language-button:hover { color: white; background: var(--rose-800); border-color: var(--rose-800); }
.health-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px; color: #3c3034; background: white; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; font-weight: 700; }
.health-pill .live-dot { border-color: white; }
.health-pill.demo { color: #244d43; background: #edf8f4; border-color: #bddfd4; }
.health-pill.demo .live-dot { background: #3157c8 !important; box-shadow: 0 0 0 4px rgba(49,87,200,.12); }
.health-pill.warning { color: #7c4a05; background: #fff8e8; border-color: #ecd092; }
.health-pill.warning .live-dot { background: #d97706 !important; box-shadow: 0 0 0 4px rgba(217,119,6,.12); }
.health-pill.loading .live-dot { background: #64748b !important; animation: status-pulse 900ms ease-in-out infinite alternate; box-shadow: 0 0 0 4px rgba(100,116,139,.12); }
main { max-width: 1540px; margin: 0 auto; padding: clamp(20px, 3.5vw, 52px); padding-bottom: 80px; }
main[aria-busy="true"] { cursor: progress; }
.view { animation: view-in 260ms var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes status-pulse { to { opacity: .4; transform: scale(.82); } }

.hero-strip { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; overflow: hidden; min-height: 210px; padding: clamp(26px, 4vw, 52px); color: white; background: linear-gradient(135deg, #17362f 0%, #1e4b43 62%, #1d3f49 100%); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hero-strip::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; top: -260px; right: -30px; border: 70px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero-strip .eyebrow { color: #99f6e4; }.hero-strip h2 { max-width: 790px; margin: 4px 0 8px; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: clamp(31px, 4vw, 52px); font-weight: 720; line-height: 1.02; letter-spacing: -.05em; }.hero-strip p:last-child { max-width: 720px; margin: 0; color: #dce9e4; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.metric { position: relative; overflow: hidden; min-height: 126px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.metric::after { content: ""; position: absolute; width: 46px; height: 5px; right: 17px; top: 18px; background: var(--rose-300); border-radius: 9px; }.metric.warning::after { background: #f59e0b; }.metric.danger::after { background: var(--danger); }.metric.success::after { background: var(--success); }
.metric p { margin: 0; color: var(--muted-ink); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }.metric strong { display: block; margin-top: 22px; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: 36px; font-weight: 700; line-height: .9; font-variant-numeric: tabular-nums; }.metric small { color: var(--muted-ink); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }.span-2 { grid-column: span 2; }
.campaign-panel { margin-top: 16px; }.campaign-head { align-items: center; }.calendar-actions { display: flex; align-items: center; gap: 8px; }.calendar-actions select { min-width: 180px; }.campaign-weekdays, .campaign-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }.campaign-weekdays { margin-bottom: 6px; color: var(--muted-ink); font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .08em; }.campaign-day { min-height: 106px; padding: 8px; background: #faf7f5; border: 1px solid #eee4e0; border-radius: 10px; }.campaign-day.outside { opacity: .38; }.campaign-day.today { border-color: var(--rose-600); box-shadow: inset 0 0 0 1px var(--rose-600); }.campaign-date { display: block; margin-bottom: 6px; color: var(--muted-ink); font-size: 10px; font-weight: 800; }.campaign-event { display: block; overflow: hidden; margin: 3px 0; padding: 4px 6px; color: white; background: var(--rose-800); border-radius: 6px; font-size: 8px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }.campaign-event.posted { background: var(--success); }.campaign-event.failed { background: var(--danger); }.campaign-event.approved { background: var(--blue); }
.panel { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }.panel-head h2 { margin: 0; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: 24px; line-height: 1.1; }.panel-head > a { min-height: 44px; padding: 11px 2px; color: var(--rose-800); font-size: 11px; font-weight: 800; text-decoration: none; }.panel-head > a:hover { text-decoration: underline; }
.queue-actions { display: flex; align-items: center; gap: 10px; }.queue-actions select { width: auto; min-width: 170px; min-height: 40px; padding-block: 7px; }.queue-actions a { color: var(--rose-800); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }.queue-actions a:hover { text-decoration: underline; }
.stack-list { display: grid; gap: 8px; min-height: 96px; }.stack-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-height: 60px; padding: 10px; background: #faf7f5; border: 1px solid #eee5e1; border-radius: 11px; }.stack-item .avatar { display: grid; place-items: center; width: 36px; height: 36px; color: var(--rose-900); background: var(--rose-100); border-radius: 9px; font-weight: 800; }.stack-item div { min-width: 0; }.stack-item strong, .stack-item p { overflow: hidden; display: block; margin: 0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.stack-item p, .stack-item time { color: var(--muted-ink); font-size: 10px; }.stack-item .status { padding: 4px 7px; border-radius: 7px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.queue-open-item { cursor: pointer; transition: transform var(--ease), border-color var(--ease), background var(--ease); }.queue-open-item:hover, .queue-open-item:focus-visible { transform: translateX(2px); background: #fff; border-color: #afc6be; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { width: 7px; height: 7px; flex: 0 0 auto; content: ""; background: currentColor; border-radius: 50%; opacity: .72; }
.status.pending, .status.scheduled { color: #854d0e; background: #fef3c7; }
.status.approved { color: #1e40af; background: #dbeafe; }
.status.sending, .status.publishing, .status.provider-pending { color: #075985; background: #e0f2fe; }
.status.posted, .status.published { color: #065f46; background: #d1fae5; }
.status.failed { color: #991b1b; background: #fee2e2; }
.status.partial { color: #92400e; background: #fef3c7; }
.status.rejected, .status.cancelled, .status.unknown, .status.manual-review, .status.draft { color: #4b5563; background: #e5e7eb; }
.empty-state { display: grid; place-items: center; min-height: 130px; padding: 20px; color: var(--muted-ink); text-align: center; border: 1px dashed #d9ceca; border-radius: 12px; }

.composer { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr); gap: 18px; align-items: start; }.composer-main, .composer-side { padding: clamp(22px, 3.5vw, 42px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }.composer-side { position: sticky; top: 106px; background: #142521; color: white; }.composer-side .eyebrow { color: var(--rose-300); }.composer-side h2 { margin: 0 0 16px; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: 29px; line-height: 1.1; }.section-heading { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; }.section-heading:not(:first-child) { margin-top: 42px; }.section-heading > span { display: grid; place-items: center; width: 44px; height: 44px; color: var(--rose-800); background: var(--rose-100); border-radius: 50%; font-size: 12px; font-weight: 800; }.section-heading h2 { margin: 0; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: 28px; line-height: 1; }
.field-grid { display: grid; gap: 14px; }.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }.composer label { display: grid; gap: 7px; margin-bottom: 16px; }.composer label small { color: var(--muted-ink); font-weight: 400; }.composer label small span { font-variant-numeric: tabular-nums; }.composer fieldset { min-width: 0; margin: 8px 0 0; padding: 0; border: 0; }.composer legend { margin-bottom: 9px; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }.choice { position: relative; }.choice input { position: absolute; opacity: 0; pointer-events: none; }.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; color: #4b3c41; background: #fbf8f6; border: 1px solid #dfd4d0; border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; transition: color var(--ease), background var(--ease), border var(--ease); }.choice input:checked + span { color: white; background: var(--rose-800); border-color: var(--rose-800); }.choice input:focus-visible + span { outline: 3px solid #2563eb; outline-offset: 3px; }
.format-grid { margin-bottom: 6px; }.upload-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 26px 0 10px; padding: 18px; background: #faf7f5; border: 1px dashed #cbbab4; border-radius: 14px; }.upload-zone p { margin: 3px 0; font-size: 11px; }.file-button { position: relative; overflow: hidden; flex: none; }.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }.upload-list { display: grid; gap: 6px; margin-bottom: 14px; }.upload-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; color: #4b3c41; background: #f6efec; border-radius: 9px; font-size: 10px; }.upload-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.upload-item span { color: var(--muted-ink); flex: none; }.media-check-row { display: flex; align-items: center; gap: 12px; margin: -6px 0 20px; }.media-check-row .button { flex: none; }.media-check-row small { color: var(--muted-ink); }.media-check-row small.success { color: var(--success); }.media-check-row small.error { color: var(--danger); }
.upload-item-main { min-width: 0; display: grid; gap: 2px; }.upload-item-main small { color: var(--muted-ink); }.upload-item-actions { display: flex; gap: 5px; direction: ltr; }.upload-item-actions button { min-width: 32px; min-height: 32px; padding: 4px 8px; color: var(--ink); background: white; border: 1px solid #d7c9c4; border-radius: 7px; }.upload-item[data-state="failed"] { background: #fff0f0; }.upload-item[data-state="uploaded"] { background: #edf8f2; }
.media-readiness { margin: 0 0 20px; padding: 14px; background: #f3f7f5; border: 1px solid #d7e4df; border-radius: 12px; }.media-readiness > div { display: flex; align-items: center; gap: 8px; }.media-readiness ul { margin: 8px 0 0 22px; padding: 0; color: var(--muted-ink); font-size: 11px; }.readiness-dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }.media-readiness.ready .readiness-dot { background: var(--success); }.media-readiness.warning .readiness-dot { background: #d97706; }.media-readiness.blocked .readiness-dot { background: var(--danger); }.cover-preview { display: grid; grid-template-columns: minmax(90px, 150px) 1fr; gap: 10px; align-items: center; }.cover-preview img { width: 100%; max-height: 190px; object-fit: contain; background: #12211d; border-radius: 10px; }.cover-preview small { color: var(--muted-ink); }
.ready-list { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }.ready-list li { display: flex; align-items: flex-start; gap: 8px; color: #e8dfe2; font-size: 12px; }.ready-list svg { width: 17px; color: #6ee7b7; }
.preview-card { min-height: 180px; margin: 18px 0; padding: 18px; color: var(--ink); background: var(--paper); border-radius: 13px; }.preview-card p { margin: 8px 0; font-size: 12px; }.preview-card > p:nth-of-type(2) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; color: #493b40; }.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }.tag { padding: 3px 7px; color: var(--rose-800); background: var(--rose-100); border-radius: 6px; font-size: 9px; font-weight: 800; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }.segmented { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px; background: #eae2df; border-radius: 12px; }.segmented button { min-height: 38px; padding: 7px 12px; color: #635158; background: transparent; border: 0; border-radius: 8px; font-size: 11px; font-weight: 800; }.segmented button.active { color: white; background: var(--ink); }.search-field { width: min(300px, 100%); }.search-field input { min-height: 44px; }.board-toolbar { align-items: flex-start; flex-direction: column; }.filter-row { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)) minmax(210px, 1.4fr); gap: 9px; width: 100%; }.filter-row label { display: grid; gap: 5px; color: var(--muted-ink); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.filter-row select, .filter-row input { min-height: 42px; }.filter-row .search-field { width: 100%; }
.board-toolbar-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; width: 100%; }.board-toolbar-head h2 { margin: 0; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.04em; }.board-toolbar-meta { display: flex; align-items: center; gap: 12px; color: var(--muted-ink); font-size: 11px; }.board-toolbar-meta .button { min-height: 40px; }.board-toolbar-meta .button svg { width: 16px; height: 16px; }.board-status-filters { width: 100%; background: #eeedf7; }.board-status-filters button { color: #5f5c78; }.board-status-filters button.active { background: var(--brand-primary); }.board-filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 28px; }.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }.filter-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 4px 9px; color: var(--brand-primary); background: var(--brand-accent-soft); border: 1px solid #b9eef5; border-radius: 999px; font-size: 10px; font-weight: 800; }.filter-chip span { font-size: 15px; line-height: 1; }.text-button { min-height: 34px; padding: 5px 8px; color: var(--brand-primary); background: transparent; border: 0; font-size: 11px; font-weight: 800; }.text-button:hover { text-decoration: underline; }.board-list { display: grid; gap: 18px; }.board-group { display: grid; gap: 7px; }.board-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px 3px; border-bottom: 1px solid var(--line); }.board-group-head h3 { margin: 0; color: var(--brand-text); font-size: 12px; letter-spacing: .02em; }.board-group-head span { color: var(--muted-ink); font-size: 10px; }.board-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) minmax(140px, auto); gap: 15px; align-items: center; min-height: 104px; padding: 11px 14px 11px 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease); }.board-row:hover, .board-row:focus-visible { border-color: #b9c4ee; box-shadow: var(--shadow-md); transform: translateY(-1px); }.board-row.has-attention { border-inline-start: 3px solid var(--brand-accent); }.board-media { position: relative; display: grid; place-items: center; width: 82px; height: 78px; overflow: hidden; color: var(--brand-primary); background: #f1f0fa; border: 1px solid #dedcf1; border-radius: 9px; }.board-media img { width: 100%; height: 100%; object-fit: cover; }.board-media-label { padding: 5px; color: var(--muted-ink); font-size: 9px; font-weight: 800; text-align: center; }.board-media-image .board-media-label { display: none; }.board-media.is-broken img { display: none; }.board-media.is-broken .board-media-label { display: block; }.board-media-count { position: absolute; inset-inline-end: 6px; inset-block-end: 6px; min-width: 22px; padding: 2px 5px; color: white; background: var(--brand-primary); border-radius: 999px; font-size: 10px; text-align: center; }.board-row-main { min-width: 0; }.board-row-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.board-identity { display: grid; gap: 2px; min-width: 0; }.board-identity strong { overflow: hidden; color: var(--brand-text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.board-identity span { overflow: hidden; color: var(--muted-ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.board-caption { display: -webkit-box; overflow: hidden; margin: 7px 0 7px; color: #3f3b52; font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }.board-row-secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted-ink); font-size: 10px; }.board-row-secondary > span + span { padding-inline-start: 8px; border-inline-start: 1px solid var(--line); }.board-attention { color: var(--danger); font-weight: 800; }.board-row-end { display: grid; justify-items: end; gap: 7px; color: var(--muted-ink); font-size: 10px; text-align: end; }.board-row-end time { font-variant-numeric: tabular-nums; white-space: nowrap; }.board-row-action { color: var(--brand-primary); font-weight: 800; white-space: nowrap; }.board-detail-action { padding-inline: 0; }.board-state { display: grid; justify-items: center; gap: 12px; min-height: 180px; align-content: center; padding: 26px; color: var(--muted-ink); background: var(--paper); border: 1px dashed #c9c7df; border-radius: 14px; text-align: center; }.board-state strong { color: var(--brand-text); font-size: 14px; }.board-error { border-color: #e8bcbc; }.board-error strong { color: var(--danger); }.board-stale { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; color: var(--warning); background: #fff9eb; border: 1px solid #f1d99f; border-radius: 9px; font-size: 10px; }
.post-card[data-status="published"] .post-color { background: var(--success); }
.post-card[data-status="cancelled"] .post-color { background: #6b7280; }

.page-panel-head { margin-bottom: 22px; }.inbox-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; }.inbox-layout > div { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }.conversation-list { display: grid; gap: 9px; }.conversation { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: start; min-height: 84px; padding: 14px; background: #faf7f5; border: 1px solid #eee4e0; border-radius: 12px; }.conversation .avatar { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--rose-800); border-radius: 50%; font-weight: 800; }.conversation h3 { margin: 0; font-size: 13px; }.conversation p { margin: 4px 0 0; color: #56464c; font-size: 12px; }.conversation time { color: var(--muted-ink); font-size: 9px; }.inbox-guide { position: sticky; top: 106px; min-height: 300px; padding: 28px; color: white; background: var(--rose-800); border-radius: var(--radius-lg); }.inbox-guide .eyebrow { color: var(--rose-100); }.inbox-guide h2 { margin: 4px 0 16px; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: 33px; line-height: 1.05; }.inbox-guide p:last-child { color: #dce9e4; font-size: 13px; }
.inbox-coming-soon { position: relative; display: grid; place-items: center; min-height: min(620px, calc(100dvh - 170px)); overflow: hidden; padding: clamp(42px, 8vw, 96px) 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); isolation: isolate; }
.inbox-coming-soon::before { content: ""; position: absolute; z-index: -1; top: -180px; right: -150px; width: 440px; height: 440px; border: 1px solid rgba(53,211,237,.32); border-radius: 50%; box-shadow: 0 0 0 26px rgba(53,211,237,.05), 0 0 0 52px rgba(70,34,186,.035); }
.inbox-coming-soon::after { content: ""; position: absolute; z-index: -1; bottom: 12%; left: 12%; width: 72px; height: 1px; background: var(--brand-accent); box-shadow: 0 0 0 9px rgba(53,211,237,.09); }
.inbox-coming-soon-inner { width: min(100%, 460px); text-align: center; }
.inbox-coming-soon-mark { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 25px; color: var(--brand-primary); background: var(--brand-accent-soft); border: 1px solid rgba(53,211,237,.8); border-radius: 22px; box-shadow: 0 14px 32px rgba(70,34,186,.09); }
.inbox-coming-soon-mark svg { width: 32px; height: 32px; stroke-width: 1.5; }
.inbox-coming-soon .eyebrow { margin-bottom: 9px; }
.inbox-coming-soon h2 { margin: 0; color: var(--brand-text); font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: clamp(46px, 7vw, 78px); letter-spacing: -.045em; line-height: .98; }
.inbox-coming-soon p:last-child { max-width: 320px; margin: 18px auto 0; color: var(--muted-ink); font-size: 13px; line-height: 1.65; }
.source-notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 0 18px; padding: 16px 18px; color: #3d3035; background: #eef8f3; border: 1px solid #c6e5d5; border-radius: 13px; }.source-notice.warning { background: #fff8e8; border-color: #f2d79b; }.source-notice p { max-width: 760px; margin: 2px 0; font-size: 11px; }.conversation.alert-item { border-left: 4px solid var(--danger); }.conversation.notice-item { border-left: 4px solid #f59e0b; }.conversation .conversation-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.inbox-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; margin-bottom: 18px; padding: 18px; }.inbox-filter-row { grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(260px, 1.7fr); }.platform-filter { min-width: 0; margin: 0; padding: 0; border: 0; }.platform-filter legend { margin-bottom: 5px; color: var(--muted-ink); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.check-row { display: flex; flex-wrap: wrap; gap: 6px; min-height: 42px; align-items: center; }.compact-choice { position: relative; }.compact-choice input { position: absolute; opacity: 0; pointer-events: none; }.compact-choice span { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 10px; color: #5f4e54; background: #f5efec; border: 1px solid #e5d9d4; border-radius: 999px; font-size: 9px; font-weight: 800; cursor: pointer; }.compact-choice input:checked + span { color: white; background: var(--ink); border-color: var(--ink); }.compact-choice input:focus-visible + span { outline: 3px solid #2563eb; outline-offset: 2px; }.automation-switch { display: grid; grid-template-columns: minmax(170px, 1fr) auto auto; gap: 10px; align-items: center; min-width: 330px; padding: 12px 14px; background: #f7f2f0; border: 1px solid #e6dad6; border-radius: 12px; cursor: pointer; }.automation-switch > span:first-child { display: grid; gap: 2px; }.automation-switch strong { font-size: 11px; }.automation-switch small { max-width: 240px; color: var(--muted-ink); font-size: 9px; line-height: 1.4; }.automation-switch input { position: absolute; opacity: 0; pointer-events: none; }.switch-track { position: relative; width: 42px; height: 24px; background: #b8aaa5; border-radius: 999px; transition: background var(--ease); }.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; box-shadow: 0 1px 5px #3d303533; transition: transform var(--ease); }.automation-switch input:checked + .switch-track { background: #15803d; }.automation-switch input:checked + .switch-track::after { transform: translateX(18px); }.automation-switch input:focus-visible + .switch-track { outline: 3px solid #2563eb; outline-offset: 3px; }.automation-switch.enabled { background: #eef8f3; border-color: #b9dfcc; }.grouped-inbox { gap: 14px; }.inbox-group { overflow: hidden; background: #fff; border: 1px solid #eadfdb; border-radius: 14px; }.inbox-group-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f3ece9; }.inbox-group-head .avatar { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--rose-800); border-radius: 50%; font-weight: 800; }.inbox-group-head h3 { margin: 0; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: 18px; }.inbox-group-head small { color: var(--muted-ink); font-size: 9px; }.inbox-group .conversation { margin: 0; border-width: 0 0 1px; border-radius: 0; }.inbox-group .conversation:last-child { border-bottom: 0; }.draft-reply { margin-top: 9px; padding: 9px 10px; background: #eef8f3; border: 1px solid #c7e4d5; border-radius: 9px; }.draft-reply small { color: #166534; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }.draft-reply p { color: #204c34; }
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.client-card { min-height: 200px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }.client-card.inactive { opacity: .68; }.client-card-head { display: flex; justify-content: space-between; gap: 12px; }.client-card h3 { margin: 0; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: 23px; }.client-card p { margin: 2px 0; color: var(--muted-ink); font-size: 11px; }.platform-list { display: grid; gap: 6px; margin-top: 24px; }.platform-row { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 8px; background: #f1e9e6; border-radius: 8px; }.platform-row.off { opacity: .55; }.platform-row strong { font-size: 10px; }.platform-row small { overflow: hidden; color: var(--muted-ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.platform-row .danger-link { margin-left: auto; }.danger-link { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 8px; color: #991b1b; background: transparent; border: 1px solid #fecaca; border-radius: 8px; font-size: 9px; font-weight: 800; }.danger-link svg { width: 13px; }.client-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }.client-count { margin-top: 14px; color: var(--muted-ink); font-size: 10px; }
.client-connect-button { width: 100%; min-height: 42px; margin-top: 14px; justify-content: center; color: #0d5f52; background: #e7f7f2; border-color: #b9dfd4; font-weight: 800; }.client-connect-button:hover { color: white; background: #176b55; border-color: #176b55; }.client-connect-button svg { width: 16px; height: 16px; }
.integration-dialog { width: min(720px, calc(100% - 28px)); }.account-picker-panel { display: grid; gap: 12px; padding: 17px; background: linear-gradient(145deg, #f1f8f5, #f8fbf9); border: 1px solid #d5e6df; border-radius: 15px; }.account-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.account-picker-head div { display: grid; gap: 2px; }.account-picker-head small { color: var(--muted-ink); font-size: 10px; }.account-picker-head .button { flex: none; min-height: 38px; }.account-picker-status { min-height: 18px; margin: -4px 0 0; color: var(--muted-ink); font-size: 10px; }.account-picker-status.error { color: var(--danger); }.connection-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 11px 14px; color: #315c51; background: #f5f8f6; border: 1px dashed #bfd0c8; border-radius: 12px; font-size: 11px; font-weight: 800; text-align: center; }.connection-route b { color: var(--rose-600); font-size: 18px; }.connection-safety { margin: 0; padding: 11px 13px; color: #54645f; background: #f7f8f5; border-left: 3px solid #7aa99b; border-radius: 5px 10px 10px 5px; font-size: 10px; }
.danger-link.destructive { color: white; background: #991b1b; border-color: #991b1b; }.danger-link.destructive:hover { background: #7f1d1d; }
.team-panel { margin-top: 28px; }.team-panel .panel-head .muted { max-width: 620px; margin: 5px 0 0; font-size: 12px; }.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.team-member { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; background: #faf7f5; border: 1px solid #eee4e0; border-radius: 12px; }.team-avatar { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--rose-800); border-radius: 12px; font-weight: 800; }.team-member h3, .team-member p { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }.team-member h3 { font-size: 13px; }.team-member p { color: var(--muted-ink); font-size: 10px; }.team-member .tag-row { justify-content: flex-end; max-width: 190px; }
.dialog-card { width: min(680px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 28px 80px rgba(38,23,28,.28); }.dialog-card::backdrop { background: rgba(38,23,28,.62); backdrop-filter: blur(5px); }.dialog-card form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 36px); }.dialog-card label { display: grid; gap: 7px; }.dialog-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }.dialog-card legend { margin-bottom: 4px; }.dialog-close { color: var(--ink); border-color: var(--line); line-height: 1; }.dialog-close svg { width: 19px; height: 19px; }.user-scope-note { margin: 0 0 10px; font-size: 11px; }.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }.dialog-actions .button:not(.primary) { color: var(--ink); background: white; border-color: var(--line); }
.post-dialog { width: min(820px, calc(100% - 28px)); }.post-dialog form { max-height: calc(100dvh - 28px); overflow-y: auto; }.post-dialog-head { align-items: flex-start; }.post-dialog-head .tag-row { margin-top: 9px; }.post-media-viewer { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }.post-media-item { position: relative; display: grid; place-items: center; min-height: 140px; overflow: hidden; color: var(--ink); background: #edf3f0; border: 1px solid #d8e4df; border-radius: 13px; text-decoration: none; }.post-media-item img, .post-media-item video { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #0f201c; }.post-media-item span { padding: 18px; font-size: 12px; font-weight: 800; text-align: center; overflow-wrap: anywhere; }.post-media-empty { display: grid; place-items: center; min-height: 88px; color: var(--muted-ink); background: #f5f7f6; border: 1px dashed #c9d8d2; border-radius: 13px; }.timezone-note { margin: -4px 0 0; color: var(--muted-ink); font-size: 11px; }.post-dialog-actions { flex-wrap: wrap; }.post-dialog-actions #publishNowButton { color: white; background: #176b55; border-color: #176b55; }.post-dialog-actions #publishNowButton:hover { background: #10513f; }.dialog-actions.post-dialog-actions .button.destructive-outline { color: #8b2e2e; background: #fff8f8; border-color: #e4baba; }.dialog-actions.post-dialog-actions .button.destructive-outline:hover { color: white; background: #9f2d2d; border-color: #9f2d2d; }.post-lock-notice { padding: 11px 13px; color: #514c47; background: #f4f1ed; border-left: 3px solid #7b746c; border-radius: 5px 10px 10px 5px; font-size: 11px; }
.post-media-editor-item { display: grid; gap: 6px; padding: 8px; background: #edf3f0; border: 1px solid #d8e4df; border-radius: 13px; }.post-media-editor-item .post-media-item { min-height: 110px; }.post-media-editor-item .upload-item-actions { justify-content: center; }.post-media-editor-item small { color: var(--muted-ink); text-align: center; }
.platform-settings { display: grid; gap: 10px; margin: 14px 0; }
.platform-setting-card { display: grid; gap: 10px; padding: 15px; background: #f3f7f5; border: 1px solid #d7e4df; border-radius: 13px; }
.platform-setting-card .eyebrow, .platform-setting-card p { margin: 0; }
.platform-setting-card code { padding: 2px 5px; color: #174f42; background: #e2efe9; border-radius: 5px; font-size: .9em; }
.inline-check { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 10px 12px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.inline-check input, .youtube-flags input { width: 18px; min-height: 18px; margin: 0; accent-color: #14745e; }
.youtube-flags { gap: 14px; }
.youtube-flags label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 750; }
.post-media-item:has(video) { align-content: start; }
.media-preview-fallback { margin: 8px 12px 0; color: var(--muted-ink); font-size: 11px; text-align: center; }
.post-targets { display: grid; gap: 8px; padding: 12px; background: #f7faf8; border: 1px solid #d8e4df; border-radius: 13px; }
.post-targets-head, .post-target-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.post-targets-head h3 { margin: 0; font-size: 14px; }
.post-target-row { padding-top: 9px; border-top: 1px solid #e1eae6; }
.post-target-row > div { display: grid; gap: 3px; }
.post-target-row p { margin: 3px 0 0; color: var(--muted-ink); font-size: 11px; }
.post-target-row small { color: var(--muted-ink); }
.media-open-link { width: 100%; padding: 9px 12px; color: #0f5f50; background: #e5f5ef; border-top: 1px solid #cce7dc; font-size: 10px; font-weight: 800; text-align: center; text-decoration: none; }
.media-open-link:hover { background: #d8eee5; }
.schedule-display { display: block; margin-top: 7px; color: var(--brand-primary); font-size: 11px; font-weight: 800; }
.media-preview-shell { display: grid; place-items: center; min-height: 140px; width: 100%; padding: 16px; background: #0f201c; }
.media-preview-action { min-height: 40px; padding: 9px 14px; color: white; background: #176b55; border: 1px solid #2b816b; border-radius: 9px; font-size: 11px; font-weight: 800; cursor: pointer; }
.media-preview-action:hover { background: #10513f; }
.media-preview-fallback[hidden], .media-open-link[hidden] { display: none; }
.review-confirmation { grid-template-columns: auto 1fr; align-items: center; gap: 12px !important; padding: 13px 15px; color: #21433a; background: #edf8f3; border: 1px solid #bfdfd2; border-radius: 12px; cursor: pointer; }
.review-confirmation input { width: 20px; min-height: 20px; margin: 0; accent-color: #14745e; }
.review-confirmation span { display: grid; gap: 2px; }
.review-confirmation strong { font-size: 12px; }
.review-confirmation small { color: #4e6860; font-size: 10px; font-weight: 600; }
.report-hero { max-width: 790px; margin-bottom: 28px; }.report-hero h2 { margin: 4px 0 12px; font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", "Noto Sans Arabic", sans-serif; font-size: clamp(34px, 5vw, 62px); line-height: .98; }.report-hero p:last-child { color: var(--muted-ink); }
.report-table-panel { margin-top: 18px; }.table-wrap { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }.data-table th, .data-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }.data-table th { color: var(--muted-ink); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }.data-table tbody tr:last-child td { border-bottom: 0; }
[dir="rtl"] .app-shell { padding-right: var(--sidebar); padding-left: 0; }
[dir="rtl"] .sidebar { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid rgba(255,255,255,.07); }
[dir="rtl"] .password-wrap input { padding-right: 13px; padding-left: 68px; }
[dir="rtl"] .text-button { right: auto; left: 4px; }
[dir="rtl"] .data-table th, [dir="rtl"] .data-table td { text-align: right; }
[dir="rtl"] .hero-strip::after { right: auto; left: -30px; }
.bar-chart { display: flex; align-items: flex-end; gap: clamp(8px, 2.3vw, 30px); min-height: 260px; padding: 24px 8px 0; border-bottom: 1px solid #ccbdb8; }.bar { position: relative; flex: 1; min-width: 24px; max-width: 92px; background: linear-gradient(to top, var(--rose-800), var(--rose-600)); border-radius: 8px 8px 0 0; transition: height 320ms var(--ease); }.bar span { position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }.bar small { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); color: var(--muted-ink); font-size: 9px; }
.bar.h-1 { height: 10%; }.bar.h-2 { height: 20%; }.bar.h-3 { height: 30%; }.bar.h-4 { height: 40%; }.bar.h-5 { height: 50%; }.bar.h-6 { height: 60%; }.bar.h-7 { height: 70%; }.bar.h-8 { height: 80%; }.bar.h-9 { height: 90%; }.bar.h-10 { height: 100%; }

.bottom-nav { display: none; }.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(360px, calc(100% - 36px)); }.toast { padding: 13px 15px; color: white; background: var(--ink); border-radius: 11px; box-shadow: var(--shadow-md); font-size: 12px; animation: toast-in 220ms var(--ease) both; }.toast.error { background: var(--danger); }@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.skeleton-block:empty::before { content: ""; display: block; min-height: 100px; border-radius: 10px; background: linear-gradient(90deg, #f2ebe8 25%, #faf7f5 50%, #f2ebe8 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1120px) {
  :root { --sidebar: 210px; }.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.board-grid, .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dashboard-grid > .panel { grid-column: auto; }.dashboard-grid > .span-2 { grid-column: span 2; }.composer { grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); }.team-grid { grid-template-columns: 1fr; }.filter-row { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
}

@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; }.login-brand { display: none; }.login-card { width: min(430px, calc(100% - 32px)); padding: 28px; }
  .app-shell, [dir="rtl"] .app-shell { padding-left: 0; padding-right: 0; padding-bottom: 74px; }.sidebar { display: none; }.topbar { min-height: 76px; padding: 12px 18px; }.topbar h1 { font-size: 24px; }main { padding: 18px; padding-bottom: 40px; }
  .bottom-nav { position: fixed; z-index: 50; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); background: rgba(38,23,28,.97); border-top: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(14px); }.bottom-nav a { display: grid; place-items: center; gap: 1px; min-height: 56px; color: #baa9af; border-radius: 9px; font-size: 9px; text-decoration: none; }.bottom-nav a.active { color: white; background: var(--rose-800); }.bottom-nav svg { width: 19px; }
  .hero-strip { display: grid; align-items: start; min-height: 240px; }.hero-strip .button { justify-self: start; }.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dashboard-grid { grid-template-columns: 1fr; }.dashboard-grid > .span-2 { grid-column: auto; }.composer { grid-template-columns: 1fr; }.composer-side { position: static; }.inbox-controls { grid-template-columns: 1fr; }.inbox-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }.platform-filter { grid-column: 1 / -1; }.automation-switch { min-width: 0; }.inbox-layout { grid-template-columns: 1fr; }.inbox-guide { position: static; min-height: 230px; }.toolbar { align-items: stretch; flex-direction: column; }.search-field { width: 100%; }.filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }.source-notice { display: grid; }.campaign-day { min-height: 82px; padding: 5px; }.campaign-event { font-size: 0; min-height: 8px; padding: 0; }.board-toolbar-head { align-items: stretch; flex-direction: column; }.board-toolbar-meta { justify-content: space-between; }.board-status-filters { overflow-x: auto; flex-wrap: nowrap; }.board-status-filters button { flex: 0 0 auto; }.board-row { grid-template-columns: 68px minmax(0, 1fr); gap: 11px; }.board-media { width: 68px; height: 68px; }.board-row-end { grid-column: 2; display: flex; align-items: center; justify-content: space-between; flex-direction: row; text-align: start; }.board-row-secondary { gap: 6px; }.board-row-secondary > span + span { padding-inline-start: 6px; }
}

@media (max-width: 560px) {
  .top-actions .health-pill { display: none; }.language-button { min-width: 70px; }.hero-strip { padding: 24px; }.hero-strip h2 { font-size: 34px; }.metric-grid { gap: 8px; }.metric { min-height: 112px; padding: 14px; }.metric strong { font-size: 31px; }.panel { padding: 16px; }.field-grid.two { grid-template-columns: 1fr; }.composer-main, .composer-side { padding: 20px; border-radius: var(--radius); }.segmented { display: flex; overflow-x: auto; }.board-status-filters { display: flex; }.board-filter-summary { align-items: flex-start; flex-direction: column; }.board-row { grid-template-columns: 56px minmax(0, 1fr); gap: 9px; padding: 9px; }.board-media { width: 56px; height: 58px; }.board-row-top { align-items: flex-start; flex-direction: column; gap: 6px; }.board-row-end { gap: 8px; }.board-caption { margin-top: 5px; }.board-row-secondary { font-size: 9px; }.board-state { min-height: 150px; }.board-stale { align-items: flex-start; flex-direction: column; }.inbox-filter-row { grid-template-columns: 1fr; }.platform-filter { grid-column: auto; }.automation-switch { grid-template-columns: 1fr auto; }.automation-switch .switch-track { grid-row: 1; grid-column: 2; }.conversation { grid-template-columns: 38px 1fr; }.conversation time { grid-column: 2; }.page-panel-head, .queue-panel-head { align-items: flex-start; flex-direction: column; }.page-panel-head .button { width: 100%; }.queue-actions { width: 100%; }.queue-actions select { flex: 1; min-width: 0; }.bar-chart { min-height: 210px; }.team-member { grid-template-columns: auto 1fr; }.team-member .tag-row { grid-column: 2; justify-content: flex-start; max-width: none; }.dialog-actions { flex-direction: column-reverse; }.dialog-actions .button { width: 100%; }.filter-row { grid-template-columns: 1fr; }.upload-zone, .media-check-row, .campaign-head { align-items: stretch; flex-direction: column; }.file-button { width: 100%; }.calendar-actions { width: 100%; }.calendar-actions select { flex: 1; min-width: 0; }.campaign-day { min-height: 62px; }.campaign-weekdays { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 2026 refinement: calm operations palette, stronger hierarchy, clearer risk. */
h1, h2, h3, .wordmark { text-wrap: balance; }
.panel, .metric, .client-card, .post-card, .composer-main { box-shadow: var(--shadow-sm); }
.panel, .metric, .client-card, .post-card { transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.panel:hover, .metric:hover, .client-card:hover { border-color: #cbd7cf; box-shadow: 0 10px 30px rgba(21,41,35,.075); }
.button.primary { background: var(--blue); box-shadow: 0 7px 18px rgba(49,87,200,.16); }
.button.primary:hover { background: #2849ad; box-shadow: 0 10px 24px rgba(49,87,200,.22); }
.button.ink { background: #20352f; }
.button.ink:hover { background: #172823; }
.eyebrow { color: var(--rose-800); font-weight: 800; }
.client-card.inactive { opacity: .82; background: #fafbf9; }
.client-card-head { align-items: flex-start; }
.client-card .status { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.platform-row { background: #f2f5f1; border: 1px solid #e4e9e3; }
.danger-link:not(.destructive) { color: #56645f; border-color: #d5ddd7; }
.danger-link:not(.destructive):hover { color: var(--ink); background: #eef2ee; border-color: #bac7be; }
.danger-link.destructive { background: #a32929; border-color: #a32929; }
.danger-link.destructive:hover { background: #842020; }
.bottom-nav { background: rgba(20,37,33,.97); }
.bottom-nav a.active { background: rgba(45,212,191,.16); box-shadow: inset 0 2px #5eead4; }
.dialog-card { box-shadow: 0 32px 90px rgba(17,31,27,.28); }
.dialog-card::backdrop { background: rgba(13,28,24,.6); }
.delete-dialog { width: min(590px, calc(100% - 28px)); }
.delete-summary { display: flex; align-items: center; gap: 14px; padding: 15px; background: #f4f6f2; border: 1px solid var(--line); border-radius: 12px; }
.delete-summary p { margin: 3px 0 0; color: var(--muted-ink); font-size: 11px; }
.delete-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; color: #991b1b; background: #fee2e2; border-radius: 11px; }
.delete-icon svg { width: 19px; }
.delete-warning { margin: 0; padding: 13px 15px; color: #713131; background: #fff7f7; border-left: 3px solid #c94a4a; border-radius: 4px 10px 10px 4px; font-size: 12px; line-height: 1.6; }
.dialog-actions .destructive-button { color: white; background: #a32929; border-color: #a32929; }
.dialog-actions .destructive-button:hover { background: #842020; }
.dialog-actions .destructive-button:disabled { color: white; background: #a32929; border-color: #a32929; opacity: .42; }
[dir="rtl"] .delete-warning { border-right: 3px solid #c94a4a; border-left: 0; border-radius: 10px 4px 4px 10px; }

/* Phone-first operating layer: fast thumb access without flattening the desktop UI. */
.mobile-account-button,
.mobile-publish-bar { display: none; }
.mobile-menu-card { width: min(440px, calc(100% - 28px)); }
.mobile-menu-card > div,
.mobile-menu-card > nav,
.mobile-menu-card > button { margin-inline: 24px; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.mobile-account-summary { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mobile-account-summary > span { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; color: var(--rose-900); background: var(--rose-100); border-radius: 14px 5px 14px 14px; font-size: 17px; font-weight: 800; }
.mobile-account-summary div { min-width: 0; }
.mobile-account-summary h2 { overflow: hidden; margin: 0; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-account-summary small { color: var(--muted-ink); font-size: 11px; text-transform: capitalize; }
.mobile-more-nav { display: grid; gap: 8px; padding-block: 22px; }
.mobile-more-nav a { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; min-height: 62px; padding: 9px 12px; background: #f4f6f2; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; transition: background var(--ease), border-color var(--ease); }
.mobile-more-nav a:hover { background: var(--rose-50); border-color: #b9d8cd; }
.mobile-more-nav a > svg { justify-self: center; color: var(--rose-800); }
.mobile-more-nav a span { display: grid; gap: 1px; }
.mobile-more-nav a strong { font-size: 13px; }
.mobile-more-nav a small { color: var(--muted-ink); font-size: 10px; }
.mobile-logout-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: calc(100% - 48px); min-height: 48px; margin-bottom: 24px; color: #8b2e2e; background: #fff7f7; border: 1px solid #eccaca; border-radius: 11px; font-weight: 800; }

@media (max-width: 820px) {
  html { scroll-padding-top: calc(84px + env(safe-area-inset-top)); }
  body { overscroll-behavior-y: contain; }
  input, select, textarea { min-height: 48px; font-size: 16px; }
  textarea { line-height: 1.55; }
  .app-shell, [dir="rtl"] .app-shell { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .view { animation: none; }
  .topbar { min-height: calc(72px + env(safe-area-inset-top)); padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
  .topbar > div:first-child { min-width: 0; }
  .topbar h1 { overflow: hidden; font-size: clamp(20px, 6vw, 24px); text-overflow: ellipsis; white-space: nowrap; }
  .topbar .eyebrow { font-size: 9px; }
  .top-actions { flex: 0 0 auto; gap: 6px; }
  .topbar .icon-button,
  .language-button,
  .mobile-account-button { min-width: 44px; min-height: 44px; }
  .language-button { padding-inline: 11px; }
  .mobile-account-button { display: grid; place-items: center; padding: 0; color: var(--rose-900); background: var(--rose-100); border: 1px solid #a9d8cc; border-radius: 13px 4px 13px 13px; font-size: 13px; font-weight: 900; }
  main { width: 100%; padding: 16px; padding-bottom: 34px; }
  body[data-route="create"] main { padding-bottom: calc(156px + env(safe-area-inset-bottom)); }

  .bottom-nav { min-height: calc(68px + env(safe-area-inset-bottom)); padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); }
  .bottom-nav a { gap: 2px; min-width: 0; min-height: 58px; font-size: 10px; font-weight: 650; touch-action: manipulation; transition: color var(--ease), background var(--ease); }
  .bottom-nav a:active { background: rgba(255,255,255,.1); }
  .bottom-nav svg { width: 21px; height: 21px; }
  .bottom-nav b { position: absolute; }

  .mobile-publish-bar { position: fixed; z-index: 45; right: 0; bottom: calc(68px + env(safe-area-inset-bottom)); left: 0; display: block; padding: 10px 16px; background: rgba(244,246,242,.96); border-top: 1px solid var(--line); box-shadow: 0 -12px 32px rgba(21,41,35,.09); backdrop-filter: blur(16px) saturate(135%); }
  .mobile-publish-bar .button { max-width: 620px; min-height: 50px; margin-inline: auto; }
  .toast-region { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); width: calc(100% - 24px); }
  body[data-route="create"] .toast-region { bottom: calc(144px + env(safe-area-inset-bottom)); }

  .hero-strip { min-height: 210px; }
  .hero-strip h2 { max-width: 18ch; }
  .metric { min-width: 0; }
  .stack-item { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .stack-item > .status,
  .stack-item > time { grid-column: 2; justify-self: start; }
  .queue-actions select { min-height: 44px; }
  .queue-actions a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: 6px; }
  .calendar-actions .icon-button { color: var(--ink); background: white; border-color: var(--line); }

  .composer { gap: 14px; }
  .composer-main, .composer-side { padding: clamp(18px, 4vw, 28px); }
  .composer-side { top: auto; }
  .composer-side > .button[type="submit"] { display: none; }
  .composer fieldset { margin-top: 12px; }
  .choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice { min-width: 0; }
  .choice span { justify-content: center; width: 100%; min-height: 48px; padding-inline: 10px; text-align: center; }
  .upload-zone { min-height: 132px; }
  .file-button { min-height: 48px; }
  .upload-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 48px; font-size: 11px; }
  .preview-card { min-height: 0; }

  .segmented button,
  .compact-choice span,
  .danger-link { min-height: 44px; }
  .filter-row select,
  .filter-row input { min-height: 48px; }
  .check-row { gap: 8px; }
  .automation-switch { min-height: 64px; }
  .conversation { min-height: 96px; }
  .platform-row { min-height: 48px; }
  .platform-row .danger-link { min-width: 44px; justify-content: center; }
  .client-actions { align-items: stretch; }
  .client-actions > * { min-height: 44px; }
  .team-member { min-height: 72px; }
  .inbox-guide { min-height: 0; }

  .table-wrap { overflow: visible; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .data-table tbody { display: grid; gap: 10px; }
  .data-table tr { padding: 8px 14px; background: #f8faf7; border: 1px solid var(--line); border-radius: 12px; }
  .data-table td { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; padding: 8px 0; text-align: end; border-bottom: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
  .data-table td::before { content: attr(data-label); color: var(--muted-ink); font-size: 10px; font-weight: 800; text-align: start; text-transform: uppercase; letter-spacing: .045em; }
  .data-table tr td:last-child { border-bottom: 0; }
  .data-table .empty-report-row td { display: block; padding: 22px 0; text-align: center; }
  .data-table .empty-report-row td::before { content: none; }

  .dialog-card { max-height: calc(100dvh - env(safe-area-inset-top) - 12px); overflow-y: auto; overscroll-behavior: contain; }
  .dialog-card form { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .login-screen { align-items: center; padding: max(16px, env(safe-area-inset-top)) 0 max(16px, env(safe-area-inset-bottom)); }
  .login-card { width: calc(100% - 24px); padding: 24px 20px; border-radius: 18px; }
  .login-card > .wordmark { margin-bottom: 12px; }
  .login-card h2 { font-size: 31px; }

  main { padding: 12px; }
  .topbar { padding-inline: 12px; }
  .top-actions { gap: 4px; }
  .topbar .icon-button,
  .language-button,
  .mobile-account-button { min-width: 44px; width: 44px; height: 44px; padding: 0; }
  .language-button { width: auto; min-width: 58px; padding-inline: 8px; font-size: 10px; }
  .hero-strip { min-height: 188px; padding: 22px 20px; border-radius: 16px; }
  .hero-strip h2 { font-size: clamp(28px, 9vw, 34px); }
  .hero-strip .button { width: 100%; }
  .metric { min-height: 104px; padding: 13px; }
  .metric strong { margin-top: 18px; font-size: 29px; }
  .panel { padding: 15px; }
  .panel-head h2 { font-size: 21px; }
  .queue-actions { display: grid; grid-template-columns: 1fr auto; }
  .queue-actions select { width: 100%; }
  .campaign-panel { overflow: hidden; }
  .campaign-weekdays, .campaign-calendar { gap: 3px; }
  .campaign-day { min-height: 58px; padding: 4px; border-radius: 7px; }
  .campaign-date { margin-bottom: 3px; font-size: 9px; }
  .campaign-event { min-height: 7px; }

  .section-heading { gap: 10px; margin-bottom: 18px; }
  .section-heading:not(:first-child) { margin-top: 32px; }
  .section-heading > span { width: 38px; height: 38px; }
  .section-heading h2 { font-size: 23px; }
  .composer-main, .composer-side { padding: 18px 16px; }
  .upload-zone { padding: 16px; }
  .media-check-row .button { width: 100%; }
  .ready-list { margin-bottom: 16px; }
  .preview-card { margin-bottom: 6px; }

  .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .segmented button { min-height: 46px; }
  .segmented button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .source-notice { padding: 14px; }
  .source-notice p { font-size: 12px; line-height: 1.55; }
  .inbox-layout > div { padding: 14px; border-radius: 14px; }
  .conversation { grid-template-columns: 40px minmax(0, 1fr); padding: 12px; }
  .conversation p { font-size: 13px; line-height: 1.5; }
  .inbox-group-head { padding: 11px; }
  .client-card { min-height: 0; padding: 17px; }
  .client-grid { grid-template-columns: minmax(0, 1fr); }
  .client-card, .platform-list, .platform-row { min-width: 0; }
  .platform-row small { min-width: 0; flex: 1 1 auto; }
  .platform-row .danger-link { flex: none; margin-inline-start: auto; margin-left: 0; }
  .client-card h3 { font-size: 21px; }
  .client-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .client-actions > :only-child { grid-column: 1 / -1; }
  .platform-row small { font-size: 10px; }
  .account-picker-head { align-items: stretch; flex-direction: column; }
  .account-picker-head .button { width: 100%; }
  .connection-route { grid-template-columns: 1fr; gap: 4px; }
  .connection-route b { transform: rotate(90deg); }
  .team-panel .panel-head { flex-direction: column; }
  .team-panel .panel-head .button { width: 100%; }
  .report-hero { margin-bottom: 20px; }
  .report-hero h2 { font-size: 36px; }
  .bar-chart { gap: 6px; min-height: 190px; padding-inline: 0; }
  .bar { min-width: 18px; }
  .bar small { font-size: 8px; }

  .dialog-card,
  .mobile-menu-card { width: 100%; max-height: calc(92dvh - env(safe-area-inset-top)); margin: auto 0 0; border-width: 1px 0 0; border-radius: 22px 22px 0 0; }
  .dialog-card form { padding: 22px 16px calc(20px + env(safe-area-inset-bottom)); }
  .dialog-card .panel-head { flex-direction: row; }
  .dialog-card .dialog-close { width: 44px; }
  .mobile-menu-card > div,
  .mobile-menu-card > nav,
  .mobile-menu-card > button { margin-inline: 16px; }
  .mobile-menu-head { margin-top: 18px; }
  .mobile-logout-button { width: calc(100% - 32px); margin-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .topbar h1 { max-width: 94px; }
  .topbar .eyebrow { display: none; }
  .language-button { min-width: 52px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { min-height: 92px; }
  .choice-grid { grid-template-columns: 1fr; }
  .client-actions { grid-template-columns: 1fr; }
}

@media (max-height: 480px) and (orientation: landscape) and (max-width: 900px) {
  .app-shell, [dir="rtl"] .app-shell { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
  .topbar { min-height: calc(56px + env(safe-area-inset-top)); padding-block: calc(6px + env(safe-area-inset-top)) 6px; }
  .topbar .eyebrow,
  .top-actions .health-pill { display: none; }
  main { padding-top: 12px; }
  body[data-route="create"] main { padding-bottom: calc(122px + env(safe-area-inset-bottom)); }
  .bottom-nav { min-height: calc(54px + env(safe-area-inset-bottom)); padding-block: 2px calc(2px + env(safe-area-inset-bottom)); }
  .bottom-nav a { grid-template-columns: auto auto; justify-content: center; gap: 6px; min-height: 50px; }
  .bottom-nav svg { width: 18px; height: 18px; }
  .mobile-publish-bar { bottom: calc(54px + env(safe-area-inset-bottom)); padding-block: 6px; }
  .mobile-publish-bar .button { min-height: 46px; }
  .toast-region { bottom: calc(64px + env(safe-area-inset-bottom)); }
  body[data-route="create"] .toast-region { bottom: calc(116px + env(safe-area-inset-bottom)); }
}

/* Analytics workspace */
.analytics-view { --analytics-ink: var(--brand-primary); --analytics-mint: var(--brand-accent-soft); min-width: 0; overflow-x: clip; }
.analytics-hero { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 18px; padding: 30px; color: #fff; background: radial-gradient(circle at 86% 20%, rgba(53, 211, 237, .32), transparent 28%), var(--brand-primary); border-radius: 20px; box-shadow: 0 18px 48px rgba(70, 34, 186, .16); }
.analytics-hero > div:first-child { max-width: 680px; }
.analytics-hero .eyebrow { color: var(--brand-accent); }
.analytics-hero h2 { max-width: 680px; margin: 8px 0 10px; font-size: clamp(34px, 4.2vw, 58px); line-height: .98; letter-spacing: -.045em; }
.analytics-hero p { max-width: 650px; color: #fff; line-height: 1.65; }
.analytics-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 9px; min-width: 270px; }
.analytics-actions .button { color: var(--brand-primary); background: #fff; border-color: rgba(255,255,255,.18); }
.analytics-actions .button.ink { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.analytics-filter-panel { margin-bottom: 16px; }
.analytics-filters { display: grid; grid-template-columns: minmax(150px, 1.15fr) minmax(150px, 1.15fr) repeat(4, minmax(126px, .8fr)); gap: 10px; }
.analytics-filters label, .compact-select { color: var(--muted-ink); font-size: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.analytics-filters select, .analytics-filters input, .compact-select select { width: 100%; margin-top: 6px; color: var(--ink); font-size: 13px; font-weight: 650; text-transform: none; letter-spacing: 0; background: #fff; }
.analytics-platform-filter { margin: 14px 0 12px; padding: 0; border: 0; }
.analytics-platform-filter legend { margin-bottom: 7px; color: var(--muted-ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.platform-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.platform-pills label { cursor: pointer; }
.platform-pills input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.platform-pills span { display: block; padding: 8px 12px; color: var(--brand-text); font-size: 12px; font-weight: 750; background: #fff; border: 1px solid var(--line); border-radius: 999px; transition: .15s ease; }
.platform-pills input:checked + span { color: #fff; background: var(--analytics-ink); border-color: var(--analytics-ink); }
.platform-pills input:focus-visible + span { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.sync-strip { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.sync-chip { display: inline-flex; align-items: flex-start; gap: 7px; padding: 7px 10px; color: var(--brand-text); font-size: 11px; font-weight: 750; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.sync-chip small { display: block; margin-top: 2px; color: var(--muted-ink); font-size: 9px; font-weight: 650; }
.sync-chip i { width: 7px; height: 7px; background: var(--brand-primary); border-radius: 50%; }
.sync-chip.synced i { background: #1e936b; box-shadow: 0 0 0 3px rgba(30,147,107,.12); }
.sync-chip.stale i, .sync-chip.partial i, .sync-chip.rate_limited i, .sync-chip.unsupported_metric i { background: #d08c2e; }.sync-chip.failed i, .sync-chip.temporary_provider_failure i { background: #c84f47; }.sync-chip.authorization_required i, .sync-chip.app_review_required i, .sync-chip.api_product_required i { background: #7c5ca6; }
.analytics-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.analytics-metric { position: relative; overflow: hidden; }
.analytics-metric::after { position: absolute; right: -22px; bottom: -40px; width: 88px; height: 88px; content: ''; background: var(--analytics-mint); border-radius: 50%; opacity: .6; }
[dir="rtl"] .analytics-metric::after { right: auto; left: -22px; }
.analytics-metric small { position: relative; z-index: 1; max-width: 90%; }
.metric-info { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; width: 32px; height: 32px; padding: 0; place-items: center; color: var(--brand-primary); font-size: 12px; font-weight: 850; background: #fff; border: 1px solid var(--brand-border); border-radius: 50%; }
[dir="rtl"] .metric-info { right: auto; left: 12px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 16px; margin-bottom: 16px; }
.analytics-grid > .panel { min-width: 0; margin: 0; }
.compact-select { display: flex; align-items: center; gap: 8px; }
.compact-select select { min-width: 145px; margin: 0; }
.analytics-chart { min-height: 282px; direction: ltr; }
.analytics-chart svg { display: block; width: 100%; min-width: 560px; height: auto; overflow: hidden; }
.trend-panel { overflow: hidden; }
.trend-panel .analytics-chart { overflow-x: auto; padding-top: 8px; }
.chart-grid line { stroke: var(--brand-border); stroke-width: 1; }.chart-grid text { fill: var(--brand-text); font-size: 9px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 5px 0 0 44px; }
[dir="rtl"] .chart-legend { padding: 5px 44px 0 0; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-text); font-size: 10px; font-weight: 700; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.chart-note { margin-top: 12px; color: var(--muted-ink); font-size: 11px; line-height: 1.55; }
.platform-breakdown { display: grid; gap: 9px; }
.platform-analytics-card { padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.platform-analytics-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-badge { padding: 4px 7px; color: #5f6e68; font-size: 9px; font-weight: 800; text-transform: uppercase; background: #e9eeec; border-radius: 99px; }
.status-badge.synced { color: #106349; background: #dcefe7; }.status-badge.stale, .status-badge.partial, .status-badge.rate_limited, .status-badge.unsupported_metric { color: #87590e; background: #fff0cf; }.status-badge.failed, .status-badge.temporary_provider_failure { color: #91322d; background: #fbe2df; }.status-badge.authorization_required, .status-badge.app_review_required, .status-badge.api_product_required { color: #583b7a; background: #eee4f8; }
.platform-analytics-card dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 11px 0 8px; }
.platform-analytics-card dl div { padding: 7px; background: white; border-radius: 8px; }
.platform-analytics-card dt { color: #728079; font-size: 9px; font-weight: 750; text-transform: uppercase; }.platform-analytics-card dd { margin: 3px 0 0; font-size: 14px; font-weight: 850; }
.platform-analytics-card p { margin: 0; color: #5c6d65; font-size: 11px; line-height: 1.5; }
.platform-freshness { display: block; margin-top: 8px; color: var(--muted-ink); font-size: 10px; font-weight: 700; }
.analytics-freshness-note { display: inline-block; margin-inline-start: 10px; color: var(--brand-text); font-weight: 750; }
.analytics-table td strong { display: -webkit-box; max-width: 300px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }.analytics-table td small { display: block; max-width: 300px; margin-top: 3px; color: var(--muted-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--analytics-ink); }
.unavailable { color: #8a9791; font-size: 11px; font-style: italic; }
.top-content-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: top; }
.top-content-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.top-content-list li > span { padding: 5px 7px; color: #eff8f4; font-size: 9px; font-weight: 800; background: var(--analytics-ink); border-radius: 6px; }.top-content-list strong, .top-content-list small { display: block; }.top-content-list small { margin-top: 3px; color: var(--muted-ink); font-size: 9px; }.top-content-list b { font-size: 14px; }
.analytics-empty { display: grid; min-height: 120px; padding: 20px; place-items: center; color: var(--muted-ink); font-size: 12px; text-align: center; background: #f8faf8; border: 1px dashed var(--line); border-radius: 12px; }

@media (max-width: 1120px) {
  .analytics-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .analytics-hero { align-items: stretch; flex-direction: column; padding: 23px 19px; }
  .analytics-hero h2 { font-size: 38px; }.analytics-actions { min-width: 0; justify-content: stretch; }.analytics-actions .button { flex: 1 1 140px; }
  .analytics-filters { grid-template-columns: 1fr 1fr; }.analytics-filters label:nth-child(-n+2) { grid-column: span 2; }
  .analytics-kpis { grid-template-columns: 1fr 1fr; }
  .analytics-view .panel-head { align-items: stretch; flex-direction: column; }.compact-select { justify-content: space-between; }.compact-select select { flex: 1; }
  .analytics-view .table-wrap { max-width: 100%; overflow: hidden; }
  .analytics-table td small { white-space: normal; overflow-wrap: anywhere; }
  .metric-info { width: 44px; height: 44px; top: 4px; right: 4px; }
  [dir="rtl"] .metric-info { right: auto; left: 4px; }
}

/* Socialito application treatment. Semantic status colors above remain
   independent from the identity palette so operational meaning stays clear. */
.topbar { background: rgba(247,247,252,.92); }
.hero-strip { background: linear-gradient(135deg, #4622BA 0%, #351995 62%, #24106F 100%); }
.hero-strip .eyebrow { color: var(--brand-accent); }
.composer-side { background: var(--brand-primary); }
.inbox-guide { background: var(--brand-primary); }
.brand-row { overflow: hidden; }
.brand-logo { max-width: 132px; }
.analytics-hero { background: radial-gradient(circle at 86% 20%, rgba(53,211,237,.28), transparent 28%), var(--brand-primary); border-color: var(--brand-primary); }
.analytics-view .source-notice { color: var(--brand-text); background: var(--brand-accent-soft); border-color: var(--brand-accent); }
.analytics-chart .chart-line { stroke: var(--brand-primary); }

/* 2026 operator density pass: compact rhythm, readable data, no architecture change. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
}
body { line-height: 1.48; }
main { padding: clamp(16px, 2.5vw, 34px); padding-bottom: 64px; }
.sidebar { padding-top: 18px; }
.main-nav { margin-top: 26px; }
.topbar { min-height: 70px; padding-block: 11px; }
.topbar h1 { font-size: 24px; }
.panel { padding: 18px; border-radius: 12px; }
.panel-head { gap: 12px; margin-bottom: 12px; }
.panel-head h2 { font-size: 21px; }
.eyebrow { margin-bottom: 3px; font-size: 10px; letter-spacing: .1em; }
.metric-grid { gap: 10px; margin: 12px 0; }
.metric { min-height: 108px; padding: 15px; border-radius: 12px; }
.metric p { font-size: 10px; letter-spacing: .06em; }
.metric strong { margin-top: 17px; font-size: 31px; }
.dashboard-grid, .composer { gap: 14px; }
.section-heading:not(:first-child) { margin-top: 30px; }
.section-heading { gap: 11px; margin-bottom: 16px; }
.section-heading h2 { font-size: 23px; }
.field-grid { gap: 10px; }
.filter-row { grid-template-columns: repeat(5, minmax(112px, 1fr)) minmax(180px, 1.35fr); gap: 7px; }
.filter-row label { font-size: 8px; letter-spacing: .045em; }
.filter-row select, .filter-row input { min-height: 40px; padding-block: 8px; }
.board-toolbar { gap: 10px; margin-bottom: 12px; }
.board-toolbar-head h2 { font-size: 21px; }
.board-list { gap: 12px; }
.board-group { gap: 5px; }
.board-row { grid-template-columns: 68px minmax(0, 1fr) minmax(125px, auto); gap: 12px; min-height: 86px; padding: 8px 12px 8px 8px; border-radius: 10px; }
.board-media { width: 68px; height: 64px; }
.board-row-secondary { gap: 6px; }
.board-caption { margin-block: 5px; }
.board-row-end { gap: 5px; }

.analytics-hero { align-items: center; gap: 18px; margin-bottom: 10px; padding: 13px 18px; border-radius: 12px; box-shadow: 0 8px 22px rgba(70,34,186,.1); }
.analytics-hero h2 { margin: 0; font-size: 24px; line-height: 1; letter-spacing: -.03em; }
.analytics-hero .eyebrow { margin-bottom: 2px; }
.analytics-actions { gap: 6px; min-width: 0; }
.analytics-actions .button { min-height: 38px; padding: 8px 11px; font-size: 10px; }
.analytics-filter-panel { margin-bottom: 10px; padding: 14px 16px; }
.analytics-filters { gap: 7px; }
.analytics-filters label, .compact-select { font-size: 10px; letter-spacing: .025em; }
.analytics-filters select, .analytics-filters input, .compact-select select { margin-top: 4px; min-height: 40px; padding: 8px 10px; font-size: 12px; }
.analytics-platform-filter { margin: 9px 0 8px; }
.analytics-platform-filter legend { margin-bottom: 5px; font-size: 10px; }
.platform-pills { gap: 5px; }
.platform-pills span { padding: 6px 10px; font-size: 11px; }
.sync-strip { gap: 5px; margin-bottom: 10px; }
.sync-chip { padding: 6px 8px; font-size: 10px; }
.sync-chip small { font-size: 8px; }
.analytics-kpis { gap: 10px; }
.analytics-grid { align-items: start; gap: 12px; margin-bottom: 12px; }
.analytics-grid > .panel { align-self: start; }
.analytics-grid .panel { min-height: 0; }
.analytics-chart { min-height: 230px; }
.trend-panel .analytics-chart { padding-top: 4px; }
.chart-note { margin-top: 8px; font-size: 10px; }
.platform-breakdown { gap: 6px; }
.platform-analytics-card { padding: 10px; border-radius: 10px; }
.platform-analytics-card dl { gap: 5px; margin: 8px 0 5px; }
.platform-analytics-card dl div { padding: 6px; }
.platform-analytics-card dt { font-size: 8px; }
.platform-analytics-card dd { font-size: 13px; }
.platform-freshness { margin-top: 5px; font-size: 9px; }
.analytics-access-details { margin-top: 6px; color: var(--muted-ink); font-size: 10px; }
.analytics-access-details summary { color: var(--brand-primary); cursor: pointer; font-weight: 750; }
.analytics-access-details p { margin-top: 5px; font-size: 10px; }
.analytics-view > .panel { margin-bottom: 12px; }
.analytics-view .data-table th, .analytics-view .data-table td { padding: 9px 10px; }

.post-dialog { width: min(760px, calc(100% - 28px)); }
.post-dialog form { gap: 12px; }
.post-dialog .panel-head { margin-bottom: 4px; }
.post-media-viewer { gap: 8px; }
.post-media-item { min-height: 112px; border-radius: 10px; }
.post-media-empty { min-height: 68px; border-radius: 10px; }
.post-dialog textarea { min-height: 112px; }
.post-dialog .platform-settings { gap: 7px; margin: 8px 0; }
.platform-setting-card { gap: 8px; padding: 11px; border-radius: 10px; }
.timezone-note { margin-top: -5px; font-size: 10px; }
.post-dialog-actions { gap: 7px; }
.post-lock-notice { padding: 9px 11px; }

@media (max-width: 1120px) {
  .filter-row { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
}
@media (max-width: 820px) {
  main { padding: 16px; padding-bottom: 40px; }
  .topbar { min-height: 64px; }
  .board-row { grid-template-columns: 62px minmax(0, 1fr); min-height: 82px; }
  .board-media { width: 62px; height: 60px; }
  .analytics-hero { align-items: stretch; flex-direction: row; }
  .analytics-actions { justify-content: end; }
}
@media (max-width: 560px) {
  .panel { padding: 14px; }
  .filter-row { grid-template-columns: 1fr; }
  .board-row { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .board-media { width: 52px; height: 54px; }
  .analytics-hero { flex-direction: column; gap: 10px; }
  .analytics-actions { justify-content: stretch; }
  .analytics-actions .button { flex: 1 1 auto; }
}

/* Final Analytics density repair: compact health rows and collapsed account detail. */
.analytics-grid { align-items: start; }
.analytics-grid > .panel { align-self: start; }
.platform-breakdown { gap: 4px; }
.platform-health-row { display: grid; grid-template-columns: minmax(82px, .8fr) auto minmax(118px, 1fr) minmax(170px, 1.45fr) auto; align-items: center; gap: 9px; min-height: 45px; padding: 7px 9px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.platform-health-name { font-size: 11px; }
.platform-health-row .status-badge { justify-self: start; padding: 3px 6px; font-size: 8px; }
.platform-health-row .platform-freshness { margin: 0; font-size: 9px; white-space: nowrap; }
.platform-health-metrics { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted-ink); font-size: 9px; }
.platform-health-metrics span { white-space: nowrap; }
.platform-health-metrics b { margin-inline-end: 3px; color: var(--brand-text); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.platform-health-row .analytics-access-details { margin: 0; font-size: 9px; white-space: nowrap; }
.platform-health-row .analytics-access-details p { max-width: 240px; }
.freshness-summary { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.freshness-summary-item { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 9px; color: var(--brand-text); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; }
.freshness-summary-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-ink); }
.freshness-summary-item strong { font-weight: 750; }
.freshness-summary-item.current i { background: #1e936b; }.freshness-summary-item.stale i { background: #d08c2e; }.freshness-summary-item.failed i { background: #c84f47; }.freshness-summary-item.unavailable i { background: #7c5ca6; }
.freshness-summary-item strong + strong { font-variant-numeric: tabular-nums; }
.sync-details { margin-top: 5px; color: var(--muted-ink); font-size: 10px; }
.sync-details summary { display: inline-block; color: var(--brand-primary); cursor: pointer; font-weight: 750; }
.sync-detail-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.sync-detail-list .sync-chip { padding: 5px 7px; font-size: 9px; }
.sync-detail-list .sync-chip small { font-size: 8px; }
@media (max-width: 820px) {
  .platform-health-row { grid-template-columns: minmax(76px, 1fr) auto minmax(110px, 1fr); }
  .platform-health-metrics { grid-column: 1 / -1; }
  .platform-health-row .analytics-access-details { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .platform-health-row { grid-template-columns: 1fr auto; gap: 6px; }
  .platform-health-row .platform-freshness { grid-column: 1 / -1; }
  .platform-health-metrics { grid-column: 1 / -1; }
}
.analytics-chart .chart-dot { fill: var(--brand-accent); stroke: var(--brand-primary); }
.bottom-nav a.active { background: rgba(53,211,237,.18); box-shadow: inset 0 2px var(--brand-accent); }
[dir="rtl"] { font-family: "Madani", "Noto Sans Arabic", "Segoe UI", sans-serif; }
[dir="rtl"] .login-card, [dir="rtl"] .login-brand { font-family: "Madani", "Noto Sans Arabic", "Segoe UI", sans-serif; }

@media (max-width: 420px) {
  .inbox-coming-soon { min-height: calc(100dvh - 190px); padding: 32px 18px; border-radius: var(--radius); }
  .inbox-coming-soon-mark { width: 64px; height: 64px; margin-bottom: 21px; border-radius: 18px; }
  .inbox-coming-soon h2 { font-size: 52px; }
  .inbox-coming-soon::before { top: -130px; right: -190px; width: 360px; height: 360px; }
  .analytics-filters { grid-template-columns: 1fr; }.analytics-filters label:nth-child(-n+2) { grid-column: auto; }
  .analytics-kpis { grid-template-columns: 1fr; }.analytics-actions { display: grid; grid-template-columns: 1fr 1fr; }.analytics-actions .button:first-child { grid-column: 1 / -1; }
}

/* Composer Phase 2: progressive, operational form */
.composer { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .62fr); gap: 14px; }
.composer-main, .composer-side { padding: 22px; border-radius: 14px; }
.composer-main { display: grid; gap: 18px; }
.composer-side { position: sticky; top: 92px; align-self: start; color: var(--ink); background: #f7faf7; border: 1px solid #d9e5df; }
.composer-side .eyebrow { color: var(--rose-800); }
.composer-side h2 { margin: 0; color: var(--ink); font-size: 23px; }
.composer-intro { display: grid; gap: 5px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.composer-intro h2 { margin: 0; max-width: 600px; font-size: clamp(25px, 3vw, 34px); line-height: 1.05; }
.composer-intro p { margin: 0; }
.composer-section { display: grid; gap: 12px; padding-top: 2px; }
.composer-section + .composer-section { padding-top: 4px; }
.composer-section .section-heading { margin: 0 0 2px; }
.composer-section .section-heading:not(:first-child) { margin-top: 0; }
.composer-section .section-heading > span { width: 32px; height: 32px; font-size: 10px; }
.composer-section .section-heading h2 { font-size: 20px; }
.destination-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.destination-choice span, .format-choice span { display: grid; align-content: center; gap: 2px; min-height: 56px; }
.destination-choice span small, .format-choice span small { color: var(--muted-ink); font-size: 10px; font-weight: 500; }
.destination-choice input:checked + span small, .format-choice input:checked + span small { color: rgba(255,255,255,.78); }
.format-choice.is-conflict span { color: #9b2c2c; border-color: #e9a5a5; background: #fff3f3; }
.format-choice.is-conflict input:checked + span { color: #fff; background: #9b2c2c; border-color: #9b2c2c; }
.field-conflict { min-height: 0; margin: 0; color: #9b2c2c; font-size: 11px; font-weight: 700; }
.composer textarea { min-height: 112px; resize: vertical; }
.media-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.media-source-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; background: #f5f8f5; border: 1px solid #d9e5df; border-radius: 11px; }
.media-source-card strong, .media-source-card p { margin: 0; }
.media-source-card p { margin-top: 3px; color: var(--muted-ink); font-size: 10px; }
.media-source-card .button { flex: none; }
.media-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; background: #f5f8f5; border: 1px solid #d9e5df; border-radius: 10px; }
.media-item-preview { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; color: var(--muted-ink); background: #e4eeea; border-radius: 8px; font-size: 10px; }
.media-item-preview img, .media-item-preview video { width: 100%; height: 100%; object-fit: cover; }
.media-item-main { min-width: 0; display: grid; gap: 4px; }
.media-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.media-item-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item-main small { overflow: hidden; color: var(--muted-ink); text-overflow: ellipsis; white-space: nowrap; }
.media-item-status { flex: none; color: #17644d; font-size: 10px; font-weight: 800; }
.media-item[data-state="failed"] .media-item-status { color: var(--danger); }
.media-item[data-state="uploading"] .media-item-status { color: #a15a11; }
.upload-item-actions button { min-width: 36px; min-height: 36px; }
.platform-settings { gap: 8px; margin: 0; }
.platform-setting-card { gap: 8px; padding: 13px; border-radius: 11px; }
.platform-setting-card summary, .reviewer-details summary, .advanced-options summary { cursor: pointer; color: var(--rose-800); font-size: 12px; font-weight: 800; }
.advanced-options { display: grid; gap: 10px; }
.reviewer-details { padding-top: 4px; border-top: 1px solid var(--line); }
.reviewer-details[open] { display: grid; gap: 10px; }
.summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid #d9e5df; }
.summary-state { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; color: #53655d; background: #e7efeb; border-radius: 999px; font-size: 10px; font-weight: 800; }
.summary-state.ready { color: #17644d; background: #dff4e9; }
.summary-state.warning { color: #93520d; background: #fff0d8; }
.summary-state.blocked { color: #9b2c2c; background: #ffe3e3; }
.composer-blockers { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 11px; }
.composer-blockers li { padding-inline-start: 16px; position: relative; color: #9b2c2c; }
.composer-blockers li::before { content: ''; position: absolute; inset-inline-start: 0; top: .48em; width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.composer-blockers li.warning { color: #93520d; }
.preview-card { min-height: 0; margin: 14px 0; padding: 14px; border: 1px solid #d9e5df; box-shadow: none; }
.preview-card > p { margin: 7px 0; }
.summary-list { display: grid; gap: 7px; margin: 12px 0; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid #e5ece8; font-size: 11px; }
.summary-row dt { color: var(--muted-ink); }
.summary-row dd { max-width: 64%; margin: 0; text-align: end; font-weight: 800; }
.composer-side > .button { min-height: 48px; }
.composer .media-readiness { margin: 0; padding: 10px 12px; }

@media (max-width: 820px) {
  .composer { grid-template-columns: 1fr; }
  .composer-side { position: static; }
  .destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-source-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .composer-main, .composer-side { padding: 16px; }
  .destination-grid, .media-source-grid { grid-template-columns: 1fr; }
  .media-source-card { align-items: flex-start; flex-direction: column; }
  .media-source-card .button, .media-source-card .file-button { width: 100%; }
  .media-item { grid-template-columns: 46px minmax(0, 1fr); }
  .media-item-preview { width: 46px; height: 46px; }
  .media-item .upload-item-actions { grid-column: 2; justify-content: flex-start; }
  .media-item-top { align-items: flex-start; flex-direction: column; gap: 3px; }
  .summary-row { align-items: flex-start; flex-direction: column; gap: 2px; }
  .summary-row dd { max-width: none; text-align: start; }
}

