/* Sakan 3D workbench v7: one canvas, one contextual workbench, no opposing drawers. */

html body.designer-shell {
    --studio-green-950: #101d15;
    --studio-green-900: #18271d;
    --studio-green-800: #223528;
    --studio-green-700: #304634;
    --studio-gold: #d1aa43;
    --studio-gold-soft: #ead184;
    --studio-paper: #fffdf7;
    --studio-paper-2: #f6f1e6;
    --studio-paper-3: #ece4d4;
    --studio-ink: #172019;
    --studio-muted: #556158;
    --studio-success: #315d3a;
    --studio-line: rgba(48, 70, 52, .18);
    --studio-line-strong: rgba(209, 170, 67, .42);
    --studio-danger: #a64f3a;
    --studio-dock-height: clamp(230px, 28dvh, 290px);
    --studio-dock-gap: 12px;
    --studio-toolbar-height: 52px;
}

html body.designer-shell .designer-workbench-v7 {
    --studio-dock-bottom: var(--studio-dock-gap);
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: var(--studio-ink) !important;
    background: var(--studio-green-950) !important;
    isolation: isolate;
}

html[data-theme="dark"] body.designer-shell {
    --studio-paper: #1a281f;
    --studio-paper-2: #213126;
    --studio-paper-3: #2a3b2e;
    --studio-ink: #f5f0e4;
    --studio-muted: #b5bcb5;
    --studio-success: #91c59c;
    --studio-line: rgba(234, 209, 132, .18);
}

html body.designer-shell,
html body.designer-shell > main {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

html body.designer-shell .designer-workbench-v7 *,
html body.designer-shell .designer-workbench-v7 *::before,
html body.designer-shell .designer-workbench-v7 *::after {
    box-sizing: border-box;
}

html body.designer-shell .designer-workbench-v7 button,
html body.designer-shell .designer-workbench-v7 input,
html body.designer-shell .designer-workbench-v7 select {
    font: inherit;
    letter-spacing: 0;
}

html body.designer-shell .designer-workbench-v7 button {
    touch-action: manipulation;
}

html body.designer-shell .designer-workbench-v7 .room-workspace {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--studio-green-950) !important;
}

/* Canvas workspace */
html body.designer-shell .designer-workbench-v7 .room-stage {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--studio-green-950) !important;
}

html body.designer-shell #moveOnlyButton {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 2147483647;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 11px;
    border: 1px solid var(--studio-line-strong);
    border-radius: 50%;
    background: var(--studio-paper);
    color: var(--studio-ink);
    cursor: pointer;
    touch-action: manipulation;
}

html body.designer-shell #moveOnlyButton[aria-pressed="true"] {
    background: var(--studio-gold);
    color: var(--studio-green-950);
    border-color: var(--studio-gold);
}

html body.designer-shell #moveOnlyButton svg {
    width: 24px;
    height: 24px;
}

html body.designer-shell #moveOnlyButton:focus-visible {
    outline: 2px solid var(--studio-gold);
    outline-offset: 3px;
}

@media (hover: hover) {
    html body.designer-shell #moveOnlyButton:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        right: 0;
        bottom: 58px;
        width: max-content;
        max-width: 240px;
        padding: 7px 10px;
        border: 1px solid var(--studio-line);
        border-radius: 5px;
        background: var(--studio-paper);
        color: var(--studio-ink);
        font-size: 12px;
        pointer-events: none;
    }
}

html body.designer-shell .designer-move-only .designer-canvas { cursor: grab; }
html body.designer-shell .designer-move-only .designer-canvas:active { cursor: grabbing; }
html body.designer-shell .designer-move-only [aria-disabled="true"] { cursor: not-allowed; }
html body.designer-shell #designer.designer-move-only [aria-disabled="true"],
html body.designer-shell #designer.designer-move-only [aria-disabled="true"] * {
    touch-action: none !important;
    user-select: none;
    -webkit-touch-callout: none;
    cursor: not-allowed !important;
}

html body.designer-shell .designer-workbench-v7 .designer-canvas {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    touch-action: none !important;
}

html body.designer-shell .designer-workbench-v7 [hidden][hidden] {
    display: none !important;
}

html body.designer-shell .designer-workbench-v7 [style*="display: none"],
html body.designer-shell .designer-workbench-v7 [style*="display:none"] {
    display: none !important;
}

/* Global command bar */
html body.designer-shell .designer-workbench-v7 .stage-toolbar {
    position: fixed !important;
    inset: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) auto max(10px, env(safe-area-inset-left)) !important;
    min-width: 0 !important;
    transform: none !important;
    z-index: 90 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    height: var(--studio-toolbar-height) !important;
    min-height: var(--studio-toolbar-height) !important;
    max-height: var(--studio-toolbar-height) !important;
    margin: 0 !important;
    padding: 6px !important;
    overflow: visible !important;
    border: 1px solid rgba(209, 170, 67, .24) !important;
    border-radius: 8px !important;
    background: rgba(24, 39, 29, .94) !important;
    color: #fffdf7 !important;
    box-shadow: 0 8px 24px rgba(4, 10, 6, .20) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    direction: rtl !important;
}

html body.designer-shell .designer-workbench-v7 .designer-brand-chip {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    z-index: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 6px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 3px 8px !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: var(--studio-gold-soft) !important;
    text-decoration: none !important;
    background: transparent !important;
}

html body.designer-shell .designer-workbench-v7 .designer-brand-chip img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
}

html body.designer-shell .designer-workbench-v7 .designer-brand-chip span {
    color: var(--studio-ink) !important;
    font-size: .86rem !important;
    font-weight: 800 !important;
}

html body.designer-shell .designer-workbench-v7 .stage-actions {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    direction: rtl !important;
}

html body.designer-shell .designer-workbench-v7 .stage-actions > button,
html body.designer-shell .designer-workbench-v7 .stage-actions > a {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 5px !important;
    overflow: hidden !important;
    border: 1px solid rgba(234, 209, 132, .22) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, .035) !important;
    color: #fffdf7 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

html body.designer-shell .designer-workbench-v7 .stage-actions > button:hover,
html body.designer-shell .designer-workbench-v7 .stage-actions > a:hover,
html body.designer-shell .designer-workbench-v7 .stage-actions > button:focus-visible,
html body.designer-shell .designer-workbench-v7 .stage-actions > a:focus-visible {
    border-color: var(--studio-gold) !important;
    background: rgba(209, 170, 67, .14) !important;
}

html body.designer-shell .designer-workbench-v7 #resetRoomButton {
    width: auto !important;
    max-width: none !important;
    padding-inline: 10px !important;
    font-size: .72rem !important;
}

html body.designer-shell .designer-workbench-v7 .designer-save-icon,
html body.designer-shell .designer-workbench-v7 .designer-projects-icon svg {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    fill: currentColor !important;
}

html body.designer-shell .designer-workbench-v7 .stage-ai-zone {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    margin-inline-start: auto !important;
    overflow: visible !important;
}

html body.designer-shell .designer-workbench-v7 .ai-render-controls {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    overflow: visible !important;
}

