/**
 * AssetCentral.css
 *
 * Central stylesheet for all AssetCentral UI:
 *   - Admin grid and sidebar (ProcessAssetCentral)
 *   - Picker modal (InputfieldAssetCentral)
 *   - Upload modal
 *   - Inputfield previews in page editor
 *
 * All selectors are prefixed with .ac- to avoid conflicts with PW admin styles.
 * Tweak variables in :root to adjust the visual theme globally.
 */

/* =============================================================================
   Variables
   ============================================================================= */

:root {
    --ac-color-primary: #4f46e5;
    --ac-color-primary-dark: #3730a3;
    --ac-color-danger: #dc2626;
    --ac-color-success: #16a34a;
    --ac-color-muted: #6b7280;
    --ac-color-border: #e5e7eb;
    --ac-color-bg: #f9fafb;
    --ac-color-bg-hover: #f3f4f6;
    --ac-color-text: #111827;
    --ac-color-text-light: #6b7280;

    --ac-sidebar-width: 220px;
    --ac-thumb-size: 160px;
    --ac-radius: 6px;
    --ac-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --ac-shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.18);
    --ac-transition: 0.15s ease;
    --ac-font: inherit;
}

/* =============================================================================
   Layout — admin wrap
   ============================================================================= */

.ac-wrap {
    display: flex;
    gap: 0;
    min-height: 600px;
    font-family: var(--ac-font);
    color: var(--ac-color-text);
}

/* =============================================================================
   Sidebar
   ============================================================================= */

.ac-sidebar {
    width: var(--ac-sidebar-width);
    flex-shrink: 0;
    border-right: 1px solid var(--ac-color-border);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
}

.ac-divider {
    border: none;
    border-top: 1px solid var(--ac-color-border);
    margin: 8px 0;
}

/* Smart view nav links */
.ac-nav {
    display: flex;
    flex-direction: column;
}

