:root {
    --gang-black: #050407;
    --gang-panel: #111015;
    --gang-panel-raised: #19181e;
    --gang-border: rgba(255, 255, 255, 0.12);
    --gang-muted: #a7a4ad;
    --gang-cyan: #1e9bd7;
    --gang-magenta: #e60d7b;
    --gang-yellow: #f9eb1c;
    --gang-success: #50d890;
    --gang-topbar-height: 72px;
}

.gang-sheet-editor,
.gang-sheet-unavailable {
    min-height: 100dvh;
    background: var(--gang-black);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
}

.gang-sheet-editor *,
.gang-sheet-editor *::before,
.gang-sheet-editor *::after,
.gang-sheet-unavailable * {
    box-sizing: border-box;
}

/* La page atelier ne rend pas le curseur personnalisé du site vitrine. */
.gang-sheet-editor,
.gang-sheet-editor * {
    cursor: auto;
}

.gang-sheet-editor a,
.gang-sheet-editor button,
.gang-sheet-editor select {
    cursor: pointer;
}

.gang-sheet-editor input,
.gang-sheet-editor textarea {
    cursor: text;
}

.gang-sheet-editor button:disabled {
    cursor: not-allowed;
}

.gang-sheet-editor button,
.gang-sheet-editor input,
.gang-sheet-editor select,
.gang-sheet-editor textarea,
.gang-sheet-editor output {
    font: inherit;
}

.gang-sheet-editor button,
.gang-sheet-editor select,
.gang-sheet-editor input,
.gang-sheet-editor textarea,
.gang-sheet-unavailable a {
    outline: none;
}

.gang-sheet-editor button:focus-visible,
.gang-sheet-editor select:focus-visible,
.gang-sheet-editor input:focus-visible,
.gang-sheet-editor textarea:focus-visible,
.gang-sheet-editor a:focus-visible,
.gang-sheet-unavailable a:focus-visible {
    box-shadow: 0 0 0 3px var(--gang-black), 0 0 0 5px var(--gang-yellow);
}

.gang-sheet-topbar {
    position: relative;
    z-index: 40;
    min-height: var(--gang-topbar-height);
    display: grid;
    grid-template-columns: minmax(210px, 0.8fr) minmax(460px, 1.7fr) minmax(290px, 0.9fr);
    align-items: center;
    gap: 20px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--gang-border);
    background: #09080c;
}

.gang-sheet-topbar__brand,
.gang-sheet-topbar__actions,
.gang-order-controls,
.gang-sheet-order-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gang-sheet-topbar__actions {
    justify-content: flex-end;
}

.gang-sheet-brand {
    color: #fff;
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.07em;
}

.gang-sheet-brand strong {
    color: var(--gang-magenta);
}

.gang-sheet-mode-badge,
.gang-sheet-eyebrow {
    color: var(--gang-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gang-sheet-mode-badge {
    padding: 6px 8px;
    border: 1px solid rgba(30, 155, 215, 0.35);
    border-radius: 5px;
    background: rgba(30, 155, 215, 0.08);
}

.gang-sheet-order-controls {
    justify-content: center;
}

.gang-sheet-field,
.gang-sheet-quantity,
.gang-sheet-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gang-sheet-field > span,
.gang-sheet-quantity > span,
.gang-sheet-price > span,
.gang-sheet-background-switcher legend {
    color: var(--gang-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gang-sheet-field select,
.gang-sheet-field input,
.gang-sheet-field textarea,
.gang-sheet-format-field select {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--gang-border);
    border-radius: 6px;
    background: #08070a;
    color: #fff;
    padding: 9px 10px;
}

.gang-sheet-field textarea {
    resize: vertical;
}

.gang-sheet-format-field {
    min-width: 220px;
}

.gang-sheet-quantity > div {
    display: flex;
    height: 36px;
    overflow: hidden;
    border: 1px solid var(--gang-border);
    border-radius: 6px;
}

.gang-sheet-quantity button,
.gang-sheet-quantity output {
    width: 34px;
    display: grid;
    place-items: center;
    border: 0;
    background: #08070a;
    color: #fff;
}

.gang-sheet-quantity button {
    cursor: pointer;
}

.gang-sheet-quantity button:hover {
    background: var(--gang-cyan);
}

.gang-sheet-price strong {
    color: var(--gang-yellow);
    font-size: 18px;
}

.gang-sheet-save-state {
    color: var(--gang-muted);
    font-size: 11px;
    white-space: nowrap;
}

.gang-sheet-save-state span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--gang-success);
}

.gang-sheet-save-state.is-saving span {
    background: var(--gang-yellow);
    animation: gang-pulse 0.8s ease-in-out infinite alternate;
}

.gang-sheet-primary-button,
.gang-sheet-secondary-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 850;
    text-decoration: none;
}

