/*
Theme Name: Dark Orange Sidebar Dashboard
Theme URI: https://example.com/
Author: Ahmad
Description: Dark dashboard WordPress theme with orange accent, collapsible sidebar, and 24-hour private route behavior.
Version: 1.75
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: dark-orange-sidebar-dashboard
*/

:root {
    --dos-bg: #060606;
    --dos-bg-soft: #0d0d10;
    --dos-panel: rgba(14, 14, 17, 0.88);
    --dos-panel-strong: rgba(18, 18, 22, 0.96);
    --dos-border: rgba(255, 255, 255, 0.08);
    --dos-border-strong: rgba(255, 255, 255, 0.12);
    --dos-text: #f7f7f7;
    --dos-text-muted: rgba(255, 255, 255, 0.68);
    --dos-text-soft: rgba(255, 255, 255, 0.52);
    --dos-accent: #ff4d00;
    --dos-accent-soft: rgba(255, 77, 0, 0.14);
    --dos-accent-glow: rgba(255, 77, 0, 0.35);
    --dos-shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
    --dos-shadow-md: 0 14px 34px rgba(0, 0, 0, 0.28);
    --dos-radius-xl: 30px;
    --dos-radius-lg: 22px;
    --dos-radius-md: 18px;
    --dos-transition: 220ms cubic-bezier(.2, .8, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(255, 77, 0, 0.14), transparent 24%),
        radial-gradient(circle at left bottom, rgba(255, 255, 255, 0.04), transparent 22%),
        linear-gradient(180deg, #040404 0%, #080809 52%, #050505 100%);
    color: var(--dos-text);
    font-family: "Google Sans", "Google Sans Text", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.admin-bar {
    margin-top: 0 !important;
}

img {
    max-width: 100%;
    display: block;
}

button,
a,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.fi,
i[class*="fi-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    height: 1.15em;
    line-height: 1;
    flex: 0 0 auto;
}

.fi::before,
i[class*="fi-"]::before {
    margin: 0 !important;
    line-height: 1;
}

.dos-page {
    width: min(1380px, calc(100% - 32px));
    margin: 16px auto;
    padding-bottom: 24px;
}

.dos-shell {
    --dos-sidebar-space: 284px;
    display: grid;
    grid-template-columns: var(--dos-sidebar-space) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.dos-shell,
.dos-profile-copy,
.dos-nav-label {
    transition: grid-template-columns var(--dos-transition), opacity var(--dos-transition), transform var(--dos-transition);
}


body.is-collapsed:not(.is-hover-expanded) .dos-shell {
    --dos-sidebar-space: 94px;
}

.dos-sidebar {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 32px);
    padding: 18px 16px;
    border: 1px solid var(--dos-border);
    border-radius: var(--dos-radius-xl);
    background:
        linear-gradient(180deg, rgba(16, 16, 18, 0.95) 0%, rgba(9, 9, 11, 0.96) 100%),
        radial-gradient(circle at top left, rgba(255, 77, 0, 0.10), transparent 30%);
    box-shadow: var(--dos-shadow-lg);
    backdrop-filter: blur(18px);
    overflow: hidden;
    transition: padding var(--dos-transition), border-color var(--dos-transition), box-shadow var(--dos-transition);
}

body.is-collapsed.is-hover-expanded .dos-sidebar {
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
}


body.is-collapsed:not(.is-hover-expanded) .dos-sidebar {
    padding-inline: 12px;
}

.dos-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 77, 0, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.dos-sidebar > * {
    position: relative;
    z-index: 1;
}

.dos-sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dos-profile-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 78px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transition: background-color var(--dos-transition), border-color var(--dos-transition), transform var(--dos-transition), box-shadow var(--dos-transition);
}

.dos-profile-btn:hover,
.dos-profile-btn:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}

.dos-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 77, 0, 0.95), rgba(255, 115, 38, 0.82));
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(255, 77, 0, 0.2);
    flex: 0 0 auto;
}

.dos-profile-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    text-align: left;
}

.dos-profile-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dos-text-soft);
}

.dos-profile-name {
    font-size: 1.12rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.is-collapsed:not(.is-hover-expanded) .dos-profile-btn {
    justify-content: center;
    min-height: 66px;
    padding: 10px;
    border-radius: 22px;
}

body.is-collapsed:not(.is-hover-expanded) .dos-profile-copy {
    display: none;
}

body.is-collapsed:not(.is-hover-expanded) .dos-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 1.05rem;
}

.dos-nav {
    display: grid;
    gap: 10px;
}

.dos-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 0 14px;
    border-radius: 18px;
    color: var(--dos-text-muted);
    transition: color var(--dos-transition), background-color var(--dos-transition), transform var(--dos-transition), box-shadow var(--dos-transition), border-color var(--dos-transition);
    outline: none;
}

.dos-nav-link:hover,
.dos-nav-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.dos-nav-link.is-active {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 77, 0, 0.18) 0%, rgba(255, 77, 0, 0.09) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 77, 0, 0.08), 0 14px 30px rgba(0, 0, 0, 0.16);
}

.dos-nav-link.is-active::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 50%;
    width: 4px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 77, 0, 1) 0%, rgba(255, 128, 77, 0.88) 100%);
    transform: translateY(-50%);
    box-shadow: 0 0 16px rgba(255, 77, 0, 0.28);
}

.dos-nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.dos-nav-label {
    font-size: 1.04rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dos-sidebar-bottom {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.is-collapsed:not(.is-hover-expanded) .dos-nav-link {
    justify-content: center;
    min-height: 58px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

body.is-collapsed:not(.is-hover-expanded) .dos-nav-link::before {
    left: 2px;
    width: 3px;
    height: 28px;
}

body.is-collapsed:not(.is-hover-expanded) .dos-nav-link .dos-nav-label {
    display: none;
}

body.is-collapsed:not(.is-hover-expanded) .dos-nav-link .dos-nav-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 1.14rem;
    color: inherit;
    transition: background-color var(--dos-transition), box-shadow var(--dos-transition), color var(--dos-transition), transform var(--dos-transition);
}

body.is-collapsed:not(.is-hover-expanded) .dos-nav-link.is-active {
    background: transparent;
    box-shadow: none;
}

body.is-collapsed:not(.is-hover-expanded) .dos-nav-link.is-active .dos-nav-icon {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 77, 0, 0.22) 0%, rgba(255, 77, 0, 0.10) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 77, 0, 0.08), 0 14px 26px rgba(255, 77, 0, 0.12);
}

body.is-collapsed:not(.is-hover-expanded) .dos-nav-link:hover .dos-nav-icon,
body.is-collapsed:not(.is-hover-expanded) .dos-nav-link:focus-visible .dos-nav-icon {
    background: rgba(255, 255, 255, 0.05);
}

body.is-collapsed:not(.is-hover-expanded) .dos-nav-link.is-active:hover .dos-nav-icon,
body.is-collapsed:not(.is-hover-expanded) .dos-nav-link.is-active:focus-visible .dos-nav-icon {
    background: linear-gradient(180deg, rgba(255, 77, 0, 0.24) 0%, rgba(255, 77, 0, 0.12) 100%);
}

body.is-collapsed:not(.is-hover-expanded) .dos-nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    min-width: max-content;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    background: rgba(18, 18, 22, 0.96);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
    font-size: 0.92rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity var(--dos-transition), transform var(--dos-transition);
}

body.is-collapsed:not(.is-hover-expanded) .dos-nav-link:hover::after,
body.is-collapsed:not(.is-hover-expanded) .dos-nav-link:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.dos-main {
    min-width: 0;
}

.dos-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px 24px;
    border: 1px solid var(--dos-border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(16, 16, 18, 0.92) 0%, rgba(10, 10, 12, 0.92) 100%);
    box-shadow: var(--dos-shadow-md);
}

.dos-main-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.dos-main-subtitle {
    margin: 0;
    color: var(--dos-text-muted);
    font-size: 0.98rem;
}

.dos-main-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    white-space: nowrap;
}

.dos-section-card {
    display: none;
    padding: 28px;
    border: 1px solid var(--dos-border);
    border-radius: var(--dos-radius-xl);
    background: linear-gradient(180deg, rgba(14, 14, 17, 0.90) 0%, rgba(10, 10, 12, 0.96) 100%);
    box-shadow: var(--dos-shadow-lg);
    min-height: calc(100vh - 154px);
    cursor: pointer;
}

.dos-section-card.is-visible {
    display: block;
}

.dos-section-card:focus-visible {
    outline: 2px solid rgba(255, 77, 0, 0.34);
    outline-offset: 2px;
}

.dos-section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.dos-section-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.dos-section-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dos-text-muted);
    font-size: 0.95rem;
}

.dos-section-status::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--dos-accent);
    box-shadow: 0 0 12px rgba(255, 77, 0, 0.32);
}

.dos-section-body {
    min-height: calc(100vh - 286px);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%),
        radial-gradient(circle at top left, rgba(255, 77, 0, 0.08), transparent 26%);
}

.dos-section-placeholder {
    display: grid;
    place-items: center;
    min-height: inherit;
    color: var(--dos-text-soft);
    text-align: center;
    padding: 28px;
    font-size: 1rem;
}

@media (max-width: 1120px) {
    .dos-shell {
        --dos-sidebar-space: 260px;
    }

    body.is-collapsed:not(.is-hover-expanded) .dos-shell {
        --dos-sidebar-space: 88px;
    }

    .dos-sidebar {
        min-height: calc(100vh - 24px);
    }

    .dos-main-header {
        padding: 16px 18px;
    }
}

