/*
 * ACE Core OS: the top bar's lists, 1:1 with the boards (Stage 1.16b, 18 Oct): 🔔 Notificări (P-BaraSus-Notif, shared with CPanel),
 * ✉ Mesaje (P-BaraSus), ⚡ Automatizări (P-BaraSus-Auto), + Adaugă (P-BaraSus-Adauga) and the Ctrl K window (P-BaraSus-Cauta).
 * Loaded after ace-panel-ui.css; colours, shadows and radii only from the theme's tokens. The top bar's row, the account menu and the
 * phone drawer are not here (ace-panel-ui.css).
 */

/* ------------------------------------------------------------------ the panels under ✉ 🔔 ⚡ (440 px, corners of 20) */
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-panel {
    position: absolute;
    top: 100%;
    right: auto;
    left: -128px;
    z-index: 60;
    display: block;
    width: 440px;
    max-width: calc(100vw - 24px);
    margin-top: 10px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--acs-border);
    border-radius: var(--acs-radius);
    background: var(--acs-surface);
    color: var(--acs-text);
    box-shadow: var(--acs-shadow-strong);
    text-align: left;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-head {
    display: flex;
    align-items: center;
    gap: var(--acs-space-2);
    padding: 16px 18px 12px;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-head > strong {
    font-size: var(--acs-fs-title);
    font-weight: 600;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-head-end {
    margin: 0 0 0 auto;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-link,
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-quick .ace-tb-link {
    padding: 4px 2px;
    border: 0;
    background: none;
    color: var(--acs-primary-text);
    font: inherit;
    font-size: var(--acs-fs-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: var(--acs-radius-pill);
    font-size: var(--acs-fs-xs);
    font-weight: 600;
    white-space: nowrap;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-pill.is-bad { background: var(--acs-danger-soft); color: var(--acs-danger); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-pill.is-info { background: var(--acs-primary-soft); color: var(--acs-primary-text); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-pill.is-warn { background: var(--acs-warning-soft); color: var(--acs-warning); }

/* The rows: the tile (or the initials), the title and its line, the time and the dot on the right; the unread ones on a soft blue. */
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-list {
    max-height: min(64vh, 480px);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    border-top: 1px solid var(--acs-border);
    list-style: none;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--acs-border);
    background: var(--acs-surface);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item:last-child {
    border-bottom: 0;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item.is-unread,
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item.is-chosen {
    background: color-mix(in srgb, var(--acs-primary-soft) 55%, var(--acs-surface));
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item[hidden] {
    display: none;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item-body {
    min-width: 0;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item-title {
    display: block;
    color: var(--acs-text);
    font-size: var(--acs-fs);
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item.is-unread .ace-tb-item-title {
    font-weight: 600;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb a.ace-tb-item-title:hover {
    color: var(--acs-primary-text);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item-text {
    margin: 3px 0 0;
    color: var(--acs-muted);
    font-size: var(--acs-fs-sm);
    line-height: 1.4;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item.is-message .ace-tb-item-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item-line {
    display: flex;
    align-items: center;
    gap: var(--acs-space-2);
    min-width: 0;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item-line .ace-tb-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-tag {
    flex: 0 0 auto;
    padding: 1px 7px;
    border: 1px solid var(--acs-border);
    border-radius: var(--acs-radius-pill);
    background: var(--acs-surface);
    color: var(--acs-text);
    font-size: var(--acs-fs-xs);
    font-weight: 600;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 1px;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-time {
    color: var(--acs-muted);
    font-size: var(--acs-fs-xs);
    white-space: nowrap;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--acs-danger-solid);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-dot.is-blue {
    background: var(--acs-primary);
}

/* The tile of a notification's kind: the security in amber, a backup in green, an update in blue, an error in red, a page in grey. */
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-tile {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--acs-radius-sm);
    background: var(--acs-surface-2);
    color: var(--acs-muted);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-tile svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-tile.is-security { background: var(--acs-warning-soft); color: var(--acs-warning); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-tile.is-backup { background: var(--acs-success-soft); color: var(--acs-success); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-tile.is-update { background: var(--acs-primary-soft); color: var(--acs-primary-text); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-tile.is-error { background: var(--acs-danger-soft); color: var(--acs-danger); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-tile.is-page,
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-tile.is-info { border: 1px solid var(--acs-border); background: var(--acs-surface); }

/* The initials of whoever wrote, on a solid round of one of five tones (as Mesaje). */
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-initials {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--acs-primary);
    color: var(--acs-on-primary);
    font-size: var(--acs-fs-xs);
    font-weight: 600;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-initials.is-tone-1 { background: var(--acs-success); color: var(--acs-surface); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-initials.is-tone-2 { background: var(--acs-warning); color: var(--acs-surface); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-initials.is-tone-3 { background: var(--acs-info); color: var(--acs-surface); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-initials.is-tone-4 { background: var(--acs-muted); color: var(--acs-surface); }

/* The outlined actions of a row, in the colour of its kind; the accented one soft blue; the primary one solid. */
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-action {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 5px 12px;
    border: 1px solid var(--acs-border-strong);
    border-radius: var(--acs-radius-pill);
    background: var(--acs-surface);
    color: var(--acs-text);
    font: inherit;
    font-size: var(--acs-fs-xs);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-action.is-security { border-color: var(--acs-warning); color: var(--acs-warning); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-action.is-update { border-color: var(--acs-primary-text); color: var(--acs-primary-text); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-action.is-error { border-color: var(--acs-danger); color: var(--acs-danger); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-action.is-accent { border-color: transparent; background: var(--acs-primary-soft); color: var(--acs-primary-text); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-action.is-primary { border-color: transparent; background: var(--acs-primary); color: var(--acs-on-primary); }
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-action:focus-visible,
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item:focus-visible {
    outline: 2px solid var(--acs-focus);
    outline-offset: 2px;
}

/* A message's buttons show once it is chosen. */
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item.is-message {
    cursor: pointer;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item-actions {
    display: none;
    gap: var(--acs-space-2);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item.is-chosen .ace-tb-item-actions {
    display: flex;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-item-actions form,
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-card-actions form {
    margin: 0;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-filters {
    display: flex;
    gap: 6px;
    padding: 0 18px 12px;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-filter {
    padding: 5px 12px;
    border: 1px solid var(--acs-border);
    border-radius: var(--acs-radius-pill);
    background: var(--acs-surface);
    color: var(--acs-text);
    font: inherit;
    font-size: var(--acs-fs-xs);
    font-weight: 600;
    cursor: pointer;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-filter.is-active {
    border-color: transparent;
    background: var(--acs-primary);
    color: var(--acs-on-primary);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-empty {
    margin: 0;
    padding: 18px;
    border-top: 1px solid var(--acs-border);
    color: var(--acs-muted);
    font-size: var(--acs-fs-sm);
    text-align: center;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-empty[hidden] {
    display: none;
}

/* ⚡: the sections, the approvals' cards, the rule that stopped, the day's line. */
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-section {
    margin: 0;
    padding: 8px 18px 6px;
    color: var(--acs-muted);
    font-size: var(--acs-fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-card,
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-alert {
    margin: 0 12px 8px;
    padding: 12px 14px;
    border: 1px solid var(--acs-border);
    border-radius: var(--acs-radius-sm);
    background: var(--acs-surface-2);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-card > strong,
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-alert strong {
    display: block;
    font-size: var(--acs-fs);
    font-weight: 600;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-card > small,
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-alert small {
    display: block;
    margin-top: 3px;
    color: var(--acs-muted);
    font-size: var(--acs-fs-xs);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--acs-space-2);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-card-actions.is-start {
    justify-content: flex-start;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-alert {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    border-color: var(--acs-count-amber);
    background: var(--acs-warning-soft);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-alert-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--acs-warning);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-today {
    margin: 4px 18px 0;
    padding: 10px 0 2px;
    border-top: 1px solid var(--acs-border);
    color: var(--acs-muted);
    font-size: var(--acs-fs-sm);
}

/* The foot: the main link wide and soft blue, the second as a link, ⚙ round. */
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--acs-border);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb.ace-ui-bell .ace-tb-foot .ace-tb-main {
    flex: 1 1 auto;
    padding: 10px 14px;
    border-radius: var(--acs-radius-pill);
    background: var(--acs-primary-soft);
    color: var(--acs-primary-text);
    font-size: var(--acs-fs);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-foot .ace-tb-link {
    color: var(--acs-text);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-round {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--acs-border);
    border-radius: 50%;
    background: var(--acs-surface);
    color: var(--acs-text);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-round svg {
    width: 18px;
    height: 18px;
}

/* ------------------------------------------------------------------ + Adaugă: 300 px, two groups, the place on the right */
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-ui-quick-add .ace-tb-quick {
    display: block;
    width: 300px;
    min-width: 0;
    max-width: calc(100vw - 24px);
    margin-top: 10px;
    padding: 8px;
    border-radius: var(--acs-radius);
    box-shadow: var(--acs-shadow-strong);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-quick .ace-tb-group,
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette .ace-tb-group {
    margin: 0;
    padding: 10px 10px 4px;
    color: var(--acs-muted);
    font-size: var(--acs-fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-ui-quick-add .ace-tb-quick a {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--acs-radius-sm);
    color: var(--acs-text);
    font-size: var(--acs-fs);
    font-weight: 400;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-ui-quick-add .ace-tb-quick a .acp-svg-icon {
    color: var(--acs-primary-text);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-quick .ace-tb-place {
    color: var(--acs-muted);
    font-size: var(--acs-fs-xs);
    white-space: nowrap;
}

/* ------------------------------------------------------------------ Ctrl K: 640 px in the middle, corners of 22, the page dimmed */
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 96px 16px 16px;
    background: var(--acs-backdrop);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette[hidden] {
    display: none;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-window {
    display: flex;
    flex-direction: column;
    width: 640px;
    max-width: 100%;
    max-height: calc(100vh - 128px);
    overflow: hidden;
    border: 1px solid var(--acs-border);
    border-radius: calc(var(--acs-radius) + 2px);
    background: var(--acs-surface);
    color: var(--acs-text);
    box-shadow: var(--acs-shadow-strong);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--acs-border);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-lens svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--acs-primary-text);
    stroke-width: 2.2;
    stroke-linecap: round;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-field input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--acs-text);
    font: inherit;
    font-size: var(--acs-fs-title);
    box-shadow: none;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette kbd {
    padding: 2px 7px;
    border: 1px solid var(--acs-border);
    border-radius: 6px;
    background: var(--acs-surface-2);
    color: var(--acs-text);
    font: inherit;
    font-size: var(--acs-fs-xs);
    font-weight: 600;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-list {
    flex: 1 1 auto;
    padding: 6px 8px 8px;
    overflow-y: auto;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border-radius: var(--acs-radius-sm);
    color: var(--acs-text);
    text-decoration: none;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-item.is-active {
    background: var(--acs-primary-soft);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-item strong {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: var(--acs-fs);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-item small {
    color: var(--acs-muted);
    font-size: var(--acs-fs-xs);
    white-space: nowrap;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--acs-surface-2);
    color: var(--acs-text);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-item.is-action .ace-tb-palette-icon {
    background: var(--acs-primary);
    color: var(--acs-on-primary);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-enter {
    display: none;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-item.is-active .ace-tb-palette-enter {
    display: inline-block;
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-empty {
    margin: 0;
    padding: 18px 10px;
    color: var(--acs-muted);
    font-size: var(--acs-fs-sm);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-help {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 10px 20px;
    border-top: 1px solid var(--acs-border);
    color: var(--acs-muted);
    font-size: var(--acs-fs-xs);
}
:root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-hint {
    margin-left: auto;
}

/* On a phone: the panels across the screen under the bar; the Ctrl K window from the top. */
@media (max-width: 640px) {
    :root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb .ace-tb-panel {
        position: fixed;
        top: 64px;
        right: 8px;
        left: 8px;
        width: auto;
        max-width: none;
        margin-top: 0;
    }
    :root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-ui-quick-add .ace-tb-quick {
        width: auto;
    }
    :root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette {
        padding: 12px 8px;
    }
    :root[data-ace-theme] body[data-ace-theme-scope="acpanel"] .ace-tb-palette-hint {
        display: none;
    }
}
