/* Content Approval — tokens do design system (StudioHub) */
:root {
  --brand-white: #FFFFFF; --brand-primary: #000000; --brand-accent: #FBD603; --brand-secondary-accent: #847000;
  --grey-10: #FAF9F2; --grey-20: #EFEEE2; --grey-30: #E8E4D1; --grey-40: #C2C1AF; --grey-50: #A09F92;
  --grey-60: #8A887A; --grey-70: #69685D; --grey-80: #474538; --grey-90: #2D2B22;
  --success: #0FA285; --warning: #BA910E; --critical: #AE0612; --info: #3092D8;
  --success-subtle: #E4F5F1; --warning-subtle: #FBF5E2; --critical-subtle: #F8E3E5; --info-subtle: #E6F2FB;
  --r-sm: 4px; --r: 8px; --r-lg: 24px; --r-full: 999px;
  --s-xxs: 4px; --s-xs: 8px; --s-sm: 16px; --s-md: 32px; --s-lg: 40px;
  --font: 'Google Sans Flex', 'Google Sans', 'Product Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.4; color: var(--brand-primary); background: var(--grey-20); min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
.ico { flex-shrink: 0; }
[hidden] { display: none !important; }

/* Tipografia (text styles) */
.hero { font-size: 28px; font-weight: 700; line-height: 1.1; }
.title { font-size: 24px; font-weight: 700; line-height: 1.2; }
.subtitle { font-size: 16px; font-weight: 300; font-style: italic; color: var(--grey-80); margin-top: 6px; line-height: 1.1; }
.sub { font-size: 14px; color: var(--grey-80); margin-top: 4px; }
.sec-title { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--brand-secondary-accent); }
.muted { color: var(--grey-50); }
.small { font-size: 12px; }
.center { text-align: center; justify-content: center; }
.crumbs { font-size: 12px; color: var(--grey-50); margin-bottom: 6px; }
.crumbs a { text-decoration: none; } .crumbs b { color: var(--brand-primary); font-weight: 500; }

/* Layout */
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.row { display: flex; gap: 16px; }
.row > * { flex: 1; min-width: 0; }
.row.end { justify-content: flex-end; } .row.end > * { flex: 0 0 auto; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.inline { display: inline; }

/* App shell (agência) */
body.app { display: flex; }
.sidebar { position: sticky; top: 0; height: 100vh; width: 220px; flex-shrink: 0; padding: 28px 16px 24px; display: flex; flex-direction: column; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; padding-left: 4px; }
.logo-mark { width: 28px; height: 28px; border-radius: 6px; background: var(--brand-accent); display: flex; align-items: center; justify-content: center; }
.logo-text { font-size: 19px; letter-spacing: -.2px; } .logo-text b { font-weight: 700; }
.logo-img { display: block; height: 28px; width: auto; }
.logo-mark-img { display: block; width: 28px; height: 28px; }
.logo-compact { display: none; }
.client-logo { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; background: var(--brand-white); flex-shrink: 0; }
.ig-av.has-logo { background: var(--brand-white); padding: 0; overflow: hidden; }
.ig-av.has-logo img { width: 100%; height: 100%; object-fit: cover; }
.avatar.has-logo { background: var(--brand-white); border: 1px solid var(--grey-30); overflow: hidden; padding: 0; }
.avatar.has-logo img { width: 100%; height: 100%; object-fit: cover; }
.client-logo-wrap { width: 28px; height: 28px; border-radius: 999px; background: var(--brand-accent); color: var(--brand-primary); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.client-logo-wrap.has-logo { background: var(--brand-white); border: 1px solid var(--grey-30); overflow: hidden; }
.client-logo-wrap.has-logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-upload { display: flex; align-items: center; gap: 14px; }
.logo-upload .preview { width: 64px; height: 64px; border-radius: 999px; border: 1px solid var(--grey-30); background: var(--grey-10); overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--grey-80); flex-shrink: 0; }
.logo-upload .preview img { width: 100%; height: 100%; object-fit: cover; }
.logo-upload .actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.logo-upload input[type=file] { font-size: 12px; height: auto; border: 0; padding: 0; box-shadow: none; }
.logo-upload label.small { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--grey-80); }
.logo-upload input[type=checkbox] { width: 16px; height: 16px; padding: 0; accent-color: var(--brand-primary); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; border-radius: var(--r); font-size: 16px; color: var(--grey-80); text-decoration: none; }
.nav-item .ico { color: var(--grey-80); }
.nav-item:hover { color: var(--brand-primary); }
.nav-item.selected { background: var(--grey-10); color: var(--brand-primary); font-weight: 500; }
.nav-item.selected::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--brand-accent); }
.nav-item.selected .ico { color: var(--brand-secondary-accent); }
.nav-item .count { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--brand-accent); border-radius: var(--r-full); padding: 1px 8px; }
.user-card { margin-top: auto; display: flex; align-items: center; gap: 10px; border: 1px solid var(--grey-40); background: var(--grey-10); border-radius: var(--r); padding: 12px; }
.user-info { flex: 1; min-width: 0; } .user-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info small { font-size: 12px; color: var(--brand-secondary-accent); }
.main { flex: 1; min-width: 0; padding: 16px 16px 16px 0; }
.container { background: var(--brand-white); border-radius: var(--r-lg); padding: 32px; min-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 32px; }

