/* ==========================================================================
   HERMES — DESIGN SYSTEM & EDITORIAL STYLING
   Paleta: #000000, #111111, #1A1A1A, #222222, #FFFFFF, #F5F5F5, #22C55E, #DC2626
   ========================================================================== */

:root {
    --bg-main: #000000;
    --bg-surface: #111111;
    --bg-card: #161616;
    --bg-hover: #1f1f1f;
    --border-subtle: #242424;
    --border-strong: #383838;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A3A3A3;
    --text-muted: #666666;
    
    --color-success: #22C55E;
    --color-success-bg: rgba(34, 197, 94, 0.12);
    --color-danger: #DC2626;
    --color-danger-bg: rgba(220, 38, 38, 0.12);
    --color-warning: #F59E0B;
    --color-warning-bg: rgba(245, 158, 11, 0.12);
    --color-info: #3B82F6;
    --color-info-bg: rgba(59, 130, 246, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout Elements */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    width: 260px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    transition: transform 0.25s ease;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.brand-sub {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.nav-item:hover, .nav-item.active {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--bg-hover);
    color: #ffffff;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Main Content Area */
.app-main {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    height: 64px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.app-content {
    padding: 32px 32px 64px 32px;
    flex: 1;
}

/* Impersonation Banner */
.impersonation-banner {
    background: #1c1917;
    border-bottom: 1px solid #78350f;
    color: #fef3c7;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-stop-impersonate {
    background: #78350f;
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    transition: border-color 0.2s ease;
}

.card:hover {
    border-color: var(--border-strong);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-draft { background: #262626; color: #a3a3a3; }
.badge-in_review { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-sent_to_client { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-change_requested { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-approved { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.badge-rejected { background: rgba(220, 38, 38, 0.2); color: #ef4444; }
.badge-scheduled { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.badge-published { background: rgba(34, 197, 94, 0.25); color: #86efac; }
.badge-archived { background: #171717; color: #737373; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-main);
}
.btn-primary:hover {
    background-color: #e5e5e5;
}

.btn-accent {
    background-color: var(--color-success);
    color: #000000;
}
.btn-accent:hover {
    background-color: #16a34a;
}

.btn-danger {
    background-color: var(--color-danger);
    color: #ffffff;
}
.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-secondary {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}
.btn-secondary:hover {
    background-color: #2a2a2a;
    border-color: var(--border-strong);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background-color: #0a0a0a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--text-primary);
}

/* Dropdown & Select Styling — Balanced Arrow Spacing (Section 49 & UX) */
select.form-control,
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #0a0a0a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    padding-right: 44px !important;
    cursor: pointer;
    line-height: 1.4;
}

select.form-control:hover,
select:hover {
    border-color: var(--border-strong);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23cccccc'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

select.form-control:focus,
select:focus {
    outline: none;
    border-color: var(--text-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

select.form-control-sm,
select.btn-sm {
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 10px;
    padding-right: 36px !important;
    background-position: right 12px center;
    background-size: 14px 14px;
}

select option {
    background-color: #141414;
    color: #ffffff;
    padding: 10px 14px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Feed & Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.post-card-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #080808;
    position: relative;
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Instagram-inspired Preview Card (Section 17) */
.insta-preview {
    max-width: 420px;
    width: 100%;
    background: #000000;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
}

.insta-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.insta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #222;
    object-fit: cover;
}

.insta-username {
    font-size: 0.875rem;
    font-weight: 600;
}

.insta-media {
    width: 100%;
    background: #0d0d0d;
    position: relative;
}

.insta-media img {
    width: 100%;
    display: block;
}

.insta-caption-box {
    padding: 14px 16px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #e5e5e5;
}

/* Mobile Approval Feed (Section 16, 79) */
.approval-feed-item {
    max-width: 520px;
    margin: 0 auto 36px auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.approval-actions-bar {
    padding: 16px;
    display: flex;
    gap: 10px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
}

.approval-actions-bar .btn {
    flex: 1;
    height: 48px;
}

/* ==========================================================================
   NETFLIX-STYLE CINEMATIC PRELOADER (Hermes Brand — Pure Cinema, No Neon)
   ========================================================================== */
#hermes-preloader.netflix-preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    cursor: pointer;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, visibility;
}

#hermes-preloader.netflix-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    pointer-events: none;
}

/* Subtle Cinema Vignette (Zero Neon, Neutral Deep Black) */
.netflix-ambient-glow {
    position: absolute;
    width: min(800px, 120vw);
    height: min(500px, 80vh);
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* Subtle Anamorphic Vertical Light Lines (Clean Cinema, Zero Neon) */
.netflix-ribbons-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 2.5vw, 32px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
}

.netflix-ribbons-container .n-ribbon {
    width: 1px;
    height: 100vh;
    transform-origin: center;
    opacity: 0;
    animation: netflixRibbonShoot 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.netflix-ribbons-container .nr-1  { background: linear-gradient(180deg, transparent, rgba(229,9,20,0.3), transparent); animation-delay: 0.05s; height: 60vh; }
.netflix-ribbons-container .nr-2  { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.15), transparent); animation-delay: 0.15s; height: 80vh; }
.netflix-ribbons-container .nr-3  { background: linear-gradient(180deg, transparent, rgba(229,9,20,0.4), transparent); animation-delay: 0.08s; height: 70vh; }
.netflix-ribbons-container .nr-4  { background: linear-gradient(180deg, transparent, rgba(229,9,20,0.25), transparent); animation-delay: 0.22s; height: 90vh; }
.netflix-ribbons-container .nr-5  { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent); animation-delay: 0.1s; height: 85vh; width: 1.5px; }
.netflix-ribbons-container .nr-6  { background: linear-gradient(180deg, transparent, rgba(229,9,20,0.35), transparent); animation-delay: 0.25s; height: 75vh; }
.netflix-ribbons-container .nr-7  { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12), transparent); animation-delay: 0.12s; height: 65vh; }
.netflix-ribbons-container .nr-8  { background: linear-gradient(180deg, transparent, rgba(229,9,20,0.3), transparent); animation-delay: 0.18s; height: 80vh; }
.netflix-ribbons-container .nr-9  { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent); animation-delay: 0.08s; height: 55vh; }
.netflix-ribbons-container .nr-10 { background: linear-gradient(180deg, transparent, rgba(229,9,20,0.2), transparent); animation-delay: 0.28s; height: 70vh; }

@keyframes netflixRibbonShoot {
    0% {
        transform: scaleY(0.1);
        opacity: 0;
    }
    35% {
        transform: scaleY(1);
        opacity: 0.6;
    }
    70% {
        transform: scaleY(0.95);
        opacity: 0.35;
    }
    100% {
        transform: scaleY(1.1);
        opacity: 0;
    }
}

/* Stage & Logo Container */
.netflix-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.netflix-logo-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    animation: netflixCinematicIntro 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: center center;
}

@keyframes netflixCinematicIntro {
    0% {
        transform: scale(0.88);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    100% {
        transform: scale(1.0);
        opacity: 1;
    }
}

/* Subtle Back Shadow Behind Logo (No Neon Glow) */
.netflix-back-flare {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* The Logo Media — Sharp, Crisp, Zero Neon */
.netflix-logo-media {
    max-width: min(85vw, 360px);
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.9));
}

/* Fallback Logo Typography — Clean Dark Luxury */
.netflix-logo-fallback {
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
    display: inline-block;
}

/* Efeito animado de reflexo no logotipo desativado conforme preferência */
.netflix-lens-sweep {
    display: none !important;
}

.netflix-lens-sweep::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}

@keyframes netflixShimmerSweep {
    0% {
        transform: translateX(-160%) rotate(25deg);
        opacity: 0;
    }
    20% {
        opacity: 0.85;
    }
    80% {
        transform: translateX(320%) rotate(25deg);
        opacity: 0.7;
    }
    100% {
        transform: translateX(380%) rotate(25deg);
        opacity: 0;
    }
}

/* Minimalist Netflix Crimson Progress Bar (Clean 2px, Zero Neon) */
.netflix-spectrum-bar {
    width: min(180px, 50vw);
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 22px;
    overflow: hidden;
    position: relative;
}

.netflix-spectrum-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: #e50914; /* Pure Netflix signature red */
    animation: netflixProgressCharge 1.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes netflixProgressCharge {
    0% {
        width: 0%;
    }
    50% {
        width: 65%;
    }
    100% {
        width: 100%;
    }
}

/* Refined Minimalist Tagline */
.netflix-tagline {
    margin-top: 14px;
    font-size: 0.6875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    opacity: 0;
    animation: netflixTaglineFade 1.0s ease forwards;
    animation-delay: 0.2s;
}

@keyframes netflixTaglineFade {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }
    100% {
        opacity: 0.8;
        transform: translateY(0);
    }
}

/* Autosave indicator */
.autosave-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.autosave-status.saving {
    color: var(--color-warning);
}

.autosave-status.saved {
    color: var(--color-success);
}

/* Alerts / Flashes */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background: var(--color-success-bg);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert-error {
    background: var(--color-danger-bg);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #f87171;
}

.alert-info {
    background: var(--color-info-bg);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* Modal Dialog */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    max-width: 500px;
    width: 100%;
    padding: 24px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tabela Responsiva Universal */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Botões Ícone & Botões Pílula */
.btn-icon {
    width: 36px;
    height: 36px;
    min-height: 36px !important;
    min-width: 36px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    min-height: 32px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
}

/* Layout Oficial de Detalhes da Publicação */
.post-detail-layout {
    display: grid;
    grid-template-columns: 520px minmax(320px, 1fr);
    gap: 32px;
    align-items: start;
}

/* ==========================================================================
   RESPONSIVE LAYOUT ENGINE & MOBILE-FIRST UTILITIES (Seção 2.2 e 79)
   ========================================================================== */

/* Responsive Grids */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.responsive-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.responsive-grid-3-1 {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 24px;
}

.responsive-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-full-width {
    grid-column: span 2;
}

.responsive-story-meta {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    font-size: 0.8125rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.8125rem;
}

/* Mobile Sidebar Backdrop */
.mobile-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    z-index: 39;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Calendar Responsive Wrapper */
.calendar-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.calendar-responsive-wrapper > div {
    min-width: 720px;
}

/* Tablet Breakpoint (max-width: 992px) */
@media (max-width: 992px) {
    .responsive-grid-2,
    .responsive-grid-2-1,
    .responsive-grid-3-1 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    .app-sidebar {
        transform: translateX(-100%);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .app-topbar {
        padding: 0 12px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .topbar-env-title {
        font-size: 0.8125rem;
        color: var(--text-secondary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1;
    }

    .app-content {
        padding: 14px 12px 100px 12px;
        padding-bottom: max(100px, calc(60px + env(safe-area-inset-bottom, 24px)));
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Button Dimensions Normalization */
    .btn {
        min-height: 40px; /* Touch target baseline */
    }

    .btn-sm {
        min-height: 32px !important;
        height: auto;
        font-size: 0.8125rem;
        padding: 6px 12px;
    }

    .btn-icon {
        width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
    }

    .pill-btn {
        height: 30px !important;
        min-height: 30px !important;
        font-size: 0.75rem !important;
        padding: 4px 12px !important;
    }

    .form-control {
        min-height: 42px;
        font-size: 1rem; /* Prevents auto-zoom in iOS Safari */
    }

    /* Word Editor Mobile Ribbon & Canvas */
    .word-ribbon {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding: 6px 10px !important;
        gap: 4px !important;
        scrollbar-width: none;
    }

    .word-ribbon::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .word-ribbon-group {
        flex-shrink: 0;
        gap: 2px !important;
        padding: 0 4px !important;
    }

    .word-tool-btn {
        width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        flex-shrink: 0;
    }

    .word-tool-select {
        height: 32px !important;
        min-height: 32px !important;
        font-size: 0.75rem !important;
    }

    #block-format-select {
        width: 105px !important;
    }

    .word-workspace {
        padding: 10px 4px !important;
        min-height: 380px !important;
    }

    .word-page-sheet {
        padding: 20px 14px !important;
        border-radius: 4px !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .word-title-input {
        font-size: 1.25rem !important;
    }

    .word-editor-body {
        font-size: 14px !important;
        line-height: 1.6 !important;
        min-height: 380px !important;
    }

    .word-statusbar {
        padding: 6px 10px !important;
        font-size: 0.6875rem !important;
        gap: 8px !important;
        justify-content: center !important;
    }
}

/* Small Phone Breakpoint (max-width: 640px) */
@media (max-width: 640px) {
    .responsive-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-full-width {
        grid-column: span 1;
    }

    .responsive-story-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Fixed Sticky Action Bar on Mobile Approval */
    .approval-actions-bar {
        position: sticky;
        bottom: 0;
        z-index: 40;
        background: #111111;
        border-top: 1px solid var(--border-strong);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.8);
        padding: 10px 12px;
        padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
        display: flex;
        gap: 6px;
    }

    .approval-actions-bar .btn {
        min-height: 42px !important;
        font-size: 0.8125rem !important;
        padding: 6px 10px !important;
    }

    /* Dashboard Metrics 2-column Grid on Phone */
    .metrics-grid-mobile {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .metrics-grid-mobile .card {
        padding: 14px 12px !important;
    }

    .metrics-grid-mobile .card .metric-val {
        font-size: 1.5rem !important;
    }

    /* Client Hero Billboard on Phone */
    .hero-billboard {
        padding: 20px 16px !important;
        min-height: 200px !important;
    }

    .hero-billboard h2 {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
    }

    /* Notifications Card Stacked Actions on Mobile */
    .notif-card-mobile-wrap {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .notif-card-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 10px;
    }

    /* Full Width Form Action Buttons */
    .form-actions-mobile {
        display: flex;
        flex-direction: column-reverse;
        gap: 8px;
        width: 100%;
    }

    .form-actions-mobile .btn {
        width: 100%;
        justify-content: center;
    }

    /* Utilitários de texto responsivo */
    .desktop-only-inline { display: none !important; }
    .mobile-only-inline { display: inline !important; }
}

/* ==========================================================================
   CONCEITO INSTAGRAM — VISUALIZAÇÃO OFICIAL DE FEED (Seção 2.1)
   ========================================================================== */

.insta-feed-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 0;
}

.insta-feed-post {
    background: #000000;
    border: 1px solid #262626;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.insta-feed-post:hover {
    border-color: #383838;
}

/* Header do Post no Instagram */
.insta-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #000000;
    border-bottom: 1px solid #1a1a1a;
}

.insta-user-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.insta-avatar-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
}

.insta-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
    border: 2px solid #000;
}

.insta-user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.insta-user-sub {
    font-size: 0.75rem;
    color: #8e8e8e;
    margin-top: 1px;
}

/* Mídia Oficial com Proporção Estrita */
.insta-post-media-wrapper {
    position: relative;
    background: #000000;
    width: 100%;
    overflow: hidden;
}

.insta-post-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insta-format-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Barra de Ações Sociais (Ícones Nativos) */
.insta-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #000000;
}

.insta-actions-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.insta-action-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.insta-action-btn:hover {
    transform: scale(1.15);
    opacity: 0.85;
}

/* Curtidas & Legenda */
.insta-post-content {
    padding: 0 16px 16px 16px;
    background: #000000;
}

.insta-likes-count {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.insta-caption-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #f5f5f5;
    white-space: pre-wrap;
    word-break: break-word;
}

.insta-caption-text strong {
    font-weight: 700;
    color: #ffffff;
    margin-right: 6px;
}

.insta-post-date {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #737373;
    text-transform: uppercase;
    margin-top: 10px;
}

/* ==========================================================================
   CONCEITO NETFLIX — CATÁLOGO & DESCOBERTA EDITORIAL (Seção 2.1)
   ========================================================================== */

/* Hero Banner Netflix */
.netflix-hero-banner {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 36px;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    border: 1px solid #222222;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.netflix-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #000000 20%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0.4) 100%);
}

.netflix-hero-body {
    position: relative;
    z-index: 2;
    padding: 28px;
    max-width: 680px;
}

.netflix-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    background: #e50914; /* Netflix Red Accent */
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.netflix-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.netflix-hero-desc {
    font-size: 0.875rem;
    color: #cccccc;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.netflix-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Fileiras Horizontais (Shelves / Trilhas) */
.netflix-shelf-section {
    margin-bottom: 36px;
}

.netflix-shelf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.netflix-shelf-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.netflix-shelf-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888888;
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    padding: 2px 8px;
    border-radius: 12px;
}

.netflix-shelf-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: #333333 transparent;
}

.netflix-shelf-slider::-webkit-scrollbar {
    height: 6px;
}

.netflix-shelf-slider::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}

/* Card Individual da Trilha Netflix */
.netflix-card {
    flex: 0 0 240px;
    background: #111111;
    border: 1px solid #222222;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.netflix-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #444444;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.85);
    z-index: 10;
}

.netflix-card-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #000000;
    overflow: hidden;
}

.netflix-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.netflix-card:hover .netflix-card-thumb-img {
    transform: scale(1.06);
}

.netflix-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(6px);
}

.netflix-card-format {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #cccccc;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.netflix-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.netflix-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.netflix-card-meta {
    font-size: 0.75rem;
    color: #888888;
    margin-bottom: 8px;
}

/* ==========================================================================
   INSTAGRAM OFFICIAL FEED GRID & POST CARDS
   ========================================================================== */
.instagram-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.post-card {
    background: var(--bg-surface, #111111);
    border: 1px solid var(--border-subtle, #242424);
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong, #383838);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.post-card-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #080808;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-subtle, #242424);
}

.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-img {
    transform: scale(1.03);
}

.post-card-no-media {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    color: var(--text-muted, #666666);
    font-size: 0.8125rem;
    padding: 20px;
    text-align: center;
    gap: 8px;
}

.post-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--bg-surface, #111111);
}

@media (max-width: 640px) {
    .instagram-feed-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ======================================================== */
/* MULTI-IMAGE INSTAGRAM CAROUSEL STYLES                   */
/* ======================================================== */
.insta-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    background: #000000;
}

.insta-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.insta-carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.insta-carousel-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.insta-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(22, 22, 22, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    padding: 0;
}

.insta-carousel-nav:hover {
    background: #000000;
    transform: translateY(-50%) scale(1.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.insta-carousel-nav.prev {
    left: 12px;
}

.insta-carousel-nav.next {
    right: 12px;
}

.insta-carousel-nav:disabled,
.insta-carousel-nav.disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

.insta-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
}

.insta-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease;
    cursor: pointer;
}

.insta-carousel-dot.active {
    background: var(--accent, #22c55e);
    width: 16px;
    border-radius: 4px;
}

.insta-carousel-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 2px 0;
    margin-top: 10px;
}

.insta-carousel-thumb-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
    background: #0a0a0a;
}

.insta-carousel-thumb-item.active {
    border-color: var(--accent, #22c55e);
}

.insta-carousel-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insta-carousel-thumb-num {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.625rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
}

/* ==========================================================================
   POST DETAIL LAYOUT & INSTAGRAM ALIGNMENT
   ========================================================================== */
.post-detail-layout {
    display: grid;
    grid-template-columns: 520px minmax(320px, 1fr);
    gap: 32px;
    align-items: start;
}

.post-preview-col {
    max-width: 520px;
    width: 100%;
}

@media (max-width: 900px) {
    .post-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .post-preview-col {
        max-width: 520px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   BULK SELECTION & EDITING (AÇÕES EM MASSA)
   ========================================================================== */
.bulk-toolbar-wrapper {
    position: fixed;
    bottom: 24px;
    left: calc(50% + 130px);
    transform: translateX(-50%) translateY(140%);
    z-index: 990;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
    width: calc(100% - 320px);
    max-width: 880px;
}

.bulk-toolbar-wrapper.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 900px) {
    .bulk-toolbar-wrapper {
        left: 50%;
        width: calc(100% - 32px);
        bottom: 16px;
    }
}

.bulk-toolbar-bar {
    background: rgba(14, 14, 14, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 197, 94, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(34, 197, 94, 0.15);
    border-radius: 50px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.bulk-toolbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.bulk-toolbar-count {
    background: var(--color-success, #22c55e);
    color: #000;
    font-weight: 800;
    font-size: 0.8125rem;
    padding: 2px 10px;
    border-radius: 12px;
}

.bulk-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-card.selected, tr.selected {
    border-color: rgba(34, 197, 94, 0.6) !important;
    background-color: rgba(34, 197, 94, 0.04) !important;
}

.bulk-dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: #e5e5e5;
    font-size: 0.8125rem;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.bulk-dropdown-item:hover {
    background: #262626;
    color: #ffffff;
}

.dot-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ==========================================================================
   WORD-STYLE RICH TEXT EDITOR (DOCUMENTOS & ROTEIROS)
   ========================================================================== */
.word-editor-container {
    display: flex;
    flex-direction: column;
    background: #0c0c0e;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
}

.word-editor-container.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    border-radius: 0;
    border: none;
    height: 100vh;
    width: 100vw;
}

/* Top Ribbon Bar */
.word-ribbon {
    background: #141416;
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    user-select: none;
}

.word-ribbon-group {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.word-ribbon-group:last-child {
    border-right: none;
}

.word-tool-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #cccccc;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    padding: 0;
}

.word-tool-btn:hover {
    background: #252528;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

.word-tool-btn.active {
    background: rgba(34, 197, 94, 0.16);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

.word-tool-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #1c1c1f !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 11px 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e5e5e5 !important;
    height: 32px !important;
    border-radius: 4px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 10px !important;
    padding-right: 24px !important;
    font-size: 0.8125rem !important;
    cursor: pointer !important;
    outline: none !important;
    box-sizing: border-box !important;
    line-height: 30px !important;
    transition: border-color 0.15s ease;
}

.word-tool-select:hover, .word-tool-select:focus {
    border-color: #22c55e !important;
}

.word-tool-select option {
    background-color: #1c1c1f;
    color: #ffffff;
    padding: 6px 10px;
}

.word-color-btn {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #ccc;
    padding: 0;
}

.word-color-btn:hover {
    background: #252528;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

.word-color-bar {
    width: 16px;
    height: 3px;
    border-radius: 1px;
    margin-top: 1px;
}

/* Workspace & Sheet Canvas */
.word-workspace {
    background: #09090b;
    padding: 32px 16px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 650px;
    position: relative;
}

.word-page-sheet {
    width: 100%;
    max-width: 840px;
    min-height: 1020px;
    background: #151518;
    color: #e2e2e8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    padding: 56px 64px;
    transition: all 0.2s ease;
    transform-origin: top center;
    position: relative;
}

/* Page Themes: Dark (default) vs Paper Light */
.word-page-sheet.theme-light {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}

.word-page-sheet.theme-light .word-title-input {
    color: #111827 !important;
    border-color: #e5e7eb !important;
}

.word-page-sheet.theme-light .word-editor-body blockquote {
    background: #f0fdf4 !important;
    border-left-color: #16a34a !important;
    color: #166534 !important;
}

.word-page-sheet.theme-light .word-editor-body table,
.word-page-sheet.theme-light .word-editor-body td,
.word-page-sheet.theme-light .word-editor-body th {
    border-color: #d1d5db !important;
}

.word-page-sheet.theme-light .word-editor-body th {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.word-page-sheet.theme-light .word-callout {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

/* Document Title Inside Page */
.word-title-wrapper {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.word-title-input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    outline: none;
    font-family: inherit;
    line-height: 1.25;
    padding: 0;
}

.word-title-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Rich Document Body */
.word-editor-body {
    outline: none;
    min-height: 700px;
    font-size: 15px;
    line-height: 1.75;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    word-break: break-word;
}

.word-editor-body:empty:before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    display: block;
}

.word-page-sheet.theme-light .word-editor-body:empty:before {
    color: #9ca3af;
}

.word-editor-body h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.word-editor-body h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    line-height: 1.35;
}

.word-editor-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.4em;
}

.word-editor-body p {
    margin-bottom: 0.85em;
}

.word-editor-body blockquote {
    border-left: 3px solid #22c55e;
    margin: 1.2em 0;
    padding: 10px 18px;
    background: rgba(34, 197, 94, 0.06);
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

.word-editor-body ul, .word-editor-body ol {
    margin: 0.75em 0;
    padding-left: 28px;
}

.word-editor-body li {
    margin-bottom: 0.35em;
}

.word-editor-body hr {
    border: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    margin: 24px 0;
}

.word-page-sheet.theme-light .word-editor-body hr {
    border-top-color: #e5e7eb;
}

.word-editor-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.word-editor-body th, .word-editor-body td {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 9px 12px;
    text-align: left;
}

.word-editor-body th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
}

.word-callout {
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.08);
    border-radius: 6px;
    padding: 14px 18px;
    margin: 16px 0;
    color: #e2e2e8;
}

/* Word Status Bar */
.word-statusbar {
    background: #111113;
    border-top: 1px solid var(--border-subtle);
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    user-select: none;
    flex-wrap: wrap;
    gap: 12px;
}

.word-statusbar-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.word-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.word-speaking-time {
    color: #22c55e;
    font-weight: 600;
}

/* Print styles */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .app-sidebar, .app-header, .word-ribbon, .word-statusbar, .btn, .card > div:first-child, form, #bulk-toolbar {
        display: none !important;
    }
    .word-workspace {
        padding: 0 !important;
        background: transparent !important;
    }
    .word-page-sheet {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        max-width: 100% !important;
        background: #fff !important;
        color: #000 !important;
    }
    .word-title-input {
        color: #000 !important;
    }
}