.gang-sheet-primary-button {
    background: #d90c74;
    color: #fff;
}

.gang-sheet-primary-button span {
    font-weight: 850;
}

.gang-sheet-primary-button:hover:not(:disabled) {
    background: var(--gang-cyan);
}

.gang-sheet-primary-button:disabled {
    cursor: default;
    background: rgba(80, 216, 144, 0.18);
    color: var(--gang-success);
}

.gang-sheet-secondary-button {
    width: 100%;
    border: 1px solid rgba(30, 155, 215, 0.45);
    background: rgba(30, 155, 215, 0.09);
    color: #fff;
}

.gang-sheet-feedback {
    position: relative;
    z-index: 20;
    align-self: center;
    flex: 0 0 auto;
    width: min(560px, calc(100% - 28px));
    margin: 10px auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    border: 1px solid;
    border-radius: 7px;
    padding: 11px 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    font-size: 12px;
}

.gang-sheet-feedback--error {
    border-color: rgba(230, 13, 123, 0.65);
    background: #2a071a;
}

.gang-sheet-layout {
    height: calc(100dvh - var(--gang-topbar-height));
    min-height: 560px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 320px;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
}

.gang-sheet-panel {
    position: relative;
    z-index: 20;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    background: var(--gang-panel);
    scrollbar-width: thin;
    scrollbar-color: #37343e transparent;
}

.gang-sheet-library-panel {
    border-right: 1px solid var(--gang-border);
}

.gang-sheet-inspector-panel {
    border-left: 1px solid var(--gang-border);
}

.gang-sheet-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.gang-sheet-panel h2,
.gang-sheet-panel h3,
.gang-sheet-shortcuts-dialog h2 {
    margin: 3px 0 0;
    font-size: 19px;
    letter-spacing: -0.025em;
}

.gang-sheet-drawer-close {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
}

.gang-sheet-upload-button {
    width: 100%;
    min-height: 126px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px dashed rgba(30, 155, 215, 0.65);
    border-radius: 8px;
    background: rgba(30, 155, 215, 0.06);
    color: #fff;
    cursor: pointer;
    text-align: center;
}

.gang-sheet-upload-button:hover {
    border-color: var(--gang-yellow);
    background: rgba(249, 235, 28, 0.06);
}

.gang-sheet-upload-button svg {
    width: 27px;
    fill: none;
    stroke: var(--gang-cyan);
    stroke-width: 1.7;
}

.gang-sheet-upload-button small,
.gang-sheet-asset small,
.gang-sheet-no-selection span,
.gang-sheet-empty-library {
    color: var(--gang-muted);
    font-size: 10px;
}

.gang-sheet-upload-progress {
    display: none;
    align-items: center;
    gap: 7px;
    color: var(--gang-yellow);
    font-size: 11px;
}

.gang-sheet-upload-progress span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gang-yellow);
    animation: gang-pulse 0.8s ease-in-out infinite alternate;
}

.gang-sheet-asset-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.gang-sheet-asset {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--gang-border);
    border-radius: 6px;
    padding: 6px;
    background: #09080c;
    color: #fff;
    cursor: pointer;
    text-align: left;
}