.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Botões (componente Button) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-full); border: 1px solid transparent; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .15s, background .15s; }
.btn:hover { filter: brightness(.96); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-primary { background: var(--brand-accent); color: var(--brand-primary); }
.btn-secondary { background: var(--brand-white); border-color: var(--brand-accent); color: var(--brand-primary); }
.btn-ghost { background: transparent; border-color: var(--brand-secondary-accent); color: var(--brand-secondary-accent); }
.btn-success { background: var(--success); color: var(--brand-white); }
.btn-info { background: var(--info); color: var(--brand-white); }
.btn-danger { background: var(--critical); color: var(--brand-white); }
.btn-dark { background: var(--grey-90); color: var(--brand-white); }
.btn-lg { height: 48px; font-size: 16px; padding: 0 22px; }
.btn-sm { height: 32px; font-size: 13px; padding: 0 14px; }
.btn input[type=file] { display: none; }
.icon-only { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; background: none; border-radius: var(--r); color: var(--grey-80); cursor: pointer; }
.icon-only:hover { background: var(--grey-20); }
.link-danger { background: none; border: 0; color: var(--critical); font-size: 13px; font-weight: 500; text-decoration: underline; cursor: pointer; align-self: center; }
.link-small { font-size: 13px; color: var(--brand-secondary-accent); font-weight: 500; }
.count-pill { font-size: 12px; font-weight: 700; background: rgba(255,255,255,.25); border-radius: var(--r-full); padding: 1px 8px; }

/* Status Badge */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-full); border: 1px solid; font-size: 12px; white-space: nowrap; }
.badge-pending { color: var(--warning); background: var(--warning-subtle); }
.badge-ok { color: var(--success); background: var(--success-subtle); }
.badge-info { color: var(--info); background: var(--info-subtle); }
.badge-critical { color: var(--critical); background: var(--critical-subtle); }
.badge-neutral { color: var(--grey-80); background: var(--grey-10); }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: var(--r-sm); background: var(--grey-20); color: var(--grey-80); white-space: nowrap; }

/* Alertas */
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r); font-size: 14px; }
.alert-critical { background: var(--critical-subtle); color: var(--critical); }
.alert-ok { background: var(--success-subtle); color: var(--success); }

/* KPI Card */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { border: 1px solid var(--grey-30); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.kpi-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--brand-secondary-accent); }
.kpi-ico { width: 32px; height: 32px; border-radius: var(--r); background: var(--grey-20); display: flex; align-items: center; justify-content: center; color: var(--grey-80); }
.kpi-value { font-size: 48px; font-weight: 700; line-height: 1; }
.kpi-foot { font-size: 12px; color: var(--grey-50); } .kpi-foot b { color: var(--success); }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: var(--grey-10); border: 1px solid var(--grey-30); border-radius: var(--r-full); padding: 4px; flex-wrap: wrap; }
.tab { font-size: 14px; padding: 7px 14px; border-radius: var(--r-full); color: var(--grey-80); text-decoration: none; }
.tab i { font-style: normal; font-size: 12px; opacity: .7; margin-left: 2px; }
.tab.on { background: var(--brand-primary); color: var(--brand-white); font-weight: 700; }
.filters { margin-left: auto; display: flex; gap: 8px; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 8px; border: 0; min-width: 0; }
.field > span { font-size: 12px; font-weight: 700; color: var(--grey-80); }
.field input, .field textarea, .input { height: 40px; border: 1px solid var(--grey-30); border-radius: var(--r); padding: 0 12px; background: var(--brand-white); outline: none; width: 100%; font-size: 14px; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.4; }
.field input:focus, .field textarea:focus, .input:focus-within { border-color: var(--brand-secondary-accent); box-shadow: 0 0 0 3px var(--warning-subtle); }
.field input::placeholder, .field textarea::placeholder, .input input::placeholder { color: var(--grey-50); font-style: italic; }
.input { display: flex; align-items: center; gap: 8px; color: var(--grey-80); }
.input input, .input select { border: 0; outline: 0; background: none; height: 100%; flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; cursor: pointer; }
.input input { cursor: text; }
.input-search { width: 300px; }
.input-select { position: relative; padding-right: 10px; }
.input-select select { padding-right: 4px; }
.filters .input-select { border-color: var(--brand-accent); border-radius: var(--r-full); width: auto; font-weight: 700; color: var(--brand-primary); }

/* Painéis */
.panel { border: 1px solid var(--grey-30); border-radius: var(--r); background: var(--brand-white); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--grey-30); font-size: 16px; font-weight: 500; }
.panel-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.side { position: sticky; top: 16px; }

