:root {
    --dc-surface: #ffffff;
    --dc-muted-surface: #f7f8fb;
    --dc-soft-border: rgba(17, 24, 39, .08);
    --dc-soft-shadow: 0 12px 30px rgba(17, 24, 39, .07);
    --dc-radius-lg: 1.35rem;
    --dc-radius-md: 1rem;
}

.content-area { min-width: 0; }

.dc-ux-hero {
    border: 1px solid var(--dc-soft-border);
    border-radius: var(--dc-radius-lg);
    background:
        radial-gradient(circle at top left, rgba(111, 66, 193, .16), transparent 34rem),
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,249,252,.98));
    box-shadow: var(--dc-soft-shadow);
    overflow: hidden;
}

.dc-ux-search {
    border: 1px solid var(--dc-soft-border);
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    box-shadow: 0 8px 18px rgba(17,24,39,.05);
}

.dc-ux-search input {
    border: 0;
    outline: 0;
    width: 100%;
    min-width: 0;
    background: transparent;
}

.dc-quick-card,
.dc-file-card,
.dc-library-card {
    border: 1px solid var(--dc-soft-border);
    border-radius: var(--dc-radius-md);
    background: var(--dc-surface);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.dc-quick-card:hover,
.dc-file-card:hover,
.dc-library-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(17,24,39,.08);
    border-color: rgba(111,66,193,.22);
}

.dc-side-rail {
    position: sticky;
    top: 96px;
    border: 1px solid var(--dc-soft-border);
    border-radius: var(--dc-radius-lg);
    background: var(--dc-surface);
    padding: .75rem;
}

.dc-side-rail .nav-link {
    border-radius: .85rem;
    color: var(--bs-body-color);
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600;
}

.dc-side-rail .nav-link.active,
.dc-side-rail .nav-link:hover {
    background: rgba(111, 66, 193, .10);
    color: var(--bs-primary);
}

.dc-workspace-shell {
    border: 1px solid var(--dc-soft-border);
    border-radius: var(--dc-radius-lg);
    background: var(--dc-muted-surface);
    padding: 1rem;
}

.dc-toolbar {
    border: 1px solid var(--dc-soft-border);
    border-radius: var(--dc-radius-lg);
    background: var(--dc-surface);
    padding: 1rem;
}

.dc-folder-card {
    border: 1px solid var(--dc-soft-border) !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.dc-folder-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08);
    transform: translateY(-1px);
    border-color: rgba(111,66,193,.25) !important;
}

.dc-drop-zone {
    border: 1.5px dashed rgba(111,66,193,.35);
    border-radius: var(--dc-radius-lg);
    background: linear-gradient(135deg, rgba(111,66,193,.08), rgba(13,110,253,.04));
    padding: 1.25rem;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.dc-drop-zone.is-dragover {
    background: rgba(111,66,193,.13);
    border-color: rgba(111,66,193,.75);
    transform: scale(1.005);
}

.dc-upload-progress-panel {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    width: min(380px, calc(100vw - 2rem));
    border: 1px solid var(--dc-soft-border);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 20px 45px rgba(17,24,39,.16);
    padding: 1rem;
}

.dc-context-menu {
    position: fixed;
    z-index: 1090;
    min-width: 220px;
    border: 1px solid var(--dc-soft-border);
    border-radius: .9rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(17,24,39,.18);
    padding: .4rem;
}

.dc-context-menu button,
.dc-context-menu a {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: .55rem .7rem;
    border-radius: .65rem;
    color: var(--bs-body-color);
    display: block;
    text-decoration: none;
}

.dc-context-menu button:hover,
.dc-context-menu a:hover { background: rgba(111,66,193,.10); }

.dc-preview-frame {
    width: 100%;
    min-height: 70vh;
    border: 0;
    border-radius: .75rem;
    background: #f8f9fb;
}

.dc-admin-surface[data-admin-hidden="true"] { display: none !important; }

.dc-admin-surface {
    border-left: 4px solid rgba(111,66,193,.35);
}

.dc-enterprise-search-console {
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,248,252,.98));
    padding: 1rem;
}

.dc-search-ops-card,
.dc-search-ops-panel,
.dc-search-ops-row {
    border: 1px solid rgba(17,24,39,.08);
    border-radius: .9rem;
    background: #fff;
}

.dc-search-ops-card {
    box-shadow: 0 10px 24px rgba(17,24,39,.05);
}