@media (max-width: 920px) {
    .dos-page {
        width: min(100%, calc(100% - 18px));
        margin: 9px auto;
    }

    .dos-shell,
    body.is-collapsed:not(.is-hover-expanded) .dos-shell {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dos-sidebar {
        position: static;
        min-height: 0;
        padding: 12px;
    }

    body.is-collapsed:not(.is-hover-expanded) .dos-sidebar {
        padding: 12px;
    }

    .dos-sidebar-top {
        gap: 12px;
    }

    .dos-profile-btn,
    body.is-collapsed:not(.is-hover-expanded) .dos-profile-btn {
        justify-content: flex-start;
        min-height: 64px;
        padding: 10px 12px;
    }

    .dos-profile-copy,
    body.is-collapsed:not(.is-hover-expanded) .dos-profile-copy {
        display: flex;
    }

    .dos-avatar,
    body.is-collapsed:not(.is-hover-expanded) .dos-avatar {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .dos-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
    }

    .dos-nav-link,
    body.is-collapsed:not(.is-hover-expanded) .dos-nav-link {
        justify-content: center;
        min-height: 56px;
        padding: 0 10px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.02);
    }

    .dos-nav-link::before,
    body.is-collapsed:not(.is-hover-expanded) .dos-nav-link::before,
    .dos-nav-link::after,
    body.is-collapsed:not(.is-hover-expanded) .dos-nav-link::after {
        display: none;
    }

    .dos-nav-link .dos-nav-icon,
    body.is-collapsed:not(.is-hover-expanded) .dos-nav-link .dos-nav-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .dos-nav-link .dos-nav-label,
    body.is-collapsed:not(.is-hover-expanded) .dos-nav-link .dos-nav-label {
        display: none;
    }

    .dos-sidebar-bottom {
        padding-top: 0;
        border-top: 0;
    }

    .dos-main-header {
        padding: 16px;
        border-radius: 22px;
    }

    .dos-main-meta {
        display: none;
    }

    .dos-section-card {
        min-height: calc(100vh - 250px);
        padding: 22px;
        border-radius: 24px;
    }

    .dos-section-body {
        min-height: calc(100vh - 350px);
    }
}

@media (max-width: 720px) {
    .dos-credential-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dos-page {
        width: min(100%, calc(100% - 14px));
        margin: 7px auto;
    }

    .dos-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dos-main-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }

    .dos-main-subtitle {
        font-size: 0.92rem;
    }

    .dos-section-card {
        padding: 16px;
        border-radius: 22px;
        min-height: calc(100vh - 260px);
    }

    .dos-section-title {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }

    .dos-section-body {
        min-height: calc(100vh - 320px);
        border-radius: 20px;
    }

    .dos-section-status {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0ms !important;
        animation-duration: 0ms !important;
    }
}


.dos-settings-section,
.dos-settings-shell,
.dos-settings-shell * {
    cursor: default;
}

.dos-settings-shell {
    min-height: calc(100vh - 286px);
    padding: 22px;
    border-style: solid;
}

.dos-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.dos-content-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.dos-content-toolbar .dos-settings-tabs {
    margin-bottom: 0;
}

.dos-post-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 77, 0, 0.34);
    background: #ff4d00;
    color: #111114;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 14px 28px rgba(255, 77, 0, 0.18);
    transition: transform var(--dos-transition), box-shadow var(--dos-transition), filter var(--dos-transition), opacity var(--dos-transition);
}

.dos-post-btn:hover,
.dos-post-btn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 16px 30px rgba(255, 77, 0, 0.22);
}

.dos-post-btn:focus-visible {
    outline: 0;
}

.dos-settings-tab,
.dos-action-btn,
.dos-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-weight: 600;
    transition: transform var(--dos-transition), background-color var(--dos-transition), border-color var(--dos-transition), box-shadow var(--dos-transition), opacity var(--dos-transition);
}

.dos-settings-tab:hover,
.dos-action-btn:hover,
.dos-ghost-btn:hover,
.dos-settings-tab:focus-visible,
.dos-action-btn:focus-visible,
.dos-ghost-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
}

.dos-settings-tab.is-active,
.dos-action-btn {
    background: linear-gradient(180deg, rgba(255, 77, 0, 0.24) 0%, rgba(255, 77, 0, 0.14) 100%);
    border-color: rgba(255, 77, 0, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 77, 0, 0.08);
}

.dos-action-btn.is-connected,
.dos-action-btn:disabled {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.86);
    box-shadow: none;
    opacity: 1;
}

.dos-action-btn.is-loading {
    opacity: 0.8;
}

.dos-ghost-btn {
    background: transparent;
}


.dos-settings-panel {
    display: none;
}

.dos-settings-panel.is-active {
    display: block;
}

.dos-credential-search-wrap {
    margin-bottom: 16px;
}

.dos-credential-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.92) 0%, rgba(10, 10, 12, 0.96) 100%);
    box-shadow: var(--dos-shadow-md);
}

.dos-credential-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--dos-text-soft);
    flex: 0 0 auto;
}

.dos-credential-search-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 0;
    box-shadow: none;
}

.dos-credential-search-input::placeholder {
    color: var(--dos-text-soft);
}

.dos-search-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--dos-text-soft);
    cursor: pointer;
    transition: background-color var(--dos-transition), color var(--dos-transition), transform var(--dos-transition);
}

.dos-search-clear-btn:hover,
.dos-search-clear-btn:focus-visible {
    background: rgba(255,255,255,0.06);
    color: #fff;
    outline: 0;
}

.dos-credential-empty {
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.92) 0%, rgba(10, 10, 12, 0.96) 100%);
    box-shadow: var(--dos-shadow-md);
    color: var(--dos-text-muted);
}

.dos-credential-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.dos-credential-card,
.dos-security-box,
.dos-log-list {
    display: grid;
    gap: 14px;
}

.dos-log-card {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.92) 0%, rgba(10, 10, 12, 0.96) 100%);
    box-shadow: var(--dos-shadow-md);
}

.dos-log-top,
.dos-log-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dos-log-title {
    font-size: 1rem;
}

.dos-log-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
}

.dos-log-status.is-success {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.12);
}

.dos-log-status.is-error {
    border-color: rgba(255, 77, 0, 0.24);
    background: rgba(255, 77, 0, 0.12);
}

.dos-log-meta {
    color: var(--dos-text-soft);
    font-size: 0.9rem;
}

.dos-log-message {
    margin: 0;
    color: var(--dos-text-muted);
    line-height: 1.6;
}

.dos-empty-state {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.92) 0%, rgba(10, 10, 12, 0.96) 100%);
    box-shadow: var(--dos-shadow-md);
}

.dos-credential-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.92) 0%, rgba(10, 10, 12, 0.96) 100%);
    box-shadow: var(--dos-shadow-md);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.dos-credential-card:hover {
    border-color: rgba(255, 77, 0, 0.22);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.dos-credential-card.is-filter-hidden {
    display: none !important;
}

.dos-credential-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dos-credential-message {
    margin-bottom: 0;
}

.dos-credential-fields {
    display: grid;
    gap: 12px;
}

.dos-credential-title {
    margin: 0;
    font-size: 1.15rem;
}


.dos-credential-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 12px;
    block-size: 12px;
    border-radius: 999px;
    flex: 0 0 12px;
    background: #ff3b30;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.10);
}

.dos-credential-badge.is-connected {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}


.dos-log-list {
    display: grid;
    gap: 14px;
}

.dos-log-card {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.92) 0%, rgba(10, 10, 12, 0.96) 100%);
    box-shadow: var(--dos-shadow-md);
}

.dos-log-top,
.dos-log-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dos-log-title {
    font-size: 1rem;
}

.dos-log-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
}

.dos-log-status.is-success {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.12);
}

.dos-log-status.is-error {
    border-color: rgba(255, 77, 0, 0.24);
    background: rgba(255, 77, 0, 0.12);
}

.dos-log-meta {
    color: var(--dos-text-soft);
    font-size: 0.9rem;
}

.dos-log-message {
    margin: 0;
    color: var(--dos-text-muted);
    line-height: 1.6;
}

.dos-empty-state {
    display: grid;
    place-items: center;
    min-height: 280px;
    color: var(--dos-text-soft);
    text-align: center;
    padding: 20px;
}

.dos-security-box {
    padding: 22px;
}

.dos-inline-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 500;
}

.dos-inline-message.is-success {
    background: rgba(255, 77, 0, 0.10);
    border-color: rgba(255, 77, 0, 0.20);
    color: #fff;
}

.dos-inline-message.is-error {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dos-security-step {
    display: none;
    gap: 16px;
}

.dos-security-step.is-active {
    display: grid;
}

.dos-field-group {
    display: grid;
    gap: 8px;
}

.dos-field-label {
    font-size: 0.94rem;
    color: var(--dos-text-muted);
    font-weight: 500;
}

.dos-field-input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    outline: none;
    transition: border-color var(--dos-transition), box-shadow var(--dos-transition), background-color var(--dos-transition);
}

.dos-field-input:focus {
    border-color: rgba(255, 77, 0, 0.34);
    box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.10);
}

.dos-credential-card.is-locked {
    border-color: rgba(34, 197, 94, 0.16);
}

.dos-credential-card.is-locked .dos-field-input[disabled],
.dos-credential-card.is-locked .dos-field-input[readonly] {
    opacity: 0.72;
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.dos-credential-card.is-locked .dos-field-input[disabled]::placeholder,
.dos-credential-card.is-locked .dos-field-input[readonly]::placeholder {
    color: rgba(255, 255, 255, 0.36);
}

.dos-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 1120px) {
    .dos-credential-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .dos-settings-shell {
        min-height: calc(100vh - 350px);
        padding: 16px;
    }

    .dos-settings-tabs {
        gap: 8px;
        margin-bottom: 18px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .dos-settings-tab,
    .dos-action-btn,
    .dos-ghost-btn {
        min-height: 44px;
        padding-inline: 16px;
        white-space: nowrap;
    }

    .dos-security-box,
    .dos-credential-card,
    
.dos-log-list {
    display: grid;
    gap: 14px;
}

.dos-log-card {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.92) 0%, rgba(10, 10, 12, 0.96) 100%);
    box-shadow: var(--dos-shadow-md);
}