/* Grade de criativos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--grey-30); border-radius: var(--r); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(71,69,56,.12); transform: translateY(-2px); }
.card-thumb { position: relative; height: 230px; background: var(--grey-10); border-bottom: 1px solid var(--grey-30); display: flex; align-items: center; justify-content: center; padding: 18px; }
.card-thumb img, .card-thumb video { max-height: 100%; max-width: 100%; border-radius: 6px; object-fit: contain; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.thumb-play { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; border-radius: var(--r-full); padding: 5px; display: flex; }
.thumb-empty { color: var(--grey-40); }
.tag { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 11px; font-weight: 700; background: var(--brand-white); border-radius: var(--r-sm); padding: 3px 7px; }
.tag-dark { left: auto; right: 10px; background: var(--brand-primary); color: var(--brand-white); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 14px; }
.card-meta { font-size: 12px; color: var(--grey-50); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.comments { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--grey-80); }
.empty { border: 1.5px dashed var(--grey-40); border-radius: var(--r); padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--grey-80); }
.empty > .ico { color: var(--brand-secondary-accent); } .empty b { font-size: 16px; color: var(--brand-primary); }

/* Novo criativo */
.formats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.fmt-opt { position: relative; border: 1px solid var(--grey-30); border-radius: var(--r); padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; }
.fmt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fmt-opt b { font-size: 13px; font-weight: 500; } .fmt-opt small { font-size: 11px; color: var(--grey-50); }
.fmt-opt:has(input:checked) { border: 2px solid var(--brand-primary); background: var(--grey-10); padding: 13px 5px; }
.fmt-opt:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--warning-subtle); }
.fmt-shape { border: 1.5px solid var(--grey-80); border-radius: 3px; width: 22px; height: 27px; }
.fmt-feed_1x1 { width: 24px; height: 24px; } .fmt-story, .fmt-reels { width: 16px; height: 28px; }
.fmt-carousel { width: 26px; height: 22px; box-shadow: 4px -4px 0 -1.5px var(--brand-white), 4px -4px 0 0 var(--grey-80); }
.fmt-ad { width: 24px; height: 24px; border-radius: 50%; }
.drop { position: relative; border: 1.5px dashed var(--grey-40); border-radius: var(--r); background: var(--grey-10); padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ico { color: var(--brand-secondary-accent); } .drop b { font-size: 16px; } .drop small { font-size: 12px; color: var(--grey-50); max-width: 420px; }
.drop.over { border-color: var(--brand-secondary-accent); background: var(--warning-subtle); }
.file-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--grey-30); border-radius: var(--r); padding: 8px; font-size: 13px; }
.file-list img, .file-list video { width: 40px; height: 50px; object-fit: cover; border-radius: 4px; background: var(--grey-20); }
.file-list small { color: var(--grey-50); display: block; }
.side-preview { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--grey-50); line-height: 1.4; }
.empty-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--grey-50); text-align: center; padding: 60px 20px; font-size: 13px; }

/* Palco + moldura Instagram */
.stage { position: relative; background: var(--grey-10); border: 1px solid var(--grey-30); border-radius: var(--r); padding: 68px 24px 80px; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.stage-sm { min-height: 0; padding: 24px; }
.stage-bar { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; z-index: 5; }
.seg { display: flex; gap: 2px; background: var(--brand-white); border: 1px solid var(--grey-30); border-radius: var(--r-full); padding: 3px; }
.seg button { border: 0; background: none; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: var(--r-full); color: var(--grey-80); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--brand-primary); color: var(--brand-white); }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-full); background: var(--brand-white); border: 1px solid var(--grey-30); font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.full-close { display: none; }