.ac-nav__item {
    display: block;
    padding: 7px 16px;
    font-size: 13px;
    color: var(--ac-color-text);
    text-decoration: none;
    border-radius: 0;
    transition: background var(--ac-transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-nav__item:hover {
    background: var(--ac-color-bg-hover);
}

.ac-nav__item.is-active {
    background: var(--ac-color-bg);
    color: var(--ac-color-primary);
    font-weight: 600;
    border-left: 3px solid var(--ac-color-primary);
    padding-left: 13px;
}

/* Folder tree */
.ac-folders {
    padding: 4px 0;
    font-size: 13px;
    max-height: 35vh;
    overflow-y: auto;
}

.ac-folder-item {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    cursor: pointer;
    color: var(--ac-color-text);
    text-decoration: none;
    transition: background var(--ac-transition);
    gap: 6px;
}

.ac-folder-item:hover {
    background: var(--ac-color-bg-hover);
}

.ac-folder-item.is-active {
    color: var(--ac-color-primary);
    font-weight: 600;
}

/* Indent levels — 1 per depth level */
.ac-folder-item[data-depth="1"] {
    padding-left: 28px;
}

.ac-folder-item[data-depth="2"] {
    padding-left: 40px;
}

/* + and ↑ indicators — no folder icon */
.ac-folder-item__toggle {
    flex-shrink: 0;
    width: 14px;
    font-size: 11px;
    color: var(--ac-color-muted);
    line-height: 1;
}

.ac-folder-item__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Collections — block/card style with color fill and shadow stack */
.ac-collections {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 35vh;
    overflow-y: auto;
}

.ac-collection-block {
    position: relative;
    cursor: pointer;
    border-radius: var(--ac-radius);
    transition: transform var(--ac-transition);
}

/* Shadow stack layers — offset blocks simulating a deck of cards */
.ac-collection-block::before,
.ac-collection-block::after {
    content: '';
    position: absolute;
    left: 4px;
    right: -4px;
    border-radius: var(--ac-radius);
    background: rgba(0, 0, 0, 0.08);
    z-index: -1;
}

.ac-collection-block::before {
    bottom: -4px;
    height: 100%;
}

.ac-collection-block::after {
    bottom: -8px;
    height: 100%;
    opacity: 0.5;
}

.ac-collection-block:hover {
    transform: translateY(-1px);
}

.ac-collection-block__inner {
    background: var(--ac-collection-color, #6366f1);
    border-radius: var(--ac-radius);
    padding: 8px 10px;
    color: #fff;
}

.ac-collection-block__name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-collection-block__desc {
    display: block;
    font-size: 11px;
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.ac-collection-block__count {
    font-size: 11px;
    opacity: 0.8;
}

.ac-collections__add {
    font-size: 12px;
    color: var(--ac-color-primary);
    background: none;
    border: 1px dashed var(--ac-color-border);
    border-radius: var(--ac-radius);
    padding: 6px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: border-color var(--ac-transition);
}

.ac-collections__add:hover {
    border-color: var(--ac-color-primary);
}

.ac-sidebar__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ac-color-text-light);
    font-weight: 600;
    font-family: inherit;
    /* button reset */
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0 16px 8px 16px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ac-sidebar__title:hover {
    color: var(--ac-color-text);
}

.ac-sidebar__chevron {
    font-size: 9px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
    line-height: 1;
}

.ac-sidebar-section.is-collapsed .ac-sidebar__chevron {
    transform: rotate(-90deg);
}

.ac-sidebar-section.is-collapsed .ac-sidebar-section__body {
    display: none;
}

.ac-sidebar__footer {
    margin-top: auto;
    padding: 12px 16px 4px;
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--ac-color-border);
}

.ac-link-subtle {
    font-size: 12px;
    color: var(--ac-color-muted);
    text-decoration: none;
}

.ac-link-subtle:hover {
    color: var(--ac-color-primary);
    text-decoration: underline;
}

/* =============================================================================
   Main content area
   ============================================================================= */

.ac-main {
    flex: 1;
    padding: 16px 20px;
    min-width: 0;
    background: var(--ac-color-bg);
}

/* Toolbar */
.ac-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ac-search {
    flex: 1;
    min-width: 180px;
}

.ac-search__input {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid var(--ac-color-border);
    border-radius: var(--ac-radius);
    font-size: 13px;
    background: #fff;
    color: var(--ac-color-text);
}

.ac-search__input:focus {
    outline: none;
    border-color: var(--ac-color-primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.ac-toolbar__controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ac-select {
    padding: 6px 10px;
    border: 1px solid var(--ac-color-border);
    border-radius: var(--ac-radius);
    font-size: 13px;
    background: #fff;
    color: var(--ac-color-text);
    cursor: pointer;
}

/* Type filter tabs */
.ac-type-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--ac-color-border);
    padding-bottom: 0;
}

.ac-type-tab {
    padding: 7px 14px;
    font-size: 13px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    color: var(--ac-color-muted);
    transition: color var(--ac-transition), border-color var(--ac-transition);
    white-space: nowrap;
}

.ac-type-tab:hover {
    color: var(--ac-color-text);
}

.ac-type-tab.is-active {
    color: var(--ac-color-primary);
    border-bottom-color: var(--ac-color-primary);
    font-weight: 600;
}

/* Asset count */
.ac-count {
    font-size: 12px;
    color: var(--ac-color-muted);
    margin: 0 0 10px;
}

/* =============================================================================
   Asset grid
   ============================================================================= */

.ac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--ac-thumb-size), 1fr));
    gap: 12px;
}

.ac-grid__item {
    background: #fff;
    border: 1px solid var(--ac-color-border);
    border-radius: var(--ac-radius);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow var(--ac-transition), transform var(--ac-transition);
    position: relative;
}

.ac-grid__item:hover {
    box-shadow: var(--ac-shadow);
    transform: translateY(-1px);
}

.ac-grid__item.is-selected {
    border-color: var(--ac-color-primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
}

.ac-grid__thumb {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    /* 3:2 aspect ratio */
    background: var(--ac-color-bg);
    overflow: hidden;
}

.ac-grid__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-grid__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: var(--ac-color-muted);
}

.ac-grid__meta {
    padding: 6px 8px;
}

.ac-grid__title {
    display: block;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ac-color-text);
}

.ac-grid__detail {
    display: block;
    font-size: 11px;
    color: var(--ac-color-muted);
    margin-top: 2px;
}