.dc-search-ops-row {
    padding: .75rem;
}

.dc-density-compact .table td,
.dc-density-compact .table th { padding-top: .55rem; padding-bottom: .55rem; }

.dc-view-grid .dc-table-wrap table,
.dc-view-grid .dc-table-wrap thead { display: none; }

.dc-view-grid #documentItemsCards { display: grid !important; }
#documentItemsCards { display: none; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

@media (max-width: 991.98px) {
    .dc-side-rail { position: static; }
    .dc-workspace-shell { padding: .75rem; }
}

.dc-inline-breadcrumb {
    border-top: 1px solid var(--dc-soft-border);
    padding-top: .85rem;
}

.dc-file-content-row > .col-12 .card {
    min-height: 420px;
}

#documentUploadPanel[data-legacy-upload-panel="true"],
#documentLegacyNavigationPanel {
    display: none !important;
}

.dc-advanced-surface.d-none,
[data-advanced-only].d-none {
    display: none !important;
}

#documentLibraryStatus.alert-danger {
    border-color: rgba(220, 53, 69, .22);
    background: #fff5f5;
    color: #842029;
}

#dcUploadQuickDropZone {
    cursor: pointer;
}

@media (min-width: 1200px) {
    .dc-file-content-row > .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.dc-selection-bar {
    border: 1px solid rgba(111,66,193,.18);
    border-radius: var(--dc-radius-md);
    background: rgba(111,66,193,.06);
    padding: .85rem 1rem;
}

.dc-folder-card .btn-link { color: var(--bs-body-color); }
.dc-folder-card .btn-link:hover { color: var(--bs-primary); }

.dc-file-type-icon {
    display: inline-block;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(17,24,39,.12));
}

.dc-file-type-icon-sm { width: 34px; height: 40px; }
.dc-file-type-icon-md { width: 40px; height: 48px; }
.dc-file-type-icon-lg { width: 52px; height: 62px; }

.dc-file-card .dc-file-type-icon {
    transform: translateY(-1px);
}

.dc-online-edit-step {
    border: 1px solid var(--dc-soft-border);
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff, rgba(111,66,193,.04));
    padding: 1rem;
}

.dc-online-edit-step strong,
.dc-online-edit-step span {
    display: block;
}

.dc-online-edit-step span {
    color: var(--bs-secondary-color);
    font-size: .875rem;
    margin-top: .35rem;
}

/* Document Center online editor workspace usability */
body[data-page="document-online-editor"] {
    overflow: hidden;
    background: #f4f6fb;
}

body[data-page="document-online-editor"] .online-editor-shell,
body[data-page="document-online-editor"] .online-editor-container {
    height: 100vh;
    min-height: 100vh;
}

body[data-page="document-online-editor"] .online-editor-container {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .5rem .75rem .75rem !important;
}

body[data-page="document-online-editor"] .online-editor-topbar {
    flex: 0 0 auto;
    min-height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(17, 24, 39, .07);
    padding: .55rem .75rem;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 5;
}

body[data-page="document-online-editor"] .online-editor-title-block {
    min-width: 0;
    flex: 1 1 auto;
}

body[data-page="document-online-editor"] .online-editor-title-block h1 {
    max-width: min(52rem, 56vw);
}

body[data-page="document-online-editor"] .online-editor-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    flex-wrap: wrap;
}

body[data-page="document-online-editor"] .online-editor-status-chip,
body[data-page="document-online-editor"] .online-editor-presence-summary {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .22rem .55rem;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(17, 24, 39, .08);
    background: #f8fafc;
    color: #334155;
    white-space: nowrap;
}

body[data-page="document-online-editor"] .online-editor-status-chip.is-loading {
    background: #eef2ff;
    color: #4338ca;
    border-color: rgba(67, 56, 202, .18);
}

body[data-page="document-online-editor"] .online-editor-status-chip.is-saved {
    background: #ecfdf3;
    color: #166534;
    border-color: rgba(22, 101, 52, .18);
}

body[data-page="document-online-editor"] .online-editor-status-chip.is-warning {
    background: #fff7ed;
    color: #9a3412;
    border-color: rgba(154, 52, 18, .18);
}

body[data-page="document-online-editor"] .online-editor-status-chip.is-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: rgba(153, 27, 27, .18);
}

body[data-page="document-online-editor"] .online-editor-presence-summary {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, .18);
}