.mock { position: relative; background: var(--brand-white); width: 100%; user-select: none; -webkit-user-select: none; }
.mock-story { max-width: min(320px, var(--fit-w, 320px)); border-radius: 22px; overflow: hidden; background: #111; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.mock-feed { max-width: min(420px, var(--fit-w, 420px)); border: 1px solid var(--grey-30); border-radius: 12px; overflow: hidden; }
.media-wrap { position: relative; width: 100%; background: #111; overflow: hidden; }
.slide { position: absolute; inset: 0; display: none; } .slide.on { display: block; }
.media { width: 100%; height: 100%; object-fit: cover; }
.pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -100%); width: 28px; height: 28px; border-radius: 999px 999px 999px 4px; background: var(--brand-accent); color: var(--brand-primary); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--brand-white); box-shadow: 0 2px 8px rgba(0,0,0,.3); pointer-events: auto; cursor: pointer; z-index: 3; }
.pin.draft { background: var(--brand-primary); color: var(--brand-accent); }
.pin.hl { transform: translate(-50%, -100%) scale(1.25); }
.pin.off { display: none; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.slide-nav.prev { left: 8px; } .slide-nav.next { right: 8px; }
.slide-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 4; pointer-events: none; }
.slide-dots span { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.5); } .slide-dots span.on { background: #fff; }
.chrome { pointer-events: none; }
.story-top { position: absolute; top: 0; left: 0; right: 0; padding: 10px 12px; background: linear-gradient(rgba(0,0,0,.35), transparent); color: #fff; z-index: 2; }
.st-bars { display: flex; gap: 4px; } .st-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.45); } .st-bars i.on { background: #fff; }
.st-head { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; } .st-head span:last-child { opacity: .75; }
.ig-av { width: 28px; height: 28px; border-radius: 999px; background: var(--brand-accent); color: var(--brand-primary); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.story-cta { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: #fff; color: #000; font-weight: 700; font-size: 13px; padding: 9px 18px; border-radius: 999px; display: flex; align-items: center; gap: 6px; z-index: 2; white-space: nowrap; }
.feed-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 13px; } .feed-head small { display: block; font-size: 11px; color: var(--grey-50); }
.feed-head .ig-av { outline: 2px solid #E1306C; border: 2px solid #fff; }
.feed-cta { display: flex; justify-content: space-between; align-items: center; background: #EAF2FD; color: #0B5ED7; padding: 10px 12px; font-size: 13px; font-weight: 700; }
.feed-caption { padding: 10px 12px 14px; font-size: 13px; line-height: 1.4; white-space: pre-line; max-height: 7.2em; overflow: hidden; }
.mock.compact .story-cta { display: none; }

/* Modo arquivo original */
.stage.original .chrome { display: none; }
.stage.original .mock { background: none; border: 0; box-shadow: none; border-radius: 0; max-width: 520px; }
.stage.original .media-wrap { background: none; }
.stage.original .media { object-fit: contain; }

/* Modo comentar */
.stage.commenting .media-wrap { cursor: crosshair; outline: 2px dashed var(--brand-accent); outline-offset: 4px; }
.comment-cta { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.comment-bar { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: var(--brand-primary); color: var(--brand-white); border-radius: var(--r-full); padding: 6px 6px 6px 16px; font-size: 13px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.18); z-index: 5; max-width: calc(100% - 24px); }
.comment-bar .cb-text { overflow: hidden; text-overflow: ellipsis; }
.comment-bar .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--brand-accent); flex-shrink: 0; }
.popover { position: absolute; z-index: 20; width: 270px; background: var(--brand-white); border-radius: 12px; padding: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.22); display: flex; flex-direction: column; gap: 10px; }
.popover b { font-size: 13px; }
.popover textarea { border: 1.5px solid var(--brand-primary); border-radius: var(--r); padding: 10px; font-size: 14px; line-height: 1.4; min-height: 72px; resize: vertical; outline: 0; }
.popover .row { gap: 8px; justify-content: flex-end; } .popover .row > * { flex: 0 0 auto; }

/* Tela cheia */
.stage.full { position: fixed; inset: 0; z-index: 100; border: 0; border-radius: 0; background: #14130E; padding: 72px 24px 88px; min-height: 0; }
.stage.full .stage-bar { top: 16px; left: 24px; right: 140px; }
.stage.full .seg { background: #24231C; border-color: #34332A; } .stage.full .seg button { color: var(--grey-40); } .stage.full .seg button.on { background: #fff; color: #000; }
.stage.full [data-fullscreen] { display: none; }
.stage.full .full-close { display: inline-flex; position: absolute; top: 16px; right: 24px; z-index: 6; background: #24231C; border-color: #34332A; color: #fff; }
.stage.full .mock { max-width: 100%; width: auto; height: 100%; border: 0; background: none; }
.stage.full .mock-feed .chrome { display: none; }
.stage.full .media-wrap { height: 100%; width: auto; max-width: 100%; border-radius: inherit; }
body.no-scroll { overflow: hidden; }

/* Detalhe */
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.versions { display: flex; gap: 8px; flex-wrap: wrap; }
.vtab { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: var(--r); border: 1px solid var(--grey-30); color: var(--grey-80); text-decoration: none; }
.vtab.on { background: var(--brand-primary); color: var(--brand-white); border-color: var(--brand-primary); }
.linkbox { background: var(--grey-10); }
.url-row { display: flex; align-items: center; gap: 10px; background: var(--brand-white); border: 1px solid var(--grey-30); border-radius: var(--r); padding: 0 12px; height: 44px; color: var(--brand-secondary-accent); }
.url-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; color: var(--brand-primary); }
.thread { display: flex; flex-direction: column; gap: 16px; }
.cmt { display: flex; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--grey-80); color: var(--brand-white); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cmt .avatar { width: 28px; height: 28px; }
.avatar.av-client { background: var(--brand-accent); color: var(--brand-primary); }
.cmt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cmt-head { font-size: 13px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; } .cmt-head small { color: var(--grey-50); font-size: 12px; }
.cmt-text { font-size: 14px; line-height: 1.45; color: var(--grey-80); white-space: pre-line; overflow-wrap: anywhere; }
.cmt-pin { display: inline-flex; width: 20px; height: 20px; border-radius: 999px; background: var(--brand-accent); font-size: 11px; font-weight: 700; align-items: center; justify-content: center; color: var(--brand-primary); margin-right: 4px; vertical-align: 1px; flex-shrink: 0; }
.cmt-pin.gen { background: var(--grey-20); color: var(--grey-80); }
.composer { border: 1px solid var(--grey-30); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.composer textarea { border: 0; outline: 0; resize: vertical; font-size: 14px; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.timeline { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: flex; gap: 10px; font-size: 13px; color: var(--grey-80); }
.timeline small { display: block; color: var(--grey-50); font-size: 12px; }
.tl-dot { width: 9px; height: 9px; border-radius: 999px; border: 1.5px solid var(--grey-40); margin-top: 5px; flex-shrink: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--grey-80); padding: 12px 20px; border-bottom: 1px solid var(--grey-30); }
.table td { padding: 12px 20px; border-bottom: 1px solid var(--grey-20); vertical-align: middle; }
.t-right { text-align: right; white-space: nowrap; }
.who { display: inline-flex; align-items: center; gap: 10px; }

/* Login */
body.plain { display: flex; }
.auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; background: var(--brand-white); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.auth-card.center { align-items: center; text-align: center; }

/* ---------- Página do cliente ---------- */
body.client { display: flex; flex-direction: column; min-height: 100vh; }
.client-top { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 32px; flex-shrink: 0; }
.client-top .logo { pointer-events: none; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--grey-80); } .who b { color: var(--brand-primary); }
.review { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; padding: 0 16px 16px; min-height: 0; }
.review-stage { background: var(--brand-white); border-radius: var(--r-lg); padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.review-stage .stage { flex: 1; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-side { background: var(--brand-white); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; max-height: calc(100vh - 104px); }
.side-scroll { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 24px; min-height: 0; margin: -4px; padding: 4px; }
.head-row { display: flex; justify-content: space-between; align-items: center; }
.adj-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.adj-list:empty { display: none; }
.adj { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--grey-30); border-radius: var(--r); padding: 12px; cursor: pointer; }
.adj:hover, .adj.hl { border-color: var(--brand-primary); background: var(--grey-10); }
.adj .cmt-pin { background: var(--brand-primary); color: var(--brand-accent); width: 22px; height: 22px; margin: 0; }
.adj .cmt-pin.gen { background: var(--grey-20); color: var(--grey-80); }
.adj-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--grey-80); white-space: pre-line; overflow-wrap: anywhere; }
.adj-text small { display: block; font-size: 12px; color: var(--grey-50); margin-top: 4px; }
.adj-tools { display: flex; gap: 2px; } .adj-tools .icon-only { width: 28px; height: 28px; color: var(--grey-50); }
.add-general { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--grey-80); border: 1px dashed var(--grey-40); border-radius: var(--r); padding: 12px; background: none; cursor: pointer; text-align: left; }
.add-general:hover { border-color: var(--brand-secondary-accent); }
.collapse { background: var(--grey-10); border-radius: var(--r); }
.collapse summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 500; cursor: pointer; }
.collapse summary::-webkit-details-marker { display: none; }
.collapse[open] summary .ico { transform: rotate(180deg); }
.caption-box { padding: 0 14px 14px; font-size: 14px; line-height: 1.5; color: var(--grey-80); white-space: pre-line; }
.decision-bar { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--grey-30); }
.decision-bar .row { gap: 10px; }
.result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px 8px; }
.result p { color: var(--grey-80); line-height: 1.5; }
.result-ok > .ico { color: var(--success); } .result-info > .ico { color: var(--info); } .result-critical > .ico { color: var(--critical); }
.client-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; color: var(--grey-80); }
.modal { margin: auto; border: 0; border-radius: var(--r-lg); padding: 28px; width: min(440px, calc(100% - 32px)); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(20,19,14,.45); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--brand-primary); color: var(--brand-white); padding: 12px 18px; border-radius: var(--r-full); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--critical); }