/* Starring system */
.ac-star-toggle {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #d1d5db;
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
    z-index: 10;
    line-height: 1;
    padding: 0 0 2px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ac-grid__item:hover .ac-star-toggle {
    opacity: 1;
}

.ac-star-toggle:hover {
    transform: scale(1.15);
    background: #fff;
    color: #9ca3af;
}

.ac-grid__item.is-starred .ac-star-toggle {
    opacity: 1;
    color: #fbbf24;
    /* Amber 400 */
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.ac-grid__item.is-starred .ac-star-toggle:hover {
    color: #f59e0b;
    /* Amber 500 */
}

/* Ensure starred items are visually distinct in list view too */
.ac-grid.is-list .ac-star-toggle {
    position: static;
    opacity: 1;
    background: none;
    box-shadow: none;
    width: auto;
    height: auto;
    font-size: 18px;
}

/* Badges */
.ac-badge {
    position: absolute;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    padding: 1px 4px;
    line-height: 1.4;
}

.ac-badge--usage {
    bottom: 6px;
    right: 6px;
    background: var(--ac-color-primary);
    color: #fff;
}

.ac-badge--provider {
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    text-transform: uppercase;
}

/* Empty state */
.ac-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--ac-color-muted);
    font-size: 14px;
}

/* List view (toggled by ui.js) */
.ac-grid.is-list {
    grid-template-columns: 1fr;
    gap: 4px;
}

.ac-grid.is-list .ac-grid__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.ac-grid.is-list .ac-grid__thumb {
    width: 48px;
    height: 48px;
    padding-top: 0;
    flex-shrink: 0;
    border-radius: 4px;
}

.ac-grid.is-list .ac-grid__meta {
    flex: 1;
    padding: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ac-grid__meta-main {
    flex: 1;
    min-width: 0;
}

/* List-only columns: collection pills + usage + date — hidden in grid view */
.ac-list-cols {
    display: none;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.ac-grid.is-list .ac-list-cols {
    display: flex;
}

/* Right-aligned usage + date block */
.ac-list-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    min-width: 100px;
}

.ac-list-usage {
    font-size: 11px;
    font-weight: 500;
    color: var(--ac-color-muted);
    white-space: nowrap;
}

.ac-list-date {
    font-size: 11px;
    color: var(--ac-color-muted);
    white-space: nowrap;
}

/* Collection chips — dots in grid view, named pills in list view */
.ac-list-colls {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Grid view: small colored dots below type label */
.ac-list-colls--grid {
    margin-top: 4px;
}

/* List view: pills with name — hidden in grid view */
.ac-list-colls--list {
    display: none;
}

.ac-grid.is-list .ac-list-colls--list {
    display: flex;
}

.ac-coll-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    line-height: 1.5;
}

/* Grid view dots: collapse pill to a small circle, hide text */
.ac-list-colls--grid .ac-coll-chip {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    flex-shrink: 0;
}

/* =============================================================================
   Pagination
   ============================================================================= */

.ac-pagination {
    display: flex;
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.ac-pagination__item {
    padding: 5px 10px;
    border: 1px solid var(--ac-color-border);
    border-radius: var(--ac-radius);
    font-size: 13px;
    color: var(--ac-color-text);
    text-decoration: none;
    background: #fff;
    transition: background var(--ac-transition);
}

.ac-pagination__item:hover {
    background: var(--ac-color-bg-hover);
}

.ac-pagination__item.is-active {
    background: var(--ac-color-primary);
    border-color: var(--ac-color-primary);
    color: #fff;
}

/* =============================================================================
   Buttons
   ============================================================================= */

.ac-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    border-radius: var(--ac-radius);
    border: 1px solid var(--ac-color-border);
    background: #fff;
    color: var(--ac-color-text);
    cursor: pointer;
    transition: background var(--ac-transition), border-color var(--ac-transition);
    white-space: nowrap;
}

.ac-btn:hover {
    background: var(--ac-color-bg-hover);
}

.ac-btn--primary {
    background: var(--ac-color-primary);
    border-color: var(--ac-color-primary);
    color: #fff;
}

.ac-btn--primary:hover {
    background: var(--ac-color-primary-dark);
    border-color: var(--ac-color-primary-dark);
}

.ac-btn--danger {
    background: var(--ac-color-danger);
    border-color: var(--ac-color-danger);
    color: #fff;
}

.ac-btn--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.ac-btn--icon {
    padding: 6px 8px;
    font-size: 14px;
}

.ac-btn--icon.is-active {
    background: var(--ac-color-bg);
    border-color: var(--ac-color-primary);
    color: var(--ac-color-primary);
}


/* Add new dropdown */
.ac-add-dropdown {
    position: relative;
}

.ac-add-dropdown__menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    border: 1px solid var(--ac-color-border);
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow-modal);
    list-style: none;
    padding: 4px 0;
    margin: 0;
    min-width: 220px;
    z-index: 200000;
}

.ac-add-dropdown__group-label {
    display: block;
    padding: 8px 14px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ac-color-text-muted);
    pointer-events: none;
    cursor: default;
}