.dos-log-top,
.dos-log-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dos-log-title {
    font-size: 1rem;
}

.dos-log-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
}

.dos-log-status.is-success {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.12);
}

.dos-log-status.is-error {
    border-color: rgba(255, 77, 0, 0.24);
    background: rgba(255, 77, 0, 0.12);
}

.dos-log-meta {
    color: var(--dos-text-soft);
    font-size: 0.9rem;
}

.dos-log-message {
    margin: 0;
    color: var(--dos-text-muted);
    line-height: 1.6;
}

.dos-empty-state {
        border-radius: 18px;
    }
}

@media (max-width: 640px) {
    .dos-settings-shell {
        padding: 14px;
    }

    .dos-security-box {
        padding: 16px;
    }

    .dos-inline-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}


.dos-login-view {
    min-height: 100vh;
}

body.is-gated {
    overflow: hidden;
}

body.is-modal-open {
    overflow: hidden;
}

.dos-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.dos-login-card {
    width: min(520px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(16, 16, 18, 0.94) 0%, rgba(9, 9, 12, 0.98) 100%);
    box-shadow: 0 32px 84px rgba(0, 0, 0, 0.46);
    padding: 28px;
}

.dos-login-panel {
    display: grid;
    gap: 18px;
}

.dos-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 77, 0, 0.10);
    border: 1px solid rgba(255, 77, 0, 0.20);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dos-login-panel h1,
.dos-login-panel h2,
.dos-modal-card h3,
.dos-turnstile-card h1 {
    margin: 0;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.dos-login-panel h2,
.dos-turnstile-card h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.dos-modal-card h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.dos-login-panel p,
.dos-modal-card p,
.dos-turnstile-card p {
    margin: 0;
    color: var(--dos-text-muted);
    line-height: 1.65;
}

.dos-auth-form {
    display: grid;
    gap: 16px;
}

.dos-login-submit {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
}

.dos-login-message {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 500;
}

.dos-login-message.is-success {
    background: rgba(255, 77, 0, 0.10);
    border-color: rgba(255, 77, 0, 0.18);
    color: #fff;
}

.dos-login-message.is-error {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dos-turnstile-overlay,
.dos-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(3, 3, 5, 0.76);
    backdrop-filter: blur(18px);
    z-index: 9999;
}

.dos-turnstile-overlay {
    transition: opacity var(--dos-transition), visibility var(--dos-transition);
}

.dos-turnstile-overlay:not(.is-active) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dos-turnstile-card,
.dos-modal-card {
    width: min(460px, 100%);
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.96) 0%, rgba(9, 9, 12, 0.98) 100%);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}

.dos-turnstile-widget {
    min-height: 72px;
    display: grid;
    align-items: center;
    justify-content: center;
}

.dos-modal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dos-transition), visibility var(--dos-transition);
}

.dos-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 640px) {
    .dos-login-shell {
        padding: 14px;
    }

    .dos-login-card,
    .dos-turnstile-card,
    .dos-modal-card {
        padding: 18px;
        border-radius: 24px;
    }
}

.dos-helper-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -2px;
    margin-bottom: 12px;
}

.dos-helper-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dos-helper-link:hover,
.dos-helper-link:focus-visible {
    color: #fff;
    border-color: rgba(255, 77, 0, 0.42);
    background: rgba(255, 77, 0, 0.1);
    transform: translateY(-1px);
    outline: none;
}


.dos-toast-host {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: grid;
    gap: 10px;
    z-index: 10050;
    width: min(calc(100vw - 32px), 480px);
    pointer-events: none;
}

.dos-toast {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity .32s ease, transform .32s ease;
    pointer-events: none;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(16, 16, 19, 0.96) 0%, rgba(8, 8, 10, 0.98) 100%);
    color: #fff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
    font-weight: 500;
}

.dos-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dos-toast.is-success {
    border-color: rgba(255, 77, 0, 0.22);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 77, 0, 0.12) inset;
}

.dos-toast.is-error {
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
    .dos-toast-host {
        bottom: 18px;
        width: min(calc(100vw - 24px), 480px);
    }

    .dos-toast {
        border-radius: 16px;
        padding: 13px 14px;
        font-size: 0.94rem;
    }
}


/* v132 log search and actor line */
.dos-log-search-wrap {
    margin-bottom: 18px;
}

.dos-log-search,
.dos-log-search-wrap .dos-log-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.dos-log-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,0.58);
    font-size: 15px;
    flex: 0 0 auto;
}

.dos-log-search-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
}

.dos-log-search-input::placeholder {
    color: rgba(255,255,255,0.44);
}

.dos-log-userline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 10px;
}

.dos-log-actor {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 77, 0, 0.18);
    background: rgba(255, 77, 0, 0.1);
    color: #ff8a57;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dos-log-actor-name {
    color: rgba(255,255,255,0.68);
    font-size: 13px;
    font-weight: 500;
}

.dos-log-empty {
    margin-top: 14px;
}


.dos-content-section,
.dos-content-shell,
.dos-content-shell * {
    cursor: default;
}

.dos-content-empty {
    min-height: 320px;
}

@media (max-width: 700px) {
    .dos-content-toolbar {
        align-items: stretch;
    }

    .dos-post-btn {
        width: 100%;
    }
}

.dos-content-list {
    display: grid;
    gap: 16px;
}

.dos-post-item-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: 0 22px 38px rgba(0,0,0,0.16);
}

.dos-post-item-cover,
.dos-drive-item-thumb,
.dos-post-selected-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

.dos-post-item-cover {
    min-height: 112px;
}

.dos-post-item-cover img,
.dos-drive-item-thumb img,
.dos-post-selected-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dos-post-item-cover.is-video::after,
.dos-drive-item-thumb.is-video::after,
.dos-post-selected-thumb.is-video::after {
    content: '▶';
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(17,17,20,0.82);
    color: #fff;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}

.dos-post-item-body {
    min-width: 0;
    display: grid;
    gap: 12px;
    align-content: start;
}

.dos-post-item-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}

.dos-post-item-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    min-width: 0;
    max-width: 100%;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-word;
}

.dos-post-item-status {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dos-post-item-status.is-scheduled {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

.dos-post-item-status.is-published {
    background: rgba(255,77,0,0.14);
    border: 1px solid rgba(255,77,0,0.22);
    color: #ff8a57;
}

.dos-post-item-status.is-processing {
    background: rgba(255, 196, 0, 0.12);
    border: 1px solid rgba(255, 196, 0, 0.22);
    color: #ffd56a;
}

.dos-post-item-status.is-failed {
    background: rgba(255, 79, 79, 0.12);
    border: 1px solid rgba(255, 79, 79, 0.22);
    color: #ff9a9a;
}

.dos-post-item-status.is-partial {
    background: rgba(0, 173, 181, 0.14);
    border: 1px solid rgba(0, 173, 181, 0.22);
    color: #7be8ee;
}

.dos-post-item-caption {
    margin: 0;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dos-post-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.48);
    font-size: 13px;
}

.dos-post-channel-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dos-post-channel-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    font-weight: 600;
}

.dos-post-item-note {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    color: rgba(255,255,255,0.68);
    font-size: 13px;
    line-height: 1.55;
}

.dos-post-item-note.is-error {
    border-color: rgba(255, 79, 79, 0.18);
    background: rgba(255, 79, 79, 0.08);
    color: #ffb2b2;
}

.dos-post-modal-card {
    width: min(860px, 100%);
    max-height: min(820px, calc(100dvh - 36px));
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.dos-post-modal-header {
    display: grid;
    gap: 12px;
    padding-bottom: 4px;
}

.dos-post-stepper {
    display: none;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dos-post-step-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.54);
    font-size: 0.84rem;
    font-weight: 700;
}

.dos-post-step-pill.is-active {
    border-color: rgba(255,77,0,0.28);
    background: rgba(255,77,0,0.12);
    color: #fff;
}

.dos-post-modal-step {
    display: grid;
    gap: 16px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    align-content: start;
}

.dos-post-modal-step[hidden] {
    display: none !important;
}

.dos-post-modal-step::-webkit-scrollbar {
    width: 10px;
}

.dos-post-modal-step::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
}

.dos-post-step-copy {
    display: grid;
    gap: 6px;
}

.dos-post-search {
    margin-top: 4px;
}


.dos-post-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    min-height: 180px;
    align-items: start;
}

.dos-drive-item {
    display: grid;
    gap: 12px;
    text-align: left;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #fff;
    transition: transform var(--dos-transition), border-color var(--dos-transition), box-shadow var(--dos-transition), background-color var(--dos-transition);
}

.dos-drive-item:hover,
.dos-drive-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255,77,0,0.22);
    box-shadow: 0 18px 32px rgba(0,0,0,0.18);
    background: rgba(255,77,0,0.08);
    outline: 0;
}

.dos-drive-item-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.dos-drive-item-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.dos-drive-item-copy strong {
    font-size: 0.96rem;
    line-height: 1.45;
    color: #fff;
    word-break: break-word;
}

.dos-drive-item-copy span {
    color: rgba(255,255,255,0.46);
    font-size: 13px;
}

.dos-post-selected-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.dos-post-selected-thumb {
    aspect-ratio: 1 / 1;
}

.dos-post-selected-copy {
    display: grid;
    gap: 6px;
    align-content: center;
}

.dos-post-selected-copy strong {
    color: #fff;
    font-size: 0.96rem;
    line-height: 1.45;
}

.dos-post-selected-copy span {
    color: rgba(255,255,255,0.48);
    font-size: 13px;
}

.dos-caption-group {
    gap: 10px;
}

.dos-caption-input {
    min-height: 180px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}

.dos-post-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.dos-post-option-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dos-toggle-chip,
.dos-channel-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    min-width: 46px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-weight: 700;
    transition: transform var(--dos-transition), border-color var(--dos-transition), background-color var(--dos-transition), box-shadow var(--dos-transition), color var(--dos-transition);
}