/* ---------- Envios ---------- */
.stack-xs { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.progress { display: flex; height: 8px; border-radius: var(--r-full); overflow: hidden; background: var(--grey-20); width: 100%; }
.progress i { display: block; height: 100%; }
.p-ok { background: var(--success); } .p-info { background: var(--info); } .p-critical { background: var(--critical); } .p-empty { background: var(--grey-30); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--grey-80); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 99px; display: block; }
.envios { display: flex; flex-direction: column; border: 1px solid var(--grey-30); border-radius: var(--r); overflow: hidden; }
.envio-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 110px minmax(0, 2fr) 120px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--grey-20); text-decoration: none; }
.envio-row:last-child { border-bottom: 0; }
a.envio-row:hover { background: var(--grey-10); }
.envio-row.head { padding: 12px 20px; font-size: 12px; font-weight: 700; color: var(--grey-80); border-bottom: 1px solid var(--grey-30); background: var(--brand-white); }
.envio-name { min-width: 0; } .envio-name b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .envio-name small { font-size: 12px; color: var(--grey-50); }
.thumbs { display: flex; }
.thumbs .t { width: 32px; height: 40px; border-radius: 4px; border: 2px solid var(--brand-white); margin-left: -8px; overflow: hidden; background: var(--grey-20); flex-shrink: 0; }
.thumbs .t:first-child { margin-left: 0; }
.thumbs .t img, .thumbs .t video { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t .thumb-play, .thumbs .t .thumb-empty { display: none; }
.thumbs .more { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--grey-80); }
.alert-warn { display: flex; align-items: center; gap: 14px; background: var(--grey-10); border: 1px solid var(--grey-30); border-left: 3px solid var(--warning); border-radius: var(--r); padding: 14px 16px; }
.alert-warn > .ico { color: var(--warning); }
.alert-warn .grow { flex: 1; min-width: 0; } .alert-warn b { display: block; font-size: 14px; } .alert-warn span { font-size: 13px; color: var(--grey-80); }
.group-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.group-head b { font-size: 16px; } .group-head span { font-size: 13px; color: var(--grey-50); }
.pieces-head, .piece-row { display: grid; grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1.1fr) 150px 32px; gap: 12px; align-items: center; }
.pieces-head { font-size: 12px; font-weight: 700; color: var(--grey-80); }
.pieces { list-style: none; display: flex; flex-direction: column; }
.piece-row { padding: 10px 0; border-bottom: 1px solid var(--grey-20); }
.piece-row > input { height: 40px; border: 1px solid var(--grey-30); border-radius: var(--r); padding: 0 12px; outline: 0; min-width: 0; }
.piece-row > input:focus { border-color: var(--brand-secondary-accent); box-shadow: 0 0 0 3px var(--warning-subtle); }
.piece-thumb { width: 56px; height: 70px; border-radius: 6px; overflow: hidden; background: var(--grey-20); display: flex; align-items: center; justify-content: center; }
.piece-thumb img, .piece-thumb video { width: 100%; height: 100%; object-fit: contain; }
.field-stack { display: flex; flex-direction: column; gap: 4px; }
.auto-tag { font-size: 11px; font-weight: 700; color: var(--brand-secondary-accent); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pick { position: relative; border: 1px solid var(--grey-30); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.pick input { position: absolute; top: 10px; left: 10px; width: 18px; height: 18px; accent-color: var(--brand-primary); }
.pick:has(input:checked) { border: 2px solid var(--brand-primary); padding: 9px; background: var(--grey-10); }
.pick-thumb { height: 120px; background: var(--grey-10); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pick-thumb img, .pick-thumb video { max-height: 100%; object-fit: contain; }
.pick b { font-size: 13px; } .pick small { font-size: 11px; color: var(--grey-50); }

/* Novo envio: uma peça por bloco */
.sticky-actions { position: sticky; top: 0; z-index: 20; background: var(--brand-white); margin: -32px -32px 0; padding: 32px 32px 16px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.upload-progress { display: flex; flex-direction: column; gap: 6px; }
.blocks { display: flex; flex-direction: column; gap: 12px; }
.block { border: 1px solid var(--grey-30); border-radius: var(--r); background: var(--brand-white); }
.block.open { border: 1.5px solid var(--brand-primary); }
.block-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.block-head .num { width: 28px; height: 28px; border-radius: 99px; background: var(--grey-20); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.block.open .num { background: var(--brand-accent); }
.block.done .num { background: var(--success-subtle); color: var(--success); }
.block-head .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.block-head .grow b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-head .grow small { font-size: 13px; color: var(--grey-50); }
.block-head .chev { display: flex; transition: transform .15s; } .block.open .chev { transform: rotate(180deg); }
.block-head [data-remove-block] { color: var(--grey-50); }
.block-body { display: none; border-top: 1px solid var(--grey-30); padding: 18px; flex-direction: column; gap: 18px; }
.block.open .block-body { display: flex; }
.block-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.add-block { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--grey-40); border-radius: var(--r); padding: 16px; font-size: 14px; font-weight: 700; color: var(--grey-80); background: var(--grey-10); cursor: pointer; width: 100%; }
.add-block:hover { border-color: var(--brand-secondary-accent); }
.collapsed-thumbs { display: flex; flex-shrink: 0; }
.collapsed-thumbs .t { width: 28px; height: 36px; border-radius: 4px; border: 2px solid var(--brand-white); margin-left: -8px; overflow: hidden; background: var(--grey-20); }
.collapsed-thumbs .t:first-child { margin-left: 0; }
.collapsed-thumbs .t img, .collapsed-thumbs .t video { width: 100%; height: 100%; object-fit: cover; }
.collapsed-thumbs .more { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--grey-80); }
.new-campaign { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.new-campaign input { flex: 1; height: 40px; border: 1.5px solid var(--brand-primary); border-radius: var(--r); padding: 0 12px; outline: 0; min-width: 0; }
.files-list { list-style: none; display: flex; flex-direction: column; border: 1px solid var(--grey-30); border-radius: var(--r); }
.file-item { display: grid; grid-template-columns: 24px 48px minmax(0, 1fr) auto 32px; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--grey-20); }
.file-item:last-child { border-bottom: 0; }
.file-item.expanded { background: var(--grey-10); grid-template-columns: 24px 48px minmax(0, 1fr) 32px; align-items: start; }
.file-item .n { font-size: 12px; font-weight: 700; color: var(--grey-50); text-align: center; }
.file-item .mini { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--grey-20); display: block; }
.file-item .mini img, .file-item .mini video { width: 100%; height: 100%; object-fit: cover; }
.file-item input, .file-item textarea { width: 100%; border: 1px solid var(--grey-30); border-radius: var(--r); padding: 8px 10px; outline: 0; background: var(--brand-white); }
.file-item input { height: 38px; }
.file-item .link-small, .block-body .link-small { background: none; border: 0; cursor: pointer; text-align: left; padding: 0; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.list-head b { font-size: 14px; } .list-head span { font-size: 12px; color: var(--grey-50); }
.slides { list-style: none; display: flex; gap: 12px; flex-wrap: wrap; }
.slide-item { width: 112px; display: flex; flex-direction: column; gap: 6px; cursor: grab; }
.slide-item .slide-img { position: relative; width: 112px; height: 140px; border-radius: 8px; overflow: hidden; background: var(--grey-20); display: flex; align-items: center; justify-content: center; }
.slide-item .slide-img img, .slide-item .slide-img video { width: 100%; height: 100%; object-fit: cover; }
.slide-item .no { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 99px; background: var(--brand-white); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.slide-item .slide-bar { display: flex; justify-content: space-between; align-items: center; color: var(--grey-50); font-size: 12px; }
.slide-item .slide-bar .icon-only { width: 24px; height: 24px; font-size: 12px; }
.slide-item.dragging { opacity: .5; }
.slide-item.add { cursor: pointer; }
.slide-item.add .slide-img { border: 1.5px dashed var(--grey-40); background: var(--grey-10); flex-direction: column; gap: 4px; font-size: 22px; color: var(--grey-80); }
.slide-item.add small { font-size: 12px; font-weight: 700; }
.warn { display: flex; align-items: center; gap: 12px; background: var(--warning-subtle); border: 1px solid #E8D9A6; border-radius: var(--r); padding: 12px 14px; flex-wrap: wrap; }
.warn .warn-ico { width: 24px; height: 24px; border-radius: 99px; background: var(--warning); color: var(--brand-white); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.warn .grow { flex: 1; min-width: 220px; } .warn b { display: block; font-size: 14px; } .warn span { font-size: 13px; color: var(--grey-80); }
.formats .fmt-opt small { white-space: nowrap; }

/* Cliente: campanhas */
.client-head { display: flex; align-items: center; gap: 14px; }
.avatar-lg { width: 48px; height: 48px; font-size: 15px; }
.row-link { text-decoration: none; } .row-link:hover b { text-decoration: underline; }
.camp-table { display: flex; flex-direction: column; }
.camp-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr 1.2fr 190px; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--grey-20); font-size: 14px; }
.camp-row.head { font-size: 12px; font-weight: 700; color: var(--grey-80); padding: 12px 20px; border-bottom: 1px solid var(--grey-30); }
.camp-row.editing { background: var(--grey-10); }
.camp-row.editing input { height: 38px; border: 1.5px solid var(--brand-primary); border-radius: var(--r); padding: 0 10px; outline: 0; min-width: 0; }
.camp-row.archived { color: var(--grey-50); }
.camp-row .acts { display: flex; gap: 14px; justify-content: flex-end; align-items: center; }
.camp-row .acts form { display: inline; } .camp-row .acts button.link-small { background: none; border: 0; cursor: pointer; padding: 0; }
.camp-sep { padding: 16px 20px 6px; }

/* Envio · cliente */
.client-body { flex: 1; margin: 0 16px 16px; background: var(--brand-white); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.env-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.env-hero .message { max-width: 640px; padding: 12px 14px; border-radius: var(--r); background: var(--grey-10); }
.env-progress { display: flex; flex-direction: column; gap: 10px; width: 420px; max-width: 100%; }
.continue { display: flex; align-items: center; gap: 16px; background: var(--warning-subtle); border-radius: var(--r); padding: 16px 20px; flex-wrap: wrap; }
.continue > .ico { color: var(--warning); } .continue-ok { background: var(--success-subtle); } .continue-ok > .ico { color: var(--success); }
.continue .grow { flex: 1; min-width: 220px; } .continue b { display: block; font-size: 15px; } .continue span { font-size: 13px; color: var(--grey-80); }
.piece-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.crumb-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; text-decoration: none; }
.pager { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--grey-80); white-space: nowrap; }
.pager .nb { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--grey-30); display: flex; align-items: center; justify-content: center; color: var(--brand-primary); }
.pager .nb:hover { background: var(--grey-10); }
.strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.strip-item { position: relative; width: 44px; height: 56px; border-radius: 6px; background: var(--grey-20); display: block; }
.strip-item img, .strip-item video { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.strip-item .thumb-play, .strip-item .thumb-empty { display: none; }
.strip-item.on { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.strip-item .dot { position: absolute; bottom: -5px; right: -5px; width: 14px; height: 14px; border-radius: 99px; border: 2px solid var(--brand-white); background: var(--grey-40); }
.dot-ok { background: var(--success) !important; } .dot-info { background: var(--info) !important; } .dot-critical { background: var(--critical) !important; }
.summary-page { align-items: center; }
.summary-wrap { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 24px; }
.summary-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.summary-head > .ico { color: var(--success); }
.sum-kpis { display: flex; gap: 12px; flex-wrap: wrap; }
.sum-kpi { flex: 1; min-width: 120px; border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.sum-kpi b { font-size: 32px; line-height: 1; } .sum-kpi span { font-size: 13px; font-weight: 500; }
.sum-kpi.ok { background: var(--success-subtle); color: var(--success); } .sum-kpi.info { background: var(--info-subtle); color: var(--info); }
.sum-kpi.critical { background: var(--critical-subtle); color: var(--critical); } .sum-kpi.neutral { background: var(--grey-10); color: var(--grey-80); }
.sum-kpi.pending { background: var(--warning-subtle); color: var(--warning); }
.summary { display: flex; flex-direction: column; gap: 8px; }
.sum-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--grey-30); border-radius: var(--r); padding: 10px 14px; text-decoration: none; }
.sum-row:hover { background: var(--grey-10); }
.sum-thumb { width: 40px; height: 50px; border-radius: 4px; overflow: hidden; background: var(--grey-20); flex-shrink: 0; }
.sum-thumb img, .sum-thumb video { width: 100%; height: 100%; object-fit: cover; }
.sum-thumb .thumb-play, .sum-thumb .thumb-empty { display: none; }
.sum-row .grow { flex: 1; min-width: 0; } .sum-row b { display: block; font-size: 14px; } .sum-row small { font-size: 12px; color: var(--grey-50); }
.row.center { justify-content: center; } .row.center > * { flex: 0 0 auto; }

/* Responsivo */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 1fr) 340px; }
  .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 900px) {
  body.app { flex-direction: column; }
  .sidebar { position: static; height: auto; width: 100%; flex-direction: row; align-items: center; padding: 12px 16px; gap: 12px; overflow-x: auto; }
  .nav { flex-direction: row; } .nav-item { height: 40px; font-size: 14px; } .nav-item.selected::before { display: none; }
  .sidebar { min-width: 0; max-width: 100vw; gap: 8px; } .nav-item { padding: 0 10px; }
  .sidebar .logo-img { display: none; } .sidebar .logo-compact { display: block; } .sidebar .logo-text { display: none; }
  .nav-item:not(.selected) > span:not(.count) { display: none; }
  .user-card { margin: 0 0 0 auto; padding: 0; gap: 4px; border: 0; background: none; } .user-info, .user-card .avatar { display: none; }
  .main { padding: 0 8px 8px; } .container { padding: 20px 16px; border-radius: 16px; }
  .two-col { grid-template-columns: minmax(0, 1fr); } .side { position: static; }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .envio-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .envio-row.head { display: none; }
  .envio-row .thumbs { justify-self: end; }
  .envio-row > .stack-xs { grid-column: 1 / -1; }
  .pieces-head { display: none; }
  .sticky-actions { margin: -20px -16px 0; padding: 20px 16px 12px; }
  .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .block-head .collapsed-thumbs { display: none; }
  .file-item { grid-template-columns: 48px minmax(0, 1fr) 32px; } .file-item .n { display: none; }
  .file-item > .link-small { grid-column: 2; }
  .camp-row { grid-template-columns: minmax(0, 1fr) auto; } .camp-row > span:not(.acts) { display: none; } .camp-row.head { display: none; }
  .piece-row { grid-template-columns: 56px minmax(0, 1fr) 32px; }
  .piece-row > input, .piece-row .field-stack { grid-column: 2; }
  .piece-row [data-remove] { grid-column: 3; grid-row: 1; }
  .filters { margin-left: 0; width: 100%; flex-wrap: wrap; } .input-search { flex: 1 1 180px; width: auto; min-width: 0; }
}
@media (max-width: 760px) {
  .client-top { height: 56px; padding: 0 16px; } .client-top .who-label, .client-top .who .chip { display: none; }
  .client-top .who { font-size: 13px; }
  .review { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .client-body { margin: 0; border-radius: 24px 24px 0 0; padding: 20px 16px; gap: 18px; }
  .client-body .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .client-body .card-thumb { height: 150px; padding: 10px; }
  .client-body .card-body { padding: 10px; } .client-body .card-meta { display: none; }
  .continue { padding: 14px; } .continue .btn { flex: 1; }
  .piece-nav .crumb-back span { display: none; }
  .strip { display: none; }
  .review-stage { border-radius: 24px 24px 0 0; padding: 16px; gap: 12px; }
  .review-head .title { font-size: 16px; }
  .stage { padding: 56px 8px 72px; min-height: 0; border-radius: 12px; }
  .stage-bar { top: 8px; left: 8px; right: 8px; }
  .icon-btn span { display: none; }
  .mock-story { max-width: 280px; }
  .review-side { position: static; max-height: none; border-radius: 0; padding: 16px 16px 0; }
  .side-scroll { overflow: visible; }
  .decision-bar .btn-lg { padding: 0 12px; font-size: 15px; gap: 6px; }
  .decision-bar { position: sticky; bottom: 0; background: var(--brand-white); margin: 0 -16px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0,0,0,.06); }
  .popover { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .stage.full { padding: 60px 0 80px; } .stage.full .stage-bar { left: 12px; right: 96px; } .stage.full .full-close { right: 12px; }
  .stage.full .mock { height: auto; width: 100%; } .stage.full .media-wrap { width: 100%; height: auto; }
  .comment-bar { left: 8px; right: 8px; transform: none; max-width: none; border-radius: 14px; padding: 8px 8px 8px 14px; }
  .comment-bar .cb-text { white-space: normal; font-size: 12px; flex: 1; }
}