.ac-add-dropdown__divider {
    height: 1px;
    background: var(--ac-color-border);
    margin: 4px 0;
}

.ac-add-dropdown__menu li button {
    display: block;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
    color: var(--ac-color-text);
    transition: background var(--ac-transition);
}

.ac-add-dropdown__menu li button:hover {
    background: var(--ac-color-bg-hover);
}

/* =============================================================================
   Modals
   ============================================================================= */

.ac-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ac-modal[hidden] {
    display: none;
}

.ac-modal__inner {
    background: #fff;
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow-modal);
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.ac-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: var(--ac-color-muted);
    z-index: 20;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.ac-modal__close:hover {
    background: #e5e7eb;
    color: var(--ac-color-text);
}

.ac-modal__body {
    padding: 24px;
    padding-top: 0;
}

/* Sticky modal header — title + meta, close button lives here */
.ac-modal__header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--ac-color-border);
    padding: 16px 60px 14px 24px;
    margin: 0 -24px 24px;
    z-index: 10;
}

.ac-modal__header .ac-edit-title {
    margin: 0 0 3px;
    font-size: 20px;
}

.ac-modal__header .ac-edit-meta-line {
    margin: 0;
    font-size: 12px;
}

.ac-edit-id {
    font-family: monospace;
    background: #f3f4f6;
    padding: 1px 5px;
    border-radius: 3px;
    user-select: all;
    font-size: 11px;
}

/* Split Modal Layout (Meta Left, Preview Right) */
.ac-edit-modal-split {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.ac-edit-modal-left {
    flex: 1;
    min-width: 0;
}

.ac-edit-modal-right {
    flex: 0 0 380px;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Stacked Modal Layout (Flex Blocks) */
.ac-edit-modal-stacked {
    display: block;
}

.ac-edit-modal-full {
    width: 100%;
}

/* Sticky footer — replaces per-layout action blocks */
.ac-edit-modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--ac-color-border);
    padding: 14px 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    z-index: 10;
    margin: 16px -24px -24px;
}

/* Push destructive action to far right */
.ac-edit-modal-footer #ac-delete-asset {
    margin-left: auto;
}

/* Specific styling for Code working area */
.ac-form .ac-inputfield[data-name="flex_code"] .ac-textarea {
    font-family: var(--ac-font-mono);
    min-height: 400px;
    background: #fdfdfd;
    border-color: #d1d5db;
    font-size: 13px;
    line-height: 1.6;
}

.ac-edit-preview {
    text-align: center;
    background: #f9fafb;
    padding: 0;
    border-radius: var(--ac-radius);
    border: 1px solid var(--ac-color-border);
}

.ac-edit-preview img,
.ac-edit-preview video {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    border-radius: 4px;
}

.ac-edit-preview--video,
.ac-edit-preview--audio {
    background: #111827;
}

.ac-edit-preview--embed {
    background: #000;
    border-radius: var(--ac-radius);
    overflow: hidden;
}

.ac-embed-preview-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.ac-embed-preview-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Transcript pane below preview in right column */
.ac-edit-transcript-pane {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
}

.ac-edit-transcript-pane .ac-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ac-color-text);
    margin-bottom: 6px;
    display: block;
}

.ac-label-note {
    color: #6b7280;
    font-weight: normal;
}

.ac-textarea--transcript {
    width: 100%;
    min-height: 320px !important;
    max-height: 600px;
    resize: vertical;
    font-family: var(--ac-font-mono, monospace);
    font-size: 12px;
    line-height: 1.55;
    box-sizing: border-box;
}

.ac-edit-notes-pane {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
}

.ac-textarea--notes {
    width: 100%;
    min-height: 120px;
    max-height: 280px;
    resize: vertical;
    font-size: 13px;
    line-height: 1.65;
    box-sizing: border-box;
    color: var(--ac-color-text);
}

/* Responsive: stack edit modal columns at narrow widths */
@media (max-width: 820px) {
    .ac-edit-modal-split {
        flex-direction: column;
    }

    .ac-edit-modal-left {
        width: 100%;
    }

    .ac-edit-modal-right {
        flex: none;
        width: 100%;
        position: static;
    }

    .ac-modal {
        padding: 12px;
        align-items: flex-start;
    }

    .ac-modal__inner {
        max-height: calc(100dvh - 24px);
    }

    .ac-modal__body {
        padding: 16px;
    }
}