body[data-page="document-online-editor"] #onlineEditorStatus.online-editor-status-toast {
    position: fixed;
    top: 4.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1095;
    width: min(720px, calc(100vw - 2rem));
    margin-bottom: 0 !important;
    padding: .65rem .9rem;
    box-shadow: 0 18px 38px rgba(17, 24, 39, .18);
}

body[data-page="document-online-editor"] .online-editor-save-intelligence {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
    border-left: 4px solid rgba(13, 110, 253, .35) !important;
}

body[data-page="document-online-editor"] .online-editor-technical-panels {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    max-height: 34vh;
    overflow: auto;
}

body[data-page="document-online-editor"] .online-editor-technical-panels.d-none {
    display: none !important;
}

body[data-page="document-online-editor"] .online-editor-technical-panels .card {
    margin-bottom: 0 !important;
}

body[data-page="document-online-editor"] .online-editor-technical-panels .card-body {
    padding: .85rem;
}

body[data-page="document-online-editor"] #onlineEditorDiagnosticsDetails:not(.d-none) {
    max-height: 16rem;
    overflow: auto;
}

body[data-page="document-online-editor"] .online-editor-host {
    flex: 1 1 auto;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 1rem !important;
    background: #fff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, .12);
}

body[data-page="document-online-editor"] .online-editor-host iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border: 0;
}

body[data-page="document-online-editor"] .online-editor-presence-panel {
    flex: 0 0 auto;
    border: 1px solid rgba(13,110,253,.16);
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff, rgba(13,110,253,.04));
    padding: .55rem .75rem;
}

body[data-page="document-online-editor"] .online-editor-presence-users {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
}

body[data-page="document-online-editor"] .online-editor-presence-avatar {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    background: rgba(13,110,253,.10);
    border: 1px solid rgba(13,110,253,.18);
}

body[data-page="document-online-editor"] .online-editor-presence-event {
    font-size: .8125rem;
}

body[data-page="document-online-editor"] .online-editor-overlay {
    position: fixed;
    inset: 0;
    z-index: 1088;
    background: rgba(15, 23, 42, .32);
    backdrop-filter: blur(2px);
}

body[data-page="document-online-editor"] .online-editor-side-panel {
    position: fixed;
    top: .75rem;
    right: .75rem;
    bottom: .75rem;
    z-index: 1089;
    width: min(440px, calc(100vw - 1.5rem));
    border: 1px solid rgba(17, 24, 39, .10);
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 24px 60px rgba(17, 24, 39, .24);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body[data-page="document-online-editor"] .online-editor-side-panel.d-none {
    display: none !important;
}

body[data-page="document-online-editor"] .online-editor-side-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    padding-bottom: .85rem;
    margin-bottom: .85rem;
}

body[data-page="document-online-editor"] .online-editor-version-list {
    display: grid;
    gap: .75rem;
    overflow: auto;
    padding-right: .15rem;
}

body[data-page="document-online-editor"] .online-editor-version-card {
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: .9rem;
    background: #f8fafc;
    padding: .85rem;
}

@media (max-width: 991.98px) {
    body[data-page="document-online-editor"] .online-editor-container {
        padding: .5rem !important;
    }

    body[data-page="document-online-editor"] .online-editor-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    body[data-page="document-online-editor"] .online-editor-title-block h1 {
        max-width: calc(100vw - 2rem);
    }

    body[data-page="document-online-editor"] .online-editor-actions {
        width: 100%;
        justify-content: flex-start;
    }

    body[data-page="document-online-editor"] .online-editor-technical-panels {
        grid-template-columns: 1fr;
        max-height: 42vh;
    }

    body[data-page="document-online-editor"] #onlineEditorStatus.online-editor-status-toast {
        top: 6.75rem;
    }
}

.document-comment-card {
    background: var(--bs-body-bg);
}

.document-comment-card[data-comment-id] {
    scroll-margin-top: 6rem;
}

[data-phase78-comments-mentions="true"] textarea {
    min-height: 5rem;
}

.dc-comment-selected-document {
    display: inline-flex;
    flex-direction: column;
    gap: .18rem;
    max-width: 100%;
}