.gang-sheet-asset:hover {
    border-color: var(--gang-cyan);
}

.gang-sheet-asset img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 3px;
    background-color: #fff;
    background-image: linear-gradient(45deg, #e7e7e7 25%, transparent 25%), linear-gradient(-45deg, #e7e7e7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e7e7e7 75%), linear-gradient(-45deg, transparent 75%, #e7e7e7 75%);
    background-position: 0 0, 0 5px, 5px -5px, -5px 0;
    background-size: 10px 10px;
}

.gang-sheet-asset strong {
    display: block;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gang-sheet-empty-library {
    grid-column: 1 / -1;
    margin: 6px 0;
    border-left: 2px solid var(--gang-border);
    padding: 8px 10px;
    line-height: 1.5;
}

.gang-sheet-panel__section,
.gang-sheet-shortcuts-summary {
    margin-top: 20px;
    border-top: 1px solid var(--gang-border);
    padding-top: 18px;
}

.gang-sheet-panel__section-title {
    margin-bottom: 12px;
}

.gang-sheet-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 9px 0;
}

.gang-sheet-color-field input {
    min-height: 37px;
    padding: 4px;
}

.gang-sheet-shortcuts-summary p:not(.gang-sheet-eyebrow) {
    color: var(--gang-muted);
    font-size: 10px;
    line-height: 1.6;
}

.gang-sheet-shortcuts-summary button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--gang-cyan);
    cursor: pointer;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