.ac-edit-title {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--ac-color-text);
    line-height: 1.2;
}

/* Form Grid */
.ac-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}


.ac-form .ac-inputfield {
    margin-bottom: 0;
    /* Handled by grid gap */
}

/* Full-width fields in the grid */
.ac-form .ac-inputfield[data-name="title"],
.ac-form .ac-inputfield[data-name="description"],
.ac-form .ac-inputfield[data-name="flex_code"],
.ac-form .ac-inputfield[data-name="tags"] {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .ac-form {
        grid-template-columns: 1fr;
    }

    .ac-form .ac-inputfield {
        grid-column: span 1 !important;
    }
}

.ac-edit-meta-line {
    margin: 0 0 24px 0;
    font-size: 13px;
    color: var(--ac-color-muted);
}

.ac-edit-filename {
    font-family: monospace;
    font-size: 11px;
    background: #f3f4f6;
    padding: 2px 4px;
    border-radius: 3px;
}

/* =============================================================================
   Inputfield previews (page editor)
   ============================================================================= */

.ac-inputfield {
    border: 1px solid var(--ac-color-border);
    border-radius: var(--ac-radius);
    padding: 12px;
    background: #fff;
}

.ac-previews-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.ac-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--ac-color-border);
    border-radius: var(--ac-radius);
    background: var(--ac-color-bg);
    position: relative;
    max-width: 220px;
}

.ac-preview__thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.ac-preview__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ac-color-bg-hover);
    border-radius: 3px;
    font-size: 18px;
    flex-shrink: 0;
}

.ac-preview__info {
    min-width: 0;
}

.ac-preview__title {
    display: block;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.ac-preview__type {
    display: block;
    font-size: 11px;
    color: var(--ac-color-muted);
}

.ac-preview__remove {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--ac-color-muted);
    padding: 2px 4px;
    line-height: 1;
    flex-shrink: 0;
    margin-left: auto;
}

.ac-preview__remove:hover {
    color: var(--ac-color-danger);
}

.ac-inputfield__limit {
    font-size: 11px;
    color: var(--ac-color-muted);
    margin-left: 8px;
}

/* =============================================================================
   Upload / form elements in modals
   ============================================================================= */

.ac-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

.ac-form-group {
    margin-bottom: 0;
}

/* Full-width fields */
.ac-form-group[data-field-key="title"],
.ac-form-group[data-field-key="caption"],
.ac-form-group[data-field-key="description"],
.ac-form-group[data-field-key="primary_url"],
.ac-form-group[data-field-key="fallback_url"],
.ac-form-group[data-field-key="thumbnail_url"],
.ac-form-group[data-field-key="attribution"],
.ac-form-group[data-field-key="attribution_url"],
.ac-form-group[data-field-key="genre"],
.ac-form-group[data-field-key="custom_class"],
.ac-form-group[data-field-key="tags"],
.ac-form-group[data-field-key="flex_code"],
.ac-form-group[data-field-key="embed_code"],
.ac-form-group[data-field-key="transcript_text"] {
    grid-column: span 2;
}

.ac-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--ac-color-text);
}

.ac-input,
.ac-textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--ac-color-border);
    border-radius: var(--ac-radius);
    font-size: 13px;
    color: var(--ac-color-text);
    background: #fff;
    box-sizing: border-box;
}