.dc-comment-selected-document .badge {
    align-self: flex-start;
    max-width: min(100%, 36rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-comment-guide-panel {
    background: linear-gradient(135deg, rgba(13, 110, 253, .09), rgba(111, 66, 193, .07));
}

.dc-comment-status-panel {
    background: linear-gradient(135deg, rgba(248, 250, 252, .96), rgba(239, 246, 255, .86));
}

.dc-comment-section {
    background: rgba(255, 255, 255, .96);
}

.dc-comment-advanced-details summary {
    cursor: pointer;
    color: #5b48c7;
}

.dc-comment-user-picker .dc-user-picker-results {
    top: calc(100% + .25rem);
}

/* Phase 79 — Collaborative Save & Version Intelligence */
.online-editor-save-intelligence {
    border-left: 4px solid rgba(13, 110, 253, .35) !important;
}

.document-version-save-intelligence {
    background: rgba(13, 110, 253, .04);
}

/* Phase 80 — Document Workspace Notifications & Watch Subscriptions */
.document-watch-subscriptions {
    border-left: 4px solid rgba(13, 110, 253, .35) !important;
}

.dc-watch-subscription-card {
    background: var(--bs-body-bg);
}

.dc-watch-subscription-card[data-watch-subscription-id] {
    scroll-margin-top: 6rem;
}


/* Phase 81 Online Editing Production Hardening */
.document-online-production-health {
    min-height: 4rem;
}

.dc-production-health-summary,
.dc-production-check {
    background: var(--bs-body-bg);
}

.dc-production-check {
    transition: border-color .15s ease, box-shadow .15s ease;
}

.dc-production-check:hover {
    box-shadow: 0 .25rem .75rem rgba(15, 23, 42, .06);
}

/* Phase 82 Document Collaboration Dashboard */
.document-collaboration-dashboard .dc-collaboration-metric {
    background: rgba(248, 249, 250, .72);
}

.document-collaboration-dashboard .dc-collaboration-widget {
    background: rgba(255, 255, 255, .86);
}

.document-collaboration-dashboard .dc-collaboration-row {
    background: rgba(248, 249, 250, .58);
}

/* Windows-style Document Center contextual action menu */
.dc-row-action-menu-trigger {
    min-width: 4.5rem;
}

.dc-context-menu[data-windows-style-context-menu="true"] {
    min-width: 18.75rem;
    max-width: min(22rem, calc(100vw - 1.5rem));
    max-height: none;
    overflow: visible;
    border-radius: .95rem;
    padding: .35rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
}

.dc-context-command-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .2rem;
    padding: .25rem .25rem .3rem;
}

.dc-context-command {
    min-height: 3.35rem;
    text-align: center !important;
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .22rem;
    font-size: .7rem;
    line-height: 1.05;
    border-radius: .7rem !important;
    padding: .35rem .25rem !important;
}

.dc-context-icon,
.dc-context-list-icon {
    color: #5b6472;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.dc-context-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.dc-context-list-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.dc-context-icon svg,
.dc-context-list-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-context-command.text-danger .dc-context-icon,
.dc-context-item.text-danger .dc-context-list-icon,
.dc-context-menu .text-danger .dc-context-icon,
.dc-context-menu .text-danger .dc-context-list-icon {
    color: var(--bs-danger);
}

.dc-context-ai-icon {
    border: 1px solid rgba(111, 66, 193, .28);
    border-radius: .35rem;
    color: #6f42c1;
    font-size: .58rem;
    font-weight: 800;
    line-height: 1;
}

.dc-context-selected {
    padding: .55rem .7rem;
    margin: .25rem .05rem;
    background: rgba(248,249,252,.78);
}

.dc-context-items {
    display: grid;
    gap: .08rem;
    padding: .15rem;
    overflow: visible;
}

.dc-context-item,
.dc-context-submenu-panel button {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--bs-body-color);
    display: flex !important;
    align-items: center;
    gap: .65rem;
    min-height: 2.12rem;
    padding: .4rem .55rem !important;
    border-radius: .62rem;
    text-align: left;
    text-decoration: none;
    font-size: .9rem;
    line-height: 1.15;
}

.dc-context-item:hover,
.dc-context-command:hover,
.dc-context-submenu-panel button:hover,
.dc-context-submenu:focus-within > .dc-context-item {
    background: rgba(111,66,193,.10);
}

.dc-context-chevron {
    margin-left: auto;
    color: #8b95a5;
    font-size: 1.05rem;
    line-height: 1;
}

.dc-context-submenu {
    position: relative;
}

.dc-context-submenu-panel {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + .15rem);
    min-width: 15.75rem;
    padding: .32rem;
    border: 1px solid var(--dc-soft-border);
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(17,24,39,.18);
    z-index: 1095;
}

