
:root { --ink:#0b0b0b; --panel:#151515; --soft:#202020; --line:#303030; --paper:#f5f3ee; --muted:#9b9b96; --yellow:#ffb000; --green:#4ed59b; --red:#ff6b62; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--ink); color:var(--paper); font-family: "Rethink Sans"; }
button, input, textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.42; }

/* Manual */

/* =========================
   LOGOS
   ========================= */

.portal-logo {
    display: block;
    width: 60px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.access-brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.access-logo {
    display: block;
    width: 90px;
    max-width: 80vw;
    height: auto;
    object-fit: contain;
}

.instagram-avatar {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-avatar-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-lockup .portal-logo,
.access-brand-logo .access-logo,
.instagram-avatar .instagram-avatar-logo {
    font-size: 0;
    line-height: 0;
}


/* =========================
   VÍDEO
   ========================= */

.video-frame {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
}

.video-player-area {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
    z-index: 1;
}

.video-cover {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.drive-video-player {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #000;
    z-index: 2;
}


/* =========================
   BOTÃO CARREGAR VÍDEO
   ========================= */

.video-start-button {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.12);
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.video-play-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border: 1px solid #444;
    border-radius: 50%;
    color: #ffb000;
    font-size: 22px;
    transition: .2s ease;
}

.video-play-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.video-start-button:hover .video-play-icon {
    border-color: #ffb000;
    transform: scale(1.05);
}


/* =========================
   CARREGAMENTO DO VÍDEO
   ========================= */

.video-loading-message {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #080808;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.video-loading-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid #303030;
    border-top-color: #ffb000;
    border-radius: 50%;
    animation: video-loading-spin .8s linear infinite;
}

@keyframes video-loading-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================
   SETAS DO CARROSSEL
   ========================= */

.asset-shell {
    position: relative;
}

.asset-arrow {
    position: absolute !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}


html.video-expanded-open,
body.video-expanded-open {
    overflow: hidden !important;
    width: 100%;
    height: 100%;
}


/* Ampliação sem fullscreen nativo */
.video-player-area.video-expanded {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    /*
     * Fallback Safari antigo
     */
    height: 100vh !important;
    /*
     * Navegadores modernos / Safari atual
     */
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    background: #000 !important;
    z-index: 2147483647 !important;
    overflow: hidden !important;
    transform: none !important;
}


    /* Iframe ocupa toda a área */
    .video-player-area.video-expanded .drive-video-player {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        border: 0 !important;
    }


    /* Botão de fechar */
    .video-player-area.video-expanded .video-expand-button {
        position: absolute !important;
        top: max(16px, env(safe-area-inset-top)) !important;
        right: max(16px, env(safe-area-inset-right)) !important;
        bottom: auto !important;
        z-index: 2147483647 !important;
    }

/* =========================
   CORREÇÃO MOBILE
   ========================= */

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
}

.portal-page,
.content-grid,
.content-card,
.asset-viewer,
.asset-shell,
.asset-carousel-track,
.asset-carousel-slide,
.asset-stage,
.instagram-preview-shell,
.instagram-grid {
    min-width: 0;
    max-width: 100%;
}
@media (max-width: 768px) {

    .portal-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .content-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .content-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .asset-viewer,
    .asset-shell,
    .asset-carousel-track {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

/* Fim Manual */


.portal-page,.access-page,.loading-page { min-height:100vh; background-color:var(--ink); background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),radial-gradient(circle at 10% 0%,rgba(255,176,0,.09),transparent 30%); background-size:88px 88px,88px 88px,auto; }
.portal-page { padding:0 clamp(20px,4vw,72px); }
.portal-header { height:84px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); max-width:1480px; margin:auto; }
.header-actions { display:flex; align-items:center; gap:10px; }
.viewer-chip { border:1px solid var(--line); border-radius:999px; padding:10px 14px; background:#111; color:#aaa; font-size:11px; }
.viewer-chip:hover { color:var(--yellow); border-color:#6b521d; }
.brand-lockup { color:white; text-decoration:none; display:flex; align-items:center; gap:12px; font-size:18px; letter-spacing:-.02em; }
.brand-mark { width:62px; height:62px; display:flex; align-items:center; justify-content:center; border:2px solid var(--yellow); border-radius:50%; color:var(--yellow); font-size:27px; font-weight:800; letter-spacing:-.14em; padding-right:4px; box-shadow:0 0 0 5px rgba(255,176,0,.06); }
.brand-mark span { font-weight:900; }
.brand-mark.small { width:38px; height:38px; font-size:17px; border-width:1px; box-shadow:none; }
.sync-chip { display:flex; align-items:center; gap:9px; border:1px solid var(--line); border-radius:999px; padding:10px 14px; font-size:12px; color:#c7c7c2; background:rgba(255,255,255,.025); }
.sync-chip i { width:7px; height:7px; border-radius:50%; background:#777; }
.sync-chip.live i { background:var(--green); box-shadow:0 0 0 5px rgba(78,213,155,.1); }
.hero { max-width:1480px; margin:auto; min-height:360px; display:flex; justify-content:space-between; align-items:center; gap:40px; padding:60px 0; }
.eyebrow { color:var(--yellow); letter-spacing:.18em; font-size:12px; font-weight:800; }
.hero h1,.access-card h1 { font-size:clamp(38px,8vw,72px); line-height:.84; letter-spacing:-.065em; margin:24px 0; font-weight:700; }
.hero h1 em,.access-card h1 em { color:var(--yellow); font-style:italic; font-weight:700; }
.hero p { max-width:610px; color:#b8b8b2; line-height:1.7; font-size:16px; }
.hero-stamp { width:150px; height:150px; flex:0 0 auto; border:1px solid #4a3b18; border-radius:50%; display:flex; flex-direction:column; justify-content:center; align-items:center; transform:rotate(7deg); background:rgba(255,176,0,.045); }
.hero-stamp span { font-size:50px; font-weight:800; line-height:.8; color:var(--yellow); }
.hero-stamp small { margin-top:12px; text-transform:uppercase; letter-spacing:.10em; font-size:12px; }
.summary-bar { max-width:1480px; margin:0 auto 36px; background:var(--paper); color:var(--ink); min-height:100px; display:flex; align-items:center; border-radius:10px; overflow:hidden; }
.summary-bar>div { display:flex; align-items:baseline; gap:10px; padding:0 36px; border-right:1px solid #d6d2c8; }
.summary-bar strong { font-size:40px; }
.summary-bar span { font-size:14px; color:#67645e; }
.summary-bar button { margin-left:auto; align-self:stretch; border:0; background:var(--yellow); padding:0 36px; font-weight:800; min-width:220px; color: #000000; }
.summary-bar button:hover:not(:disabled) { background:#ffc23e; }
.filter-panel { max-width:1480px; margin:0 auto 28px; padding:16px; border:1px solid var(--line); background:rgba(17,17,17,.82); border-radius: 10px;}
.filters { margin:0 0 15px; display:flex; gap:8px; flex-wrap:wrap; }
.filters button { border:1px solid var(--line); color:#aaa; background:#111; border-radius:999px; padding:10px 18px; font-size:13px; }
.filters button.active { color:#111; background:var(--yellow); border-color:var(--yellow); font-weight:800; }
.filter-selects { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; padding-top:15px; border-top:1px solid var(--line); }
.filter-selects label { flex:1 1 190px; display:flex; flex-direction:column; gap:7px; color:#777; font-size:10px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.filter-selects select { min-height:44px; width:100%; border:1px solid #353535; background:#0d0d0d; color:#ddd; padding:0 12px; outline:none; border-radius: 10px;}
.filter-selects select:focus { border-color:var(--yellow); }
.clear-filters { min-height:44px; border:1px solid #454545; background:transparent; color:#aaa; padding:0 15px; font-size:11px; font-weight:800; border-radius: 10px;}
.connection-note { max-width:1480px; margin:0 auto 24px; padding:18px 20px; border:1px solid #55431d; background:#1e190f; display:flex; gap:12px; align-items:center; color:#d7c99f; border-radius:10px; font-size:13px; }
.connection-note strong { color:var(--yellow); }
.content-grid { max-width:1480px; margin:auto; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.content-card { background:rgba(21,21,21,.96); border:1px solid var(--line); border-radius:10px; padding:clamp(18px,2.4vw,32px); min-width:0; animation:rise .55s both; animation-delay:var(--delay); }
@keyframes rise { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
.card-top { display:flex; align-items:center; gap:14px; }
.sequence { width:38px; height:38px; display:grid; place-items:center; background:var(--yellow); color:#111; font-size:12px; font-weight:900; border-radius: 5px;}
.meta { display:flex; gap:10px; flex-wrap:wrap; }
.meta span { color:#9c9c96; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.meta span+span::before { content:"·"; margin-right:10px; }
.decision-badge { margin-left:auto; font-size:10px; text-transform:uppercase; letter-spacing:.1em; font-weight:800; padding:8px 10px; border-radius:999px; }
.decision-badge.approved { color:var(--green); background:rgba(78,213,155,.1); }
.decision-badge.changes { color:var(--red); background:rgba(255,107,98,.1); }
.decision-badge.pending { color:#bbb; background:rgba(255,255,255,.06); }
.decision-badge.revised { color:var(--yellow); background:rgba(255,176,0,.11); }
.content-card h2 { font-size:clamp(18px,3vw,26px); line-height:1.04; letter-spacing:-.045em; margin:22px 0; min-height:2.08em; text-transform: lowercase; }
.content-card h2::first-letter {
    text-transform: uppercase;
}
.asset-heading { min-height:38px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 2px 10px; }
.asset-heading strong { color:var(--yellow); font-size:11px; letter-spacing:.12em; }
.asset-heading span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#777; font-size:10px; }
.asset-shell { position:relative; background:#090909; border:1px solid #292929; overflow:hidden; }
.asset-carousel-track { width:100%; height:auto; min-height:320px; aspect-ratio:var(--asset-ratio,1); display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; touch-action:auto; cursor:grab; }
.asset-carousel-track::-webkit-scrollbar { display:none; }
.asset-carousel-slide { flex:0 0 100%; width:100%; height:100%; display:grid; place-items:center; overflow:hidden; scroll-snap-align:start; scroll-snap-stop:always; background:#090909; }
.asset-stage { width:100%; height:100%; min-height:0; display:grid; place-items:center; }
.asset-stage.image { background:radial-gradient(circle at 50% 35%,#242424,#090909 70%); }
.asset-carousel-slide .asset-stage.portrait { width:min(100%,420px); height:100%; margin:0 auto; border-left:1px solid #242424; border-right:1px solid #242424; }
.asset-stage img { width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain!important; display:block; }
.asset-image-button { width:100%; height:100%; border:0; padding:0; background:transparent; }
.asset-stage video { width:100%; height:100%; border:0; background:#000; display:block; object-fit:contain; }
.video-frame { width:100%; height:100%; min-width:0; min-height:0; display:flex; flex-direction:column; background:#000; }
.video-frame video { flex:1 1 auto; min-height:0; }
.video-loader { flex:1 1 auto; min-height:0; width:100%; border:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:13px; background:radial-gradient(circle,#171717,#050505 72%); color:#ddd; }
.video-loader>span { width:64px; height:64px; display:grid; place-items:center; padding-left:4px; border:1px solid #4b4b4b; border-radius:50%; color:var(--yellow); font-size:25px; }
.video-loader>span.loading { padding:0; border:3px solid #303030; border-top-color:var(--yellow); animation:spin .8s linear infinite; }
.video-loader strong { font-size:13px; }.video-loader small { color:var(--yellow); font-size:12px; }.video-loader small.error { color:var(--red); max-width:250px; line-height:1.4; }
.video-frame>a { flex:0 0 auto; display:block; padding:11px 14px; color:#ddd; background:#141414; border-top:1px solid #303030; text-align:center; text-decoration:none; font-size:11px; font-weight:800; letter-spacing:.04em; }
.video-frame>a:hover { color:var(--yellow); }
.asset-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:42px; height:42px; border:1px solid #555; border-radius:50%; color:white; background:rgba(0,0,0,.72); backdrop-filter:blur(8px); }
.asset-arrow:hover { border-color:var(--yellow); color:var(--yellow); }
.asset-arrow.left { left:14px; }.asset-arrow.right { right:14px; }
.asset-count { position:absolute; right:12px; bottom:12px; padding:7px 10px; background:rgba(0,0,0,.75); color:#ddd; border-radius:999px; font-size:10px; letter-spacing:.08em; }
.asset-dots { display:flex; justify-content:center; gap:6px; margin:13px 0 2px; flex-wrap:wrap; }
.asset-dots button { width:6px; height:6px; border:0; border-radius:50%; padding:0; background:#4b4b4b; }
.asset-dots button.active { background:var(--yellow); transform:scale(1.4); }
.asset-review { margin-top:16px; padding:16px; border:1px solid var(--line); background:#111; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.asset-review.approved { border-color:rgba(78,213,155,.34); background:rgba(78,213,155,.045); }
.asset-review.changes { border-color:rgba(255,107,98,.35); background:rgba(255,107,98,.045); }
.asset-review.revised { border-color:rgba(255,176,0,.42); background:rgba(255,176,0,.055); }
.asset-review-copy { min-width:0; display:flex; flex-direction:column; gap:5px; }
.asset-review-copy span { font-size:12px; font-weight:850; color:#d7d7d2; }
.asset-review.revised .asset-review-copy span { color:var(--yellow); }
.asset-review.approved .asset-review-copy span { color:var(--green); }
.asset-review.changes .asset-review-copy span { color:var(--red); }
.asset-review-copy small { max-width:540px; color:#858580; font-size:11px; line-height:1.45; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.asset-review-actions { display:flex; gap:8px; flex:0 0 auto; }
.asset-review-actions button { min-height:42px; padding:0 14px; border-radius:2px; font-size:11px; font-weight:850; }
.asset-review-actions button.selected { box-shadow:0 0 0 2px rgba(255,255,255,.12); }
.document-link { color:white; text-decoration:none; width:80%; min-height:220px; border:1px solid #3a3a3a; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:35px; gap:12px; background:#171717; }
.document-link span { color:#111; background:var(--yellow); font-size:11px; font-weight:900; padding:6px 8px; }
.document-link strong { font-size:20px; }.document-link small { color:#aaa; }
.empty-media { min-height:350px; display:grid; place-items:center; color:#777; border:1px dashed #333; }
.caption { margin-top:18px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.caption summary { list-style:none; padding:17px 2px; display:flex; justify-content:space-between; cursor:pointer; font-size:13px; color:#c9c9c4; }
.caption summary::-webkit-details-marker { display:none; }
.caption summary b { color:var(--yellow); font-size:20px; transition:.2s; }
.caption[open] summary b { transform:rotate(45deg); }
.caption p { white-space:pre-wrap; color:#aaa; line-height:1.65; font-size:13px; padding:0 2px 18px; margin:0; }
.caption p.note { color:#d8b860; font-style:italic; }
.caption-fixed { margin-top:18px; padding:17px 2px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.caption-fixed>strong { display:block; margin-bottom:11px; color:var(--yellow); font-size:10px; letter-spacing:.12em; text-transform:uppercase; }
.caption-fixed p { max-height:260px; overflow:auto; margin:0; padding-right:8px; color:#b9b9b4; white-space:pre-wrap; font-size:13px; line-height:1.65; }
.caption-fixed p.note { color:#d8b860; font-style:italic; }
.change-history-button,.approval-history-button { position:relative; flex:0 0 auto; width:32px; height:32px; padding:0; border-radius:50%; font-size:13px; font-weight:900; }
.change-history-button { border:1px solid rgba(255,176,0,.5); background:rgba(255,176,0,.1); color:var(--yellow); }
.change-history-button:hover { background:var(--yellow); color:#111; }
.approval-history-button { border:1px solid rgba(78,213,155,.55); background:rgba(78,213,155,.1); color:var(--green); }
.approval-history-button:hover { background:var(--green); color:#071b12; }
.change-history-button b,.approval-history-button b { position:absolute; right:-5px; top:-6px; min-width:16px; height:16px; padding:0 4px; display:grid; place-items:center; border-radius:999px; color:#fff; font-size:9px; line-height:1; }
.change-history-button b { background:var(--red); }.approval-history-button b { background:#15865a; }
.card-history-actions,.post-history-actions { display:flex; align-items:center; gap:8px; }
.card-history-actions { margin-left:auto; }
.card-history-actions:empty { display:none; }
.card-history-actions+.decision-badge { margin-left:0; }
.card-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:18px; }
.card-actions button,.modal-actions button { border:0; min-height:48px; font-weight:800; border-radius:10px; }
button.approve { background:var(--yellow); color:#111; } button.approve:hover:not(:disabled) { background:#ffc33f; }
button.change { color:#eee; border:1px solid #484848; background:#1e1e1e; } button.change:hover:not(:disabled) { border-color:var(--red); color:var(--red); }
.decision-result { margin-top:18px; padding:16px; border-left:3px solid; background:#191919; }
.decision-result.approved { border-color:var(--green); }.decision-result.changes { border-color:var(--red);}
.decision-result strong { font-size:13px; }.decision-result p { color:#aaa; font-size:13px; line-height:1.5; }.decision-result small { color:#777; }
.empty-filter { max-width:1480px; margin:70px auto; color:#777; text-align:center; }
footer { max-width:1480px; margin:70px auto 0; min-height:100px; display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--line); color:#777; font-size:11px; letter-spacing:.08em; }

.modal-backdrop,.lightbox { position:fixed; inset:0; z-index:50; background:rgba(0,0,0,.84); backdrop-filter:blur(9px); display:grid; place-items:center; padding:20px; }
.decision-modal { width:min(600px,100%); position:relative; background:var(--paper); color:#111; padding:clamp(26px,5vw,48px); box-shadow:0 30px 100px #000; border-radius: 10px;}
.history-backdrop { z-index:70; }
.history-modal { position:relative; width:min(620px,100%); max-height:min(760px,90vh); overflow:auto; background:var(--paper); color:#111; border-radius: 10px; padding:clamp(26px,5vw,48px); box-shadow:0 30px 100px #000; }
.history-modal h2 { margin:16px 0 4px; font-size:clamp(20px,5vw,26px); letter-spacing:-.045em; line-height:1; }
.history-subtitle { margin:0 42px 26px 0; color:#777168; font-size:13px; }
.change-history-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.change-history-list li { padding:18px; border:1px solid #d5d0c5; background:#fff; border-radius:10px; }
.change-history-list li>div { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.change-history-list strong { color:#8d5d00; font-size:11px; letter-spacing:.07em; text-transform:uppercase; }
.change-history-list time,.change-history-list small { color:#8a857c; font-size:10px; }
.change-history-list p { margin:13px 0; color:#242321; white-space:pre-wrap; font-size:13px; line-height:1.55; }
.approval-modal .eyebrow,.approval-history-list strong { color:#16734f; }
.approval-history-list li { border-color:#c7dfd4; }
.approval-history-list p b { color:#16734f; }
.approval-history-list p.no-observation { color:#8a857c; font-style:italic; }
.modal-close,.lightbox-close { position:absolute; right:15px; top:12px; width:38px; height:38px; border:0; background:transparent; font-size:28px; color:#777; z-index:2; }
.decision-modal h2 { font-size:clamp(20px,5vw,26px); letter-spacing:-.05em; line-height:1; margin:18px 0 30px; text-transform: lowercase;}
.decision-modal h2::first-letter {
    text-transform: uppercase;
}
.decision-modal label { display:block; font-size:14px; font-weight:800; margin:16px 0; border-radius: 10px;}
.decision-modal input,.decision-modal textarea { display:block; width:100%; margin-top:8px; border:1px solid #c8c3b7; background:white; color:#111; padding:14px; outline:none; border-radius: 10px; resize:vertical; }
.decision-modal input:focus,.decision-modal textarea:focus { border-color:var(--yellow); box-shadow:0 0 0 3px rgba(255,176,0,.15); }
.decision-modal .optional { color:#8a857c; font-weight:500; }
.modal-material { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:-12px 0 16px; padding:13px 15px; border:1px solid #d4cec1; background:#fff; }
.modal-material span { color:#8a857c; font-size:10px; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.modal-material strong { font-size:12px; text-align:right; }
.batch-note { color:#706b62; line-height:1.55; font-size:12px; }
.viewer-confirm { margin:0 0 20px; padding:13px 14px; background:#e8e4da; color:#69645b; font-size:12px; border-radius: 10px;}.viewer-confirm strong { color:#111; }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }
.modal-actions button { padding:0 20px; }
.modal-actions .secondary { background:transparent; border:1px solid #c8c3b7; }
.form-error { margin-top:12px; color:#b42d26; font-size:12px; font-weight:700; }
.lightbox img { max-width:94vw; max-height:92vh; object-fit:contain; box-shadow:0 20px 80px #000; }

.social-view-button { display:flex; align-items:center; gap:7px; }
.social-view-button span { font-size:16px; line-height:1; }
.instagram-preview-shell { max-width:900px; margin:0 auto; background:#fafafa; color:#111; border-radius:5px; overflow:hidden; box-shadow:0 28px 90px rgba(0,0,0,.28); }
.instagram-profile-header { min-height:250px; padding:48px clamp(28px,7vw,92px); display:flex; align-items:center; gap:clamp(35px,8vw,100px); border-bottom:1px solid #dbdbdb; }
.instagram-avatar { flex:0 0 auto; width:130px; height:130px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#0b0b0b; color:#ffb000; font-size:58px; font-weight:900; letter-spacing:-.13em; box-shadow:0 0 0 3px #fff,0 0 0 5px #d8d8d8; }
.instagram-avatar span { font-weight:900; }
.instagram-avatar.small { width:36px; height:36px; font-size:15px; border-width:2px; box-shadow:none;}
.instagram-avatar.tiny { width:38px; height:38px; font-size:15px; border-width:2px; box-shadow:none;}
.instagram-profile-copy { flex:1; min-width:0; }
.instagram-handle { display:flex; align-items:center; gap:18px; }
.instagram-handle strong { font-size:22px; font-weight:500; }
.instagram-handle span { padding:8px 13px; border-radius:8px; background:#efefef; font-size:12px; font-weight:700; }
.instagram-numbers { display:flex; gap:38px; margin:26px 0 22px; font-size:14px; }
.instagram-numbers strong { font-size:15px; }
.instagram-profile-copy p { margin:0; font-size:14px; line-height:1.55; }
.instagram-grid-tabs { height:54px; border-bottom:1px solid #dbdbdb; display:flex; align-items:center; justify-content:center; color:#111; font-size:11px; font-weight:700; letter-spacing:.1em; }
.instagram-grid-tabs span { height:54px; display:flex; align-items:center; border-top:1px solid #111; }
.instagram-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; background:#fff; }
.instagram-tile { position:relative; aspect-ratio:1; padding:0; border:0; overflow:hidden; background:#171717; }
.instagram-tile>img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; background:#0b0b0b; transition:filter .28s ease; }
.instagram-tile:hover>img { filter:brightness(.76); }
.instagram-tile::after { content:"Ver publicação"; position:absolute; inset:0; display:grid; place-items:center; background:rgba(0,0,0,.42); color:#fff; font-size:12px; font-weight:800; opacity:0; transition:.2s; }
.instagram-tile:hover::after { opacity:1; }
.instagram-tile-icon { position:absolute; z-index:2; right:11px; top:9px; color:white; font-size:20px; text-shadow:0 2px 8px #000; }
.instagram-history-counts { position:absolute; z-index:2; right:9px; bottom:9px; display:flex; gap:4px; }
.instagram-history-counts i { padding:5px 7px; border-radius:999px; color:#fff; box-shadow:0 2px 8px rgba(0,0,0,.35); font-size:9px; font-style:normal; font-weight:900; }
.instagram-history-counts i.changes { background:rgba(209,52,44,.92); }.instagram-history-counts i.approvals { background:rgba(21,134,90,.94); }
.instagram-tile-status { position:absolute; z-index:2; left:10px; bottom:10px; width:8px; height:8px; border-radius:50%; box-shadow:0 0 0 3px rgba(0,0,0,.48); }
.instagram-tile-status.pending { background:#fff; }.instagram-tile-status.approved { background:var(--green); }.instagram-tile-status.changes { background:var(--red); }.instagram-tile-status.revised { background:var(--yellow); }
.instagram-video-placeholder { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; background:radial-gradient(circle at 45% 32%,#393939,#090909 72%); color:white; }
.instagram-video-placeholder span { width:54px; height:54px; display:grid; place-items:center; border:1px solid #777; border-radius:50%; padding-left:4px; font-size:22px; }
.instagram-video-placeholder small { font-size:10px; letter-spacing:.16em; }
.instagram-empty { min-height:250px; display:grid; place-items:center; color:#777; font-size:13px; }

.social-feed-overlay { position:fixed; inset:0; z-index:45; background:rgba(0,0,0,.94); color:#111; }
.social-feed-top { position:fixed; z-index:3; left:0; right:0; top:0; height:66px; padding:0 22px; background:rgba(8,8,8,.95); color:white; border-bottom:1px solid #2e2e2e; display:flex; justify-content:space-between; align-items:center; backdrop-filter:blur(12px); }
.social-feed-top>div { display:flex; align-items:center; gap:11px; }
.social-feed-top>button { width:42px; height:42px; border:0; background:transparent; color:#fff; font-size:32px; }
.social-feed-scroll { height:100%; overflow-y:auto; padding:92px 18px 70px; scroll-snap-type:y proximity; }
.instagram-post { width:min(600px,100%); margin:0 auto 36px; background:white; border:1px solid #dbdbdb; border-radius:8px; overflow:hidden; scroll-margin-top:88px; scroll-snap-align:start; }
.instagram-post>header { min-height:62px; padding:10px 14px; display:flex; align-items:center; gap:11px; }
.instagram-post>header>div:nth-child(2) { display:flex; flex-direction:column; min-width:0; }
.instagram-post>header .post-history-actions { margin-left:auto; }
.instagram-post>header strong { font-size:13px; }.instagram-post>header small { color:#777; font-size:10px; margin-top:2px; }
.post-status { flex:0 0 auto; padding:6px 9px; border-radius:999px; font-size:9px; font-weight:850; text-transform:uppercase; letter-spacing:.06em; }
.post-status.pending { color:#555; background:#eee; }.post-status.approved { color:#087746; background:#dff7ec; }.post-status.changes { color:#aa312c; background:#ffe2df; }.post-status.revised { color:#8b5b00; background:#fff0c8; }
.social-media { position:relative; width:100%; min-height:280px; aspect-ratio:var(--social-ratio,1); overflow:hidden; background:#080808; transition:aspect-ratio .18s ease; }
.social-shell { position:relative; width:100%; height:100%; overflow:hidden; }
.social-media.reel { aspect-ratio:var(--social-ratio,9/16); }
.social-track { width:100%; height:100%; display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; touch-action:auto; cursor:grab; }
.social-track::-webkit-scrollbar { display:none; }
.social-track.dragging { cursor:grabbing; scroll-snap-type:none; }
.social-slide { flex:0 0 100%; width:100%; height:100%; display:grid; place-items:center; overflow:hidden; scroll-snap-align:start; scroll-snap-stop:always; background:#080808; }
.social-slide>img { width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain!important; display:block; user-select:none; }
.social-media.reel .video-loader,.social-media.reel .social-slide>video { width:100%; height:100%; }
.social-media video { width:100%; height:100%; object-fit:contain; background:#000; }
.social-arrow { position:absolute; z-index:2; top:50%; transform:translateY(-50%); width:34px; height:34px; border:0; border-radius:50%; background:rgba(255,255,255,.86); color:#111; font-size:26px; line-height:1; box-shadow:0 2px 10px rgba(0,0,0,.3); }
.social-arrow.left { left:11px; }.social-arrow.right { right:11px; }
.social-position { position:absolute; z-index:2; right:12px; top:12px; padding:6px 9px; background:rgba(0,0,0,.62); color:white; border-radius:999px; font-size:10px; }
.social-dots { position:absolute; z-index:2; left:50%; bottom:12px; transform:translateX(-50%); display:flex; gap:4px; padding:5px 7px; border-radius:999px; background:rgba(0,0,0,.26); }
.social-dots button { width:5px; height:5px; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.55); }.social-dots button.active { background:#0095f6; transform:scale(1.25); }
.social-empty { min-height:400px; display:grid; place-items:center; color:#aaa; }
.instagram-post-body { padding:10px 14px 16px; }
.instagram-actions { display:flex; gap:16px; align-items:center; height:36px; font-size:26px; line-height:1; }
.instagram-actions .save { margin-left:auto; }
.instagram-caption p { margin:6px 0; white-space:pre-wrap; font-size:13px; line-height:1.45; }
.instagram-caption p strong { margin-right:4px; }
.instagram-caption p.instagram-note { color:#9b6412; font-size:12px; }
.instagram-caption>small { display:block; margin-top:10px; color:#999; font-size:9px; text-transform:uppercase; }
.social-decision-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:16px; padding-top:14px; border-top:1px solid #efefef; }
.social-decision-actions button { min-height:46px; border:0; border-radius:6px; font-size:12px; font-weight:800; }
.social-decision-actions button.change { color:#333; background:#f4f4f4; border:1px solid #ddd; }
.social-decision-result { margin-top:14px; padding:12px 13px; border-radius:6px; font-size:12px; }
.social-decision-result.approved { color:#087746; background:#e7f7ef; }.social-decision-result.changes { color:#a8322d; background:#ffe8e6; }
.social-decision-result p { margin:6px 0 0; line-height:1.45; }

.access-page { position:relative; display:flex; flex-direction:column; justify-content:center; padding: 80px; overflow:hidden; }
.access-page>.brand-mark { position:absolute; left:clamp(24px,7vw,100px); top:clamp(24px,6vw,76px); }
.access-card { width:min(880px,100%); margin:60px auto 30px; }
.access-card h1 { font-size:clamp(40px,9vw,72px); text-align: center; }
.access-card>p { color:#aaa; max-width:600px; line-height:1.7; text-align: center; margin: 0 auto; }
.access-card form { margin-top:38px; max-width:660px; }
.access-card label { display:block; font-size:11px; color:#aaa; text-transform:uppercase; letter-spacing:.12em; margin-bottom:9px; }
.client-login-form { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin: 0 auto;}
.client-login-form label { margin:0;}
.client-login-input { width:100%; min-height:56px; margin-top:9px; border:1px solid #444; background:#151515; color:#fff; padding:0 16px; outline:none; font-size:15px; text-transform:none; letter-spacing:normal; border-radius: 10px;}
.client-login-input:focus { border-color:var(--yellow); box-shadow:0 0 0 3px rgba(255,176,0,.1); }
.client-login-input::placeholder { color:#696969; }
.client-login-form .access-continue { grid-column:1/-1; margin-top:2px; }
.client-login-form .form-error { grid-column:1/-1; min-height:18px; margin-top:0; }
.access-row { display:flex; }
.access-row input { flex:1; min-width:0; border:1px solid #444; background:#151515; color:white; padding:17px; outline:none; }
.access-row input:focus { border-color:var(--yellow); }
.access-row button { border:0; background:var(--yellow); color:#111; padding:0 24px; font-weight:900; }
.profile-picker { margin-top:36px; max-width:700px; display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.client-picker-label { display:flex; flex-direction:column; gap:8px; max-width:700px; margin-top:32px; color:#aaa; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.client-picker { width:100%; min-height:54px; border:1px solid #444; background:#151515; color:#fff; padding:0 15px; outline:none; font-size:14px; text-transform:none; }
.client-picker:focus { border-color:var(--yellow); box-shadow:0 0 0 3px rgba(255,176,0,.1); }
.safe-mode-note { max-width: 660px; margin-top:14px; padding:12px 14px; border:1px solid #55431d; background:#1e190f; color:#d7c99f; font-size:11px; line-height:1.45; margin: 0 auto; border-radius: 10px; text-align: center;}
.profile-picker button { min-height:98px; border:1px solid #3d3d3d; background:#131313; color:#b5b5b0; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; padding:14px; font-weight:800; transition:.18s ease; }
.profile-picker button span { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:#252525; color:#8e8e89; }
.profile-picker button:hover,.profile-picker button.active { border-color:var(--yellow); color:#fff; transform:translateY(-2px); }
.profile-picker button.active { background:rgba(255,176,0,.1); }
.profile-picker button.active span { background:var(--yellow); color:#111; }
.access-continue { margin-top:12px; min-height:54px; min-width:260px; border:0; background:var(--yellow); color:#111; padding:0 22px; font-weight:900; border-radius: 10px; }
.access-footer { text-align:center; color:#666; font-size:10px; letter-spacing:.14em; }
.loading-page { display:grid; place-items:center; align-content:center; gap:16px; color:#999; font-size:13px; }
.loader { width:42px; height:42px; border:2px solid #333; border-top-color:var(--yellow); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

@media (max-width:900px) {
  .hero { min-height:360px; }.hero-stamp { width:120px; height:120px; }.hero-stamp span { font-size:42px; }
  .summary-bar { flex-wrap:wrap; padding-top:18px; }.summary-bar>div { flex:1; padding:12px 18px; }.summary-bar button { width:100%; height:62px; margin-top:10px; }
  .content-grid { grid-template-columns:1fr; }.content-card h2 { min-height:auto; }
  .instagram-profile-header { gap:36px; padding:38px; }.instagram-avatar { width:118px; height:118px; font-size:46px; }.instagram-numbers { gap:20px; }
}
@media (max-width:620px) {
  .access-page {
    padding: 20px;
  }

  .access-card {
      margin-top: 40px;
  }
  .portal-page { padding:0 14px; }.portal-header { height:72px; }.header-actions { gap:6px; }.viewer-chip { max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:9px 10px; }.sync-chip { font-size:0; padding:11px; }.sync-chip::after { content:"Monday"; font-size:10px; }
  .hero { align-items:flex-end; min-height:280px; padding:45px 4px; }.hero h1 { font-size:40px; }.hero p { font-size:14px; }.hero-stamp { display:none; }
  .summary-bar>div { padding:8px 12px; }.summary-bar strong { font-size:24px; }.summary-bar span { font-size:10px; }
  .connection-note { align-items:flex-start; flex-direction:column; }.content-card { padding:16px; }.asset-carousel-track { min-height:300px; }
  .asset-stage.video .video-frame { overflow:hidden; }
  .asset-count { top:10px; bottom:auto; }
  .card-actions { grid-template-columns:1fr; }.card-top { flex-wrap:wrap; gap:9px; }.meta { flex:1; min-width:120px; gap:4px; }.meta span+span::before { margin-right:4px; }.card-history-actions { margin-left:47px; }.decision-badge { margin-left:auto; }
  .asset-review { align-items:stretch; flex-direction:column; }.asset-review-actions { display:grid; grid-template-columns:1fr 1fr; }.asset-review-actions button { padding:0 8px; }
  .filter-selects { display:grid; grid-template-columns:1fr 1fr; }.filter-selects label { min-width:0; }.clear-filters { width:100%; }
  .client-login-form { grid-template-columns:1fr; }.client-login-form .access-continue,.client-login-form .form-error { grid-column:1; }
  .profile-picker { grid-template-columns:1fr 1fr; }.profile-picker button { min-height:86px; }
  .access-row { flex-direction:column; gap:8px; }.access-row button { min-height:54px; }.modal-actions { flex-direction:column-reverse; }.modal-actions button { width:100%; }
  .instagram-preview-shell { margin:0 -14px; border-radius:0; }.instagram-profile-header { min-height:205px; padding:28px 18px; align-items:flex-start; gap:18px; }.instagram-avatar { width:78px; height:78px; border-width:3px; font-size:31px;}.instagram-handle { align-items:flex-start; flex-direction:column; gap:8px; }.instagram-handle strong { font-size:18px; }.instagram-handle span { padding:6px 8px; font-size:10px; }.instagram-numbers { gap:12px; margin:17px 0 13px; font-size:11px; }.instagram-numbers span { display:flex; flex-direction:column; }.instagram-profile-copy p { font-size:12px; }.instagram-grid { gap:2px; }
  .social-feed-top { height:58px; padding:0 12px; }.social-feed-scroll { padding:70px 0 30px; }.instagram-post { width:100%; margin:0 0 16px; border-left:0; border-right:0; border-radius:0; scroll-margin-top:60px; }.instagram-post>header { min-height:56px; flex-wrap:wrap; gap:8px; }.social-media { min-height:240px; }.social-media.reel { aspect-ratio:var(--social-ratio,9/16); }.social-arrow { display:none; }.instagram-post-body { padding:9px 12px 14px; }.instagram-caption p { font-size:12px; }.social-decision-actions { grid-template-columns:1fr 1fr; }.post-history-actions .change-history-button,.post-history-actions .approval-history-button { width:30px; height:30px; }.post-status { font-size:8px; padding:5px 7px; }
  footer { flex-direction:column; justify-content:center; gap:10px; text-align:center; }
}