html body.designer-shell .designer-workbench-v7 .ai-single-split {
    display: inline-flex !important;
    align-items: stretch !important;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    border: 1px solid rgba(209, 170, 67, .32) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

html body.designer-shell .designer-workbench-v7 .ai-render-button,
html body.designer-shell .designer-workbench-v7 .ai-side-picker,
html body.designer-shell .designer-workbench-v7 .ai-credit-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .ai-render-button {
    padding: 5px 12px !important;
    border: 1px solid rgba(209, 170, 67, .38) !important;
    background: var(--studio-gold) !important;
    color: #172019 !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
}

html body.designer-shell .designer-workbench-v7 .ai-side-picker {
    width: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border: 0 !important;
    background: rgba(255,255,255,.07) !important;
}

html body.designer-shell .designer-workbench-v7 .ai-side-picker select {
    position: absolute !important;
    width: 36px !important;
    height: 38px !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

html body.designer-shell .designer-workbench-v7 .ai-credit-badge {
    padding-inline: 9px !important;
    border: 1px solid rgba(209, 170, 67, .26) !important;
    background: rgba(209, 170, 67, .09) !important;
    color: var(--studio-gold-soft) !important;
    font-size: .64rem !important;
}

html body.designer-shell .designer-workbench-v7 .ai-queue-progress[hidden],
html body.designer-shell .designer-workbench-v7 .ai-render-previews[hidden],
html body.designer-shell .designer-workbench-v7 .ai-mobile-result-dock[hidden] {
    display: none !important;
}

/* One contextual workbench, always anchored to the bottom. */
html body.designer-shell .designer-workbench-v7 .workbench-dock {
    position: absolute !important;
    right: var(--studio-dock-gap) !important;
    bottom: var(--studio-dock-bottom) !important;
    left: var(--studio-dock-gap) !important;
    z-index: 80 !important;
    display: grid !important;
    grid-template-rows: 48px minmax(0, 1fr) !important;
    width: auto !important;
    max-width: 1180px !important;
    height: var(--studio-dock-height) !important;
    min-height: var(--studio-dock-height) !important;
    max-height: var(--studio-dock-height) !important;
    margin-inline: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--studio-line-strong) !important;
    border-radius: 8px !important;
    background: var(--studio-paper) !important;
    color: var(--studio-ink) !important;
    box-shadow: 0 18px 48px rgba(4, 10, 6, .30) !important;
    transform: none !important;
    transition: none !important;
    contain: layout paint style;
}

html body.designer-shell .designer-workbench-v7 .room-workspace.workbench-dock-collapsed .workbench-dock {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-dock-bar {
    position: relative !important;
    z-index: 3 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) 34px !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--studio-line) !important;
    background: var(--studio-green-900) !important;
    color: #fffdf7 !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-mode-tabs {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    height: 38px !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-mode-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 92px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 5px 12px !important;
    border: 1px solid rgba(234, 209, 132, .18) !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #f8f2e5 !important;
    font-size: .78rem !important;
    font-weight: 750 !important;
    cursor: pointer !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-mode-tab:hover,
html body.designer-shell .designer-workbench-v7 .workbench-mode-tab:focus-visible {
    border-color: rgba(209, 170, 67, .58) !important;
    background: rgba(209, 170, 67, .10) !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-mode-tab.is-active {
    border-color: var(--studio-gold) !important;
    background: var(--studio-gold) !important;
    color: #172019 !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-mode-icon {
    display: inline-grid !important;
    place-items: center !important;
    width: 18px !important;
    height: 18px !important;
    font-size: .92rem !important;
    line-height: 1 !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-context {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-context strong,
html body.designer-shell .designer-workbench-v7 .workbench-context span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-context strong {
    flex: 0 1 auto !important;
    color: #fffdf7 !important;
    font-size: .78rem !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-context span {
    flex: 1 1 auto !important;
    color: #b9c2ba !important;
    font-size: .66rem !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-dock-close {
    display: inline-grid !important;
    place-items: center !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(234, 209, 132, .24) !important;
    border-radius: 6px !important;
    background: rgba(255,255,255,.04) !important;
    color: #fffdf7 !important;
    font-size: 1.05rem !important;
    cursor: pointer !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-dock-close[hidden] {
    display: none !important;
}

html body.designer-shell .designer-workbench-v7 .room-workspace.workbench-dock-collapsed .workbench-dock-bar {
    grid-template-columns: auto minmax(0, 1fr) !important;
    border-bottom-color: transparent !important;
}

html body.designer-shell .designer-workbench-v7 .workbench-dock-body {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--studio-paper) !important;
}

/* Panels are workbench modes, not drawers. */
html body.designer-shell .designer-workbench-v7 .workbench-dock .room-panel {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 9px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--studio-paper) !important;
    color: var(--studio-ink) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    contain: layout paint style;
}

html body.designer-shell .designer-workbench-v7 .room-workspace.library-collapsed .workbench-dock .library-panel,
html body.designer-shell .designer-workbench-v7 .room-workspace.properties-collapsed .workbench-dock .properties-panel {
    display: none !important;
}

html body.designer-shell .designer-workbench-v7 .panel-title {
    min-width: 0 !important;
    margin: 0 !important;
}

html body.designer-shell .designer-workbench-v7 .panel-title .eyebrow {
    margin: 0 0 2px !important;
    color: var(--studio-muted) !important;
    font-size: .58rem !important;
}

html body.designer-shell .designer-workbench-v7 .panel-title h2 {
    margin: 0 !important;
    color: var(--studio-ink) !important;
    font-size: .92rem !important;
    line-height: 1.2 !important;
}

/* Library mode: project defaults in one lane, assets in a two-row horizontal rail. */
html body.designer-shell .designer-workbench-v7 .library-panel {
    display: grid !important;
    grid-template-columns: minmax(250px, 285px) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 10px !important;
}

html body.designer-shell .designer-workbench-v7 .library-panel > .panel-title {
    display: none !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-content: start !important;
    gap: 6px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 7px !important;
    background: var(--studio-paper-2) !important;
    scrollbar-width: thin !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title {
    grid-column: 1 / -1 !important;
    display: block !important;
    margin: 0 0 1px !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title strong {
    display: block !important;
    color: var(--studio-ink) !important;
    font-size: .7rem !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title small {
    display: none !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field {
    display: grid !important;
    grid-template-rows: auto 34px !important;
    gap: 3px !important;
    min-width: 0 !important;
    margin: 0 !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field:last-child {
    grid-column: 1 / -1 !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field > span {
    overflow: hidden !important;
    color: var(--studio-muted) !important;
    font-size: .55rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-rows: 34px minmax(0, 1fr) !important;
    gap: 7px !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__tabs {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 1px 3px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__tabs::-webkit-scrollbar,
html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail::-webkit-scrollbar {
    display: none !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__tab {
    flex: 0 0 auto !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 4px 10px !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 6px !important;
    background: var(--studio-paper-2) !important;
    color: var(--studio-ink) !important;
    font-size: .62rem !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__tab.is-active {
    border-color: var(--studio-gold) !important;
    background: var(--studio-gold) !important;
    color: #172019 !important;
    font-weight: 800 !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__viewport {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail {
    display: grid !important;
    grid-template-rows: repeat(2, minmax(52px, 1fr)) !important;
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 180px !important;
    align-content: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 1px 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__card {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 7px !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 6px !important;
    overflow: hidden !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 7px !important;
    background: var(--studio-paper-2) !important;
    color: var(--studio-ink) !important;
    text-align: start !important;
    scroll-snap-align: start !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__card:hover,
html body.designer-shell .designer-workbench-v7 .library-catalog-v2__card:focus-visible {
    border-color: var(--studio-gold) !important;
    background: var(--studio-paper-3) !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__thumb {
    display: grid !important;
    place-items: center !important;
    width: 64px !important;
    height: 46px !important;
    min-width: 64px !important;
    overflow: hidden !important;
    border-radius: 5px !important;
    background: #f7f4ec !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__image,
html body.designer-shell .designer-workbench-v7 .library-catalog-v2__fallback,
html body.designer-shell .designer-workbench-v7 .library-catalog-v2__fallback svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__copy {
    display: grid !important;
    align-content: center !important;
    gap: 2px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__copy strong,
html body.designer-shell .designer-workbench-v7 .library-catalog-v2__copy span,
html body.designer-shell .designer-workbench-v7 .library-catalog-v2__copy small {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__copy strong {
    font-size: .66rem !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__copy span,
html body.designer-shell .designer-workbench-v7 .library-catalog-v2__copy small {
    color: var(--studio-muted) !important;
    font-size: .53rem !important;
}

/* Settings mode: navigation lane + one focused editor. */
html body.designer-shell .designer-workbench-v7 .properties-panel {
    display: block !important;
}

html body.designer-shell .designer-workbench-v7 .properties-panel-scroll {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 8px 10px !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

html body.designer-shell .designer-workbench-v7 .properties-panel-scroll > .panel-title {
    display: none !important;
}

html body.designer-shell .designer-workbench-v7 .property-tab-groups {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    display: block !important;
    gap: 5px !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 6px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 7px !important;
    background: var(--studio-paper-2) !important;
    scrollbar-width: thin !important;
}

html body.designer-shell .designer-workbench-v7 .property-tab-group:not([hidden]) {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 4px !important;
    margin: 0 0 5px !important;
}

html body.designer-shell .designer-workbench-v7 .property-tab-group-title {
    display: block !important;
    padding-block: 7px !important;
    color: var(--studio-muted) !important;
    font-size: .52rem !important;
    line-height: 1.1 !important;
}

html body.designer-shell .designer-workbench-v7 .properties-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

html body.designer-shell .designer-workbench-v7 .properties-tabs button {
    flex: 1 1 calc(50% - 5px) !important;
    min-width: 94px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 6px !important;
    background: var(--studio-paper) !important;
    color: var(--studio-ink) !important;
    font-size: .68rem !important;
    line-height: 1.25 !important;
}

html body.designer-shell .designer-workbench-v7 .properties-tabs button.active {
    border-color: var(--studio-gold) !important;
    background: var(--studio-green-800) !important;
    color: #fffdf7 !important;
    box-shadow: inset 0 -2px 0 var(--studio-gold) !important;
}

/* Property editor v2 is intentionally isolated from the legacy designer form CSS. */
html body.designer-shell .designer-workbench-v7 .property-editor-v2 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 7px !important;
    background: var(--studio-paper-2) !important;
    scrollbar-width: thin !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2,
html body.designer-shell .designer-workbench-v7 .property-editor-v2 * {
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2[hidden] {
    display: none !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid:not([hidden]),
html body.designer-shell .designer-workbench-v7 .property-editor-v2 .wall-room-dimensions > .control-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: max-content !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: start !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .property-body-fields:not([hidden]) {
    margin-top: 12px !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .wall-room-dimensions {
    display: grid !important;
    gap: 9px !important;
    margin: 0 0 12px !important;
    padding: 10px !important;
    border: 1px solid var(--studio-line-strong) !important;
    border-radius: 6px !important;
    background: var(--studio-paper) !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .wall-room-dimensions > .control-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .mini-heading {
    margin: 0 !important;
    color: var(--studio-ink) !important;
    font-size: .7rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid > label:not([hidden]):not([style*="display: none"]):not([style*="display:none"]),
html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid > .wall-rgb-color-field:not([hidden]),
html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid > .partition-wall-orientation:not([hidden]),
html body.designer-shell .designer-workbench-v7 .property-editor-v2 .wall-room-dimensions label:not([hidden]) {
    position: static !important;
    display: grid !important;
    grid-template-rows: minmax(2.1em, auto) 38px !important;
    align-content: start !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 82px !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px !important;
    overflow: hidden !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 6px !important;
    background: var(--studio-paper) !important;
    color: var(--studio-muted) !important;
    font-size: .66rem !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 label > span,
html body.designer-shell .designer-workbench-v7 .property-editor-v2 .wall-rgb-color-field > label,
html body.designer-shell .designer-workbench-v7 .property-editor-v2 .partition-wall-orientation > span {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: var(--studio-muted) !important;
    font-family: inherit !important;
    font-size: .66rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 input:not([type="checkbox"]):not([type="hidden"]),
html body.designer-shell .designer-workbench-v7 .property-editor-v2 select:not(.material-select-hidden),
html body.designer-shell .designer-workbench-v7 .property-editor-v2 .sakan-material-picker__toggle,
html body.designer-shell .designer-workbench-v7 .property-editor-v2 .material-picker-toggle {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 6px 9px !important;
    overflow: hidden !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 5px !important;
    background: var(--studio-paper-2) !important;
    color: var(--studio-ink) !important;
    box-shadow: none !important;
    font-size: .68rem !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 input[type="color"] {
    padding: 4px !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 input[type="checkbox"] {
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: var(--studio-gold) !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid > .checkbox-line:not([hidden]):not([style*="display: none"]):not([style*="display:none"]) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 9px !important;
    min-height: 54px !important;
    padding: 10px !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid > .checkbox-line > span {
    flex: 1 1 auto !important;
    width: auto !important;
    overflow: visible !important;
    white-space: normal !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid > .material-picker-field:not([hidden]):not([style*="display: none"]):not([style*="display:none"]) {
    grid-column: 1 / -1 !important;
    grid-template-rows: auto auto !important;
    min-height: 86px !important;
    overflow: visible !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .sakan-material-picker {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .sakan-material-picker__toggle {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) 22px !important;
    align-items: center !important;
    gap: 7px !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .sakan-material-picker__preview {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .sakan-material-picker__label {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .sakan-material-picker__options:not([hidden]) {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: none !important;
    max-height: 180px !important;
    margin: 7px 0 0 !important;
    padding: 7px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    border: 1px solid var(--studio-line-strong) !important;
    border-radius: 5px !important;
    background: var(--studio-paper) !important;
    box-shadow: none !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .sakan-material-choice {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 4px !important;
    overflow: hidden !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .sakan-material-choice__swatch {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .sakan-material-choice__name {
    display: -webkit-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    font-size: .62rem !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    color: inherit !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid > .wall-rgb-color-field {
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) 88px !important;
    grid-template-rows: 38px !important;
    align-items: center !important;
    min-height: 60px !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .wide-action-button,
html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid > button {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .material-image-choices,
html body.designer-shell .designer-workbench-v7 .property-editor-v2 .material-swatches,
html body.designer-shell .designer-workbench-v7 .property-editor-v2 .color-swatches {
    grid-column: 1 / -1 !important;
    display: flex !important;
    gap: 6px !important;
    min-width: 0 !important;
    padding: 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin !important;
    touch-action: pan-x !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 .material-image-choice,
html body.designer-shell .designer-workbench-v7 .property-editor-v2 .material-swatch,
html body.designer-shell .designer-workbench-v7 .property-editor-v2 .color-swatch {
    flex: 0 0 auto !important;
}

html body.designer-shell .designer-workbench-v7 .object-stack {
    display: none !important;
}

html body.designer-shell .designer-workbench-v7 .property-editor-v2 input:focus,
html body.designer-shell .designer-workbench-v7 .property-editor-v2 select:focus,
html body.designer-shell .designer-workbench-v7 .property-editor-v2 button:focus-visible {
    outline: 2px solid rgba(209, 170, 67, .58) !important;
    outline-offset: 1px !important;
}

/* Context commands stay near the object, above the workbench. */
html body.designer-shell .designer-workbench-v7 .selection-toolbar {
    position: absolute !important;
    right: auto !important;
    bottom: calc(var(--studio-dock-height) + var(--studio-dock-bottom) + 10px) !important;
    left: 50% !important;
    z-index: 90 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    width: max-content !important;
    max-width: calc(100% - 24px) !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 4px !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: 1px solid rgba(209, 170, 67, .32) !important;
    border-radius: 7px !important;
    background: var(--studio-paper) !important;
    color: var(--studio-ink) !important;
    box-shadow: 0 8px 22px rgba(4, 10, 6, .22) !important;
    transform: translateX(-50%) !important;
    scrollbar-width: none !important;
    transition: none !important;
}

html body.designer-shell .designer-workbench-v7 .room-workspace.workbench-dock-collapsed .selection-toolbar {
    bottom: calc(var(--studio-dock-bottom) + 56px) !important;
}

html body.designer-shell .designer-workbench-v7 .selection-toolbar::-webkit-scrollbar {
    display: none !important;
}

html body.designer-shell .designer-workbench-v7 .selection-toolbar > span {
    flex: 0 1 190px !important;
    max-width: 190px !important;
    overflow: hidden !important;
    padding-inline: 7px !important;
    color: var(--studio-ink) !important;
    font-size: .66rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .selection-toolbar strong {
    flex: 0 0 auto !important;
    color: var(--studio-success) !important;
    font-size: .6rem !important;
}

html body.designer-shell .designer-workbench-v7 #placementStatus.invalid {
    display: block !important;
    color: #ef6258 !important;
    white-space: normal !important;
}

html[data-theme="light"] body.designer-shell .designer-workbench-v7 #placementStatus.invalid { color: #b42318 !important; }
html body.designer-shell .designer-workbench-v7 .room-stage:not(.has-selection) .selection-toolbar.has-status-error strong {
    display: block !important;
}

html body.designer-shell .designer-workbench-v7 .selection-toolbar button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 58px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 5px 9px !important;
    border: 1px solid rgba(234, 209, 132, .22) !important;
    border-radius: 6px !important;
    background: var(--studio-paper-2) !important;
    color: var(--studio-ink) !important;
    font-size: .62rem !important;
}

html body.designer-shell .designer-workbench-v7 #deleteSelectedButton {
    border-color: rgba(166, 79, 58, .7) !important;
    background: var(--studio-danger) !important;
    color: #fff !important;
}

html body.designer-shell .designer-workbench-v7 .room-stage:not(.has-selection) .selection-toolbar button,
html body.designer-shell .designer-workbench-v7 .room-stage:not(.has-selection) .selection-toolbar strong {
    display: none !important;
}

html body.designer-shell .designer-workbench-v7 .room-stage:not(.has-selection) .selection-toolbar {
    min-width: min(340px, calc(100% - 24px)) !important;
    justify-content: center !important;
}

/* Tablet and phone: same bottom workbench, reorganized rather than replaced. */
@media (max-width: 1320px) {
    html body.designer-shell .designer-workbench-v7 {
        --studio-dock-bottom: calc(max(var(--studio-dock-gap), env(safe-area-inset-bottom)) + 56px);
    }
}

@media (max-width: 960px), (max-height: 600px) {
    html body.designer-shell .designer-workbench-v7 {
        --studio-dock-gap: 6px;
        --studio-dock-height: min(34dvh, 290px);
        --studio-toolbar-height: 84px;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .stage-toolbar,
    html body.designer-shell .designer-workbench-v7 .stage-toolbar {
        inset: max(5px, env(safe-area-inset-top)) max(5px, env(safe-area-inset-right)) auto max(5px, env(safe-area-inset-left)) !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        grid-template-rows: 34px 34px !important;
        grid-template-areas: "brand actions" "ai ai" !important;
        align-items: center !important;
        gap: 4px 6px !important;
        height: 84px !important;
        min-height: 84px !important;
        max-height: 84px !important;
        padding: 5px !important;
        overflow: visible !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .designer-brand-chip,
    html body.designer-shell .designer-workbench-v7 .designer-brand-chip {
        grid-area: brand !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 2px 4px !important;
    }

    html body.designer-shell .designer-workbench-v7 .designer-brand-chip img {
        width: 28px !important;
        height: 28px !important;
    }

    html body.designer-shell .designer-workbench-v7 .designer-brand-chip span {
        display: none !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .stage-actions,
    html body.designer-shell .designer-workbench-v7 .stage-actions {
        grid-area: actions !important;
        justify-self: end !important;
        height: 34px !important;
        min-height: 34px !important;
        gap: 3px !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .stage-actions > button,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .stage-actions > a,
    html body.designer-shell .designer-workbench-v7 .stage-actions > button,
    html body.designer-shell .designer-workbench-v7 .stage-actions > a {
        flex-basis: 30px !important;
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        padding: 3px !important;
    }

    html body.designer-shell .designer-workbench-v7 #resetRoomButton {
        width: auto !important;
        max-width: none !important;
        padding-inline: 7px !important;
        font-size: .58rem !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .stage-ai-zone,
    html body.designer-shell .designer-workbench-v7 .stage-ai-zone {
        grid-area: ai !important;
        display: flex !important;
        width: 100% !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .ai-render-controls,
    html body.designer-shell .designer-workbench-v7 .ai-render-controls {
        display: flex !important;
        width: 100% !important;
        height: 34px !important;
        min-height: 34px !important;
        gap: 4px !important;
    }

    html body.designer-shell .designer-workbench-v7 .ai-single-split {
        flex: 1 1 auto !important;
        height: 34px !important;
    }

    html body.designer-shell .designer-workbench-v7 .ai-render-button,
    html body.designer-shell .designer-workbench-v7 .ai-side-picker,
    html body.designer-shell .designer-workbench-v7 .ai-credit-badge {
        height: 34px !important;
        min-height: 34px !important;
        font-size: .57rem !important;
    }

    html body.designer-shell .designer-workbench-v7 .ai-single-create-button {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    html body.designer-shell .designer-workbench-v7 .ai-render-all-button {
        flex: 0 0 76px !important;
        width: 76px !important;
        min-width: 76px !important;
        padding-inline: 5px !important;
    }

    html body.designer-shell .designer-workbench-v7 .ai-credit-badge {
        flex: 0 0 78px !important;
        max-width: 78px !important;
        padding-inline: 4px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.designer-shell .designer-workbench-v7 .workbench-dock {
        right: var(--studio-dock-gap) !important;
        bottom: var(--studio-dock-bottom) !important;
        left: var(--studio-dock-gap) !important;
        width: auto !important;
        max-width: none !important;
        height: var(--studio-dock-height) !important;
        min-height: var(--studio-dock-height) !important;
        max-height: var(--studio-dock-height) !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }

    html body.designer-shell .designer-workbench-v7 .selection-toolbar,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-stage .selection-toolbar {
        bottom: calc(var(--studio-dock-height) + var(--studio-dock-bottom) + 6px) !important;
        inset-inline: var(--studio-dock-gap) !important;
        left: var(--studio-dock-gap) !important;
        right: var(--studio-dock-gap) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    html body.designer-shell .designer-workbench-v7 .workbench-dock-bar {
        grid-template-columns: auto minmax(0, 1fr) 32px !important;
        gap: 6px !important;
        padding: 5px !important;
    }

    html body.designer-shell .designer-workbench-v7 .room-workspace.workbench-dock-collapsed .workbench-dock-bar {
        grid-template-columns: auto minmax(0, 1fr) !important;
    }

    html body.designer-shell .designer-workbench-v7 .workbench-mode-tab {
        min-width: 78px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 4px 9px !important;
        font-size: .68rem !important;
    }

    html body.designer-shell .designer-workbench-v7 .workbench-context span {
        display: none !important;
    }

    html body.designer-shell .designer-workbench-v7 .workbench-context strong {
        font-size: .68rem !important;
    }

    html body.designer-shell .designer-workbench-v7 .workbench-dock .room-panel {
        padding: 7px !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-panel {
        grid-template-columns: 1fr !important;
        grid-template-rows: 70px minmax(0, 1fr) !important;
        gap: 6px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards {
        grid-column: 1 !important;
        grid-row: 1 !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 4px !important;
        height: 70px !important;
        min-height: 70px !important;
        padding: 5px !important;
        overflow: hidden !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title {
        display: none !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field,
    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field:last-child {
        grid-column: auto !important;
        grid-template-rows: 16px 40px !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2 {
        grid-column: 1 !important;
        grid-row: 2 !important;
        grid-template-rows: 31px minmax(0, 1fr) !important;
        gap: 5px !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2__tabs {
        height: 31px !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2__tab {
        height: 28px !important;
        min-height: 28px !important;
        padding-inline: 8px !important;
        font-size: .57rem !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail {
        grid-template-rows: repeat(2, minmax(58px, 1fr)) !important;
        grid-auto-columns: 148px !important;
        gap: 5px !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2__card {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        width: 148px !important;
        min-width: 148px !important;
        max-width: 148px !important;
        padding: 5px !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2__thumb {
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
    }

    html body.designer-shell .designer-workbench-v7 .properties-panel-scroll {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        overflow: hidden !important;
    }

    html body.designer-shell .designer-workbench-v7 .properties-panel-scroll > .panel-title {
        display: none !important;
    }

    html body.designer-shell .designer-workbench-v7 .property-tab-groups {
        position: static !important;
        flex: 0 0 36px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;
        width: 100% !important;
        max-height: 36px !important;
        margin: 0 !important;
        padding: 2px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        touch-action: pan-x !important;
    }

    html body.designer-shell .designer-workbench-v7 .properties-tabs button {
        flex: 0 0 auto !important;
        min-width: max-content !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 4px 9px !important;
        white-space: nowrap !important;
    }

    html body.designer-shell .designer-workbench-v7 .property-editor-v2[data-property-panel] {
        flex: 1 1 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 8px !important;
        overflow-y: auto !important;
    }

    html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    html body.designer-shell .designer-workbench-v7 .selection-toolbar {
        bottom: calc(var(--studio-dock-height) + var(--studio-dock-bottom) + 6px) !important;
        max-width: calc(100% - 12px) !important;
        min-height: 42px !important;
        padding: 4px !important;
    }

    html body.designer-shell .designer-workbench-v7 .room-workspace.workbench-dock-collapsed .selection-toolbar {
        bottom: calc(var(--studio-dock-bottom) + 56px) !important;
    }

    html body.designer-shell .designer-workbench-v7 .selection-toolbar > span {
        flex-basis: 82px !important;
        max-width: 82px !important;
        padding-inline: 4px !important;
        font-size: .55rem !important;
    }

    html body.designer-shell .designer-workbench-v7 .selection-toolbar strong {
        display: block !important;
    }

    html body.designer-shell .designer-workbench-v7 .selection-toolbar button {
        min-width: 48px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding-inline: 6px !important;
        font-size: .55rem !important;
    }

}

@media (max-width: 960px) and (orientation: landscape),
       (max-height: 600px) and (orientation: landscape) {
    html body.designer-shell .designer-workbench-v7 {
        --studio-dock-height: min(38dvh, 190px);
        --studio-toolbar-height: 48px;
    }

    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .stage-toolbar,
    html body.designer-shell .designer-workbench-v7 .stage-toolbar {
        display: flex !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        gap: 5px !important;
    }

    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .designer-brand-chip,
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .stage-actions,
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .stage-ai-zone {
        grid-area: auto !important;
    }

    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .stage-ai-zone {
        flex: 1 1 auto !important;
        width: auto !important;
        margin-inline-start: auto !important;
    }

    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .ai-render-controls {
        width: auto !important;
    }

    html body.designer-shell .designer-workbench-v7 .workbench-dock-bar {
        height: 44px !important;
        min-height: 44px !important;
    }

    html body.designer-shell .designer-workbench-v7 .workbench-dock {
        grid-template-rows: 44px minmax(0, 1fr) !important;
    }

    html body.designer-shell .designer-workbench-v7 .room-workspace.workbench-dock-collapsed .workbench-dock {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }

    html body.designer-shell .designer-workbench-v7 .selection-toolbar {
        bottom: calc(var(--studio-dock-height) + var(--studio-dock-bottom) + 10px) !important;
    }

    html body.designer-shell .designer-workbench-v7 .room-workspace:not(.workbench-dock-collapsed) .selection-toolbar {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    html body.designer-shell .designer-workbench-v7 .room-workspace.workbench-dock-collapsed .selection-toolbar {
        bottom: calc(var(--studio-dock-bottom) + 50px) !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-panel {
        grid-template-columns: 225px minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 1fr) !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards {
        grid-column: 1 !important;
        grid-row: 1 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 225px !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field:last-child {
        grid-column: 1 / -1 !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2 {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail {
        grid-template-rows: repeat(2, minmax(42px, 1fr)) !important;
        grid-auto-columns: 142px !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2__thumb {
        width: 40px !important;
        min-width: 40px !important;
        height: 38px !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2__card {
        width: 142px !important;
        min-width: 142px !important;
        max-width: 142px !important;
    }

    html body.designer-shell .designer-workbench-v7 .properties-panel-scroll {
        display: grid !important;
        grid-template-columns: 220px minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 1fr) !important;
    }

    html body.designer-shell .designer-workbench-v7 .property-tab-groups {
        grid-column: 1 !important;
        grid-row: 1 !important;
        align-self: stretch !important;
        display: flex !important;
        flex-wrap: wrap !important;
        height: 100% !important;
        max-height: none !important;
        margin-top: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    html body.designer-shell .designer-workbench-v7 .properties-tabs button {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 92px !important;
    }

    html body.designer-shell .designer-workbench-v7 .property-editor-v2[data-property-panel] {
        grid-column: 2 !important;
        grid-row: 1 !important;
        height: 100% !important;
    }

    html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Add panel final pass: stable standards cards and clear left/right asset travel. */
html body.designer-shell .designer-workbench-v7 .library-panel {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 318px) !important;
    grid-template-areas: "catalog standards" !important;
    align-items: stretch !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards {
    grid-area: standards !important;
    grid-column: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: min-content !important;
    align-content: start !important;
    gap: 8px !important;
    min-width: 0 !important;
    padding: 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2 {
    grid-area: catalog !important;
    grid-column: auto !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title {
    grid-column: 1 / -1 !important;
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title strong {
    display: block !important;
    overflow: hidden !important;
    color: var(--studio-ink) !important;
    font-size: .72rem !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field {
    display: grid !important;
    grid-template-rows: 15px 40px !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 67px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 6px !important;
    overflow: visible !important;
    border: 1px solid color-mix(in srgb, var(--studio-line) 88%, transparent) !important;
    border-radius: 7px !important;
    background: color-mix(in srgb, var(--studio-paper-2) 92%, #000 8%) !important;
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door {
    grid-column: 1 / -1 !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field > span {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: var(--studio-muted) !important;
    font-size: .58rem !important;
    font-weight: 800 !important;
    line-height: 15px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 22px !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    overflow: hidden !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 6px !important;
    background: var(--studio-paper) !important;
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__preview {
    width: 34px !important;
    min-width: 34px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    border-radius: 5px !important;
    background-position: center !important;
    background-size: cover !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__label {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: var(--studio-ink) !important;
    font-size: .64rem !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__chevron {
    display: grid !important;
    place-items: center !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    border-radius: 999px !important;
    background: var(--studio-accent) !important;
    color: #f7f0cf !important;
    font-size: .48rem !important;
    line-height: 1 !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__options:not([hidden]) {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 168px !important;
    margin: 6px 0 0 !important;
    padding: 5px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 6px !important;
    background: var(--studio-paper) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-choice {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px !important;
    overflow: hidden !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-choice__swatch {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 5px !important;
    background-position: center !important;
    background-size: cover !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-choice__name {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: .58rem !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
    appearance: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    overflow: hidden !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 6px !important;
    background: var(--studio-paper) !important;
    color: var(--studio-ink) !important;
    font-size: .64rem !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__viewport {
    position: relative !important;
    overflow: hidden !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail {
    direction: rtl !important;
    padding: 0 44px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--studio-gold) color-mix(in srgb, var(--studio-paper-3) 86%, transparent) !important;
    scrollbar-gutter: stable !important;
    touch-action: pan-x !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail::-webkit-scrollbar {
    display: block !important;
    height: 7px !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button {
    position: absolute !important;
    top: 50% !important;
    z-index: 8 !important;
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    border: 1px solid var(--studio-gold) !important;
    border-radius: 7px !important;
    background: color-mix(in srgb, var(--studio-paper) 94%, #000 6%) !important;
    color: var(--studio-ink) !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .25) !important;
    font-size: 1.55rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button--left {
    left: 4px !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button--right {
    right: 4px !important;
}

@media (max-width: 900px) and (orientation: portrait) {
    html body.designer-shell .designer-workbench-v7 .library-panel,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-panel {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 116px minmax(0, 1fr) !important;
        grid-template-areas: "standards" "catalog" !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standards {
        height: 116px !important;
        min-height: 116px !important;
        max-height: 116px !important;
        padding: 6px !important;
        overflow-y: auto !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title {
        display: none !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standard-field {
        grid-template-rows: 12px 30px !important;
        min-height: 52px !important;
        height: 52px !important;
        padding: 4px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standard-field--door {
        grid-template-rows: 10px 28px !important;
        height: 48px !important;
        min-height: 48px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle,
    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle {
        grid-template-columns: 26px minmax(0, 1fr) 17px !important;
        gap: 3px !important;
        padding: 2px 3px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__preview {
        width: 24px !important;
        min-width: 24px !important;
        height: 24px !important;
        min-height: 24px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__label,
    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
        font-size: .52rem !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail {
        padding-inline: 36px !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button {
        width: 30px !important;
        min-width: 30px !important;
        height: 44px !important;
        min-height: 44px !important;
        font-size: 1.25rem !important;
    }
}

@media (max-width: 960px) and (orientation: landscape),
       (max-height: 600px) and (orientation: landscape) {
    html body.designer-shell .designer-workbench-v7 .library-panel,
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-panel {
        grid-template-columns: minmax(0, 1fr) 238px !important;
        grid-template-areas: "catalog standards" !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards,
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standards {
        width: 238px !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 7px !important;
        overflow-y: auto !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title {
        display: none !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field {
        grid-template-rows: 12px 30px !important;
        min-height: 52px !important;
        padding: 4px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle,
    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle {
        grid-template-columns: 25px minmax(0, 1fr) 16px !important;
        gap: 3px !important;
        padding: 2px 3px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__preview {
        width: 23px !important;
        min-width: 23px !important;
        height: 23px !important;
        min-height: 23px !important;
    }
}


/* Add panel terminal layout: this is intentionally last so older v7 overrides cannot re-collapse it. */
html body.designer-shell .designer-workbench-v7 .library-panel {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 318px) !important;
    grid-template-areas: "catalog standards" !important;
    align-items: stretch !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2 {
    grid-area: catalog !important;
    grid-column: auto !important;
    grid-row: auto !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards {
    grid-area: standards !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: min-content !important;
    align-content: start !important;
    gap: 8px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title {
    grid-column: 1 / -1 !important;
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title strong {
    display: block !important;
    overflow: hidden !important;
    font-size: .72rem !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field,
html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field:last-child {
    display: grid !important;
    grid-template-rows: 15px 40px !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 67px !important;
    margin: 0 !important;
    padding: 6px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door,
html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field:last-child {
    grid-column: 1 / -1 !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field > span {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: .58rem !important;
    line-height: 15px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 22px !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__preview {
    width: 34px !important;
    min-width: 34px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    background-position: center !important;
    background-size: cover !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__label {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: .64rem !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__chevron {
    display: grid !important;
    place-items: center !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    font-size: .48rem !important;
    line-height: 1 !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    overflow: hidden !important;
    font-size: .64rem !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__viewport {
    position: relative !important;
    overflow: hidden !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail {
    direction: rtl !important;
    padding: 0 44px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin !important;
    touch-action: pan-x !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail::-webkit-scrollbar {
    display: block !important;
    height: 7px !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button,
html body.designer-shell .designer-workbench-v7 .library-catalog-v2__viewport.is-scrollable .library-catalog-v2__scroll-button {
    display: grid !important;
    z-index: 8 !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 52px !important;
    min-height: 52px !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button--left {
    left: 4px !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button--right {
    right: 4px !important;
}

@media (max-width: 900px) and (orientation: portrait) {
    html body.designer-shell .designer-workbench-v7 .library-panel,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-panel {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 116px minmax(0, 1fr) !important;
        grid-template-areas: "standards" "catalog" !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-catalog-v2 {
        grid-area: catalog !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standards {
        grid-area: standards !important;
        grid-column: auto !important;
        grid-row: auto !important;
        height: 116px !important;
        min-height: 116px !important;
        max-height: 116px !important;
        padding: 6px !important;
        overflow-y: auto !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title {
        display: none !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standard-field {
        grid-template-rows: 12px 30px !important;
        width: 100% !important;
        height: 52px !important;
        min-height: 52px !important;
        padding: 4px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standard-field--door {
        grid-template-rows: 10px 28px !important;
        height: 48px !important;
        min-height: 48px !important;
    }
}

@media (max-width: 960px) and (orientation: landscape),
       (max-height: 600px) and (orientation: landscape) {
    html body.designer-shell .designer-workbench-v7 .library-panel,
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-panel {
        grid-template-columns: minmax(0, 1fr) 238px !important;
        grid-template-areas: "catalog standards" !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2,
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-catalog-v2 {
        grid-area: catalog !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards,
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standards {
        grid-area: standards !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: 238px !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 7px !important;
        overflow-y: auto !important;
    }
}

/* Isolate v7 from the legacy mobile drawer rules still used by older pages. */
@media (max-width: 960px), (max-height: 600px) {
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace.library-collapsed .workbench-dock .library-panel,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace.properties-collapsed .workbench-dock .properties-panel {
        display: none !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.workbench-dock-collapsed) .workbench-dock .room-panel {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 7px !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 0 !important;
        transform: none !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-panel {
        position: absolute !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 70px minmax(0, 1fr) !important;
        gap: 6px !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standards {
        position: static !important;
        display: grid !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 4px !important;
        width: 100% !important;
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
        margin: 0 !important;
        padding: 5px !important;
        overflow: hidden !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standard-field {
        position: relative !important;
        display: grid !important;
        grid-template-rows: 16px 40px !important;
        gap: 3px !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-catalog-v2 {
        position: static !important;
        display: grid !important;
        grid-column: 1 !important;
        grid-row: 2 !important;
        grid-template-rows: 31px minmax(0, 1fr) !important;
        gap: 5px !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-catalog-v2__viewport,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-catalog-v2__rail {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-catalog-v2__rail {
        grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        touch-action: pan-x !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.properties-collapsed) .workbench-dock .properties-panel {
        position: absolute !important;
        display: block !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.properties-collapsed) .workbench-dock .properties-panel-scroll {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.properties-collapsed) .workbench-dock .property-tab-groups {
        position: static !important;
        flex: 0 0 36px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;
        align-self: stretch !important;
        width: 100% !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        margin: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        touch-action: pan-x !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.properties-collapsed) .workbench-dock .property-tab-group:not([hidden]),
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.properties-collapsed) .workbench-dock .properties-tabs {
        display: contents !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.properties-collapsed) .workbench-dock .properties-tabs button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        height: 30px !important;
        min-height: 30px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.properties-collapsed) .workbench-dock .property-editor-v2[data-property-panel] {
        position: static !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 960px) and (orientation: landscape),
       (max-height: 600px) and (orientation: landscape) {
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-panel {
        grid-template-columns: 225px minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 1fr) !important;
    }

    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standards {
        grid-column: 1 !important;
        grid-row: 1 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 225px !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
    }

    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standard-field:last-child {
        grid-column: 1 / -1 !important;
    }

    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-catalog-v2 {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.properties-collapsed) .workbench-dock .properties-panel-scroll {
        display: grid !important;
        grid-template-columns: 220px minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 1fr) !important;
        gap: 6px !important;
    }

    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.properties-collapsed) .workbench-dock .property-tab-groups {
        grid-column: 1 !important;
        grid-row: 1 !important;
        align-self: stretch !important;
        display: flex !important;
        flex-wrap: wrap !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        touch-action: pan-y !important;
    }

    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.properties-collapsed) .workbench-dock .property-editor-v2[data-property-panel] {
        grid-column: 2 !important;
        grid-row: 1 !important;
        height: 100% !important;
    }
}

@media (max-width: 430px) and (orientation: portrait) {
    html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body.designer-shell .designer-workbench-v7 .property-editor-v2 .wall-room-dimensions > .control-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    html body.designer-shell .designer-workbench-v7 .property-editor-v2 > .control-grid > .wall-rgb-color-field {
        grid-template-columns: minmax(0, 1fr) 64px !important;
        grid-template-rows: 38px !important;
    }

    html body.designer-shell .designer-workbench-v7 .workbench-context {
        display: none !important;
    }

    html body.designer-shell .designer-workbench-v7 .workbench-dock-bar,
    html body.designer-shell .designer-workbench-v7 .room-workspace.workbench-dock-collapsed .workbench-dock-bar {
        grid-template-columns: minmax(0, 1fr) 32px !important;
    }

    html body.designer-shell .designer-workbench-v7 .room-workspace.workbench-dock-collapsed .workbench-dock-bar {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body.designer-shell .designer-workbench-v7 .workbench-mode-tabs {
        width: 100% !important;
    }

    html body.designer-shell .designer-workbench-v7 .workbench-mode-tab {
        flex: 1 1 50% !important;
        min-width: 0 !important;
    }

    html body.designer-shell .designer-workbench-v7 .ai-toolbar-mark {
        display: none !important;
    }

    html body.designer-shell .designer-workbench-v7 .ai-render-button {
        padding-inline: 6px !important;
    }

    html body.designer-shell .designer-workbench-v7 .selection-toolbar {
        width: auto !important;
        max-width: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body.designer-shell .designer-workbench-v7 .workbench-dock,
    html body.designer-shell .designer-workbench-v7 .selection-toolbar {
        transition: none !important;
    }
}

/* Add panel: compact project standards and explicit horizontal catalog navigation. */
html body.designer-shell .designer-workbench-v7 .library-panel {
    grid-template-columns: minmax(285px, 310px) minmax(0, 1fr) !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 8px !important;
    border-radius: 7px !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    padding: 0 2px 2px !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field {
    position: relative !important;
    display: grid !important;
    grid-template-rows: 16px minmax(38px, auto) !important;
    gap: 4px !important;
    min-width: 0 !important;
    min-height: 66px !important;
    margin: 0 !important;
    padding: 6px !important;
    overflow: visible !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 6px !important;
    background: var(--studio-paper-3) !important;
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door {
    grid-column: 1 / -1 !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field > span {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: var(--studio-muted) !important;
    font-size: .58rem !important;
    font-weight: 800 !important;
    line-height: 16px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 20px !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 3px 5px !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 5px !important;
    background: var(--studio-paper-2) !important;
    color: var(--studio-ink) !important;
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__preview {
    width: 32px !important;
    min-width: 32px !important;
    height: 30px !important;
    min-height: 30px !important;
    border-radius: 4px !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__label {
    min-width: 0 !important;
    overflow: hidden !important;
    color: var(--studio-ink) !important;
    font-size: .62rem !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__chevron {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    font-size: .52rem !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__options:not([hidden]) {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 170px !important;
    margin: 5px 0 0 !important;
    padding: 4px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-choice {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 3px !important;
    border-radius: 5px !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-choice__swatch {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-choice__name {
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: .58rem !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
    appearance: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    overflow: hidden !important;
    border: 1px solid var(--studio-line) !important;
    border-radius: 5px !important;
    background: var(--studio-paper-2) !important;
    color: var(--studio-ink) !important;
    font-size: .64rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__viewport {
    position: relative !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail {
    direction: rtl !important;
    padding: 0 40px 8px !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--studio-gold) color-mix(in srgb, var(--studio-paper-3) 86%, transparent) !important;
    scrollbar-gutter: stable !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail::-webkit-scrollbar {
    display: block !important;
    height: 6px !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--studio-paper-3) 86%, transparent) !important;
    border-radius: 3px !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail::-webkit-scrollbar-thumb {
    background: var(--studio-gold) !important;
    border-radius: 3px !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button {
    position: absolute !important;
    top: 50% !important;
    z-index: 6 !important;
    display: none !important;
    place-items: center !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    border: 1px solid var(--studio-gold) !important;
    border-radius: 6px !important;
    background: var(--studio-paper) !important;
    color: var(--studio-ink) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .22) !important;
    font-size: 1.45rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__viewport.is-scrollable .library-catalog-v2__scroll-button {
    display: grid !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button--left {
    left: 3px !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button--right {
    right: 3px !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button:hover,
html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button:focus-visible {
    background: var(--studio-gold) !important;
    color: #172019 !important;
}

@media (max-width: 900px) and (orientation: portrait) {
    html body.designer-shell .designer-workbench-v7 .library-panel,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-panel {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 114px minmax(0, 1fr) !important;
        gap: 6px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standards {
        grid-column: 1 !important;
        grid-row: 1 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto auto !important;
        align-content: start !important;
        gap: 5px !important;
        width: 100% !important;
        height: 114px !important;
        min-height: 114px !important;
        max-height: 114px !important;
        padding: 5px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title {
        display: none !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standard-field {
        display: grid !important;
        grid-template-rows: 12px 30px !important;
        gap: 2px !important;
        width: auto !important;
        height: 52px !important;
        min-height: 52px !important;
        padding: 3px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standard-field--door {
        grid-column: 1 / -1 !important;
        grid-template-rows: 10px 26px !important;
        height: 46px !important;
        min-height: 46px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field:has(.sakan-material-picker[data-expanded="true"]),
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standard-field:has(.sakan-material-picker[data-expanded="true"]) {
        height: auto !important;
        min-height: 52px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field > span {
        display: block !important;
        font-size: .52rem !important;
        line-height: 12px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker,
    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle,
    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
        width: 100% !important;
        min-width: 0 !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        margin: 0 !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
        height: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle {
        grid-template-columns: 26px minmax(0, 1fr) 16px !important;
        gap: 3px !important;
        padding: 2px 3px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__preview {
        width: 24px !important;
        min-width: 24px !important;
        height: 24px !important;
        min-height: 24px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__label,
    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
        font-size: .52rem !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__chevron {
        width: 16px !important;
        min-width: 16px !important;
        height: 16px !important;
        min-height: 16px !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-catalog-v2 {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail {
        padding-inline: 34px !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button {
        width: 29px !important;
        min-width: 29px !important;
        height: 42px !important;
        min-height: 42px !important;
        font-size: 1.2rem !important;
    }
}

@media (max-width: 960px) and (orientation: landscape),
       (max-height: 600px) and (orientation: landscape) {
    html body.designer-shell .designer-workbench-v7 .library-panel,
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-panel {
        grid-template-columns: 240px minmax(0, 1fr) !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards,
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 240px !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards__title {
        display: none !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field {
        grid-template-rows: 13px minmax(30px, auto) !important;
        min-height: 50px !important;
        padding: 4px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door {
        grid-column: 1 / -1 !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle,
    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
        height: 30px !important;
        min-height: 30px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle {
        grid-template-columns: 25px minmax(0, 1fr) 16px !important;
        gap: 3px !important;
        padding: 2px 3px !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__preview {
        width: 23px !important;
        min-width: 23px !important;
        height: 23px !important;
        min-height: 23px !important;
    }
}
/* Physical library placement is independent of the document text direction. */
html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button svg {
    width: 20px;
    height: 20px;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button:disabled {
    opacity: .35;
    cursor: default !important;
}

html body.designer-shell .designer-workbench-v7 .library-panel {
    direction: ltr !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 318px) !important;
    grid-template-areas: "catalog standards" !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2 {
    grid-area: catalog !important;
    direction: ltr !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standards {
    grid-area: standards !important;
    direction: ltr !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: min-content !important;
    gap: 8px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

html[dir="rtl"] body.designer-shell .designer-workbench-v7 .library-catalog-v2,
html[dir="rtl"] body.designer-shell .designer-workbench-v7 .sakan-project-standards {
    direction: rtl !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field,
html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field:last-child {
    grid-template-rows: 15px 40px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 67px !important;
    padding: 6px !important;
    overflow: visible !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door,
html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field:last-child {
    grid-column: 1 / -1 !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field > span,
html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__label,
html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-choice__name,
html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker,
html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle,
html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle,
html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door select {
    height: var(--standard-control-height, 40px) !important;
    min-height: var(--standard-control-height, 40px) !important;
    max-height: var(--standard-control-height, 40px) !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__toggle {
    grid-template-columns: 38px minmax(0, 1fr) 22px !important;
    gap: 6px !important;
    padding: 4px 6px !important;
}

html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field .sakan-material-picker__preview {
    width: 34px !important;
    min-width: 34px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail {
    direction: inherit !important;
    padding: 0 44px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin !important;
    touch-action: pan-x !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__rail::-webkit-scrollbar {
    display: block !important;
    height: 7px !important;
}

html body.designer-shell .designer-workbench-v7 .library-catalog-v2__scroll-button,
html body.designer-shell .designer-workbench-v7 .library-catalog-v2__viewport.is-scrollable .library-catalog-v2__scroll-button {
    display: grid !important;
    z-index: 8 !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 52px !important;
    min-height: 52px !important;
}

@media (max-width: 900px) and (orientation: portrait) {
    html body.designer-shell .designer-workbench-v7 .library-panel,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-panel {
        --standard-control-height: 30px;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 116px minmax(0, 1fr) !important;
        grid-template-areas: "standards" "catalog" !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standard-field--door {
        --standard-control-height: 26px;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-catalog-v2 {
        grid-area: catalog !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards,
    html body.designer-shell.designer-mobile-ui .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standards {
        grid-area: standards !important;
        height: 116px !important;
        min-height: 116px !important;
        max-height: 116px !important;
    }
}

@media (max-width: 960px) and (orientation: landscape),
       (max-height: 600px) and (orientation: landscape) {
    html body.designer-shell .designer-workbench-v7 .library-panel,
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-panel {
        grid-template-columns: minmax(0, 1fr) 238px !important;
        grid-template-areas: "catalog standards" !important;
    }

    html body.designer-shell .designer-workbench-v7 .library-catalog-v2,
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .library-catalog-v2 {
        grid-area: catalog !important;
    }

    html body.designer-shell .designer-workbench-v7 .sakan-project-standards,
    html body.designer-shell.designer-mobile-ui.designer-mobile-landscape .designer-workbench-v7 .room-workspace:not(.library-collapsed) .workbench-dock .sakan-project-standards {
        grid-area: standards !important;
        width: 238px !important;
    }
}