.dos-channel-chip {
    padding: 0 16px;
    font-size: 18px;
}

.dos-toggle-chip.is-active,
.dos-channel-chip.is-active {
    background: #ff4d00;
    border-color: rgba(255,77,0,0.38);
    color: #111114;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.16), 0 16px 28px rgba(255,77,0,0.18);
}

.dos-post-scheduler {
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.dos-post-modal-actions {
    justify-content: space-between;
}

.dos-post-modal-step[data-post-step-panel="caption"] {
    padding-bottom: 2px;
}

.dos-post-modal-step[data-post-step-panel="caption"] .dos-post-modal-actions {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding-top: 14px;
    padding-bottom: 2px;
    background: linear-gradient(180deg, rgba(9,9,12,0) 0%, rgba(9,9,12,0.92) 28%, rgba(9,9,12,0.98) 100%);
    z-index: 3;
}

.dos-post-media-empty {
    min-height: 140px;
}

.dos-post-option-group-right {
    margin-left: auto;
}

.dos-channel-chip i {
    font-size: 20px;
    line-height: 1;
}

.dos-loading-box {
    display: grid;
    place-items: center;
    min-height: 180px;
    border-radius: 22px;
    border: 1px dashed rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.58);
    background: rgba(255,255,255,0.02);
}

.dos-publish-progress-card {
    width: min(720px, 100%);
    max-height: min(760px, calc(100dvh - 36px));
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.dos-publish-progress-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dos-publish-progress-copy {
    display: grid;
    gap: 8px;
}

.dos-publish-progress-copy h3 {
    margin: 0;
}

.dos-publish-progress-copy p {
    margin: 0;
    color: rgba(255,255,255,0.62);
    line-height: 1.6;
}

.dos-publish-progress-list {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    display: grid;
    gap: 18px;
}

.dos-publish-progress-list::-webkit-scrollbar {
    width: 10px;
}

.dos-publish-progress-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
}

.dos-publish-step {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.dos-publish-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 42px;
    bottom: -22px;
    width: 2px;
    background: rgba(255,255,255,0.08);
}

.dos-publish-step-indicator {
    position: relative;
    z-index: 2;
    width: 56px;
    min-width: 56px;
    display: flex;
    justify-content: center;
}

.dos-publish-step-dot {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 0 0 8px rgba(255,255,255,0.04);
}

.dos-publish-step-dot::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.35);
    transform: translate(-50%, -50%);
}

.dos-publish-step.is-active .dos-publish-step-dot,
.dos-publish-step.is-success .dos-publish-step-dot {
    border-color: rgba(255,77,0,0.38);
    background: rgba(255,77,0,0.18);
    box-shadow: 0 0 0 6px rgba(255,77,0,0.12), inset 0 0 0 8px rgba(255,77,0,0.18);
}

.dos-publish-step.is-active .dos-publish-step-dot::after,
.dos-publish-step.is-success .dos-publish-step-dot::after {
    background: #ff7a3d;
}

.dos-publish-step.is-error .dos-publish-step-dot {
    border-color: rgba(255, 79, 79, 0.34);
    background: rgba(255, 79, 79, 0.12);
    box-shadow: 0 0 0 6px rgba(255, 79, 79, 0.10), inset 0 0 0 8px rgba(255, 79, 79, 0.14);
}

.dos-publish-step.is-error .dos-publish-step-dot::after {
    background: #ff8b8b;
}

.dos-publish-step-content {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    min-width: 0;
}

.dos-publish-step.is-active .dos-publish-step-content {
    border-color: rgba(255,77,0,0.24);
    background: linear-gradient(180deg, rgba(255,77,0,0.10) 0%, rgba(255,255,255,0.03) 100%);
    box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

.dos-publish-step.is-error .dos-publish-step-content {
    border-color: rgba(255, 79, 79, 0.18);
    background: rgba(255, 79, 79, 0.06);
}

.dos-publish-step.is-success .dos-publish-step-content {
    border-color: rgba(255,77,0,0.18);
}

.dos-publish-step-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dos-publish-step-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.dos-publish-step-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.72);
}

.dos-publish-step.is-active .dos-publish-step-badge {
    border-color: rgba(255,77,0,0.24);
    background: rgba(255,77,0,0.14);
    color: #ff9a69;
}

.dos-publish-step.is-success .dos-publish-step-badge {
    border-color: rgba(255,77,0,0.18);
    color: #ffb18c;
}

.dos-publish-step.is-error .dos-publish-step-badge {
    border-color: rgba(255, 79, 79, 0.22);
    background: rgba(255, 79, 79, 0.10);
    color: #ffaeae;
}

.dos-publish-step-description,
.dos-publish-step-message {
    margin: 0;
    line-height: 1.6;
}

.dos-publish-step-description {
    color: rgba(255,255,255,0.56);
}

.dos-publish-step-message {
    color: rgba(255,255,255,0.82);
    font-size: 0.94rem;
}

.dos-publish-progress-actions {
    justify-content: flex-end;
}

.dos-publish-progress-close {
    align-self: flex-start;
}

@media (max-width: 900px) {
    .dos-publish-progress-card {
        width: min(100%, 100%);
    }

    .dos-publish-progress-header {
        flex-direction: column;
    }

    .dos-post-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dos-post-stepper {
        gap: 8px;
    }
}

@media (max-width: 700px) {
    .dos-publish-step {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
    }

    .dos-publish-step:not(:last-child)::after {
        left: 22px;
    }

    .dos-publish-step-indicator {
        width: 46px;
        min-width: 46px;
    }

    .dos-post-item-card,
    .dos-post-selected-card {
        grid-template-columns: 1fr;
    }

    .dos-post-modal-card {
        width: min(100%, 100%);
    }

    .dos-post-media-grid {
        grid-template-columns: 1fr;
    }

    .dos-post-modal-actions {
        justify-content: stretch;
    }

    .dos-post-modal-actions > * {
        width: 100%;
    }
}

.dos-post-item-topline-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: 0;
    flex: 0 0 auto;
    max-width: 100%;
}

.dos-post-insight-btn {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 122, 61, 0.38);
    background: linear-gradient(180deg, rgba(255, 122, 61, 0.95) 0%, rgba(255, 98, 36, 0.88) 100%);
    color: #181311;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.16), 0 10px 20px rgba(255, 122, 61, 0.18);
}

.dos-post-insight-btn:hover,
.dos-post-insight-btn:focus-visible {
    border-color: rgba(255, 140, 82, 0.46);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.16), 0 12px 22px rgba(255, 122, 61, 0.22);
}

.dos-post-insight-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    color: rgba(24, 19, 17, 0.72);
}

@media (max-width: 767px) {
    .dos-post-item-topline {
        flex-wrap: wrap;
    }

    .dos-post-item-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

.dos-post-modal-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.dos-post-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dos-post-upload-btn {
    min-height: 46px;
    padding: 0 18px;
    border-color: rgba(255, 77, 0, 0.34);
    background: #ff4d00;
    color: #111114;
    font-weight: 700;
    gap: 8px;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 14px 28px rgba(255, 77, 0, 0.18);
}

.dos-post-upload-btn[hidden] {
    display: none !important;
}

.dos-post-upload-btn i {
    font-size: 14px;
    line-height: 1;
}

.dos-post-upload-btn span {
    display: inline-flex;
    align-items: center;
}

.dos-upload-progress {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.dos-upload-progress[hidden] {
    display: none !important;
}

.dos-upload-progress.is-active {
    border-color: rgba(255, 122, 61, 0.18);
    background: linear-gradient(180deg, rgba(255, 122, 61, 0.10) 0%, rgba(255,255,255,0.03) 100%);
}

.dos-upload-progress.is-success {
    border-color: rgba(255, 122, 61, 0.24);
}

.dos-upload-progress.is-error {
    border-color: rgba(255, 79, 79, 0.22);
    background: rgba(255, 79, 79, 0.08);
}

.dos-upload-progress-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dos-upload-progress-copy {
    display: grid;
    gap: 6px;
}

.dos-upload-progress-copy strong {
    color: #fff;
    font-size: 0.98rem;
}

.dos-upload-progress-copy p {
    margin: 0;
    color: rgba(255,255,255,0.64);
    line-height: 1.55;
}

.dos-upload-progress-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dos-upload-progress.is-error .dos-upload-progress-badge {
    border-color: rgba(255, 79, 79, 0.22);
    color: #ffb0b0;
}

.dos-upload-progress-bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
}

.dos-upload-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255,122,61,0.72) 0%, rgba(255,122,61,1) 100%);
    box-shadow: 0 0 24px rgba(255,122,61,0.24);
    transition: width 220ms cubic-bezier(.2, .8, .2, 1);
}

.dos-upload-progress.is-error .dos-upload-progress-bar span {
    background: linear-gradient(90deg, rgba(255,79,79,0.72) 0%, rgba(255,79,79,1) 100%);
    box-shadow: 0 0 24px rgba(255,79,79,0.20);
}

.dos-drive-item.is-fresh {
    border-color: rgba(255, 122, 61, 0.24);
    background: linear-gradient(180deg, rgba(255, 122, 61, 0.12) 0%, rgba(255,255,255,0.03) 100%);
    box-shadow: 0 18px 32px rgba(255, 122, 61, 0.08);
}

.dos-insight-modal-card {
    width: min(940px, 100%);
    max-height: min(840px, calc(100dvh - 36px));
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
}

.dos-insight-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dos-insight-modal-copy {
    display: grid;
    gap: 8px;
}

.dos-insight-modal-copy h3 {
    margin: 0;
    max-width: 780px;
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.04;
    word-break: break-word;
}

.dos-insight-modal-copy p {
    margin: 0;
    color: rgba(255,255,255,0.62);
    line-height: 1.6;
}

.dos-insight-modal-body {
    min-height: 0;
    max-height: calc(100dvh - 260px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 8px;
    display: grid;
    align-content: start;
    gap: 20px;
}

.dos-insight-modal-body::-webkit-scrollbar {
    width: 10px;
}

.dos-insight-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
}