kbd {
    border: 1px solid var(--gang-border);
    border-radius: 3px;
    padding: 1px 4px;
    background: #08070a;
    color: #fff;
    font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gang-sheet-workspace {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #28262d;
}

.gang-sheet-workspace-toolbar {
    position: relative;
    z-index: 10;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
    background: #16151a;
}

.gang-sheet-workspace-toolbar button,
.gang-sheet-alignment-grid button,
.gang-sheet-object-actions button,
.gang-sheet-layer-actions button,
.gang-sheet-inspector-tabs button {
    min-height: 32px;
    border: 1px solid var(--gang-border);
    border-radius: 5px;
    padding: 6px 9px;
    background: #0c0b0f;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.gang-sheet-workspace-toolbar button:hover,
.gang-sheet-alignment-grid button:hover,
.gang-sheet-layer-actions button:hover {
    border-color: var(--gang-cyan);
}

.gang-sheet-tool-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gang-sheet-tool-button--accent {
    border-color: rgba(249, 235, 28, 0.55) !important;
    color: var(--gang-yellow) !important;
}

.gang-sheet-tool-group output {
    min-width: 52px;
    color: var(--gang-muted);
    font-size: 10px;
    text-align: center;
}

.gang-sheet-background-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 0;
    padding: 0;
}

.gang-sheet-background-switcher legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.gang-sheet-background-switcher button {
    width: 24px;
    min-height: 24px;
    border-radius: 50%;
    padding: 0;
}

.gang-sheet-background-switcher button[data-background="transparent"] {
    background-color: #fff;
    background-image: linear-gradient(45deg, #bbb 25%, transparent 25%), linear-gradient(-45deg, #bbb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bbb 75%), linear-gradient(-45deg, transparent 75%, #bbb 75%);
    background-position: 0 0, 0 5px, 5px -5px, -5px 0;
    background-size: 10px 10px;
}

.gang-sheet-background-switcher button[data-background="white"] { background: #fff; }
.gang-sheet-background-switcher button[data-background="black"] { background: #050407; }

.gang-sheet-background-switcher button[aria-pressed="true"] {
    box-shadow: 0 0 0 2px #16151a, 0 0 0 4px var(--gang-yellow);
}

.gang-sheet-stage {
    position: relative;
    min-height: 0;
    flex: 1;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 28px;
    background-color: #302e35;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 20px 20px;
}

.gang-sheet-stage.is-dragging {
    box-shadow: inset 0 0 0 3px var(--gang-yellow);
}

.gang-sheet-drop-message {
    position: absolute;
    z-index: 30;
    inset: 24px;
    display: none;
    place-content: center;
    gap: 6px;
    border: 2px dashed var(--gang-yellow);
    border-radius: 10px;
    background: rgba(5, 4, 7, 0.86);
    color: #fff;
    text-align: center;
    pointer-events: none;
}

.gang-sheet-stage.is-dragging .gang-sheet-drop-message {
    display: grid;
}

.gang-sheet-drop-message span {
    color: var(--gang-muted);
    font-size: 11px;
}

.gang-sheet-canvas-shell {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-rows: 24px minmax(0, 1fr);
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.36));
}

.gang-sheet-ruler {
    position: relative;
    overflow: hidden;
    user-select: none;
    background-color: #111015;
}

.gang-sheet-ruler--corner {
    z-index: 2;
    display: grid;
    place-items: center;
    grid-column: 1;
    grid-row: 1;
    color: var(--gang-yellow);
    font: 7px ui-monospace, monospace;
}

.gang-sheet-ruler--horizontal {
    grid-column: 2;
    grid-row: 1;
    border-bottom: 2px solid var(--gang-magenta);
}

.gang-sheet-ruler--vertical {
    grid-column: 1;
    grid-row: 2;
    border-right: 2px solid var(--gang-cyan);
}

.gang-sheet-ruler__tick {
    position: absolute;
    z-index: 1;
    display: block;
    background: rgba(255, 255, 255, 0.38);
}

.gang-sheet-ruler__tick.is-major {
    background: rgba(255, 255, 255, 0.78);
}

.gang-sheet-ruler--horizontal .gang-sheet-ruler__tick {
    bottom: 0;
    left: var(--gang-ruler-position);
    width: 1px;
    height: 5px;
}

.gang-sheet-ruler--horizontal .gang-sheet-ruler__tick.is-major {
    height: 12px;
}

.gang-sheet-ruler--vertical .gang-sheet-ruler__tick {
    top: var(--gang-ruler-position);
    right: 0;
    width: 5px;
    height: 1px;
}

.gang-sheet-ruler--vertical .gang-sheet-ruler__tick.is-major {
    width: 11px;
}

.gang-sheet-ruler__label {
    position: absolute;
    z-index: 2;
    color: #e8e5eb;
    font: 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    pointer-events: none;
    white-space: nowrap;
}

.gang-sheet-ruler--horizontal .gang-sheet-ruler__label {
    top: 2px;
    left: var(--gang-ruler-position);
    transform: translateX(-50%);
}

.gang-sheet-ruler--horizontal .gang-sheet-ruler__label.is-start {
    transform: none;
}

.gang-sheet-ruler--horizontal .gang-sheet-ruler__label.is-end {
    transform: translateX(-100%);
}

.gang-sheet-ruler--vertical .gang-sheet-ruler__label {
    top: var(--gang-ruler-position);
    right: 2px;
    transform: translateY(-50%);
}

.gang-sheet-ruler--vertical .gang-sheet-ruler__label.is-start {
    transform: none;
}

.gang-sheet-ruler--vertical .gang-sheet-ruler__label.is-end {
    transform: translateY(-100%);
}

.gang-sheet-film {
    position: relative;
    min-width: 80px;
    min-height: 80px;
    grid-column: 2;
    grid-row: 2;
    overflow: hidden;
    background-color: #fff;
    background-image: linear-gradient(45deg, #d8d8d8 25%, transparent 25%), linear-gradient(-45deg, #d8d8d8 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #d8d8d8 75%), linear-gradient(-45deg, transparent 75%, #d8d8d8 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.gang-sheet-film[data-background="white"] {
    background: #fff;
}

.gang-sheet-film[data-background="black"] {
    background: #050407;
}

.gang-sheet-film canvas {
    display: block;
}

.gang-sheet-canvas-status {
    position: absolute;
    z-index: 15;
    right: 14px;
    bottom: 12px;
    border: 1px solid var(--gang-border);
    border-radius: 5px;
    padding: 6px 9px;
    background: rgba(5, 4, 7, 0.82);
    color: var(--gang-muted);
    font: 9px ui-monospace, monospace;
}

.gang-sheet-inspector-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    margin-bottom: 15px;
}

.gang-sheet-inspector-tabs button[aria-selected="true"] {
    border-color: var(--gang-magenta);
    background: rgba(230, 13, 123, 0.12);
}

.gang-sheet-inspector-tab {
    display: none;
}

.gang-sheet-inspector-tab.is-active {
    display: block;
}

.gang-sheet-no-selection {
    display: flex;
    min-height: 120px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px dashed var(--gang-border);
    border-radius: 7px;
    text-align: center;
}

.gang-sheet-selection-properties[hidden],
.gang-sheet-no-selection[hidden] {
    display: none;
}

.gang-sheet-selected-name {
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--gang-yellow);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gang-sheet-alignment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 14px 0;
}

.gang-sheet-object-actions {
    display: flex;
    gap: 7px;
}

.gang-sheet-object-actions button {
    flex: 1;
}

.gang-sheet-object-actions .is-danger {
    border-color: rgba(230, 13, 123, 0.5);
    color: #ff77b7;
}

.gang-sheet-quality-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.gang-sheet-quality-legend span,
.gang-sheet-quality-item__status {
    border-radius: 999px;
    padding: 4px 7px;
    font: 8px ui-monospace, monospace;
    font-weight: 800;
}

.gang-sheet-quality-legend .is-good,
.gang-sheet-quality-item.is-good .gang-sheet-quality-item__status { background: rgba(80,216,144,.15); color: var(--gang-success); }
.gang-sheet-quality-legend .is-warning,
.gang-sheet-quality-item.is-warning .gang-sheet-quality-item__status { background: rgba(249,235,28,.14); color: var(--gang-yellow); }
.gang-sheet-quality-legend .is-critical,
.gang-sheet-quality-item.is-critical .gang-sheet-quality-item__status { background: rgba(230,13,123,.14); color: #ff77b7; }

.gang-sheet-quality-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.gang-sheet-quality-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    border: 1px solid var(--gang-border);
    border-radius: 6px;
    padding: 9px;
    background: #0b0a0e;
}

.gang-sheet-quality-item strong,
.gang-sheet-quality-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gang-sheet-quality-item strong { font-size: 10px; }
.gang-sheet-quality-item small { margin-top: 3px; color: var(--gang-muted); font-size: 9px; }

.gang-sheet-quality-warning {
    border-left: 2px solid var(--gang-yellow);
    padding: 7px 9px;
    color: #dedbe4;
    font-size: 9px;
    line-height: 1.45;
}

.gang-sheet-quality-empty {
    color: var(--gang-muted);
    font-size: 10px;
}

.gang-sheet-warning-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    border: 1px solid rgba(249, 235, 28, 0.28);
    border-radius: 6px;
    padding: 10px;
    background: rgba(249, 235, 28, 0.06);
    color: #efedf1;
    font-size: 10px;
    line-height: 1.45;
}