.dc-context-submenu.dc-submenu-open-left > .dc-context-submenu-panel {
    left: auto;
    right: calc(100% + .28rem);
}

.dc-context-submenu:hover > .dc-context-submenu-panel,
.dc-context-submenu:focus-within > .dc-context-submenu-panel {
    display: grid;
    gap: .08rem;
}

.dc-context-menu [aria-disabled="true"],
.dc-context-menu button:disabled {
    opacity: .46;
    cursor: not-allowed;
}

.dc-context-action-modal .modal-body {
    background: var(--dc-muted-surface);
}

.dc-modal-embedded-panel {
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.dc-modal-embedded-panel > .card-body {
    padding: 1rem !important;
}

.dc-context-action-modal .dc-modal-embedded-panel .card-body {
    background: #fff;
    border-radius: 1rem;
}

@media (max-width: 767.98px) {
    .dc-context-menu[data-windows-style-context-menu="true"] {
        min-width: min(21rem, calc(100vw - 1.5rem));
        overflow: auto;
    }

    .dc-context-command-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dc-context-submenu-panel {
        position: static;
        margin: .2rem 0 .35rem 1rem;
        min-width: 0;
        box-shadow: none;
        border-style: dashed;
    }
}

.dc-ai-help-button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
}

.dc-ai-help-icon,
.dc-ai-guide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
}

.dc-ai-help-icon {
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid currentColor;
    font-size: .8rem;
}

.dc-ai-guide-icon {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    background: rgba(13, 110, 253, .12);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, .2);
}

.dc-ai-guide-panel {
    background: linear-gradient(135deg, rgba(13, 110, 253, .10), rgba(111, 66, 193, .08));
}

.dc-ai-friendly-preview {
    background: rgba(248, 250, 252, .92);
}

.dc-ai-advanced-details summary {
    cursor: pointer;
    color: #5b48c7;
}

.dc-user-picker {
    position: relative;
}

.dc-user-picker-results {
    position: absolute;
    z-index: 1100;
    left: 0;
    right: 0;
    top: calc(100% + .25rem);
    max-height: 16rem;
    overflow: auto;
    border: 1px solid var(--dc-soft-border);
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(17, 24, 39, .16);
    padding: .35rem;
}

.dc-user-picker-option {
    display: grid;
    width: 100%;
    gap: .12rem;
    border: 0;
    border-radius: .7rem;
    background: transparent;
    padding: .55rem .65rem;
    text-align: left;
}

.dc-user-picker-option:hover,
.dc-user-picker-option:focus {
    background: rgba(111, 66, 193, .10);
    outline: none;
}

.dc-user-picker-empty {
    padding: .65rem .75rem;
    color: #6b7280;
}

.dc-context-action-modal .modal-header {
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.1rem .9rem;
}

.dc-context-action-modal .modal-title {
    letter-spacing: -.01em;
}

.dc-modal-help-button,
.dc-modal-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dc-soft-border);
    background: #fff;
    color: var(--dc-ink, #1f2937);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dc-modal-help-button {
    min-height: 2rem;
    gap: .38rem;
    border-color: rgba(14, 165, 233, .48);
    border-radius: 999px;
    color: #0284c7;
    font-size: .82rem;
    font-weight: 600;
    padding: .34rem .62rem;
    white-space: nowrap;
}

.dc-modal-help-button:hover,
.dc-modal-help-button:focus-visible {
    background: rgba(14, 165, 233, .08);
    border-color: rgba(14, 165, 233, .78);
    box-shadow: 0 0 0 .18rem rgba(14, 165, 233, .14);
    color: #0369a1;
}

.dc-modal-help-icon,
.dc-modal-close-button svg {
    width: 1rem;
    height: 1rem;
}

.dc-modal-help-icon svg,
.dc-modal-close-button svg {
    display: block;
    fill: currentColor;
}

.dc-modal-icon-button {
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 auto;
    border-radius: .8rem;
    padding: 0;
}

.dc-modal-close-button {
    color: #64748b;
}