.dos-insight-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dos-insight-summary-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: var(--dos-shadow-md);
}

.dos-insight-summary-label,
.dos-insight-summary-note {
    color: rgba(255,255,255,0.58);
    font-size: 12px;
}

.dos-insight-summary-value {
    color: #fff;
    font-size: 1.6rem;
    line-height: 1.1;
}


.dos-insight-tabs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.dos-insight-tab-btn {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 800;
    transition: background var(--dos-transition), color var(--dos-transition), box-shadow var(--dos-transition), border-color var(--dos-transition);
}

.dos-insight-tab-btn:hover,
.dos-insight-tab-btn:focus-visible {
    color: #fff;
    border-color: rgba(255, 122, 61, 0.22);
}

.dos-insight-tab-btn.is-active {
    background: linear-gradient(180deg, rgba(255, 122, 61, 0.96) 0%, rgba(255, 98, 36, 0.88) 100%);
    border-color: rgba(255, 122, 61, 0.32);
    color: #181311;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.18), 0 12px 24px rgba(255, 122, 61, 0.18);
}

.dos-insight-panel.is-hidden {
    display: none;
}

.dos-insight-channel-list {
    display: grid;
    gap: 18px;
}

.dos-insight-channel {
    --dos-insight-accent: 255, 122, 61;
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(var(--dos-insight-accent), 0.12) 0%, rgba(255,255,255,0.03) 100%);
    box-shadow: 0 22px 40px rgba(0,0,0,0.18);
}

.dos-insight-channel.is-facebook {
    --dos-insight-accent: 255, 122, 61;
}

.dos-insight-channel.is-instagram {
    --dos-insight-accent: 148, 102, 255;
}

.dos-insight-channel.is-unavailable {
    background: rgba(255,255,255,0.03);
}

.dos-insight-channel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dos-insight-channel-copy {
    display: grid;
    gap: 8px;
}

.dos-insight-channel-copy strong {
    color: #fff;
    font-size: 1.1rem;
}

.dos-insight-channel-copy p {
    margin: 0;
    color: rgba(255,255,255,0.62);
    line-height: 1.6;
}

.dos-insight-channel-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    width: fit-content;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.dos-insight-open-btn {
    min-height: 40px;
    padding: 0 16px;
}

.dos-insight-chart-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(5,5,8,0.34);
}

.dos-insight-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.dos-insight-chart-head strong {
    color: #fff;
}

.dos-insight-chart-head span {
    color: rgba(255,255,255,0.56);
    font-size: 13px;
}

.dos-insight-chart-shell {
    position: relative;
    min-height: 180px;
}

.dos-insight-chart-shell svg {
    width: 100%;
    height: 180px;
    overflow: visible;
}

.dos-insight-chart-line {
    fill: none;
    stroke: rgba(var(--dos-insight-accent), 1);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dos-insight-chart-area {
    fill: rgba(var(--dos-insight-accent), 0.14);
}

.dos-insight-chart-shell circle {
    fill: rgba(var(--dos-insight-accent), 1);
    stroke: #0a0a0f;
    stroke-width: 2;
}

.dos-insight-chart-shell text {
    fill: rgba(255,255,255,0.72);
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
}

.dos-insight-chart-labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 8px;
}

.dos-insight-chart-labels span {
    color: rgba(255,255,255,0.56);
    font-size: 12px;
    line-height: 1.4;
}

.dos-insight-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dos-insight-metric-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
}

.dos-insight-metric-label,
.dos-insight-metric-note {
    color: rgba(255,255,255,0.56);
    font-size: 12px;
}

.dos-insight-metric-value {
    color: #fff;
    font-size: 1.25rem;
}


.dos-insight-audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.dos-insight-audience-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.dos-insight-audience-card strong {
    color: #fff;
    font-size: 0.98rem;
}

.dos-insight-audience-list {
    display: grid;
    gap: 10px;
}

.dos-insight-audience-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
}

.dos-insight-audience-item span:last-child {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 960px) {
    .dos-insight-summary-grid,
    .dos-insight-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dos-post-modal-header-top,
    .dos-insight-modal-header,
    .dos-insight-channel-head,
    .dos-upload-progress-top {
        flex-direction: column;
        align-items: stretch;
    }

    .dos-insight-modal-card {
        width: min(100%, 100%);
    }

    .dos-insight-modal-copy h3 {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }

    .dos-insight-modal-body {
        max-height: calc(100dvh - 220px);
    }

    .dos-insight-summary-grid,
    .dos-insight-metric-grid {
        grid-template-columns: 1fr;
    }

    .dos-insight-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dos-insight-tab-btn {
        width: 100%;
    }

    .dos-post-item-topline-actions {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
}

/* Insight modal refinements v1.9.8 */
.dos-insight-modal-card {
    width: min(1080px, 100%);
    max-height: min(860px, calc(100dvh - 32px));
}

.dos-insight-modal-copy {
    gap: 10px;
}

.dos-insight-modal-copy h3 {
    max-width: 880px;
    font-size: clamp(1.6rem, 2.8vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    word-break: break-word;
}

.dos-insight-modal-copy p {
    font-size: 0.98rem;
}

.dos-insight-modal-body {
    max-height: calc(100dvh - 245px);
    padding-right: 10px;
    gap: 18px;
}

.dos-insight-intro-card {
    display: grid;
    gap: 14px;
    padding: 20px 22px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: var(--dos-shadow-md);
}

.dos-insight-intro-row {
    display: grid;
    gap: 6px;
}

.dos-insight-intro-label {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dos-insight-intro-row p,
.dos-insight-file-meta {
    margin: 0;
    color: rgba(255,255,255,0.92);
    line-height: 1.75;
    font-size: 0.98rem;
    word-break: break-word;
}

.dos-insight-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dos-insight-summary-card {
    min-height: 118px;
    align-content: space-between;
    padding: 18px 18px 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.025) 100%);
}

.dos-insight-summary-value {
    font-size: 1.85rem;
    letter-spacing: -0.03em;
}

.dos-insight-tabs {
    padding: 5px;
}

.dos-insight-tab-btn {
    min-height: 42px;
    font-size: 13px;
    font-weight: 800;
}

.dos-insight-channel-list {
    gap: 16px;
}

.dos-insight-channel,
.dos-insight-channel.is-facebook,
.dos-insight-channel.is-instagram {
    --dos-insight-accent: 255, 122, 61;
    gap: 18px;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,122,61,0.11) 0%, rgba(255,255,255,0.025) 100%);
}

.dos-insight-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.dos-insight-toolbar-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.dos-insight-toolbar-copy strong {
    color: #fff;
    font-size: 1.08rem;
}

.dos-insight-toolbar-copy p {
    margin: 0;
    color: rgba(255,255,255,0.62);
    line-height: 1.6;
}

.dos-insight-stack {
    display: grid;
    gap: 16px;
}

.dos-insight-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(8,8,12,0.42);
}

.dos-insight-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dos-insight-section-head strong {
    color: #fff;
    font-size: 1rem;
}

.dos-insight-section-body {
    display: grid;
    gap: 14px;
}

.dos-insight-chart-card {
    padding: 0;
    border: 0;
    background: transparent;
}

.dos-insight-chart-head {
    align-items: flex-start;
}

.dos-insight-chart-head > div {
    display: grid;
    gap: 6px;
}

.dos-insight-chart-head strong {
    font-size: 1rem;
}

.dos-insight-chart-head span,
.dos-insight-chart-total {
    color: rgba(255,255,255,0.58);
    font-size: 13px;
}

.dos-insight-chart-shell {
    min-height: 220px;
    padding: 12px 0 0;
}

.dos-insight-chart-shell svg {
    height: 220px;
}

.dos-insight-chart-guides line {
    stroke: rgba(255,255,255,0.09);
    stroke-width: 1;
}

.dos-insight-chart-line {
    stroke-width: 3.5;
}

.dos-insight-chart-area {
    fill: rgba(255,122,61,0.12);
}

.dos-insight-chart-shell circle {
    fill: rgba(255,122,61,1);
    stroke: #121217;
    stroke-width: 3;
}

.dos-insight-chart-labels {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.dos-insight-chart-labels span {
    font-size: 12px;
}

.dos-insight-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dos-insight-metric-card {
    min-height: 112px;
    align-content: space-between;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.025) 100%);
}

.dos-insight-metric-value {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.dos-insight-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dos-insight-audience-card {
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
}

.dos-insight-audience-list {
    gap: 12px;
}

.dos-insight-audience-item {
    display: grid;
    gap: 8px;
}

.dos-insight-audience-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.dos-insight-audience-topline span:last-child {
    color: #fff;
    font-weight: 700;
}

.dos-insight-audience-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.dos-insight-audience-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255,122,61,0.82) 0%, rgba(255,122,61,1) 100%);
}

@media (max-width: 1100px) {
    .dos-insight-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .dos-insight-summary-grid,
    .dos-insight-metric-grid,
    .dos-insight-audience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dos-insight-summary-grid,
    .dos-insight-metric-grid,
    .dos-insight-audience-grid {
        grid-template-columns: 1fr;
    }

    .dos-insight-modal-copy h3 {
        font-size: clamp(1.3rem, 7vw, 1.9rem);
    }

    .dos-insight-toolbar,
    .dos-insight-section-head {
        flex-direction: column;
        align-items: stretch;
    }
}


/* Insight report page v1.10.1 */
.dos-post-insight-link.is-disabled {
    opacity: 0.48;
    pointer-events: none;
}

body.dos-route-insight-report {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 0, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 122, 61, 0.12), transparent 30%),
        var(--dos-bg);
}

.dos-report-page {
    min-height: 100vh;
    padding: 28px;
}