.gang-sheet-warning-confirmation[hidden] { display: none; }
.gang-sheet-warning-confirmation input { accent-color: var(--gang-yellow); }

.gang-sheet-layer-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.gang-sheet-layer-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gang-sheet-layer-list button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    border: 1px solid var(--gang-border);
    border-radius: 5px;
    padding: 8px;
    background: #0b0a0e;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    text-align: left;
}

.gang-sheet-layer-list button[aria-current="true"] {
    border-color: var(--gang-cyan);
    background: rgba(30, 155, 215, 0.1);
}

.gang-sheet-mobile-toolbar {
    display: none;
}

.gang-sheet-shortcuts-dialog {
    width: min(520px, calc(100vw - 28px));
    border: 1px solid var(--gang-border);
    border-radius: 9px;
    padding: 0;
    background: var(--gang-panel);
    color: #fff;
}

.gang-sheet-shortcuts-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.gang-sheet-shortcuts-dialog > div {
    padding: 22px;
}

.gang-sheet-shortcuts-dialog dl {
    display: grid;
    gap: 7px;
    margin: 18px 0;
}

.gang-sheet-shortcuts-dialog dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--gang-border);
    padding-bottom: 7px;
}

.gang-sheet-shortcuts-dialog dt,
.gang-sheet-shortcuts-dialog dd {
    margin: 0;
    font-size: 11px;
}