.dc-modal-close-button:hover,
.dc-modal-close-button:focus-visible {
    background: rgba(15, 23, 42, .06);
    border-color: rgba(100, 116, 139, .45);
    color: #0f172a;
    box-shadow: 0 0 0 .18rem rgba(100, 116, 139, .14);
}

.dc-ai-selected-document {
    display: inline-flex;
    flex-direction: column;
    gap: .18rem;
    max-width: 100%;
}

.dc-ai-selected-document .badge {
    align-self: flex-start;
    max-width: min(100%, 36rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-ai-record-card {
    background: #fff;
}

.dc-ai-progress-panel {
    background: linear-gradient(135deg, rgba(248, 250, 252, .96), rgba(239, 246, 255, .88));
}

.dc-ai-progress-track {
    height: .72rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, .22);
    overflow: hidden;
}

.dc-ai-progress-track .progress-bar {
    min-width: 2.6rem;
    font-size: .68rem;
    font-weight: 700;
    line-height: .72rem;
    border-radius: 999px;
    transition: width .25s ease;
}

.dc-ai-analysis-health {
    border-top: 1px solid rgba(148, 163, 184, .24);
    padding-top: .75rem;
}

.dc-ai-analysis-health strong {
    color: #0f172a;
    font-size: .82rem;
}

.dc-ai-mini-progress {
    height: .35rem;
    background: rgba(148, 163, 184, .20);
    border-radius: 999px;
    overflow: hidden;
}

.dc-ai-mini-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
    transition: width .25s ease;
}

.dc-ai-record-selected {
    border-color: rgba(99, 102, 241, .55) !important;
    box-shadow: 0 0 0 .16rem rgba(99, 102, 241, .12);
}

.dc-metadata-selected-document {
    display: inline-flex;
    flex-direction: column;
    gap: .18rem;
    max-width: 100%;
}

.dc-metadata-selected-document .badge {
    align-self: flex-start;
    max-width: min(100%, 36rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-metadata-guide-panel {
    background: linear-gradient(135deg, rgba(13, 110, 253, .09), rgba(111, 66, 193, .07));
}

.dc-metadata-status-panel {
    background: linear-gradient(135deg, rgba(248, 250, 252, .96), rgba(239, 246, 255, .86));
}

.dc-metadata-section {
    background: rgba(255, 255, 255, .96);
}

.dc-metadata-record-card {
    background: #fff;
}

.dc-metadata-advanced-details summary {
    cursor: pointer;
    color: #5b48c7;
}

.dc-metadata-user-picker .dc-user-picker-results {
    top: calc(100% + .25rem);
}

.dc-version-selected-document {
    display: inline-flex;
    flex-direction: column;
    gap: .18rem;
    max-width: 100%;
}

.dc-version-selected-document .badge {
    align-self: flex-start;
    max-width: min(100%, 36rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-version-guide-panel {
    background: linear-gradient(135deg, rgba(13, 110, 253, .09), rgba(111, 66, 193, .07));
}

.dc-version-status-panel {
    background: linear-gradient(135deg, rgba(248, 250, 252, .96), rgba(239, 246, 255, .86));
}

.dc-version-section,
.dc-version-record-card {
    background: rgba(255, 255, 255, .96);
}

.dc-version-advanced-details summary {
    cursor: pointer;
    color: #5b48c7;
}


.dc-workspace-mode-summary {
    border: 1px solid rgba(111,66,193,.14) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}

.dc-workspace-mode-summary[data-workspace-mode-panel="admin"] {
    background: linear-gradient(135deg, rgba(17,24,39,.04), rgba(111,66,193,.08));
}

.dc-workspace-admin {
    background: linear-gradient(135deg, rgba(17,24,39,.035), rgba(111,66,193,.055));
}

.dc-workspace-employee {
    background: var(--dc-muted-surface);
}

.dc-admin-tool-map {
    border: 1px solid rgba(17,24,39,.08) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,247,251,.98));
}

.dc-admin-tool-card {
    display: block;
    min-height: 112px;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 1rem;
    background: #fff;
    color: var(--bs-body-color);
    padding: 1rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.dc-admin-tool-card:hover,
.dc-admin-tool-card:focus {
    border-color: rgba(111,66,193,.32);
    box-shadow: 0 14px 32px rgba(17,24,39,.08);
    color: var(--bs-body-color);
    transform: translateY(-2px);
}

[data-workspace-mode-action="admin-center"],
[data-workspace-mode-action="file-space"] {
    white-space: nowrap;
}