.dos-report-shell {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dos-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.dos-report-copy {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dos-report-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.dos-report-copy p {
    margin: 0;
    color: var(--dos-text-muted);
    max-width: 760px;
}

.dos-report-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.dos-report-card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dos-insight-report-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dos-insight-report-copy {
    max-width: 880px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dos-insight-report-meta-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dos-insight-report-subtitle {
    color: var(--dos-text-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.dos-insight-report-copy h2 {
    margin: 0;
    font-size: clamp(1.75rem, 2.7vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dos-insight-report-copy p {
    margin: 0;
    color: var(--dos-text-muted);
}

.dos-insight-report-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.dos-route-insight-report .dos-insight-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    body.dos-route-insight-report .dos-insight-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .dos-report-page {
        padding: 18px;
    }

    .dos-report-header,
    .dos-insight-report-head {
        flex-direction: column;
        align-items: stretch;
    }

    .dos-insight-report-meta-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .dos-report-actions {
        justify-content: flex-start;
    }

    .dos-report-card {
        padding: 18px;
    }

    body.dos-route-insight-report .dos-insight-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body.dos-route-insight-report .dos-insight-summary-grid {
        grid-template-columns: 1fr;
    }
}

.dos-library-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.dos-library-topbar.is-published-topbar {
    grid-template-columns: auto minmax(320px, 420px);
}

.dos-post-search {
    min-height: 54px;
    margin: 0;
}

.dos-library-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.56);
    font-size: 13px;
    font-weight: 500;
}

.dos-library-meta--published {
    margin-top: -4px;
}

.dos-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.dos-post-item-card.is-library-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 26px;
    min-height: 100%;
    align-content: start;
    background:
        radial-gradient(circle at top left, rgba(255,96,32,0.10), transparent 46%),
        linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.02) 100%);
}

.dos-post-item-card.is-library-card.is-clickable {
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dos-post-item-card.is-library-card.is-clickable:hover,
.dos-post-item-card.is-library-card.is-clickable:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255,122,61,0.26);
    box-shadow: 0 26px 44px rgba(0,0,0,0.22);
    outline: none;
}

.dos-post-item-card.is-library-card .dos-post-item-cover {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
}

.dos-post-item-card.is-library-card .dos-post-item-body {
    gap: 10px;
}

.dos-post-item-card.is-library-card .dos-post-item-name {
    font-size: 1.02rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
}

.dos-post-item-card.is-library-card .dos-post-item-caption {
    min-height: 72px;
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 4;
}

.dos-post-item-card.is-library-card .dos-post-item-meta {
    font-size: 12.5px;
    gap: 10px;
}

.dos-post-channel-pill.is-soft {
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.62);
}

.dos-library-sentinel {
    width: 100%;
    height: 10px;
}

.dos-loading-box.is-inline {
    margin-top: 16px;
    padding: 14px 18px;
}

.dos-platform-tabs {
    gap: 10px;
    flex-wrap: wrap;
}

.dos-platform-tabs .dos-settings-tab {
    min-width: 132px;
}

@media (max-width: 1180px) {
    .dos-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dos-library-topbar.is-published-topbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dos-library-topbar,
    .dos-library-topbar.is-published-topbar {
        grid-template-columns: 1fr;
    }

    .dos-library-grid {
        grid-template-columns: 1fr;
    }

    .dos-post-item-card.is-library-card .dos-post-item-cover {
        min-height: 0;
        aspect-ratio: 1 / 1;
    }
}

.dos-report-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 18px;
}

.dos-report-header {
    display: none;
}

@media (max-width: 760px) {
    .dos-report-topbar {
        flex-direction: column;
        align-items: stretch;
    }
}

.dos-insight-chart-trend-card {
    gap: 18px;
}

.dos-insight-chart-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dos-insight-metric-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.76);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.dos-insight-metric-toggle:hover,
.dos-insight-metric-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255,122,61,0.4);
    color: #fff;
    outline: none;
}

.dos-insight-metric-toggle.is-active {
    background: linear-gradient(180deg, rgba(255,122,61,0.18) 0%, rgba(255,255,255,0.06) 100%);
    border-color: rgba(255,122,61,0.4);
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
    color: #fff;
}

.dos-insight-metric-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--swatch, #ff8a2d);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
    flex: 0 0 auto;
}

.dos-insight-chart-shell.is-trend {
    min-height: 360px;
    padding: 8px 4px 0;
    border-radius: 26px;
    background: radial-gradient(circle at top center, rgba(255,138,45,0.08) 0%, rgba(8,8,12,0) 42%), linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
    overflow: hidden;
}

.dos-insight-chart-shell.is-trend svg {
    display: block;
    width: 100%;
    height: 360px;
    overflow: visible;
}

.dos-insight-chart-guides line {
    stroke: rgba(255,255,255,0.08);
    stroke-width: 1;
}

.dos-insight-chart-guides text,
.dos-insight-chart-xlabels text {
    fill: rgba(255,255,255,0.54);
    font-size: 12px;
    font-weight: 600;
}

.dos-insight-chart-line {
    vector-effect: non-scaling-stroke;
}

.dos-insight-chart-line--glow {
    opacity: 0.18;
}

.dos-insight-chart-area {
    opacity: 1;
}

.dos-insight-chart-series {
    filter: drop-shadow(0 16px 26px rgba(0,0,0,0.16));
}

.dos-insight-chart-series circle {
    stroke: rgba(10,10,14,0.95);
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}

.dos-insight-chart-note {
    margin-top: -2px;
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 767px) {
    .dos-insight-chart-toggle-row {
        gap: 8px;
    }

    .dos-insight-metric-toggle {
        padding: 9px 12px;
        font-size: 12px;
    }

    .dos-insight-chart-shell.is-trend {
        min-height: 300px;
    }

    .dos-insight-chart-shell.is-trend svg {
        height: 300px;
    }
}


.dos-insight-audience-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.dos-insight-audience-source {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dos-insight-audience-note {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.6;
}


.dos-insight-audience-card--empty {
    justify-content: flex-start;
}

.dos-insight-audience-empty {
    margin-top: 12px;
    min-height: 92px;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 14px 16px;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.dos-empty-state--audience-detail {
    margin-top: 16px;
}


/* Reporting dashboard v1.10.20 */
.dos-reporting-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px;
    min-height: calc(100vh - 286px);
    border-radius: inherit;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%),
        radial-gradient(circle at top left, rgba(255, 77, 0, 0.08), transparent 26%);
}

.dos-reporting-hero,
.dos-reporting-block,
.dos-reporting-step-card,
.dos-reporting-summary-card,
.dos-reporting-action-card,
.dos-reporting-metric-row {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.dos-reporting-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(17, 17, 21, 0.94) 0%, rgba(12, 12, 15, 0.98) 100%),
        radial-gradient(circle at top right, rgba(255, 77, 0, 0.14), transparent 28%);
}

.dos-reporting-copy {
    max-width: 820px;
}

.dos-reporting-kicker,
.dos-reporting-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dos-reporting-kicker::before,
.dos-reporting-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--dos-accent);
    box-shadow: 0 0 16px rgba(255, 77, 0, 0.36);
}

.dos-reporting-title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.dos-reporting-subtitle {
    margin: 14px 0 0;
    color: var(--dos-text-muted);
    line-height: 1.7;
    max-width: 72ch;
}

.dos-reporting-chip-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
    gap: 10px;
    max-width: 360px;
}

.dos-reporting-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dos-reporting-chip.is-live {
    border-color: rgba(255, 77, 0, 0.34);
    background: rgba(255, 77, 0, 0.14);
}

.dos-reporting-block {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(16, 16, 19, 0.92) 0%, rgba(11, 11, 13, 0.97) 100%);
}

.dos-reporting-block-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.dos-reporting-block-head h3 {
    margin: 0;
    font-size: 1.38rem;
    line-height: 1.2;
}

.dos-reporting-block-head p {
    margin: 0;
    max-width: 760px;
    color: var(--dos-text-muted);
    line-height: 1.7;
}

.dos-reporting-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dos-reporting-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dos-reporting-summary-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 184px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
}

.dos-reporting-summary-top,
.dos-reporting-action-head,
.dos-reporting-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dos-reporting-summary-label {
    color: var(--dos-text-muted);
    font-size: 0.95rem;
}