.ac-input:focus,
.ac-textarea:focus {
    outline: none;
    border-color: var(--ac-color-primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.ac-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: monospace;
    font-size: 12px;
}

/* Drop zone */
.ac-dropzone {
    border: 2px dashed var(--ac-color-border);
    border-radius: var(--ac-radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--ac-transition), background var(--ac-transition);
    color: var(--ac-color-muted);
    font-size: 14px;
}

.ac-dropzone:hover,
.ac-dropzone.is-over {
    border-color: var(--ac-color-primary);
    background: rgba(79, 70, 229, 0.03);
}

.ac-dropzone__icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

/* Upload progress bar */
.ac-progress {
    height: 4px;
    background: var(--ac-color-border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.ac-progress__bar {
    height: 100%;
    background: var(--ac-color-primary);
    width: 0;
    transition: width 0.2s linear;
}

/* =============================================================================
   Wysiwyg insert-options panel
   ============================================================================= */

.ac-insert-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}

/* Thumbnail + title at top of options panel */
.ac-insert-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.ac-insert-preview img {
    width: 80px;
    height: 45px;
    /* 16:9 crop preview */
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.ac-insert-preview__title {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fieldset groupings */
.ac-insert-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0;
}

.ac-insert-fieldset legend {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    padding: 0 4px;
}

/* Variant radio list — two columns */
.ac-insert-variants {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    margin-top: 6px;
}

.ac-insert-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    cursor: pointer;
}

.ac-insert-opt input {
    cursor: pointer;
}

/* Alignment radios — single row */
.ac-insert-aligns {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    font-size: 13px;
}

.ac-insert-aligns label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Text inputs */
.ac-insert-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.ac-insert-optional {
    font-weight: 400;
    color: #9ca3af;
}

.ac-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
}

.ac-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

/* Checkbox */
.ac-insert-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.ac-insert-check input {
    cursor: pointer;
}

/* =============================================================================
   WYSIWYG output — figure, embed wrapper, download link
   These classes are emitted by AssetCentral.tinymce.js into page content.
   Put them in your site's main CSS as well so they render for visitors.
   ============================================================================= */

/* Base figure reset */
.ac-figure {
    margin: 1.5em 0;
    padding: 0;
}

.ac-figure img,
.ac-figure video,
.ac-figure audio {
    display: block;
    max-width: 100%;
    height: auto;
}

.ac-figure figcaption,
.ac-figcaption {
    margin-top: .5em;
    font-size: .875em;
    color: #64748b;
    line-height: 1.45;
}

.ac-figure--center figcaption,
.ac-figure--center .ac-figcaption {
    text-align: center;
}

.ac-caption-attr {
    font-style: italic;
    color: #94a3b8;
}

/* Long-form description below the figure */
.ac-asset-description {
    margin-top: .75em;
    font-size: .925em;
    line-height: 1.65;
    color: #374151;
}

.ac-asset-description p {
    margin: 0 0 .5em;
}

/* Alignment */
.ac-figure--left {
    float: left;
    margin-right: 1.5em;
    max-width: 50%;
}

.ac-figure--right {
    float: right;
    margin-left: 1.5em;
    max-width: 50%;
}

.ac-figure--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Clearfix after floated figures */
.ac-figure--left::after,
.ac-figure--right::after {
    content: '';
    display: table;
    clear: both;
}

/* Responsive 16:9 embed wrapper (ext_video, ext_audio) */
.ac-embed-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    overflow: hidden;
    border-radius: 4px;
    background: #111827;
}

.ac-embed-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Audio embeds (SoundCloud, Spotify) — fixed height, not 16:9 */
.ac-embed-wrapper--audio {
    padding-top: 166px;
    /* typical SoundCloud player height */
}

.ac-embed-wrapper--audio iframe {
    height: 166px;
}

/* Download links */
.ac-download {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    color: #4f46e5;
    text-decoration: underline;
    font-size: .9375em;
}

.ac-download:hover {
    color: #3730a3;
}

/* Download button variant */
.ac-download--btn {
    display: inline-flex;
    padding: .55em 1.1em;
    background: #4f46e5;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: .9375em;
    transition: background .15s;
}

.ac-download--btn:hover {
    background: #3730a3;
}

/* Alignment helpers for download links */
.ac-download--center {
    display: flex;
    justify-content: center;
}

.ac-download--right {
    display: flex;
    justify-content: flex-end;
}

/* Embed code wrapper */
.ac-embed {
    margin: 1.5em 0;
}

/* Type badge shown in insert panel when asset has no thumbnail */
.ac-insert-type-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
}

.ac-insert-preview__type {
    margin: 2px 0 0;
    font-size: 11px;
    color: #94a3b8;
}

/* =============================================================================
   Type-specific icons (text-based fallbacks — replace with SVG icons as desired)
   ============================================================================= */

.ac-icon--image::before {
    content: '🖼';
}

.ac-icon--svg::before {
    content: '◈';
}

.ac-icon--video::before {
    content: '▶';
}

.ac-icon--ext_video::before {
    content: '▶';
}

.ac-icon--audio::before {
    content: '♪';
}

.ac-icon--ext_audio::before {
    content: '♪';
}

.ac-icon--file::before {
    content: '📄';
}

.ac-icon--embed::before {
    content: '</>';
    font-family: monospace;
    font-style: normal;
}


.ac-icon--type-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================================================
   Elite Bulk Upload
   ============================================================================= */

.ac-upload-batch-header {
    background: var(--ac-color-bg-hover);
    border: 1px solid var(--ac-color-border);
    border-radius: var(--ac-radius);
    padding: 16px;
    margin-bottom: 20px;
}

