/* Aval — painel (projetos e peças) + superfícies de revisão */
:root {
  --dark: #1F2433; --dark-2: #2B3144; --blue: #4353FF; --blue-2: #3444EE; --green: #3FA66A;
  --ink: #252A37; --muted: #8C92A3; --line: #E3E6EC; --field: #F1F2F5; --bg: #EEF0F4; --paper: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 400 15px/1.5 "Roboto", system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- casca do painel ---------- */
.topnav { height: 64px; background: var(--dark); color: #fff; display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 10; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; }
.logo small { color: #8E95A8; font-weight: 400; font-size: 14px; margin-left: 2px; }
.topnav .spacer { flex: 1; }
.crumbs { color: #8E95A8; font-size: 14px; display: flex; gap: 8px; align-items: center; min-width: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs strong { color: #fff; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 40px 28px 100px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; font-weight: 300; margin: 0; line-height: 1.15; letter-spacing: -.01em; }
.page-head p { margin: 6px 0 0; color: #6B7183; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 3px; border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 12.5px; white-space: nowrap; text-decoration: none; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn:hover { box-shadow: inset 0 0 0 1px #C9CDD6; }
.btn svg { width: 16px; height: 16px; }
.btn.blue { background: var(--blue); color: #fff; box-shadow: none; }
.btn.blue:hover { background: var(--blue-2); }
.btn.link { background: none; box-shadow: none; color: var(--muted); padding: 0 10px; }
.btn.link:hover { color: var(--ink); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 11.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* progresso */
.progress { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: #6B7183; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: #E3E6EC; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }

/* cards de projeto */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.pcard { background: var(--paper); border-radius: 4px; overflow: hidden; text-decoration: none; box-shadow: 0 1px 2px rgba(20,24,40,.06); display: flex; flex-direction: column; transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 10px 30px rgba(20,24,40,.12); }
.pcard-cover { height: 170px; background: #DDE1E8; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.pcard-cover > div { background: #D5D9E1 center/cover; }
.pcard-cover > div:first-child { grid-row: span 2; }
.pcard-cover > div.shot { background-position: center top; }
.pcard-cover.one > div:first-child { grid-column: span 2; }
.pcard-cover.empty { place-items: center; color: #A7ACBA; grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pcard-cover.empty svg { width: 40px; height: 40px; }
.pcard-body { padding: 18px 20px 20px; display: grid; gap: 12px; }
.pcard-body strong { font-size: 18px; font-weight: 500; }
.pcard-body small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.pcard-new { border: 2px dashed #C9CDD6; background: transparent; display: grid; place-items: center; min-height: 290px; color: #6B7183; cursor: pointer; border-radius: 4px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 12.5px; }
.pcard-new:hover { border-color: var(--blue); color: var(--blue); }
.pcard-new svg { width: 30px; height: 30px; margin: 0 auto 10px; }

/* cards de peça — como as imagens do mockup no SureFeedback */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.icard { background: var(--paper); border-radius: 4px; box-shadow: 0 1px 2px rgba(20,24,40,.06); display: flex; flex-direction: column; position: relative; }
.icard:hover { box-shadow: 0 10px 30px rgba(20,24,40,.12); }
.icard-thumb { position: relative; aspect-ratio: 4 / 3.4; background: #DDE1E8 center top / cover no-repeat; border-radius: 4px 4px 0 0; overflow: hidden; display: grid; place-items: center; color: #A7ACBA; text-decoration: none; }
.icard-thumb > svg { width: 40px; height: 40px; }
.icard-thumb .excerpt { position: absolute; inset: 0; background: #fff; padding: 46px 22px 20px; font: 14px/1.55 "Newsreader", Georgia, serif; color: #3C4252; text-align: left; overflow: hidden; }
.icard-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(20,24,40,.35); opacity: 0; transition: opacity .15s; }
.icard-thumb .view { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--ink); border-radius: 22px; padding: 12px 22px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .15s; box-shadow: 0 6px 20px rgba(0,0,0,.2); white-space: nowrap; }
.icard:hover .icard-thumb::after, .icard:hover .view, .icard-thumb:focus-visible .view { opacity: 1; }
.type-tag { position: absolute; left: 10px; bottom: 10px; z-index: 1; background: rgba(20,24,40,.78); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; display: flex; gap: 5px; align-items: center; }
.type-tag svg { width: 12px; height: 12px; }
.icard-body { padding: 16px 18px 14px; }
.icard-body strong { display: block; font-size: 16.5px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 12px; }
.icard-foot { display: flex; align-items: center; gap: 10px; }
.bubble { display: inline-flex; align-items: center; gap: 6px; background: var(--field); border-radius: 12px; padding: 3px 10px; font-size: 13px; color: #5D6475; }
.bubble svg { width: 14px; height: 14px; }
.st { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; background: var(--field); color: #6B7183; }
.st.approved { background: #E3F4EA; color: #2F8753; }
.st.changes { background: #FDEFE3; color: #C4600F; }
.voicebox { position: relative; }
.voicebox textarea { padding-right: 52px; }
.voicebox > .ap-icon-btn { position: absolute; right: 8px; bottom: 8px; }
.st.rejected { background: #FBE6E6; color: #B23A3A; }
.gear { margin-left: auto; width: 32px; height: 32px; border: 0; background: none; color: #A7ACBA; border-radius: 4px; cursor: pointer; display: grid; place-items: center; }
.gear:hover { background: var(--field); color: var(--ink); }
.gear svg { width: 18px; height: 18px; }
.dropdown { position: absolute; z-index: 20; background: #fff; border-radius: 3px; min-width: 220px; padding: 6px 0; box-shadow: 0 10px 30px rgba(20,24,40,.18), 0 0 0 1px rgba(20,24,40,.06); }
.dropdown button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 11px 16px; cursor: pointer; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #5D6475; }
.dropdown button:hover { background: #F6F7F9; color: var(--ink); }
.dropdown button svg { width: 18px; height: 18px; }
.dropdown button small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.dropdown button.danger { color: #C43A2F; }

.empty { background: var(--paper); border-radius: 4px; padding: 64px 24px; text-align: center; color: #6B7183; }
.empty strong { display: block; font-size: 22px; font-weight: 300; color: var(--ink); margin-bottom: 8px; }
.empty .btn { margin-top: 20px; }

.welcome { background: var(--paper); border-radius: 4px; padding: 20px 24px; margin-bottom: 26px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.welcome p { margin: 0; flex: 1; min-width: 240px; color: #4A5163; }
.welcome .progress { min-width: 260px; }

/* ---------- modais do painel ---------- */
.backdrop { position: fixed; inset: 0; z-index: 2000; background: rgba(20,24,40,.55); display: grid; place-items: center; padding: 16px; }
.modal { width: min(100%, 600px); background: #fff; border-radius: 3px; padding: 32px 36px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: calc(100dvh - 32px); overflow: auto; }
.modal-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.modal h2 { margin: 0; font-size: 26px; font-weight: 400; }
.modal .lead { margin: -6px 0 20px; color: #5D6475; }
.label { display: block; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 12px; }
.input { width: 100%; border: 0; background: var(--field); padding: 13px 16px; border-radius: 2px; outline: none; margin-bottom: 18px; font-size: 15.5px; }
.input:focus { box-shadow: inset 0 0 0 2px rgba(67,83,255,.35); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.x-btn { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; border-radius: 4px; display: grid; place-items: center; color: #5D6475; flex: none; }
.x-btn:hover { background: var(--field); }
.x-btn svg { width: 20px; height: 20px; }
.drop { border: 2px dashed #C9CDD6; border-radius: 3px; padding: 30px 16px; text-align: center; color: #6B7183; cursor: pointer; margin-bottom: 18px; display: block; }
.drop.over { border-color: var(--blue); background: #F2F3FF; }
.drop strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin: -6px 0 18px; }
.thumbs figure { margin: 0; width: 84px; position: relative; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 3px; display: block; background: var(--field); }
.thumbs figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumbs button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--dark); color: #fff; cursor: pointer; font-size: 13px; line-height: 22px; padding: 0; }
.snippet { background: var(--dark); color: #E6E8EC; border-radius: 3px; padding: 14px 16px; font: 13px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-all; margin-bottom: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2100; background: #000; color: #fff; padding: 11px 18px; border-radius: 3px; font-size: 14px; }

.login { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: var(--dark); }
.login form { width: min(100%, 400px); background: #fff; border-radius: 3px; padding: 36px; }
.login .logo { color: var(--ink); margin-bottom: 28px; }
.err { color: #C43A2F; margin: 12px 0 0; font-size: 14px; }

/* ---------- tela de revisão ---------- */
body.reviewing { background: #E8EAEF; overflow: hidden; }
.stage { position: fixed; inset: 0; overflow: auto; background: #E8EAEF; }
.stage.commenting .cmt-target { cursor: crosshair; }
.canvas { min-height: 100%; display: flex; justify-content: center; align-items: flex-start; padding: 84px 40px 140px; }
.sheet { position: relative; line-height: 0; box-shadow: 0 2px 6px rgba(20,24,40,.08), 0 20px 50px rgba(20,24,40,.12); background: #fff; }
.sheet img, .sheet canvas { display: block; max-width: min(1200px, calc(100vw - 80px)); height: auto; user-select: none; -webkit-user-drag: none; }
.slide-nav { position: fixed; top: 18px; right: 18px; z-index: 900; display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 4px; padding: 6px; box-shadow: 0 4px 18px rgba(20,24,40,.12); font-size: 13.5px; color: #5D6475; }
.slide-nav button { width: 30px; height: 30px; border: 0; background: none; border-radius: 3px; cursor: pointer; display: grid; place-items: center; }
.slide-nav button:hover:not([disabled]) { background: var(--field); }
.slide-nav button[disabled] { opacity: .35; cursor: default; }
.slide-nav svg { width: 18px; height: 18px; }
.slide-nav span { padding: 0 6px; white-space: nowrap; }

/* post — prévia no formato do Instagram (mídia + legenda lado a lado) */
.post { display: grid; grid-template-columns: auto 400px; grid-template-rows: auto 1fr auto; grid-template-areas: "media head" "media cap" "media act"; background: #fff; border-radius: 4px; box-shadow: 0 2px 6px rgba(20,24,40,.08), 0 20px 50px rgba(20,24,40,.14); max-width: calc(100vw - 80px); }
.post-media { grid-area: media; position: relative; background: #000; display: grid; place-items: center; border-radius: 4px 0 0 4px; min-width: 280px; }
.post-slide { position: relative; line-height: 0; }
.post-slide img { display: block; max-height: calc(100dvh - 230px); max-width: min(620px, calc(100vw - 520px)); width: auto; height: auto; user-select: none; -webkit-user-drag: none; }
.post-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #262626; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); z-index: 35; }
.post-arrow svg { width: 18px; height: 18px; }
.post-arrow.prev { left: 12px; }
.post-arrow.next { right: 12px; }
.post-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; z-index: 35; pointer-events: none; }
.post-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.post-dots i.on { background: #fff; }
.post-count { position: absolute; top: 14px; right: 14px; z-index: 35; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 12px; line-height: 1.3; }
.post-head, .post-caption-wrap, .post-actions { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; color: #262626; }
.post-head { grid-area: head; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #EFEFEF; }
.ig-av { width: 38px; height: 38px; border-radius: 50%; padding: 2px; background: conic-gradient(#FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5, #FEDA75); flex: none; }
.ig-av > * { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: contain; padding: 2px; background-color: #fff; background: #DDE1E8; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #444; }
.post-head b { font-size: 14px; font-weight: 600; }
.post-head .follow { color: #0095F6; font-size: 14px; font-weight: 600; }
.post-head .dots { margin-left: auto; color: #262626; }
.post-head .dots svg { width: 22px; height: 22px; }
.post-caption-wrap { grid-area: cap; position: relative; padding: 16px 16px 20px; font-size: 14.5px; line-height: 1.55; min-height: 200px; }
.post-caption-row { display: grid; grid-template-columns: 38px 1fr; gap: 12px; }
.post-caption { white-space: pre-wrap; word-break: break-word; }
.post-caption .hash { color: #00376B; }
.post-caption-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 10px 50px; font-family: "Roboto", sans-serif; }
.post-actions { grid-area: act; border-top: 1px solid #EFEFEF; padding: 10px 14px 14px; }
.post-actions .icons { display: flex; gap: 14px; color: #262626; }
.post-actions .icons svg { width: 24px; height: 24px; }
.post-actions .icons .save { margin-left: auto; }
.post-actions small { display: block; margin-top: 8px; color: #737373; font-size: 11.5px; text-transform: uppercase; letter-spacing: .02em; }
.no-caption { color: var(--muted); font-style: italic; }

/* texto */
.doc-wrap { position: relative; width: min(760px, calc(100vw - 40px)); }
.doc { background: #fff; padding: 72px 80px 90px; font: 19px/1.75 "Newsreader", Georgia, serif; color: #22242B; box-shadow: 0 2px 6px rgba(20,24,40,.08), 0 20px 50px rgba(20,24,40,.12); }
.doc p { margin: 0 0 1em; }
.doc h2 { font: 500 28px/1.25 "Newsreader", Georgia, serif; margin: 1.2em 0 .5em; }
.doc h2:first-child { margin-top: 0; }

/* trechos comentados (texto e legenda) */
mark.ap-mark { background: #FFF0B3; color: inherit; border-bottom: 2px solid #F2C94C; cursor: pointer; padding: 1px 0; }
mark.ap-mark.is-active { background: #FFE27A; }
mark.ap-mark.resolved { background: #E3F4EA; border-bottom-color: #9AD8B0; }
mark.ap-mark sup { display: inline-block; min-width: 18px; height: 18px; border-radius: 9px; background: var(--c, var(--blue)); color: #fff; font: 700 10.5px/18px "Roboto", sans-serif; text-align: center; margin-left: 3px; vertical-align: 3px; padding: 0 4px; user-select: none; }
.ap-hide-marks mark.ap-mark { background: none; border-bottom-color: transparent; }
.ap-hide-marks mark.ap-mark sup { display: none; }
.sel-btn { position: absolute; z-index: 45; transform: translate(-50%, calc(-100% - 10px)); background: var(--dark); color: #fff; border: 0; border-radius: 3px; height: 38px; padding: 0 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; font: 700 11.5px "Roboto", sans-serif; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(0,0,0,.25); white-space: nowrap; }
.sel-btn svg { width: 15px; height: 15px; }
.sel-btn.below { transform: translate(-50%, 0); height: 44px; }
.sel-btn.below::after { bottom: auto; top: -5px; border-top: 0; border-bottom: 5px solid var(--dark); }
.sel-btn::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--dark); border-bottom: 0; }

/* site */
.site-card { width: min(640px, calc(100vw - 32px)); background: #fff; border-radius: 4px; padding: 36px; box-shadow: 0 20px 50px rgba(20,24,40,.12); line-height: 1.5; }
.site-card h2 { margin: 0 0 8px; font-weight: 300; font-size: 28px; }
.site-card p { color: #5D6475; margin: 0 0 22px; }
.site-card .url { background: var(--field); border-radius: 2px; padding: 12px 16px; margin-bottom: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4A5163; }
.site-card .btn { margin-bottom: 26px; }
.site-card h3 { margin: 6px 0 10px; font-weight: 500; }

@media (max-width: 900px) {
  .post { grid-template-columns: 1fr; grid-template-areas: "head" "media" "act" "cap"; max-width: calc(100vw - 24px); width: 470px; }
  .post-media { border-radius: 0; min-width: 0; }
  .post-slide img { max-width: 100%; max-height: 70dvh; }
  .post-actions { border-top: 0; }
  .post-caption-wrap { min-height: 0; padding-top: 4px; }
}
@media (max-width: 760px) {
  .topnav { padding: 0 16px; }
  .wrap { padding: 24px 16px 80px; }
  .page-head h1 { font-size: 28px; }
  .canvas { padding: 70px 12px 110px; }
  .sheet img, .sheet canvas { max-width: calc(100vw - 24px); }
  .doc { padding: 36px 24px 48px; font-size: 18px; }
  .slide-nav { top: auto; bottom: 76px; right: 50%; transform: translateX(50%); }
  .modal { padding: 24px 20px; }
  .crumbs .hide-sm { display: none; }
}
.ig-av > img { background: #fff; }
.icard-thumb canvas[data-pdf] { position: absolute; inset: 0; width: 100%; height: auto; background: #fff; }
.site-thumb { display: grid; justify-items: center; gap: 10px; color: #8C92A3; padding: 0 16px; text-align: center; }
.site-thumb svg { width: 40px; height: 40px; }
.site-thumb small { font-size: 13px; word-break: break-all; }
.loading { min-height: 60vh; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.loading::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #D5D9E1; border-top-color: var(--blue); margin-bottom: 12px; animation: spin .8s linear infinite; }
.loading { grid-auto-flow: row; align-content: center; justify-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading::before { animation: none; } }

/* ---------- grade ou lista ---------- */
.viewtoggle { display: inline-flex; height: 44px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); overflow: hidden; }
.viewtoggle button { width: 44px; border: 0; background: none; color: #8C92A3; cursor: pointer; display: grid; place-items: center; }
.viewtoggle button + button { box-shadow: inset 1px 0 0 var(--line); }
.viewtoggle button svg { width: 18px; height: 18px; }
.viewtoggle button[aria-pressed="true"] { color: var(--blue); background: #F2F3FF; }
.icard-type { display: none; }

.projects.as-list { grid-template-columns: 1fr; gap: 10px; }
.projects.as-list .pcard { flex-direction: row; align-items: stretch; }
.projects.as-list .pcard-cover { width: 150px; height: 88px; flex: none; }
.projects.as-list .pcard-cover.empty svg { width: 28px; height: 28px; }
.projects.as-list .pcard-body { flex: 1; grid-template-columns: 1fr minmax(200px, 320px); align-items: center; padding: 14px 22px; }
.projects.as-list .pcard-new { min-height: 64px; }
.projects.as-list .pcard-new svg { display: inline; width: 18px; height: 18px; margin: 0 8px -3px 0; }

.items.as-list { grid-template-columns: 1fr; gap: 10px; }
.items.as-list .icard { flex-direction: row; align-items: center; }
.items.as-list .icard-thumb { width: 120px; aspect-ratio: 4 / 3; flex: none; border-radius: 4px 0 0 4px; }
.items.as-list .icard-thumb .view, .items.as-list .type-tag { display: none; }
.items.as-list .icard-thumb .excerpt { padding: 10px 12px; font-size: 10.5px; }
.items.as-list .icard-thumb > svg { width: 28px; height: 28px; }
.items.as-list .icard-body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 160px 290px; align-items: center; gap: 18px; padding: 10px 18px; }
.items.as-list .icard-body strong { margin: 0; min-width: 0; font-size: 16px; }
.items.as-list .icard-type { display: block; color: var(--muted); font-size: 13.5px; }
.items.as-list .icard-foot { justify-content: flex-end; }
@media (max-width: 760px) {
  .projects.as-list .pcard-cover { width: 96px; }
  .projects.as-list .pcard-body { grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; }
  .items.as-list .icard-thumb { width: 84px; }
  .items.as-list .icard-body { grid-template-columns: 1fr; gap: 4px; padding: 10px 12px; }
  .items.as-list .icard-foot { justify-content: flex-start; }
}

/* ---------- palco: rola nos dois sentidos quando a peça passa da tela ---------- */
.canvas { width: max-content; min-width: 100%; justify-content: flex-start; }
.canvas > * { margin-left: auto; margin-right: auto; }
.stage.commenting .cmt-target { touch-action: none; }
.stage.zoomed:not(.commenting) .cmt-target { cursor: grab; }
.stage.panning, .stage.panning .cmt-target { cursor: grabbing !important; user-select: none; }

/* zoom */
.zoom { position: fixed; right: 18px; bottom: 24px; z-index: 900; display: flex; align-items: center; background: #fff; border-radius: 4px; padding: 4px; box-shadow: 0 4px 18px rgba(20,24,40,.14); }
.zoom button { height: 34px; min-width: 34px; border: 0; background: none; border-radius: 3px; cursor: pointer; display: grid; place-items: center; color: #4A5163; }
.zoom button:hover { background: var(--field); }
.zoom button svg { width: 16px; height: 16px; }
.zoom .zr { font: 700 12px "Roboto", sans-serif; min-width: 54px; letter-spacing: .02em; }

/* ---------- ver nas redes ---------- */
.netpick { position: fixed; top: 18px; right: 18px; z-index: 900; display: flex; align-items: flex-start; gap: 8px; }
.netpick-btn { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; border-radius: 4px; background: #fff; cursor: pointer; box-shadow: 0 4px 18px rgba(20,24,40,.12); font-size: 14px; font-weight: 500; color: var(--ink); }
.netpick-btn > svg:first-child { width: 18px; height: 18px; color: var(--blue); }
.netpick-btn > svg:last-child { width: 14px; height: 14px; transform: rotate(90deg); color: var(--muted); }
.netpick-safe { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 4px; background: #fff; box-shadow: 0 4px 18px rgba(20,24,40,.12); font-size: 14px; cursor: pointer; white-space: nowrap; order: -1; }
.netpick-safe input { width: 16px; height: 16px; accent-color: #E5484D; margin: 0; }
.netpick-menu { position: absolute; top: 48px; right: 0; width: 250px; background: #fff; border-radius: 4px; padding: 6px 0; box-shadow: 0 10px 30px rgba(20,24,40,.18), 0 0 0 1px rgba(20,24,40,.06); }
.netpick-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 16px; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.netpick-menu button:hover:not([disabled]) { background: #F6F7F9; }
.netpick-menu button[aria-current] { color: var(--blue); font-weight: 500; }
.netpick-menu button[disabled] { color: #A7ACBA; cursor: default; }
.netpick-menu button small { display: block; font-size: 12px; color: #A7ACBA; }
.netpick-menu button:first-child { border-bottom: 1px solid var(--line); margin-bottom: 4px; }

/* celular: moldura escura, a arte ocupa a tela toda */
.phone { padding: 10px; background: #0B0D12; border-radius: 34px; box-shadow: 0 2px 6px rgba(20,24,40,.12), 0 30px 60px rgba(20,24,40,.28); }
.phone .sheet { box-shadow: none; background: #000; border-radius: 24px; }
.phone .sheet > img { border-radius: 24px; max-width: none; }
.net-ui { position: absolute; inset: 0; z-index: 20; pointer-events: none; color: #fff; font: 500 13px/1.3 -apple-system, "Segoe UI", Roboto, sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.45); border-radius: 24px; overflow: hidden; }
.net-ui svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); flex: none; }
.net-ui b { font-weight: 600; }
.nu-top { position: absolute; left: 0; right: 0; top: 0; padding: 12px 12px 30px; background: linear-gradient(rgba(0,0,0,.35), transparent); }
.nu-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.nu-row { display: flex; align-items: center; gap: 14px; }
.nu-end { margin-left: auto; display: flex; gap: 14px; }
.nu-bars { display: flex; gap: 4px; margin-bottom: 10px; }
.nu-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.45); }
.nu-bars i.on { background: #fff; }
.nu-who { display: flex; align-items: center; gap: 8px; }
.nu-who small { opacity: .8; }
.nu-av { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #fff; background: #fff; overflow: hidden; flex: none; display: grid; place-items: center; color: #333; font-weight: 700; font-size: 12px; text-shadow: none; }
.nu-av > img { width: 100%; height: 100%; object-fit: contain; }
.nu-pill { flex: 1; height: 40px; border: 1px solid rgba(255,255,255,.75); border-radius: 22px; display: flex; align-items: center; padding: 0 16px; font-size: 13.5px; }
.nu-title { font-size: 19px; }
.nu-tabs { display: flex; justify-content: center; gap: 16px; font-size: 15px; }
.nu-tabs span:not(.nu-end) { opacity: .7; }
.nu-tabs b { border-bottom: 2px solid #fff; padding-bottom: 4px; }
.nu-tabs .nu-end { position: absolute; right: 12px; }
.nu-rail { position: absolute; right: 8px; bottom: 26%; display: grid; gap: 16px; justify-items: center; }
.nu-rail span { display: grid; justify-items: center; gap: 3px; }
.nu-rail svg { width: 26px; height: 26px; }
.nu-rail small { font-size: 11px; font-weight: 600; max-width: 70px; text-align: center; }
.nu-bottom p { margin: 8px 0 0; padding-right: 64px; }
.nu-follow, .nu-sub { margin-left: 4px; border: 1px solid rgba(255,255,255,.8); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.nu-sub { background: #fff; color: #000; text-shadow: none; border-radius: 14px; }
.nu-handle { font-size: 15px; }
.nu-music { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.nu-music svg { width: 14px; height: 14px; }
.nu-line { display: inline-block; height: 9px; border-radius: 5px; background: rgba(255,255,255,.7); vertical-align: middle; box-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* área segura: faixas vermelhas onde a interface cobre, linha tracejada no miolo */
.net-safe { position: absolute; inset: 0; z-index: 21; pointer-events: none; border-radius: 24px; overflow: hidden; }
.net-safe i { position: absolute; background: rgba(229, 72, 77, .28); }
.net-safe .s-t { left: 0; right: 0; top: 0; height: var(--t); }
.net-safe .s-b { left: 0; right: 0; bottom: 0; height: var(--b); }
.net-safe .s-l { left: 0; top: var(--t); bottom: var(--b); width: var(--l); }
.net-safe .s-r { right: 0; top: var(--t); bottom: var(--b); width: var(--r); }
.net-safe .s-box { position: absolute; top: var(--t); right: var(--r); bottom: var(--b); left: var(--l); border: 2px dashed rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(229,72,77,.6); }

/* feed do Instagram e do Facebook */
.feed { width: max-content; background: #fff; border-radius: 6px; box-shadow: 0 2px 6px rgba(20,24,40,.08), 0 20px 50px rgba(20,24,40,.14); font-family: -apple-system, "Segoe UI", Roboto, sans-serif; color: #262626; }
.feed .sheet { box-shadow: none; }
.feed .sheet > img { max-width: none; }
.feed-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; }
.feed-head .dots { margin-left: auto; }
.feed-head .dots svg, .feed-foot svg { width: 22px; height: 22px; }
.ig-av.sm { width: 34px; height: 34px; }
.feed-foot { padding: 10px 14px 14px; }
.feed-foot .icons { display: flex; gap: 14px; margin-bottom: 8px; }
.feed-foot .icons .save { margin-left: auto; }
.feed-foot p { margin: 4px 0 0; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.feed .nu-line { background: #E4E6EB; box-shadow: none; height: 10px; }
.fb-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #E4E6EB; display: grid; place-items: center; font-weight: 700; color: #444; flex: none; }
.fb-av > img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.feed-fb .who { display: grid; line-height: 1.3; }
.feed-fb .who b { font-size: 15px; color: #050505; }
.feed-fb .who small { color: #65676B; font-size: 12.5px; display: flex; align-items: center; gap: 4px; }
.feed-fb .who small svg { width: 12px; height: 12px; }
.feed-lines { padding: 0 14px 12px; display: grid; gap: 7px; }
.fb-foot { display: flex; justify-content: space-around; border-top: 1px solid #E4E6EB; margin: 0 14px; padding: 8px 0 10px; color: #65676B; font-size: 14px; font-weight: 600; }
.fb-foot span { display: flex; align-items: center; gap: 6px; }
.fb-foot svg { width: 18px; height: 18px; }

/* ---------- copy ---------- */
.copy-wrap { position: relative; width: min(760px, calc(100vw - 40px)); }
.copy-sum { margin: 0 0 14px; color: #5D6475; font-size: 14px; }
.copy-group { margin-bottom: 30px; }
.copy-group h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #5D6475; margin: 0 0 12px; }
.copy-block { position: relative; background: #fff; border-radius: 4px; padding: 18px 22px 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(20,24,40,.06), 0 8px 24px rgba(20,24,40,.06); border-left: 4px solid #D5D9E1; }
.copy-block.approved { border-left-color: var(--green); }
.copy-block.rejected { border-left-color: #E5484D; }
.copy-block header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding-right: 26px; }
.copy-field { font-weight: 700; font-size: 15px; flex: 1; }
.copy-count { font: 500 12.5px "Roboto", sans-serif; color: var(--muted); font-variant-numeric: tabular-nums; }
.copy-count.over { color: #D9363E; font-weight: 700; }
.copy-st { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; background: var(--field); color: #6B7183; }
.copy-block.approved .copy-st { background: #E3F4EA; color: #2F8753; }
.copy-block.rejected .copy-st { background: #FDECEC; color: #C4323A; }
.copy-text { font-size: 16.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; color: #22242B; }
.copy-over { margin: 8px 0 0; color: #D9363E; font-size: 13px; }
.copy-why { margin: 12px 0 0; padding: 10px 12px; background: #FDF3F3; border-radius: 3px; font-size: 14px; color: #5D3A3C; }
.copy-block footer { display: flex; gap: 8px; margin-top: 14px; }
.copy-block .btn.ok { color: #2F8753; }
.copy-block .btn.ok.on { background: #E3F4EA; box-shadow: none; opacity: 1; }
.copy-block .btn.no { color: #C4323A; }
.copy-quote { margin: 0 0 18px; padding: 10px 14px; background: var(--field); border-left: 3px solid #D5D9E1; white-space: pre-wrap; max-height: 140px; overflow: auto; }

/* montar copy (modal) */
.cb-list { display: grid; gap: 14px; margin-bottom: 12px; }
.cb-row { background: #FAFBFC; border: 1px solid var(--line); border-radius: 3px; padding: 12px 12px 8px; }
.cb-meta { display: grid; grid-template-columns: 1fr 1fr 92px 36px; gap: 8px; align-items: center; }
.cb-row .input { margin-bottom: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cb-row textarea.input { min-height: 72px; margin-bottom: 4px; }
.cb-count { display: block; text-align: right; font-size: 12px; color: var(--muted); }
.cb-count.over { color: #D9363E; font-weight: 700; }
.cb-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.cb-add span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-right: 4px; }
.chip { border: 0; border-radius: 16px; background: #EEF0FF; color: var(--blue); padding: 7px 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip:hover { background: #E1E5FF; }

@media (max-width: 760px) {
  .zoom { display: none; }
  .netpick { top: 58px; right: 10px; }
  .stage.has-netpick .canvas { padding-top: 112px; }
  .netpick-btn, .netpick-safe { height: 38px; font-size: 13px; }
  .cb-meta { grid-template-columns: 1fr 1fr 72px 36px; }
  .copy-block { padding: 14px 14px 12px; }
}