.dos-reporting-summary-value {
    font-size: clamp(1.65rem, 2.8vw, 2.3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.dos-reporting-summary-meta,
.dos-reporting-summary-note,
.dos-reporting-inline-note,
.dos-reporting-list,
.dos-reporting-metric-row span,
.dos-reporting-step-card p {
    color: var(--dos-text-muted);
}

.dos-reporting-summary-note,
.dos-reporting-inline-note,
.dos-reporting-step-card p {
    margin: 0;
    line-height: 1.65;
}

.dos-reporting-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dos-reporting-status.status-good,
.dos-reporting-status.status-winner,
.dos-reporting-status.status-scale {
    border-color: rgba(53, 193, 114, 0.3);
    background: rgba(53, 193, 114, 0.14);
    color: #9cf3b9;
}

.dos-reporting-status.status-warn,
.dos-reporting-status.status-hold,
.dos-reporting-status.status-test {
    border-color: rgba(255, 182, 72, 0.28);
    background: rgba(255, 182, 72, 0.14);
    color: #ffd48a;
}

.dos-reporting-status.status-bad,
.dos-reporting-status.status-kill {
    border-color: rgba(255, 98, 98, 0.3);
    background: rgba(255, 98, 98, 0.14);
    color: #ffb1b1;
}

.dos-reporting-status.status-neutral {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.76);
}

.dos-reporting-summary-card.status-good {
    border-color: rgba(53, 193, 114, 0.16);
    background: linear-gradient(180deg, rgba(53, 193, 114, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.dos-reporting-summary-card.status-warn {
    border-color: rgba(255, 182, 72, 0.16);
    background: linear-gradient(180deg, rgba(255, 182, 72, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.dos-reporting-summary-card.status-bad {
    border-color: rgba(255, 98, 98, 0.16);
    background: linear-gradient(180deg, rgba(255, 98, 98, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.dos-reporting-main-grid,
.dos-reporting-bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.dos-reporting-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

.dos-reporting-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: transparent;
}

.dos-reporting-table th,
.dos-reporting-table td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    font-size: 0.94rem;
    vertical-align: middle;
}

.dos-reporting-table th {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.02);
}

.dos-reporting-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.dos-reporting-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dos-reporting-table tbody tr:last-child td {
    border-bottom: 0;
}

.dos-reporting-inline-note {
    margin-top: 16px;
    padding: 15px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.dos-reporting-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dos-reporting-action-card {
    min-height: 198px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.dos-reporting-action-card.status-good {
    border-color: rgba(53, 193, 114, 0.16);
}

.dos-reporting-action-card.status-warn {
    border-color: rgba(255, 182, 72, 0.16);
}

.dos-reporting-action-card.status-bad {
    border-color: rgba(255, 98, 98, 0.16);
}

.dos-reporting-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.dos-reporting-action-head h4 {
    margin: 0;
    font-size: 1.04rem;
}

.dos-reporting-list {
    margin: 14px 0 0;
    padding-left: 18px;
}

.dos-reporting-list li + li {
    margin-top: 10px;
}

.dos-reporting-metric-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dos-reporting-metric-row {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.dos-reporting-metric-row strong {
    color: #fff;
    font-size: 1.02rem;
    text-align: right;
}

.dos-reporting-step-card {
    position: relative;
    min-height: 148px;
    padding: 20px 20px 20px 72px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
}

.dos-reporting-step-number {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 77, 0, 0.16);
    border: 1px solid rgba(255, 77, 0, 0.26);
    color: #fff;
    font-weight: 700;
}

@media (max-width: 1220px) {
    .dos-reporting-summary-grid,
    .dos-reporting-step-grid,
    .dos-reporting-metric-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .dos-reporting-action-grid,
    .dos-reporting-step-grid,
    .dos-reporting-metric-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .dos-reporting-shell {
        padding: 16px;
        gap: 18px;
    }

    .dos-reporting-hero,
    .dos-reporting-block {
        padding: 18px;
        border-radius: 20px;
    }

    .dos-reporting-hero,
    .dos-reporting-summary-top,
    .dos-reporting-action-head,
    .dos-reporting-metric-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dos-reporting-chip-group,
    .dos-reporting-copy,
    .dos-reporting-block-head p {
        max-width: none;
    }

    .dos-reporting-chip-group {
        justify-content: flex-start;
    }

    .dos-reporting-summary-grid,
    .dos-reporting-action-grid,
    .dos-reporting-step-grid,
    .dos-reporting-metric-list,
    .dos-reporting-bottom-grid {
        grid-template-columns: 1fr;
    }

    .dos-reporting-action-card,
    .dos-reporting-step-card,
    .dos-reporting-summary-card {
        min-height: auto;
    }

    .dos-reporting-table th,
    .dos-reporting-table td {
        padding: 12px 14px;
    }
}


.dos-waha-panel {
    display: grid;
    gap: 18px;
}

.dos-waha-hero,
.dos-waha-summary-card,
.dos-waha-qr-card,
.dos-waha-qr-copy {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(17, 17, 20, 0.92) 0%, rgba(10, 10, 12, 0.96) 100%);
    box-shadow: var(--dos-shadow-md);
}

.dos-waha-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.dos-waha-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--dos-text-soft);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dos-waha-hero h3,
.dos-waha-qr-copy h4 {
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.dos-waha-hero h3 {
    font-size: 1.35rem;
}

.dos-waha-hero p,
.dos-waha-qr-copy p,
.dos-waha-qr-copy small {
    margin: 8px 0 0;
    color: var(--dos-text-muted);
    line-height: 1.6;
}

.dos-waha-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
}

.dos-waha-status-pill[data-status="working"] {
    border-color: rgba(34, 197, 94, 0.26);
    background: rgba(34, 197, 94, 0.12);
    color: #d8ffe5;
}

.dos-waha-status-pill[data-status="scan-qr-code"],
.dos-waha-status-pill[data-status="starting"] {
    border-color: rgba(255, 183, 77, 0.24);
    background: rgba(255, 183, 77, 0.10);
    color: #ffe8c2;
}

.dos-waha-status-pill[data-status="failed"] {
    border-color: rgba(255, 77, 0, 0.30);
    background: rgba(255, 77, 0, 0.13);
    color: #ffd6ca;
}

.dos-waha-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dos-waha-summary-card {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.dos-waha-summary-card span {
    color: var(--dos-text-soft);
    font-size: 0.88rem;
}

.dos-waha-summary-card strong {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

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

.dos-waha-logout-btn {
    color: rgba(255, 255, 255, 0.82);
}

.dos-waha-qr-wrap {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 18px;
    align-items: stretch;
}

.dos-waha-qr-card {
    display: grid;
    place-items: center;
    min-height: 300px;
    padding: 18px;
}

.dos-waha-qr-card img {
    display: block;
    width: min(100%, 260px);
    height: auto;
    border-radius: 18px;
    background: #fff;
    padding: 12px;
}

.dos-waha-qr-placeholder {
    color: var(--dos-text-muted);
    text-align: center;
    line-height: 1.6;
    padding: 18px;
}

.dos-waha-qr-copy {
    display: grid;
    align-content: center;
    padding: 22px;
}

@media (max-width: 920px) {
    .dos-waha-hero,
    .dos-waha-qr-wrap {
        grid-template-columns: 1fr;
    }

    .dos-waha-hero {
        display: grid;
    }

    .dos-waha-summary-grid {
        grid-template-columns: 1fr;
    }

    .dos-waha-status-pill {
        justify-self: start;
    }
}


/* Royalle reporting command center v1.10.21 */
.dos-reporting-hero-command {
    min-height: 220px;
}

.dos-reporting-block-head-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

.dos-reporting-block-head-row > p {
    max-width: 820px;
    text-align: left;
}

.dos-reporting-summary-grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dos-reporting-summary-card {
    min-height: 168px;
    padding: 18px;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.dos-reporting-summary-label {
    font-size: 0.92rem;
}

.dos-reporting-summary-value {
    font-size: clamp(1.4rem, 2.1vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.dos-reporting-summary-meta {
    font-size: 0.92rem;
}

.dos-reporting-summary-note {
    font-size: 0.96rem;
    line-height: 1.58;
}

.dos-reporting-grid-2-1,
.dos-reporting-grid-2 {
    grid-template-columns: 1fr;
}

.dos-reporting-action-grid-single {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dos-reporting-action-card {
    min-height: 186px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dos-reporting-ads-table {
    min-width: 1320px;
}

.dos-reporting-daily-card {
    display: grid;
    gap: 18px;
}

.dos-reporting-daily-card h4,
.dos-reporting-two-col-list h5,
.dos-reporting-step-card h4 {
    margin: 0;
}

.dos-reporting-two-col-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dos-reporting-two-col-list > div {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.dos-reporting-metric-list-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dos-reporting-code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dos-reporting-codebox {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.dos-reporting-codebox span {
    color: var(--dos-text-muted);
    font-size: 0.84rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dos-reporting-codebox code,
.dos-reporting-inline-note code {
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.6;
    word-break: break-all;
}

.dos-reporting-step-card .dos-reporting-status {
    margin-top: 16px;
}

@media (max-width: 1400px) {
    .dos-reporting-action-grid-single {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .dos-reporting-summary-grid-six,
    .dos-reporting-step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .dos-reporting-block-head-row,
    .dos-reporting-two-col-list,
    .dos-reporting-code-grid,
    .dos-reporting-summary-grid-six,
    .dos-reporting-metric-list-two,
    .dos-reporting-action-grid-single,
    .dos-reporting-step-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}


/* Royalle reporting command center v1.10.22 */
.dos-page {
    width: calc(100% - 20px);
    max-width: none;
    margin: 10px auto;
}

.dos-shell {
    gap: 14px;
}

.dos-section-card {
    padding: 18px;
}

.dos-reporting-shell {
    padding: 18px;
}

.dos-reporting-block,
.dos-reporting-hero {
    border-radius: 22px;
}

.dos-reporting-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.05);
}

.dos-reporting-table-wrap::-webkit-scrollbar {
    height: 10px;
}

.dos-reporting-table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.dos-reporting-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.dos-reporting-ads-table {
    min-width: 1180px;
}

.dos-reporting-table th,
.dos-reporting-table td {
    padding: 12px 14px;
    font-size: 0.86rem;
    line-height: 1.35;
    white-space: nowrap;
}

.dos-reporting-table th {
    font-size: 0.74rem;
}

.dos-reporting-ads-table th:nth-child(1),
.dos-reporting-ads-table th:nth-child(2),
.dos-reporting-ads-table th:nth-child(3),
.dos-reporting-ads-table th:last-child,
.dos-reporting-ads-table td:nth-child(1),
.dos-reporting-ads-table td:nth-child(2),
.dos-reporting-ads-table td:nth-child(3),
.dos-reporting-ads-table td:last-child {
    white-space: normal;
}

.dos-reporting-inline-note {
    font-size: 0.95rem;
}

@media (min-width: 921px) {
    body.is-collapsed:not(.is-hover-expanded) .dos-main {
        min-width: 0;
    }
}

@media (max-width: 920px) {
    .dos-page {
        width: calc(100% - 12px);
        margin: 6px auto;
    }

    .dos-section-card,
    .dos-reporting-shell {
        padding: 14px;
    }
}


/* Meta Ad Account field helper */
.dos-meta-ad-account-save {
    width: 100%;
    min-height: 46px;
    margin-top: 2px;
}


/* Meta Ads access tools v1.10.23 */
.dos-meta-actions {
    display: grid;
    gap: 12px;
}

.dos-meta-actions .dos-ghost-btn {
    width: 100%;
}


/* Royalle WhatsApp owner report v1.10.23 */
.dos-waha-owner-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.018) 100%);
    box-shadow: var(--dos-shadow-md);
}

.dos-waha-owner-card h4 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
}

.dos-waha-owner-card p {
    margin: 8px 0 0;
    color: var(--dos-text-muted);
    line-height: 1.6;
}

.dos-waha-owner-field {
    margin: 0;
}


/* Royalle WhatsApp owner report v1.10.24 */
.dos-waha-connection-actions {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
}

.dos-waha-owner-card .dos-inline-message {
    margin-top: 4px;
}


/* UI policy v1.10.23: use toast only for action feedback. */
.dos-inline-message,
.dos-credential-message,
.dos-waha-message {
    display: none !important;
}

/* AI Video Studio v1.57 */
.dos-ai-video-shell {
    display: grid;
    gap: 22px;
    padding: 18px;
    border-style: solid;
}

.dos-ai-video-hero,
.dos-ai-video-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(17, 17, 21, 0.94) 0%, rgba(12, 12, 15, 0.98) 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.dos-ai-video-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 77, 0, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(17, 17, 21, 0.94) 0%, rgba(12, 12, 15, 0.98) 100%);
}

.dos-ai-video-copy {
    max-width: 860px;
}

.dos-ai-video-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 18px;
}

.dos-ai-video-card {
    padding: 22px;
}

.dos-ai-video-form {
    display: grid;
    gap: 16px;
}

.dos-ai-video-upload {
    display: block;
    cursor: pointer;
}

.dos-ai-video-upload-preview {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 260px;
    padding: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    overflow: hidden;
}

.dos-ai-video-upload-preview i {
    font-size: 34px;
    color: var(--dos-accent);
}

.dos-ai-video-upload-preview img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 18px;
}

.dos-ai-video-upload-preview small,
.dos-ai-video-field small,
.dos-ai-video-job-copy small,
.dos-ai-video-output-placeholder small {
    color: var(--dos-text-muted);
}

.dos-ai-video-field {
    display: grid;
    gap: 8px;
    color: var(--dos-text-muted);
    font-weight: 600;
}

.dos-ai-video-field input,
.dos-ai-video-field textarea,
.dos-ai-video-field select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    padding: 14px 16px;
    outline: 0;
    font: inherit;
}

.dos-ai-video-field textarea {
    resize: vertical;
    min-height: 140px;
}

.dos-ai-video-field select option {
    background: #111114;
    color: #fff;
}

.dos-ai-video-field input:focus,
.dos-ai-video-field textarea:focus,
.dos-ai-video-field select:focus {
    border-color: rgba(255, 77, 0, 0.42);
    box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.10);
}

.dos-ai-video-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dos-ai-video-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.dos-ai-video-actions button:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
}

.dos-ai-video-brief-card {
    align-self: start;
    display: grid;
    gap: 16px;
}

.dos-ai-video-brief-card h3 {
    margin: 0;
    font-size: 1.35rem;
}

.dos-ai-video-brief-card p {
    margin: 0;
    color: var(--dos-text-muted);
    line-height: 1.7;
}

.dos-ai-video-flow-list {
    display: grid;
    gap: 12px;
}

.dos-ai-video-flow-list div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.dos-ai-video-flow-list strong {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 77, 0, 0.16);
    border: 1px solid rgba(255, 77, 0, 0.26);
}

.dos-ai-video-flow-list span {
    color: var(--dos-text-muted);
}

.dos-ai-video-endpoint code {
    word-break: break-all;
}

.dos-ai-video-results-card {
    display: grid;
    gap: 18px;
}

.dos-ai-video-results {
    display: grid;
    gap: 18px;
}

.dos-ai-video-job {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.dos-ai-video-job-head,
.dos-ai-video-output-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dos-ai-video-job-head h4 {
    margin: 6px 0 0;
    font-size: 1.12rem;
}

.dos-ai-video-job-body {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: stretch;
}

.dos-ai-video-source {
    min-height: 150px;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--dos-text-muted);
}

.dos-ai-video-source img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dos-ai-video-job-copy {
    display: grid;
    gap: 8px;
    align-content: center;
}

.dos-ai-video-job-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
}

.dos-ai-video-output-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dos-ai-video-output {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
}

.dos-ai-video-output-media video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #07070a;
}

.dos-ai-video-output-placeholder {
    min-height: 220px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 18px;
    color: var(--dos-text-muted);
    text-align: center;
}

.dos-ai-video-output-placeholder i {
    color: var(--dos-accent);
    font-size: 26px;
}

.dos-ai-video-output-foot {
    padding: 12px;
}

.dos-ai-video-output-foot .dos-ghost-btn {
    min-height: 36px;
    border-radius: 12px;
    padding: 0 12px;
    text-decoration: none;
}

.dos-ai-video-empty {
    min-height: 160px;
}

@media (max-width: 1180px) {
    .dos-ai-video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .dos-ai-video-hero,
    .dos-ai-video-form-row,
    .dos-ai-video-job-body,
    .dos-ai-video-output-grid {
        grid-template-columns: 1fr;
    }

    .dos-ai-video-hero {
        display: grid;
    }

    .dos-ai-video-job-body {
        display: grid;
    }

    .dos-ai-video-source {
        min-height: 220px;
    }
}


/* AI Video Studio v1.10.58 - Drive + Content ready */
.dos-ai-video-output-media {
    position: relative;
}

.dos-ai-video-drive-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(12, 122, 57, 0.86);
    border: 1px solid rgba(117, 255, 178, 0.2);
    color: #d9ffe7;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.dos-ai-video-drive-badge.is-waiting {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--dos-text-muted);
}

.dos-ai-video-output-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.dos-ai-video-output.is-content-ready {
    border-color: rgba(117, 255, 178, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(117, 255, 178, 0.03);
}


/* AI Video mode update v160 */
.dos-ai-video-upload-secondary { min-height: 100%; }
.dos-inline-note { margin: 0 0 1rem; padding: 0.875rem 1rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: #c9c9d4; font-size: 0.95rem; line-height: 1.5; }
.dos-ai-video-upload-preview.is-required { box-shadow: inset 0 0 0 1px rgba(255,143,92,0.28); }
.dos-ai-video-job-body { align-items: flex-start; }
.dos-ai-video-job-body .dos-ai-video-source + .dos-ai-video-source { margin-left: 0.75rem; }


/* AI Video UI refinement v161 */
.dos-ai-video-field-full { width: 100%; }
.dos-ai-video-field-full select { width: 100%; }
.dos-ai-video-form-row { align-items: stretch; }
.dos-ai-video-prompt-toolbar { display: flex; align-items: center; gap: 0.875rem; margin-top: -0.35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.dos-ai-video-prompt-toolbar small { color: #9ea1b0; line-height: 1.5; }
.dos-ai-video-upload-secondary { display: none !important; }
.dos-inline-note { margin: 0 0 1rem; padding: 0.95rem 1rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: #c9c9d4; font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 920px) {
  .dos-ai-video-prompt-toolbar { align-items: flex-start; }
}


/* AI Video queue delete v162 */
.dos-ai-video-job-head { gap: 1rem; }
.dos-ai-video-job-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }
.dos-ai-video-delete-job { min-height: 38px; padding-inline: 1rem; border-color: rgba(255, 96, 96, 0.32) !important; color: #ffb5b5 !important; }
.dos-ai-video-delete-job:hover { border-color: rgba(255, 96, 96, 0.6) !important; background: rgba(255, 96, 96, 0.08) !important; }
@media (max-width: 860px) {
  .dos-ai-video-job-actions { justify-content: flex-start; }
}


/* AI Video progress UX v163 */
.dos-ai-video-progress-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(0,0,0,0.64); backdrop-filter: blur(10px); }
.dos-ai-video-progress-modal.is-open { display: flex; }
.dos-ai-video-progress-card { width: min(680px, 100%); border: 1px solid rgba(255,255,255,0.1); border-radius: 28px; background: #111114; box-shadow: 0 30px 80px rgba(0,0,0,0.55); padding: 1.25rem; color: #f6f6f7; }
.dos-ai-video-progress-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dos-ai-video-progress-top h3 { margin: 0.35rem 0 0; font-size: 1.35rem; }
.dos-ai-video-progress-close { width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: #fff; font-size: 1.4rem; cursor: pointer; }
.dos-ai-video-progress-headline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #d9d9e2; margin-bottom: 0.75rem; }
.dos-ai-video-progress-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 1rem; }
.dos-ai-video-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff5a18, #ff9f5a); transition: width .3s ease; }
.dos-ai-video-progress-list { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.dos-ai-video-progress-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.875rem 1rem; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }
.dos-ai-video-progress-item strong { color: #f1f1f3; }
.dos-ai-video-progress-item.is-completed { border-color: rgba(76,217,140,0.35); background: rgba(76,217,140,0.08); }
.dos-ai-video-progress-item.is-processing { border-color: rgba(255,117,42,0.35); background: rgba(255,117,42,0.08); }
.dos-ai-video-progress-item.is-failed { border-color: rgba(255,91,91,0.35); background: rgba(255,91,91,0.08); }
.dos-ai-video-progress-body p { color: #b7b7c3; line-height: 1.6; margin: 0 0 1rem; }
.dos-ai-video-job-actions .dos-ai-video-delete-job { white-space: nowrap; }


/* AI Video v166: video count selector */
.dos-ai-video-field select#dosAiVideoCount { width: 100%; }

/* Royalle AI Video v169: final flow compatible */


/* v176: Caption enhancer button in post composer */
.dos-caption-helper-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: -8px 0 28px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.5;
}

.dos-caption-enhance-btn {
    min-height: 48px;
    padding-inline: 24px;
    border-color: rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.dos-caption-enhance-btn:disabled {
    opacity: 0.68;
    cursor: wait;
}

@media (max-width: 720px) {
    .dos-caption-helper-row {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .dos-caption-enhance-btn {
        width: 100%;
    }
}