.ac-upload-batch-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--ac-color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-upload-batch-title::before {
    content: '\2630';
    /* Hamburger/Stack icon */
    font-size: 16px;
}

.ac-upload-queue {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.ac-upload-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--ac-color-border);
    border-radius: var(--ac-radius);
    transition: border-color var(--ac-transition);
}

.ac-upload-card.is-editing {
    border-color: var(--ac-color-primary);
    box-shadow: 0 0 0 1px var(--ac-color-primary);
}

.ac-upload-card__thumb {
    width: 60px;
    height: 60px;
    background: var(--ac-color-bg-hover);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.ac-upload-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-upload-card__info {
    flex: 1;
    min-width: 0;
}

.ac-upload-card__name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-upload-card__meta-preview {
    font-size: 11px;
    color: var(--ac-color-muted);
    margin-top: 2px;
}

.ac-upload-card__actions {
    display: flex;
    gap: 6px;
}

/* Accordion style for individual meta */
.ac-upload-card__edit-panel {
    border-top: 1px solid var(--ac-color-border);
    padding: 12px 4px 4px;
    margin-top: 10px;
    width: 100%;
    display: none;
    /* Toggled by JS */
}

.ac-upload-card.is-editing .ac-upload-card__edit-panel {
    display: block;
}

/* Mini progress per card */
.ac-upload-card__progress {
    height: 3px;
    background: var(--ac-color-border);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
    display: none;
}

.ac-upload-card__progress-bar {
    height: 100%;
    background: var(--ac-color-primary);
    width: 0%;
    transition: width 0.2s ease;
}

.ac-upload-card.is-uploading .ac-upload-card__progress {
    display: block;
}

/* -------------------------------------------------------------------------
   Grid Sorting (Manual)
   ------------------------------------------------------------------------- */

.ac-grid__item.is-dragging {
    opacity: 0.4;
    transform: scale(0.95);
    background: var(--ac-bg-soft);
    border: 2px dashed var(--ac-primary);
    z-index: 10;
}

.ac-grid__item.is-over {
    border: 2px solid var(--ac-primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.ac-grid__item[draggable="true"] {
    cursor: grab;
}

.ac-grid__item[draggable="true"]:active {
    cursor: grabbing;
}

/* =============================================================================
   Card checkbox + ⋮ menu button overlay
   ============================================================================= */

.ac-card-check {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--ac-transition);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

.ac-grid__item:hover .ac-card-check,
.ac-grid__item.is-selected .ac-card-check,
.ac-select-mode .ac-grid__item .ac-card-check {
    opacity: 1;
}

.ac-grid__item.is-selected .ac-card-check {
    background: var(--ac-color-primary);
    border-color: var(--ac-color-primary);
}

/* List view: checkbox flows as a flex item to the left of the thumbnail */
.ac-grid.is-list .ac-card-check {
    position: static;
    background: transparent;
    border-color: #d1d5db;
    opacity: 0;
    transition: opacity var(--ac-transition);
}

.ac-grid.is-list .ac-grid__item:hover .ac-card-check,
.ac-grid.is-list .ac-grid__item.is-selected .ac-card-check,
.ac-grid.is-list.ac-select-mode .ac-grid__item .ac-card-check {
    opacity: 1;
}

.ac-grid.is-list .ac-grid__item.is-selected .ac-card-check {
    background: var(--ac-color-primary);
    border-color: var(--ac-color-primary);
}

/* Selected card ring */
.ac-grid__item.is-selected {
    outline: 3px solid var(--ac-color-primary);
    outline-offset: -3px;
    border-radius: var(--ac-radius);
}

/* ⋮ kebab button — overlays top-right of card in grid view, flows after thumb in list view */
.ac-card-menu-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: none;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ac-transition), background var(--ac-transition);
    padding: 0;
}

.ac-grid__item:hover .ac-card-menu-btn,
.ac-grid__item.is-selected .ac-card-menu-btn {
    opacity: 1;
}

.ac-card-menu-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* List view: kebab flows as a flex item after the thumbnail */
.ac-grid.is-list .ac-card-menu-btn {
    position: static;
    background: transparent;
    color: var(--ac-color-muted);
    border-radius: var(--ac-radius);
}

.ac-grid.is-list .ac-card-menu-btn:hover {
    background: var(--ac-color-bg-hover);
    color: var(--ac-color-text);
}


/* =============================================================================
   Card context menu popover
   ============================================================================= */

#ac-card-menu {
    position: fixed;
    z-index: 200002;
    background: #fff;
    border: 1px solid var(--ac-color-border);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
    min-width: 230px;
    max-width: 280px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--ac-color-text);
    animation: acMenuIn 0.12s ease;
}

