:root {
    --acme-z-drawer-card-base: 1500;
    --acme-z-drawer-tabs: 1550;
}

.acme-dstack-root { position: fixed; inset: 0; pointer-events: none; z-index: var(--acme-z-drawer-card-base); }
.acme-dstack-card { position: fixed; display: block; overflow: hidden; background: var(--acme-color-bg-card, #fff); border-left: 1px solid var(--acme-color-border, #e2e8f0); box-shadow: var(--acme-shadow-lg, -10px 0 24px rgba(15, 23, 42, .12)); pointer-events: auto; transition: transform .22s ease, opacity .22s ease; animation: acme-dstack-in .22s ease both; }
.acme-dstack-card[aria-hidden="true"] { pointer-events: none; }
.acme-dstack-edge { position: fixed; padding: 0; border: 0; background: transparent; pointer-events: auto; cursor: pointer; }
.acme-dstack-tabs { position: fixed; display: flex; flex-direction: column; background: var(--acme-color-bg-base, #f8fafc); border: 1px solid var(--acme-color-border, #e2e8f0); pointer-events: auto; z-index: var(--acme-z-drawer-tabs); }
.acme-dstack-tabs-top { display: flex; flex-direction: column; flex: 0 0 64px; align-items: center; border-bottom: 1px solid var(--acme-color-border, #e2e8f0); }
.acme-dstack-more, .acme-dstack-collapse { width: 100%; height: 32px; padding: 0; border: 0; background: transparent; color: var(--acme-color-text-muted, #94a3b8); cursor: pointer; }
.acme-dstack-more:hover, .acme-dstack-collapse:hover { color: var(--acme-color-primary, #41b584); background: var(--acme-color-primary-light, #ecf8f3); }
.acme-dstack-tab-list { overflow-y: auto; scrollbar-width: none; }
.acme-dstack-tab { position: relative; display: flex; flex-direction: column; align-items: center; width: 46px; min-height: 86px; padding: 8px 0; border-bottom: 1px solid var(--acme-color-border, #e2e8f0); color: var(--acme-color-text-muted, #94a3b8); cursor: pointer; }
.acme-dstack-tab.is-active { background: #fff; color: var(--acme-color-text, #1e293b); box-shadow: inset -3px 0 0 var(--acme-dstack-type-color); font-weight: 700; }
.acme-dstack-dot { width: 7px; height: 7px; margin-bottom: 7px; border-radius: 50%; background: var(--acme-dstack-type-color); flex: 0 0 auto; }
.acme-dstack-label { max-height: 60px; overflow: hidden; font-size: 11px; line-height: 1; writing-mode: vertical-rl; text-orientation: mixed; white-space: nowrap; }
.acme-dstack-tab-close { position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; padding: 0; border: 0; background: transparent; color: inherit; opacity: 0; cursor: pointer; }
.acme-dstack-tab:hover .acme-dstack-tab-close, .acme-dstack-tab:focus-within .acme-dstack-tab-close { opacity: 1; }
.acme-dstack-menu { position: absolute; top: 62px; left: 46px; min-width: 100px; padding: 4px; background: #fff; border: 1px solid var(--acme-color-border, #e2e8f0); box-shadow: var(--acme-shadow-md, 0 4px 6px rgba(15, 23, 42, .08)); }
.acme-dstack-menu button { display: block; width: 100%; padding: 7px 10px; border: 0; background: transparent; text-align: left; white-space: nowrap; cursor: pointer; }
@keyframes acme-dstack-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; } }
@media (max-width: 991.98px) { .acme-dstack-card { transition: opacity .22s ease; } }
@media (prefers-reduced-motion: reduce) { .acme-dstack-card { transition: none; animation: none; } }