.gang-sheet-unavailable {
    display: grid;
    place-content: center;
    gap: 38px;
    padding: 28px;
}

.gang-sheet-unavailable > .gang-sheet-brand {
    justify-self: center;
    font-size: 28px;
}

.gang-sheet-unavailable section {
    max-width: 640px;
    border-top: 3px solid var(--gang-magenta);
    padding: 28px;
    background: var(--gang-panel);
    text-align: center;
}

.gang-sheet-unavailable h1 {
    margin: 8px 0 14px;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1;
}

.gang-sheet-unavailable section > p:not(.gang-sheet-eyebrow) {
    margin-bottom: 24px;
    color: var(--gang-muted);
}

@keyframes gang-pulse {
    to { opacity: 0.35; transform: scale(0.75); }
}

@media (max-width: 1180px) {
    :root { --gang-topbar-height: 86px; }

    .gang-sheet-topbar {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
    }

    .gang-sheet-mode-badge,
    .gang-sheet-save-state,
    .gang-sheet-price > span {
        display: none;
    }

    .gang-sheet-layout {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 54px;
    }

    .gang-sheet-panel {
        position: fixed;
        z-index: 70;
        top: var(--gang-topbar-height);
        bottom: 54px;
        width: min(360px, 88vw);
        transition: transform 180ms ease-out;
    }

    .gang-sheet-library-panel {
        left: 0;
        transform: translateX(-105%);
    }

    .gang-sheet-inspector-panel {
        right: 0;
        transform: translateX(105%);
    }

    .gang-sheet-panel.is-open {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    }

    .gang-sheet-drawer-close {
        display: block;
    }

    .gang-sheet-mobile-toolbar {
        position: fixed;
        z-index: 75;
        right: 0;
        bottom: 0;
        left: 0;
        height: 54px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        border-top: 1px solid var(--gang-border);
        background: #09080c;
    }

    .gang-sheet-mobile-toolbar button {
        border: 0;
        border-right: 1px solid var(--gang-border);
        background: transparent;
        color: #fff;
        font-size: 10px;
        font-weight: 750;
    }
}

@media (max-width: 760px) {
    :root { --gang-topbar-height: 132px; }

    .gang-sheet-topbar {
        grid-template-columns: 1fr auto;
        align-content: center;
    }

    .gang-sheet-order-controls {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: stretch;
    }

    .gang-sheet-format-field {
        min-width: 0;
        flex: 1;
    }

    .gang-sheet-price {
        min-width: 80px;
    }

    .gang-sheet-topbar__actions .gang-sheet-primary-button {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 10px;
    }

    .gang-sheet-workspace-toolbar {
        justify-content: center;
        overflow-x: auto;
    }

    .gang-sheet-workspace-toolbar > .gang-sheet-tool-group:first-child,
    .gang-sheet-tool-button--accent,
    .gang-sheet-background-switcher {
        display: none;
    }

    .gang-sheet-stage {
        padding: 12px;
    }

    .gang-sheet-canvas-shell {
        grid-template-columns: 18px minmax(0, 1fr);
        grid-template-rows: 18px minmax(0, 1fr);
    }

    .gang-sheet-feedback {
        flex-direction: column;
        gap: 3px;
    }

    .gang-sheet-ruler__label {
        font-size: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gang-sheet-editor *,
    .gang-sheet-editor *::before,
    .gang-sheet-editor *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}