@keyframes acMenuIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-4px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ac-menu-section {
    padding: 6px 14px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ac-color-muted);
}

.ac-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background var(--ac-transition);
    white-space: nowrap;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 13px;
    color: var(--ac-color-text);
    text-decoration: none;
}

.ac-menu-item:hover {
    background: var(--ac-color-bg-hover);
}

.ac-menu-item--danger {
    color: var(--ac-color-danger);
}

.ac-menu-item--danger:hover {
    background: #fef2f2;
}

.ac-menu-divider {
    border: none;
    border-top: 1px solid var(--ac-color-border);
    margin: 4px 0;
}

/* Assignment chips inside the card menu */
.ac-menu-chips {
    padding: 4px 14px 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ac-menu-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 7px;
    border-radius: 100px;
    font-size: 12px;
    background: var(--ac-color-bg);
    border: 1px solid var(--ac-color-border);
    color: var(--ac-color-text);
    max-width: 160px;
    overflow: hidden;
}

.ac-menu-chip__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ac-menu-chip__remove {
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.5;
    font-size: 14px;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    transition: opacity var(--ac-transition);
}

.ac-menu-chip__remove:hover {
    opacity: 1;
}

.ac-menu-chip--folder {
    border-color: #a5b4fc;
    background: #eef2ff;
    color: var(--ac-color-primary);
}

/* Inline sub-list inside card menu (folder tree / collection list) */
.ac-menu-sublist {
    max-height: 180px;
    overflow-y: auto;
    border-top: 1px solid var(--ac-color-border);
    border-bottom: 1px solid var(--ac-color-border);
    margin: 2px 0;
}

.ac-menu-sublist-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: background var(--ac-transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    color: var(--ac-color-text);
}

.ac-menu-sublist-item:hover {
    background: var(--ac-color-bg-hover);
}

.ac-menu-sublist-item.is-current {
    font-weight: 600;
    color: var(--ac-color-primary);
}

.ac-menu-sublist-item .ac-sublist-indent {
    display: inline-block;
    width: 12px;
    flex-shrink: 0;
}

.ac-menu-sublist-item .ac-sublist-check {
    width: 14px;
    flex-shrink: 0;
    color: var(--ac-color-primary);
}

/* Folder count badge in sidebar */
.ac-folder-item__count {
    margin-left: auto;
    font-size: 11px;
    color: var(--ac-color-muted);
    background: var(--ac-color-bg);
    border: 1px solid var(--ac-color-border);
    border-radius: 100px;
    padding: 1px 6px;
    line-height: 1.4;
    flex-shrink: 0;
}

/* =============================================================================
   Floating multi-select action bar
   ============================================================================= */

#ac-floating-bar {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(90px);
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
    z-index: 200000;
    background: #1f2937;
    color: #f9fafb;
    border-radius: 14px;
    padding: 10px 14px 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.14);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
}

#ac-floating-bar.is-visible {
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
    opacity: 1;
}

.ac-fbar-count {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    padding-right: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    margin-right: 4px;
}

.ac-fbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--ac-transition);
    white-space: nowrap;
}

.ac-fbar-btn--action {
    background: rgba(255, 255, 255, 0.12);
    color: #f9fafb;
}

.ac-fbar-btn--action:hover {
    background: rgba(255, 255, 255, 0.22);
}

.ac-fbar-btn--danger {
    background: rgba(220, 38, 38, 0.18);
    color: #fca5a5;
}

.ac-fbar-btn--danger:hover {
    background: rgba(220, 38, 38, 0.32);
}

.ac-fbar-btn--remove {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
}

.ac-fbar-btn--remove:hover {
    background: rgba(245, 158, 11, 0.32);
}

.ac-fbar-btn--clear {
    background: none;
    color: #9ca3af;
    padding: 6px 8px;
}

.ac-fbar-btn--clear:hover {
    color: #f9fafb;
}

/* Dropdown attached to floating bar buttons */
.ac-fbar-dropdown {
    position: fixed;
    z-index: 1300;
    background: #fff;
    border: 1px solid var(--ac-color-border);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    min-width: 200px;
    padding: 6px 0;
    animation: acMenuIn 0.12s ease;
}