/* Simple mode */
.sidebar-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 4px 0 8px;
    margin-bottom: 4px;
}
.sidebar-title-row > span {
    min-width: 0;
    white-space: nowrap;
}
.sidebar-home-btn {
    --home-tool-accent: #ff9f0a;
    --home-tool-glow-rest: color-mix(in srgb, var(--home-tool-accent) 8%, transparent);
    --home-tool-glow-hover: color-mix(in srgb, var(--home-tool-accent) 24%, transparent);
    width: 34px;
    height: 34px;
    margin-left: auto;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--home-tool-accent) 62%, transparent);
    border-radius: 50%;
    color: #ffb340;
    background: rgba(28,28,30,0.58);
    cursor: pointer;
    box-shadow: var(--shadow-floating-rest), 0 0 10px var(--home-tool-glow-rest);
    transition: background 0.07s ease-out, border-color 0.14s ease-out, color 0.14s ease-out, box-shadow 0.14s ease-out, transform 0.14s ease-out;
}
.sidebar-home-btn svg {
    opacity: 0.92;
    transition: opacity 0.14s ease-out, filter 0.14s ease-out;
}
.sidebar-home-btn:hover,
.sidebar-home-btn:focus-visible {
    color: #fff0d1;
    background: rgba(54,42,24,0.72);
    border-color: color-mix(in srgb, var(--home-tool-accent) 72%, white 28%);
    box-shadow: var(--shadow-floating-hover), 0 0 16px var(--home-tool-glow-hover);
    transform: translateY(-1px);
}
.sidebar-home-btn:hover svg,
.sidebar-home-btn:focus-visible svg {
    opacity: 1;
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--home-tool-accent) 62%, transparent));
}
.sidebar-home-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--home-tool-accent) 72%, white 28%);
    outline-offset: 3px;
}
.sidebar-home-btn:active {
    box-shadow: var(--shadow-floating-rest), 0 0 10px color-mix(in srgb, var(--home-tool-accent) 12%, transparent);
    transform: translateY(1px) scale(0.94);
}

@property --welcome-simple-reflection-y { syntax: '<length>'; inherits: false; initial-value: 28px; }
@property --welcome-batch-reflection-y { syntax: '<length>'; inherits: false; initial-value: 28px; }
@property --welcome-cases-reflection-y { syntax: '<length>'; inherits: false; initial-value: 28px; }
@property --welcome-simple-reflection-scale { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --welcome-batch-reflection-scale { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --welcome-cases-reflection-scale { syntax: '<number>'; inherits: false; initial-value: 1; }

.welcome-actions {
    display: none;
    position: absolute;
    left: 50%;
    bottom: max(5vh, 30px);
    z-index: 12;
    transform: translate(-50%, 18px) scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    align-items: center;
    gap: 24px;
    will-change: transform, opacity;
}
.welcome-actions::before {
    --welcome-reflection-padding: 12px;
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: calc(56px + 2 * var(--welcome-reflection-padding));
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%);
    background-image: linear-gradient(
        108deg,
        rgba(255,255,255,0) 12%,
        rgba(255,255,255,0.055) 26%,
        rgba(255,255,255,0.16) 38%,
        rgba(255,255,255,0.42) 50%,
        rgba(255,255,255,0.16) 62%,
        rgba(255,255,255,0.055) 74%,
        rgba(255,255,255,0) 88%
    );
    background-size: 190% 100%;
    background-position: 125% 0;
    -webkit-mask:
        radial-gradient(circle calc(28px * var(--welcome-simple-reflection-scale)) at 28px calc(var(--welcome-reflection-padding) + var(--welcome-simple-reflection-y)), transparent 0 calc(24.5px * var(--welcome-simple-reflection-scale)), #000 calc(25.2px * var(--welcome-simple-reflection-scale)) calc(27.3px * var(--welcome-simple-reflection-scale)), transparent calc(28px * var(--welcome-simple-reflection-scale))),
        radial-gradient(circle calc(28px * var(--welcome-batch-reflection-scale)) at 108px calc(var(--welcome-reflection-padding) + var(--welcome-batch-reflection-y)), transparent 0 calc(24.5px * var(--welcome-batch-reflection-scale)), #000 calc(25.2px * var(--welcome-batch-reflection-scale)) calc(27.3px * var(--welcome-batch-reflection-scale)), transparent calc(28px * var(--welcome-batch-reflection-scale))),
        radial-gradient(circle calc(28px * var(--welcome-cases-reflection-scale)) at 188px calc(var(--welcome-reflection-padding) + var(--welcome-cases-reflection-y)), transparent 0 calc(24.5px * var(--welcome-cases-reflection-scale)), #000 calc(25.2px * var(--welcome-cases-reflection-scale)) calc(27.3px * var(--welcome-cases-reflection-scale)), transparent calc(28px * var(--welcome-cases-reflection-scale)));
    mask:
        radial-gradient(circle calc(28px * var(--welcome-simple-reflection-scale)) at 28px calc(var(--welcome-reflection-padding) + var(--welcome-simple-reflection-y)), transparent 0 calc(24.5px * var(--welcome-simple-reflection-scale)), #000 calc(25.2px * var(--welcome-simple-reflection-scale)) calc(27.3px * var(--welcome-simple-reflection-scale)), transparent calc(28px * var(--welcome-simple-reflection-scale))),
        radial-gradient(circle calc(28px * var(--welcome-batch-reflection-scale)) at 108px calc(var(--welcome-reflection-padding) + var(--welcome-batch-reflection-y)), transparent 0 calc(24.5px * var(--welcome-batch-reflection-scale)), #000 calc(25.2px * var(--welcome-batch-reflection-scale)) calc(27.3px * var(--welcome-batch-reflection-scale)), transparent calc(28px * var(--welcome-batch-reflection-scale))),
        radial-gradient(circle calc(28px * var(--welcome-cases-reflection-scale)) at 188px calc(var(--welcome-reflection-padding) + var(--welcome-cases-reflection-y)), transparent 0 calc(24.5px * var(--welcome-cases-reflection-scale)), #000 calc(25.2px * var(--welcome-cases-reflection-scale)) calc(27.3px * var(--welcome-cases-reflection-scale)), transparent calc(28px * var(--welcome-cases-reflection-scale)));
    mix-blend-mode: screen;
    transition: opacity 500ms ease,
        --welcome-simple-reflection-y 0.14s ease-out, --welcome-batch-reflection-y 0.14s ease-out, --welcome-cases-reflection-y 0.14s ease-out,
        --welcome-simple-reflection-scale 0.14s ease-out, --welcome-batch-reflection-scale 0.14s ease-out, --welcome-cases-reflection-scale 0.14s ease-out;
}
.welcome-actions:has(> .welcome-simple-btn:is(:hover, :focus-visible))::before { --welcome-simple-reflection-y: 26px; }
.welcome-actions:has(> .welcome-batch-btn:is(:hover, :focus-visible))::before { --welcome-batch-reflection-y: 26px; }
.welcome-actions:has(> .welcome-cases-btn:is(:hover, :focus-visible))::before { --welcome-cases-reflection-y: 26px; }
.welcome-actions:has(> .welcome-simple-btn:active)::before { --welcome-simple-reflection-y: 28px; --welcome-simple-reflection-scale: .95; }
.welcome-actions:has(> .welcome-batch-btn:active)::before { --welcome-batch-reflection-y: 28px; --welcome-batch-reflection-scale: .95; }
.welcome-actions:has(> .welcome-cases-btn:active)::before { --welcome-cases-reflection-y: 28px; --welcome-cases-reflection-scale: .95; }
body.app-background-paused.welcome-mode.welcome-intro-ready .welcome-actions::before { animation-play-state: paused; transition: opacity 500ms ease; }
body.welcome-mode .welcome-actions {
    display: flex;
}
body.welcome-mode.welcome-intro-ready .welcome-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
    animation: welcomeActionsIn 0.82s cubic-bezier(.18, .92, .22, 1.08) both;
}
body.welcome-mode.welcome-intro-ready .welcome-actions::before {
    opacity: 0.72;
    animation: welcomeActionsReflection 3s linear infinite;
    animation-delay: var(--welcome-reflection-delay, 0ms);
}
body.welcome-mode.welcome-intro-ready:not(.welcome-actions-stable):not(.welcome-actions-exiting):not(.decorative-animations-off):not(.decorative-animations-basic) .welcome-actions::before {
    animation-name: welcomeActionsReflection, welcomeSimpleReflectionIn, welcomeBatchReflectionIn, welcomeCasesReflectionIn;
    animation-duration: 3s, .48s, .48s, .48s;
    animation-timing-function: linear, cubic-bezier(.18, .92, .22, 1.08), cubic-bezier(.18, .92, .22, 1.08), cubic-bezier(.18, .92, .22, 1.08);
    animation-delay: var(--welcome-reflection-delay, 0ms), .04s, .11s, .18s;
    animation-iteration-count: infinite, 1, 1, 1;
    animation-fill-mode: none, backwards, backwards, backwards;
}
body.decorative-animations-off.welcome-mode.welcome-intro-ready .welcome-actions {
    animation: none !important;
    transform: translateX(-50%) scale(1);
}
body.welcome-mode.welcome-intro-ready .welcome-actions > .welcome-simple-btn {
    animation: welcomeActionItemIn .48s cubic-bezier(.18, .92, .22, 1.08) .04s backwards;
}
body.welcome-mode.welcome-intro-ready .welcome-actions > .welcome-batch-btn {
    animation: welcomeActionItemIn .48s cubic-bezier(.18, .92, .22, 1.08) .11s backwards;
}
body.welcome-mode.welcome-intro-ready .welcome-actions > .welcome-cases-btn {
    animation: welcomeActionItemIn .48s cubic-bezier(.18, .92, .22, 1.08) .18s backwards;
}
body.welcome-actions-stable .welcome-actions,
body.welcome-actions-stable .welcome-actions > * {
    animation: none !important;
}
body.decorative-animations-basic.welcome-mode .welcome-actions {
    transition: opacity 180ms ease, transform 210ms cubic-bezier(.4,0,.2,1);
}
body.welcome-mode.welcome-actions-exiting .welcome-actions {
    visibility: visible;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px) scale(0.94);
    animation: welcomeActionsOut 210ms cubic-bezier(.4,0,.2,1) both !important;
}
body.welcome-mode.welcome-actions-exiting .welcome-actions > * {
    animation: none !important;
}
body.decorative-animations-off.welcome-mode.welcome-intro-ready .welcome-actions > * {
    animation: none !important;
}
@keyframes welcomeActionsIn {
    0% {
        opacity: 0;
        transform: translate(-50%, 28px) scale(0.92);
    }
    62% {
        opacity: 1;
        transform: translate(-50%, -3px) scale(1.015);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}
@keyframes welcomeActionItemIn {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.82);
    }
    68% {
        opacity: 1;
        transform: translateY(-2px) scale(1.035);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes welcomeSimpleReflectionIn {
    0% { --welcome-simple-reflection-y: 42px; --welcome-simple-reflection-scale: .82; }
    68% { --welcome-simple-reflection-y: 26px; --welcome-simple-reflection-scale: 1.035; }
    100% { --welcome-simple-reflection-y: 28px; --welcome-simple-reflection-scale: 1; }
}
@keyframes welcomeBatchReflectionIn {
    0% { --welcome-batch-reflection-y: 42px; --welcome-batch-reflection-scale: .82; }
    68% { --welcome-batch-reflection-y: 26px; --welcome-batch-reflection-scale: 1.035; }
    100% { --welcome-batch-reflection-y: 28px; --welcome-batch-reflection-scale: 1; }
}
@keyframes welcomeCasesReflectionIn {
    0% { --welcome-cases-reflection-y: 42px; --welcome-cases-reflection-scale: .82; }
    68% { --welcome-cases-reflection-y: 26px; --welcome-cases-reflection-scale: 1.035; }
    100% { --welcome-cases-reflection-y: 28px; --welcome-cases-reflection-scale: 1; }
}
@keyframes welcomeActionsOut {
    from { opacity: 1; transform: translateX(-50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, 10px) scale(0.94); }
}
@keyframes welcomeActionsReflection {
    from { background-position: 125% 0; }
    to { background-position: -25% 0; }
}
@media (prefers-reduced-motion: reduce) {
    body.welcome-mode.welcome-intro-ready .welcome-actions,
    body.welcome-mode.welcome-intro-ready .welcome-actions > * {
        animation: none !important;
    }
}
.welcome-icon-btn {
    --welcome-action-accent: #d1d1d6;
    --welcome-action-idle-color: color-mix(in srgb, var(--welcome-action-accent) 24%, #d1d1d6);
    --welcome-action-idle-border: color-mix(in srgb, var(--welcome-action-accent) 34%, rgba(209, 209, 214, 0.48));
    --welcome-action-idle-glow: color-mix(in srgb, var(--welcome-action-accent) 10%, transparent);
    --welcome-action-hover-color: #f5f5f7;
    --welcome-action-hover-bg: rgba(56,56,58,0.76);
    --welcome-action-glow-hover: color-mix(in srgb, var(--welcome-action-accent) 24%, transparent);
    --welcome-icon-reflection-offset: 0ms;
    position: relative;
    width: 56px;
    min-width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid var(--welcome-action-idle-border);
    background: rgba(28, 28, 30, 0.82);
    overflow: visible;
    color: var(--welcome-action-idle-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.28), 0 0 9px var(--welcome-action-idle-glow);
    transition: transform 0.14s ease-out, background 0.07s ease-out, border-color 0.14s ease-out, color 0.14s ease-out, box-shadow 0.14s ease-out;
}
.welcome-icon-btn svg {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
}
.welcome-icon-btn > svg,
.welcome-icon-btn > .ui-settings-gear-icon {
    position: relative;
    z-index: 0;
    opacity: 0.92;
    transition: opacity 0.14s ease-out, filter 0.14s ease-out;
}
body.welcome-mode.welcome-intro-ready .welcome-icon-btn > svg {
    animation: welcomeIconReflection 3s linear infinite;
    animation-delay: calc(var(--welcome-reflection-delay, 0ms) + var(--welcome-icon-reflection-offset));
}
body.welcome-mode.welcome-intro-ready .welcome-icon-btn > .ui-settings-gear-icon {
    animation: welcomeGearReflection 3s linear infinite;
    animation-delay: calc(var(--welcome-reflection-delay, 0ms) + var(--welcome-icon-reflection-offset));
}
@keyframes welcomeIconReflection {
    0%, 34%, 66%, 100% { filter: brightness(1); }
    44%, 56% { filter: brightness(1.16) drop-shadow(0 0 2px rgba(255,255,255,0.12)); }
    50% { filter: brightness(1.48) drop-shadow(0 0 5px rgba(255,255,255,0.42)); }
}
@keyframes welcomeGearReflection {
    0%, 34%, 66%, 100% { filter: grayscale(0.66) saturate(0.55) brightness(1.25); }
    44%, 56% { filter: grayscale(0.54) saturate(0.62) brightness(1.34) drop-shadow(0 0 2px rgba(255,255,255,0.12)); }
    50% { filter: grayscale(0.38) saturate(0.72) brightness(1.52) drop-shadow(0 0 5px rgba(255,255,255,0.42)); }
}
.welcome-icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    min-width: max-content;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 6px;
    background: rgba(28,28,30,0.96);
    color: #f5f5f7;
    box-shadow: 0 8px 20px rgba(0,0,0,0.32);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 5px);
    transition: opacity 0.14s ease, transform 0.16s ease, visibility 0.14s ease;
    z-index: 3;
}
.welcome-icon-btn:hover,
.welcome-icon-btn:focus-visible {
    transform: translateY(-2px);
    color: var(--welcome-action-hover-color);
    background: var(--welcome-action-hover-bg);
    border-color: color-mix(in srgb, var(--welcome-action-accent) 72%, white 28%);
    box-shadow: 0 10px 26px rgba(0,0,0,0.36), 0 0 16px var(--welcome-action-glow-hover);
}
.welcome-icon-btn:hover > svg,
.welcome-icon-btn:focus-visible > svg,
.welcome-icon-btn:hover > .ui-settings-gear-icon,
.welcome-icon-btn:focus-visible > .ui-settings-gear-icon {
    animation: none;
    opacity: 1;
    filter: brightness(1.24) saturate(1.06) drop-shadow(0 0 5px color-mix(in srgb, var(--welcome-action-accent) 62%, transparent));
}
.welcome-icon-btn:hover::after,
.welcome-icon-btn:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.welcome-icon-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--welcome-action-accent) 72%, white 28%);
    outline-offset: 3px;
}
.welcome-icon-btn:active {
    transform: translateY(0) scale(0.95);
}
body.app-background-paused .welcome-icon-btn { transition: none; }
.welcome-simple-btn {
    --welcome-action-accent: #0a84ff;
    --welcome-action-hover-color: #e0f1ff;
    --welcome-action-hover-bg: rgba(32,46,66,0.76);
    --welcome-icon-reflection-offset: -480ms;
}
.welcome-cases-btn {
    --welcome-action-accent: #3CAE4E;
    --welcome-action-hover-color: #d7ffdf;
    --welcome-action-hover-bg: rgba(42,54,44,0.72);
    --welcome-icon-reflection-offset: 480ms;
}
.welcome-cases-btn > .ui-settings-gear-icon {
    filter: grayscale(0.66) saturate(0.55) brightness(1.25);
}
.welcome-cases-btn:hover > .ui-settings-gear-icon,
.welcome-cases-btn:focus-visible > .ui-settings-gear-icon {
    filter: brightness(1.22) saturate(1) drop-shadow(0 0 5px rgba(98,213,121,0.62));
}
body.decorative-animations-off.welcome-mode .welcome-actions::before {
    opacity: 0;
    animation-play-state: paused;
}
body.decorative-animations-basic.welcome-mode .welcome-actions::before {
    opacity: 0;
    animation: none !important;
}
body.decorative-animations-basic .welcome-icon-btn > svg,
body.decorative-animations-basic .welcome-icon-btn > .ui-settings-gear-icon {
    animation: none !important;
}
body.decorative-animations-off .welcome-icon-btn > svg,
body.decorative-animations-off .welcome-icon-btn > .ui-settings-gear-icon {
    animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
    .welcome-actions::before {
        display: none !important;
    }
    .welcome-icon-btn > svg,
    .welcome-icon-btn > .ui-settings-gear-icon {
        animation: none !important;
    }
}

.simple-mode-overlay,
.simple-complete-overlay {
    z-index: 2300;
}
.simple-mode-content,
.simple-complete-content {
    width: min(1280px, 96vw);
    max-height: 94vh;
    box-sizing: border-box;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-y: auto;
    border-radius: 8px;
    background: rgba(28, 28, 30, 0.5);
}
.simple-mode-content {
    min-height: min(740px, 94vh);
    gap: 16px;
    padding: 22px;
    overflow-x: hidden;
}
.simple-mode-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.simple-complete-head h2 {
    margin: 2px 0 0;
    color: #f5f5f7;
    font-size: 26px;
    letter-spacing: 0;
}
.simple-mode-header h2 {
    color: #64a8ff;
}
.simple-mode-header h2 svg {
    flex: 0 0 auto;
}
.simple-mode-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}
.simple-last-order-btn {
    width: auto;
    min-width: 132px;
    margin: 0;
    border-color: rgba(100, 168, 255, 0.38);
    color: #cfe4ff;
    background: rgba(10, 132, 255, 0.1);
}
.simple-last-order-btn:hover:not(:disabled),
.simple-last-order-btn:focus-visible:not(:disabled) {
    border-color: rgba(100, 168, 255, 0.72);
    color: #f0f7ff;
    background: rgba(10, 132, 255, 0.2);
    box-shadow: 0 0 14px rgba(10, 132, 255, 0.18);
}
.simple-last-order-btn:disabled {
    border-color: rgba(255, 255, 255, 0.11);
    color: #747980;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
}
.simple-professional-btn {
    width: auto;
    min-width: 132px;
    margin: 0;
}
.simple-meta-row {
    --simple-section-border: rgba(255,255,255,0.14);
    --simple-section-bg: rgba(255,255,255,0.035);
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(420px, 0.98fr);
    gap: 16px;
    align-items: stretch;
    margin: 0 -14px;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: var(--simple-section-bg);
    box-shadow: inset 0 0 0 1px var(--simple-section-border);
}
.simple-source-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.simple-source-section > span {
    display: block;
    margin: 0 0 7px;
    color: #64a8ff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}
.simple-source-row {
    --simple-source-control-size: 42px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--simple-source-control-size);
    gap: 8px;
    align-items: center;
}
.simple-source-row strong {
    position: relative;
    min-width: 0;
    height: var(--simple-source-control-size);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 12px 0 108px;
    border: 1px solid #48484a;
    border-radius: 6px;
    background: #111113;
    color: #f5f5f7;
    font-size: 15px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}
.simple-source-choose-btn,
.simple-source-folder-btn {
    height: var(--simple-source-control-size);
    padding: 0 14px;
    border: 1px solid rgba(10,132,255,0.74);
    border-radius: 6px;
    background: rgba(10,132,255,0.17);
    color: #d5ebff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}
.simple-source-choose-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    min-width: 88px;
    height: 30px;
    padding: 0 10px;
    font-size: 14px;
    border: 0;
    border-radius: 6px;
    background: #f5f5f7;
    color: #1c1c1e;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.32);
}
.simple-source-folder-btn {
    width: var(--simple-source-control-size);
    min-width: var(--simple-source-control-size);
    height: var(--simple-source-control-size);
    padding: 0;
    color: #f5f5f7;
    border: 0;
    border-radius: 8px;
    background: #3a3a3c;
}
.simple-source-folder-btn:disabled {
    opacity: 0.45;
    cursor: default;
}
.simple-source-choose-btn:hover,
.simple-source-folder-btn:hover:not(:disabled) {
    border-color: transparent;
}
.simple-source-choose-btn:hover {
    background: #ffffff;
}
.simple-source-folder-btn:hover:not(:disabled) {
    background: #48484a;
}
.simple-source-choose-btn:active,
.simple-source-folder-btn:active:not(:disabled) {
    transform: scale(0.97);
}
.simple-source-choose-btn:active {
    transform: translateY(-50%) scale(0.97);
}
@keyframes simpleSpinner {
    to { transform: rotate(360deg); }
}
.simple-order-form {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    min-height: 0;
}
.simple-case-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    align-items: end;
}
.simple-case-section label {
    color: #64a8ff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}
.simple-case-section input {
    width: 100%;
    height: 42px;
    margin-top: 7px;
    box-sizing: border-box;
    border: 1px solid #48484a;
    border-radius: 6px;
    background: #111113;
    color: #ffffff;
    padding: 0 10px;
    font: inherit;
    font-size: 16px;
}
.simple-case-section input:focus {
    border-color: #0a84ff !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10,132,255,0.24) !important;
}
.simple-section-title {
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
}
.simple-section-title svg {
    flex: 0 0 auto;
}
.simple-section-title-orange {
    color: var(--primary);
}
.simple-workflow-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(420px, 0.98fr);
    gap: 24px;
    align-items: stretch;
    min-width: 0;
    height: 100%;
    padding: 0;
}
.simple-spec-section {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.simple-spec-section > .simple-section-title {
    padding-left: 9px;
    border-left: 3px solid currentColor;
}
.simple-spec-grid {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
}
.simple-spec-grid.has-overflow {
    flex: 0 1 auto;
    max-height: 452px;
    padding-right: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: rgba(255,159,10,0.82) rgba(255,159,10,0.12);
    scrollbar-width: auto;
}
.simple-spec-grid.has-overflow::-webkit-scrollbar,
.has-inline-output .simple-spec-grid::-webkit-scrollbar { width: 10px; }
.simple-spec-grid.has-overflow::-webkit-scrollbar-track,
.has-inline-output .simple-spec-grid::-webkit-scrollbar-track {
    border-radius: 6px;
    background: rgba(255,159,10,0.12);
}
.simple-spec-grid.has-overflow::-webkit-scrollbar-thumb,
.has-inline-output .simple-spec-grid::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255,159,10,0.12);
    border-radius: 6px;
    background: rgba(255,159,10,0.82);
}
.simple-spec-grid.has-overflow .simple-spec-card {
    flex: 0 0 104px;
}
@property --simple-card-bg-left {
    syntax: '<color>';
    inherits: false;
    initial-value: rgba(32,32,34,0.88);
}
@property --simple-card-bg-center {
    syntax: '<color>';
    inherits: false;
    initial-value: rgba(32,32,34,0.88);
}
@property --simple-card-bg-right {
    syntax: '<color>';
    inherits: false;
    initial-value: rgba(32,32,34,0.88);
}
@property --simple-card-border-left {
    syntax: '<color>';
    inherits: false;
    initial-value: rgba(255,255,255,0.10);
}
@property --simple-card-border-right {
    syntax: '<color>';
    inherits: false;
    initial-value: rgba(255,255,255,0.10);
}
@property --simple-card-inset-left {
    syntax: '<color>';
    inherits: false;
    initial-value: transparent;
}
@property --simple-card-inset-right {
    syntax: '<color>';
    inherits: false;
    initial-value: transparent;
}
.simple-spec-card {
    --simple-card-bg-left: rgba(32,32,34,0.88);
    --simple-card-bg-center: rgba(32,32,34,0.88);
    --simple-card-bg-right: rgba(32,32,34,0.88);
    --simple-card-border-left: rgba(255,255,255,0.10);
    --simple-card-border-right: rgba(255,255,255,0.10);
    --simple-card-inset-left: transparent;
    --simple-card-inset-right: transparent;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    min-height: 104px;
    padding: 10px 24px 10px 14px;
    display: grid;
    grid-template-columns: 76px 26px minmax(90px, 1fr) minmax(124px, 150px) 138px;
    justify-content: stretch;
    gap: 10px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background:
        linear-gradient(90deg, var(--simple-card-bg-left), var(--simple-card-bg-center) 50%, var(--simple-card-bg-right)) padding-box,
        linear-gradient(90deg, var(--simple-card-border-left), var(--simple-card-border-right)) border-box;
    box-shadow:
        inset 3px 0 0 var(--simple-card-inset-left),
        inset -3px 0 0 var(--simple-card-inset-right);
    transition:
        --simple-card-bg-left 0.34s ease,
        --simple-card-bg-center 0.34s ease,
        --simple-card-bg-right 0.34s ease,
        --simple-card-border-left 0.34s ease,
        --simple-card-border-right 0.34s ease,
        --simple-card-inset-left 0.34s ease,
        --simple-card-inset-right 0.34s ease;
}
.simple-spec-card:has(.simple-crop-toggle input:checked):not(.has-layout-count) {
    --simple-card-bg-left: rgba(43,35,26,0.78);
    --simple-card-bg-center: rgba(43,35,26,0.78);
    --simple-card-bg-right: rgba(43,35,26,0.78);
    --simple-card-border-left: rgba(255,159,10,0.48);
    --simple-card-border-right: rgba(255,159,10,0.48);
    --simple-card-inset-left: rgba(255,159,10,0.78);
}
.simple-spec-card.has-layout-count:not(:has(.simple-crop-toggle input:checked)) {
    --simple-card-bg-left: rgba(42,32,48,0.82);
    --simple-card-bg-center: rgba(42,32,48,0.82);
    --simple-card-bg-right: rgba(42,32,48,0.82);
    --simple-card-border-left: rgba(191,90,242,0.52);
    --simple-card-border-right: rgba(191,90,242,0.52);
    --simple-card-inset-left: rgba(191,90,242,0.82);
}
.simple-spec-card.has-layout-count:not(:has(.simple-crop-toggle input:checked)) .simple-spec-identity h3 {
    color: #d8a7f0;
}
.simple-spec-card.has-layout-count:not(:has(.simple-crop-toggle input:checked)) .simple-crop-preview,
.simple-spec-card.has-layout-count:not(:has(.simple-crop-toggle input:checked)) .simple-flexible-spec-identity select {
    border-color: rgba(191,90,242,0.58);
}
.simple-spec-card.has-layout-count:not(:has(.simple-crop-toggle input:checked)) .simple-flexible-spec-identity select {
    color: #e4baff;
}
.simple-spec-card.has-layout-count:not(:has(.simple-crop-toggle input:checked)) .simple-crop-toggle-label {
    border-color: rgba(191,90,242,0.68);
    color: #d8a7f0;
    background: rgba(191,90,242,0.11);
}
.simple-spec-card.has-layout-count:not(:has(.simple-crop-toggle input:checked)) .simple-crop-toggle:hover .simple-crop-toggle-label {
    border-color: #BF5AF2;
    background: rgba(191,90,242,0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), var(--glow-purple-soft);
}
.simple-spec-card.has-layout-count:has(.simple-crop-toggle input:checked) {
    --simple-card-bg-left: rgba(48,37,25,0.88);
    --simple-card-bg-center: rgba(39,34,35,0.84);
    --simple-card-bg-right: rgba(44,31,50,0.88);
    --simple-card-border-left: rgba(255,159,10,0.66);
    --simple-card-border-right: rgba(191,90,242,0.68);
    --simple-card-inset-left: rgba(255,159,10,0.84);
    --simple-card-inset-right: rgba(191,90,242,0.84);
}
body.decorative-animations-off .simple-spec-card {
    transition: none !important;
}
.simple-spec-identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.simple-spec-coverage-warning-slot {
    width: 26px;
    min-width: 26px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.simple-spec-coverage-warning {
    width: 26px;
    height: 26px;
    min-width: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ff453a;
    border-radius: 50%;
    color: #fff;
    background: #ff453a;
    box-shadow: 0 0 0 3px rgba(255,69,58,0.14), 0 0 12px rgba(255,69,58,0.28);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.simple-spec-coverage-warning-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}
.simple-spec-coverage-warning[hidden] {
    display: none !important;
}
.simple-spec-coverage-warning:hover,
.simple-spec-coverage-warning:focus-visible {
    transform: scale(1.08);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255,69,58,0.18), 0 0 16px rgba(255,69,58,0.42);
}
.simple-spec-identity h3 {
    margin: 0;
    color: var(--primary);
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: 0;
}
.simple-crop-preview {
    position: relative;
    width: 76px;
    height: 82px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,159,10,0.34);
    border-radius: 6px;
    background: transparent;
}
.simple-spec-card.is-position-locked .simple-crop-preview {
    border-color: #ff453a;
    box-shadow: 0 0 0 2px rgba(255,69,58,0.16), 0 0 14px rgba(255,69,58,0.24);
}
.simple-spec-lock-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 4;
    width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.82);
    border-radius: 50%;
    color: #ffffff;
    background: #ff453a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.34), 0 0 0 2px rgba(255,69,58,0.16);
    pointer-events: none;
}
.simple-spec-lock-badge[hidden] {
    display: none !important;
}
.simple-spec-lock-badge .lock-state-svg {
    display: block;
    width: 13px;
    height: 13px;
}
.simple-spec-grid.is-locating .simple-crop-preview canvas {
    opacity: 0.12;
}
.simple-spec-grid.is-locating .simple-crop-preview::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(50% - 11px);
    z-index: 2;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    box-sizing: border-box;
    border: 4px solid rgba(100,168,255,0.20);
    border-top-color: #64a8ff;
    border-radius: 50%;
    animation: simpleSpinner 0.8s linear infinite;
}
.simple-spec-grid.is-locating .simple-crop-preview::after {
    content: "定位中";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% + 12px);
    z-index: 2;
    color: #64a8ff;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0;
}
.simple-crop-preview canvas {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    background: transparent;
}
.simple-crop-toggle {
    display: block;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}
.simple-crop-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.simple-crop-toggle-label {
    min-height: 44px;
    min-width: 0;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255,159,10,0.65);
    border-radius: 6px;
    color: var(--primary);
    background: rgba(255,159,10,0.10);
    font-size: 13px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease;
}
.simple-crop-toggle:hover .simple-crop-toggle-label {
    border-color: var(--primary);
    background: rgba(255,159,10,0.16);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), var(--glow-orange-soft);
}
.simple-crop-toggle:active .simple-crop-toggle-label {
    transform: scale(0.985);
}
.simple-crop-toggle-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
    border-radius: 6px;
    background: rgba(0,0,0,0.14);
}
.simple-crop-toggle-icon svg {
    opacity: 0;
    transform: scale(0.72);
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.simple-crop-text {
    min-width: 0;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.simple-crop-text-on {
    display: none;
}
.simple-crop-toggle input:checked + .simple-crop-toggle-label {
    color: #1c1c1e;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 0 20px rgba(255,159,10,0.34);
}
.simple-crop-toggle input:checked + .simple-crop-toggle-label .simple-crop-toggle-icon {
    background: rgba(28,28,30,0.14);
}
.simple-crop-toggle input:checked + .simple-crop-toggle-label .simple-crop-toggle-icon svg {
    opacity: 1;
    transform: scale(1);
}
.simple-crop-toggle input:checked + .simple-crop-toggle-label .simple-crop-text-off {
    display: none;
}
.simple-crop-toggle input:checked + .simple-crop-toggle-label .simple-crop-text-on {
    display: inline;
}
.simple-count-row {
    --modal-accent: #BF5AF2;
    --workspace-accent: #BF5AF2;
    height: 44px;
    min-width: 138px;
    margin: 0;
    display: grid;
    grid-template-columns: 36px minmax(56px, 1fr) 36px;
    align-items: center;
    gap: 5px;
}
.simple-flexible-spec-identity label {
    display: block;
    margin-bottom: 5px;
    color: #a9a9af;
    font-size: 11px;
    font-weight: 800;
}
.simple-flexible-spec-identity select {
    width: 100%;
    height: 38px;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 32px 0 10px;
    border: 1px solid rgba(255,159,10,0.72);
    border-radius: 6px;
    background: #18181a;
    color: #ffd18a;
    font: inherit;
    font-size: 16px;
    font-weight: 850;
    cursor: pointer;
    accent-color: var(--primary);
}
.simple-flexible-spec-identity select:hover {
    border-color: var(--primary);
    background: rgba(255,159,10,0.10);
}
.simple-flexible-spec-identity select:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: none;
}
.simple-count-row button {
    width: 36px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #BF5AF2;
    border-radius: 6px;
    color: #e4baff;
    background: rgba(191,90,242,0.12);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}
.simple-count-row button:hover {
    color: #1c1c1e;
    background: #BF5AF2;
}
.simple-count-row strong {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(30px, 1fr) auto;
    align-items: center;
    gap: 2px;
    color: #e4baff;
    font-size: 18px;
    text-align: center;
    white-space: nowrap;
}
.simple-count-row input[data-simple-count] {
    width: 100%;
    min-width: 0;
    height: 30px;
    padding: 0 4px;
    box-sizing: border-box;
    border: 1px solid rgba(191,90,242,0.44);
    border-radius: 5px;
    outline: none;
    color: #e9c8ff;
    background: rgba(16,14,18,0.78);
    font: inherit;
    font-size: 15px;
    text-align: center;
    appearance: textfield;
}
.simple-count-row input[data-simple-count]::-webkit-inner-spin-button,
.simple-count-row input[data-simple-count]::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}
.simple-count-row input[data-simple-count]:focus {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 0 2px rgba(191,90,242,0.18) !important;
}
.simple-output-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.simple-output-settings-scroll {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
}
.simple-layout-section,
.simple-cover-section {
    min-width: 0;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    border-radius: 0;
    background: transparent;
}
.simple-layout-section {
    --modal-accent: #BF5AF2;
    --workspace-accent: #BF5AF2;
    border-bottom-color: rgba(191,90,242,0.28);
}
.simple-cover-section {
    --modal-accent: #32aec6;
    --workspace-accent: #32aec6;
    border-bottom-color: rgba(50,174,198,0.30);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}
.simple-layout-section > h3,
.simple-cover-section > h3,
.simple-spec-section > .simple-section-title {
    margin: 0 0 10px;
    padding-left: 9px;
    border-left: 3px solid currentColor;
    font-size: 18px;
    font-weight: 900;
    line-height: 24px;
    min-height: 24px;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.simple-layout-section > h3 svg,
.simple-cover-section > h3 svg,
.simple-spec-section > .simple-section-title svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}
.simple-layout-section h3 {
    color: #BF5AF2;
}
.simple-cover-section h3 {
    color: #32aec6;
}
.simple-option-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.simple-option-row button,
.simple-paper-options button {
    min-height: 44px;
    padding: 7px 8px;
    border-radius: 6px;
    background: #202022;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease;
}
.simple-option-row button:active:not(:disabled),
.simple-paper-options button:active {
    transform: scale(0.985);
}
.simple-paper-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    align-items: stretch;
}
.simple-paper-options button {
    min-width: 0;
    min-height: 48px;
    padding: 5px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 1px solid rgba(191,90,242,0.68);
    color: #d9b4ff;
}
.simple-paper-options button small {
    color: #9d83ae;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
}
.simple-paper-options button:hover {
    border-color: var(--accent-purple);
    background: rgba(191,90,242,0.16);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), var(--glow-purple-soft);
}
.simple-paper-options button.active {
    border-color: var(--accent-purple);
    color: var(--ink-on-accent);
    background: var(--accent-purple);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset, var(--glow-purple-soft);
}
.simple-paper-options button.active small {
    color: rgba(20,12,24,0.72);
}
.simple-layout-appearance {
    --modal-accent: #BF5AF2;
    --workspace-accent: #BF5AF2;
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns:
        minmax(126px, 1.2fr)
        minmax(64px, 0.55fr)
        minmax(104px, 0.82fr);
    gap: clamp(4px, 0.7vw, 10px);
    align-items: stretch;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(191,90,242,0.18);
}
.simple-layout-appearance-menu {
    position: relative;
    min-width: 0;
    z-index: 1;
}
.simple-layout-appearance-menu.is-open {
    z-index: 30;
}
.simple-layout-appearance-toggle {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(191,90,242,0.50);
    border-radius: 6px;
    background: rgba(191,90,242,0.08);
    color: #c5a1da;
    font: 900 12px/1 var(--font-ui);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.simple-layout-appearance-toggle:hover,
.simple-layout-appearance-toggle:focus-visible,
.simple-layout-appearance-toggle[aria-expanded="true"] {
    border-color: #BF5AF2;
    background: rgba(191,90,242,0.15);
    color: #e4baff;
    box-shadow: 0 0 0 1px rgba(191,90,242,0.10) inset, var(--glow-purple-soft);
    outline: none;
}
.simple-layout-appearance-panel {
    --simple-appearance-columns: 32px 96px 78px 96px 96px;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 32;
    width: min(444px, calc(100vw - 56px));
    max-width: calc(100vw - 56px);
    padding: 9px 10px;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 38px 38px;
    gap: 7px;
    border: 1px solid rgba(191,90,242,0.45);
    border-radius: 8px;
    background: rgba(24,24,26,0.92);
    -webkit-backdrop-filter: blur(var(--glass-blur-popover));
    backdrop-filter: blur(var(--glass-blur-popover));
    box-shadow: 0 14px 34px rgba(0,0,0,0.48), 0 0 0 1px rgba(255,255,255,0.035) inset;
    transform-origin: top right;
    animation: simple-layout-appearance-in 0.16s ease-out both;
}
.simple-layout-appearance-panel[hidden] {
    display: none;
}
@keyframes simple-layout-appearance-in {
    from { opacity: 0; transform: translateY(-4px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.simple-layout-appearance-panel-row {
    min-width: 0;
    display: grid;
    gap: 7px;
    align-items: center;
}
.simple-layout-line-controls {
    grid-template-columns: var(--simple-appearance-columns);
    gap: 6px;
}
.simple-layout-frame-controls {
    grid-template-columns: var(--simple-appearance-columns);
    gap: 6px;
    box-sizing: border-box;
}
.simple-layout-frame-controls > .simple-layout-appearance-divider { display: none; }
.simple-layout-appearance-row-label {
    height: 38px;
    display: inline-flex;
    align-items: center;
    color: #d9b4ff;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}
.simple-layout-appearance-panel-row > select,
.simple-layout-appearance-field select {
    min-width: 0;
    width: 100%;
    height: 38px;
    padding: 0 25px 0 9px;
    border: 1px solid rgba(191,90,242,0.46);
    border-radius: 6px;
    background-color: #242426;
    color: #e4baff;
    font: 850 12px/1 var(--font-ui);
    cursor: pointer;
}
.simple-layout-appearance-field {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #bda8c9;
    font-size: 12px;
    font-weight: 850;
}
.simple-layout-appearance-field > span {
    white-space: nowrap;
}
.simple-cut-line-weight-field {
    grid-column: auto;
    grid-template-columns: auto minmax(0, 1fr);
}
.simple-cut-extension-toggle {
    min-width: 0;
    min-height: 38px;
    height: 38px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px;
    padding: 0 3px 0 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #d9b4ff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}
.simple-cut-extension-toggle > span:first-child { white-space: nowrap; }
.simple-cut-extension-toggle .switch-control {
    transform: none;
}
.simple-cut-extension-toggle:has(input:focus-visible) {
    outline: 2px solid rgba(202,113,244,0.72);
    outline-offset: 1px;
    box-shadow: none;
}
.simple-layout-color-field {
    min-width: 0;
    height: 38px;
    display: grid;
    grid-template-columns: auto 38px;
    align-items: center;
    justify-content: start;
    gap: 6px;
    color: #bda8c9;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}
.simple-layout-color-field .sunny-color-swatch-btn {
    --sunny-swatch-accent: #BF5AF2;
    width: 38px;
    height: 38px;
}
.simple-layout-color-field.is-disabled {
    opacity: 0.42;
}
.simple-layout-appearance-divider {
    width: 1px;
    height: 24px;
    align-self: center;
    background: rgba(255,255,255,0.13);
    pointer-events: none;
}
.simple-layout-reset-btn {
    width: 100%;
    height: 38px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    background: rgba(72,72,74,0.82);
    color: #f2edf5;
    font: 850 12px/1 var(--font-ui);
    white-space: nowrap;
    cursor: pointer;
}
.simple-layout-reset-btn:hover,
.simple-layout-reset-btn:focus-visible {
    border: 0;
    background: rgba(86,82,88,0.9);
    color: #ffffff;
    outline: none;
}
.simple-unlimited-length-option {
    position: relative;
    min-width: 0;
    min-height: 38px;
    padding: 0 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    color: #d9b4ff;
    background: transparent;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
}
.simple-unlimited-length-option.is-disabled {
    pointer-events: none;
}
.simple-unlimited-length-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    top: 0;
    left: 0;
}
.simple-layout-favorite-select {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 25px 0 9px;
    border: 1px solid rgba(191,90,242,0.50);
    border-radius: 6px;
    background-color: #1d1b20;
    color: #d9b4ff;
    font: 850 12px/1 var(--font-ui);
    cursor: pointer;
}
.simple-layout-appearance select option {
    background: #1c1c1e;
    color: #f0e6f5;
}
.simple-layout-favorite-select:hover,
.simple-layout-favorite-select:focus {
    border-color: var(--accent-purple);
    color: #f0d4ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(191,90,242,0.18), var(--glow-purple-soft);
}
.simple-layout-appearance-field select:hover,
.simple-layout-appearance-field select:focus,
.simple-layout-appearance-panel-row > select:hover,
.simple-layout-appearance-panel-row > select:focus {
    border-color: var(--accent-purple) !important;
    color: #f0d4ff;
    outline: none;
    box-shadow: none;
}
.simple-layout-preview-btn {
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    border: 1px solid rgba(191,90,242,0.50);
    border-radius: 6px;
    background: rgba(191,90,242,0.08);
    color: #c5a1da;
    font: inherit;
    font-size: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: color 0.18s ease, text-shadow 0.18s ease;
}
.simple-layout-preview-btn:hover,
.simple-layout-preview-btn:focus-visible,
.simple-layout-preview-btn[aria-pressed="true"] {
    border-color: #BF5AF2;
    background: rgba(191,90,242,0.15);
    color: #e4baff;
    text-shadow: 0 0 12px rgba(191,90,242,0.42);
    outline: none;
}
.simple-spec-inspector {
    position: fixed;
    z-index: 2400;
    width: max-content;
    max-width: calc(100vw - 28px);
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid rgba(255,159,10,0.72);
    border-radius: 8px;
    background: rgba(24,24,26,0.82);
    box-shadow: 0 22px 54px rgba(0,0,0,0.56), 0 0 22px rgba(255,159,10,0.10);
    backdrop-filter: blur(var(--glass-blur-popover)) saturate(1.08);
    -webkit-backdrop-filter: blur(var(--glass-blur-popover)) saturate(1.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-18px) scale(0.985);
    transform-origin: left center;
    transition: opacity 0.18s ease, transform 0.22s ease, visibility 0.18s step-end;
}
.simple-spec-inspector.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    transition: opacity 0.18s ease, transform 0.22s ease, visibility 0s;
}
.simple-spec-inspector.is-pinned {
    pointer-events: auto;
}
.simple-spec-inspector-heading {
    min-width: 0;
    padding: 1px 2px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.simple-spec-inspector-heading-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}
.simple-spec-inspector-heading strong {
    color: #ffb340;
    font-size: 15px;
    letter-spacing: 0;
}
.simple-spec-inspector-heading span {
    color: #aeaeb2;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}
.simple-spec-inspector-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #d1d1d6;
    background: rgba(0,0,0,0.38);
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}
.simple-spec-inspector.is-pinned .simple-spec-inspector-close {
    display: inline-flex;
}
.simple-spec-inspector-close svg {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
}
.simple-spec-inspector-close:hover,
.simple-spec-inspector-close:focus-visible {
    color: #ffffff;
    background: rgba(255,255,255,0.09);
    outline: none;
}
.simple-spec-inspector-close:active {
    transform: scale(0.95);
}
.simple-spec-inspector canvas {
    display: block;
    max-width: 100%;
    border-radius: 5px;
    background: #111113;
}
.simple-spec-inspector.is-pinned canvas { cursor: grab; touch-action: none; }
.simple-spec-inspector.is-pinned canvas.is-dragging { cursor: grabbing; }
.simple-spec-inspector-hover-hint {
    margin: 7px 2px 0;
    color: rgba(255, 209, 139, 0.82);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
}
.simple-spec-inspector.is-pinned .simple-spec-inspector-hover-hint {
    display: none;
}
.simple-spec-inspector-mode,
.simple-spec-inspector-controls,
.simple-spec-inspector-actions {
    display: none;
}
.simple-spec-inspector.is-pinned .simple-spec-inspector-mode {
    margin-top: 9px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.simple-spec-inspector-lock {
    min-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255,159,10,0.48);
    border-radius: 7px;
    color: #ffd18b;
    background: rgba(255,159,10,0.08);
    font: 850 12px/1 var(--font-ui);
    cursor: pointer;
}
.simple-spec-inspector-lock:hover,
.simple-spec-inspector-lock:focus-visible {
    border-color: #ffb340;
    color: #fff4e1;
    background: rgba(255,159,10,0.16);
    outline: 2px solid rgba(255,159,10,0.12);
}
.simple-spec-inspector.is-position-locked .simple-spec-inspector-lock,
.batch-inspector.is-position-locked .simple-spec-inspector-lock {
    border-color: rgba(255,69,58,0.82);
    color: #ff9b95;
    background: rgba(255,69,58,0.12);
}
.simple-spec-inspector.is-position-locked .simple-spec-inspector-lock:focus-visible,
.batch-inspector.is-position-locked .simple-spec-inspector-lock:focus-visible {
    outline-color: rgba(255,69,58,0.48);
}
.simple-spec-inspector-lock-icon,
.simple-spec-inspector-lock-icon .lock-state-svg {
    width: 16px;
    height: 16px;
    display: block;
}
.simple-spec-inspector-mode-hint {
    min-width: 0;
    flex: 1 1 auto;
    color: #aeaeb2;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}
.simple-spec-inspector-sensitivity {
    min-width: 112px;
    height: 26px;
    margin-left: auto;
    flex: 0 0 auto;
    justify-content: center;
}
.simple-spec-inspector-sensitivity > span:first-child,
.simple-spec-inspector-sensitivity strong {
    font-size: 12px;
}
.simple-spec-inspector.is-pinned .simple-spec-inspector-controls {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(9, minmax(30px, 1fr));
    gap: 5px;
}
.simple-spec-inspector-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 34px;
    padding: 0 4px;
    border: 1px solid rgba(255,159,10,0.34);
    border-radius: 7px;
    color: #ffd18b;
    background: rgba(255,159,10,0.07);
    font: 850 11px/1 var(--font-ui);
    cursor: pointer;
}
.simple-spec-inspector-controls button svg {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.simple-spec-inspector-controls button:hover,
.simple-spec-inspector-controls button:focus-visible {
    border-color: rgba(255,190,92,0.80);
    color: #ffffff;
    background: rgba(255,159,10,0.17);
    outline: 2px solid rgba(255,159,10,0.12);
}
.simple-spec-inspector.is-pinned .simple-spec-inspector-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}
.simple-spec-inspector-actions button {
    width: 100%;
    min-height: 38px;
    display: block;
    border: 1px solid #f29a17;
    border-radius: 7px;
    color: #1b1002;
    background: #ff9f0a;
    font: 900 13px/1 var(--font-ui);
    cursor: pointer;
}
.simple-spec-inspector-actions .simple-spec-inspector-retry {
    color: #ffd18b;
    background: rgba(255,159,10,0.07);
    border-color: rgba(255,159,10,0.34);
}
.simple-spec-inspector-retry:hover:not(:disabled),
.simple-spec-inspector-retry:focus-visible {
    background: rgba(255,159,10,0.17);
    border-color: var(--accent-orange-hover);
    outline-color: var(--accent-orange);
}
.simple-spec-inspector button:disabled {
    opacity: 0.45;
    pointer-events: none;
    box-shadow: none;
}
.simple-spec-inspector-done:hover,
.simple-spec-inspector-done:focus-visible {
    background: #ffb340;
    outline: 2px solid rgba(255,159,10,0.16);
}
.simple-crop-preview:focus-visible {
    outline: 2px solid #ff9f0a;
    outline-offset: 2px;
}
.simple-spec-card.is-position-locked .simple-crop-preview:focus-visible {
    outline-color: #ff453a;
}
body.decorative-animations-off .simple-spec-inspector {
    transition: none !important;
}
body.glass-effects-off .simple-spec-inspector {
    background: #1f1f21;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.has-inline-output .simple-spec-grid {
    flex: 0 0 auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}
.simple-mode-content.has-inline-preview-layout {
    height: auto;
    min-height: min(740px, calc(100vh - 28px));
    max-height: calc(100vh - 28px);
    overflow-y: auto;
}
.simple-mode-content.has-inline-preview-layout .simple-order-form { flex: 1 0 auto; align-items: stretch; }
.simple-mode-content.has-inline-preview-layout .simple-order-form,
.simple-mode-content.has-inline-preview-layout .simple-workflow-panel,
.simple-mode-content.has-inline-preview-layout .simple-spec-section,
.simple-mode-content.has-inline-preview-layout .simple-output-column,
.simple-mode-content.has-inline-preview-layout .simple-output-settings-scroll {
    min-height: auto;
    height: auto;
    overflow: visible;
}
.simple-mode-content.has-inline-preview-layout .simple-output-settings-scroll { padding-right: 0; }
.simple-mode-content.has-inline-preview-layout .simple-spec-grid { flex: 0 0 auto; max-height: none; overflow: visible; }
.has-inline-output .simple-spec-card { flex: 0 0 104px; }
.simple-inline-output-preview {
    --modal-accent: #0a84ff;
    --workspace-accent: #0a84ff;
    flex: 0 0 auto;
    height: 0;
    min-height: 0;
    min-width: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transition: height .24s cubic-bezier(.2,.78,.24,1), margin-top .24s ease, opacity .18s ease;
}
.simple-inline-output-preview.is-open { height: 190px; margin-top: 12px; opacity: 1; }
.simple-inline-preview-right-slot:empty { display: none; }
.simple-inline-preview-right-slot:not(:empty) { display: block; flex: 0 0 auto; min-width: 0; }
.simple-inline-preview-right-slot .simple-inline-output-preview.is-open { margin-top: 0; }
.simple-inline-preview-shell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 190px;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid rgba(10,132,255,.48);
    border-radius: 12px;
    background: rgba(28,28,30,.88);
}
.simple-inline-preview-head { display: flex; align-items: center; gap: 8px; min-width: 0; color: #8fbfff; }
.simple-inline-preview-head > strong { font-size: 14px; white-space: nowrap; }
.simple-inline-preview-head > span { margin-right: auto; font-size: 11px; color: #aeaeb2; white-space: nowrap; }
.simple-inline-preview-filters { display: flex; gap: 4px; }
.simple-inline-preview-filters .btn-mini { min-height: 28px; padding: 2px 7px; font-size: 11px; }
.simple-inline-preview-filters .active { background: rgba(10,132,255,.2); color: #8fbfff; border-color: rgba(10,132,255,.7); }
.simple-inline-preview-strip { display: flex; flex: 1 1 0; min-height: 0; min-width: 0; overflow-x: scroll; overflow-y: hidden; padding: 2px 0 4px; scrollbar-color: #0a84ff #202024; }
.simple-inline-preview-item { flex: 0 0 auto; width: 146px; min-width: 0; margin-right: 10px; opacity: 1; overflow: hidden; transition: width .18s ease, margin-right .18s ease, opacity .18s ease; }
.simple-inline-preview-item.is-entering, .simple-inline-preview-item.is-exiting { width: 0; margin-right: 0; opacity: 0; }
.simple-inline-preview-card { display: flex; flex-direction: column; gap: 4px; width: 146px; height: 100%; min-height: 0; padding: 6px; border-radius: 8px; border: 1px solid rgba(10,132,255,.3); background: rgba(32,32,34,.88); text-align: left; cursor: pointer; }
.simple-inline-preview-card:hover { border-color: #0a84ff; background: rgba(10,132,255,.1); }
.simple-inline-preview-card[data-kind="crop"], .simple-output-summary-item[data-kind="crop"] { --preview-type-rgb: 255,159,10; --preview-type-caption: #ffd18b; }
.simple-inline-preview-card[data-kind="layout"], .simple-output-summary-item[data-kind="layout"] { --preview-type-rgb: 191,90,242; --preview-type-caption: #e3bdff; }
.simple-inline-preview-card[data-kind="cover"], .simple-output-summary-item[data-kind="cover"] { --preview-type-rgb: 50,174,198; --preview-type-caption: #aeeaf5; }
.simple-inline-preview-card[data-kind], .simple-output-summary-item[data-kind] { border-color: rgba(var(--preview-type-rgb, 10,132,255),.28); background: rgba(var(--preview-type-rgb, 10,132,255),.055); }
.simple-inline-preview-card[data-kind]:hover { border-color: rgba(var(--preview-type-rgb, 10,132,255),.72); background: rgba(var(--preview-type-rgb, 10,132,255),.1); }
.simple-inline-preview-card[data-kind] :is(.simple-inline-preview-kind,.simple-inline-preview-label), .simple-output-summary-item[data-kind] :is(.simple-output-summary-kind,figcaption) { color: var(--preview-type-caption, #d1d1d6); }
.simple-inline-preview-kind { font-size: 11px; color: #8fbfff; }
.simple-inline-preview-label { font-size: 12px; color: #d1d1d6; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.simple-inline-preview-card canvas { flex: 1 1 0; min-height: 0; width: 100%; height: 0; object-fit: contain; margin: 0; border: 0; background: transparent; box-shadow: none; cursor: inherit; }
.simple-output-detail-overlay { z-index: 2800; --modal-accent: #0a84ff; --workspace-accent: #0a84ff; cursor: pointer; }
.simple-output-detail-overlay[data-kind="crop"] { --modal-accent: #ff9f0a; --workspace-accent: #ff9f0a; }
.simple-output-detail-overlay[data-kind="layout"] { --modal-accent: #BF5AF2; --workspace-accent: #BF5AF2; }
.simple-output-detail-overlay[data-kind="cover"] { --modal-accent: #32aec6; --workspace-accent: #32aec6; }
.simple-output-detail { width: min(900px, calc(100vw - 56px)); height: min(720px, calc(100vh - 56px)); min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-color: var(--modal-accent); background: rgba(28,28,30,.96); }
.simple-output-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.simple-output-detail-head h3 { margin: 0; min-width: 0; font-size: 20px; color: var(--modal-accent); }
.simple-output-detail-hint { flex: 0 0 auto; margin: 0; text-align: center; color: #aeaeb2; font-size: 12px; }
.simple-output-detail-body { display: grid; place-items: center; flex: 1 1 0; min-height: 0; overflow: hidden; }
.simple-output-detail-body canvas { width: 100%; height: 100%; min-height: 0; object-fit: contain; margin: 0; border: 0; background: transparent; box-shadow: none; cursor: inherit; }
body.decorative-animations-off .simple-inline-output-preview, body.decorative-animations-off .simple-inline-preview-item,
body.app-background-paused .simple-inline-output-preview, body.app-background-paused .simple-inline-preview-item { transition: none; }
@media (prefers-reduced-motion: reduce) { .simple-inline-output-preview, .simple-inline-preview-item { transition: none; } }
@media (max-width: 980px) { .has-inline-output .simple-spec-grid { flex: 0 0 auto; max-height: 452px; } }

.simple-output-preview-panel {
    position: fixed;
    z-index: 2410;
    min-width: 260px;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid var(--simple-output-preview-accent, rgba(191,90,242,0.72));
    border-radius: 8px;
    background: rgba(24,24,26,0.84);
    box-shadow: 0 22px 58px rgba(0,0,0,0.60), 0 0 24px var(--simple-output-preview-glow, rgba(191,90,242,0.12));
    backdrop-filter: blur(var(--glass-blur-popover)) saturate(1.08);
    -webkit-backdrop-filter: blur(var(--glass-blur-popover)) saturate(1.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(22px) scale(0.985);
    transform-origin: right center;
    transition: opacity 0.18s ease, transform 0.24s cubic-bezier(.2,.8,.2,1), visibility 0.18s step-end;
}
.simple-output-preview-panel.is-layout {
    --simple-output-preview-accent: rgba(191,90,242,0.72);
    --simple-output-preview-glow: rgba(191,90,242,0.12);
}
.simple-output-preview-panel.is-automatic-summary {
    position: absolute;
    z-index: 2;
}
.simple-output-preview-panel.is-cover {
    --simple-output-preview-accent: rgba(50,174,198,0.76);
    --simple-output-preview-glow: rgba(50,174,198,0.14);
}
.simple-output-preview-panel.expands-up {
    transform: translateY(22px) scale(0.985);
    transform-origin: center bottom;
}
.simple-output-preview-panel.is-summary {
    --simple-output-preview-accent: rgba(10,132,255,0.76);
    --simple-output-preview-glow: rgba(10,132,255,0.16);
}
.simple-output-preview-panel.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    transition: opacity 0.18s ease, transform 0.24s cubic-bezier(.2,.8,.2,1), visibility 0s;
}
.simple-output-preview-heading {
    min-height: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #e4baff;
    font-size: 14px;
    font-weight: 900;
}
.simple-output-preview-panel.is-cover .simple-output-preview-heading {
    color: #8ad9e8;
}
.simple-output-preview-panel.is-summary .simple-output-preview-heading {
    color: #72b7ff;
}
.simple-output-preview-heading span {
    color: #aeaeb2;
    font-size: 11px;
    font-weight: 800;
}
.simple-output-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: calc(100% - 34px);
    overflow-y: auto;
    scrollbar-color: rgba(191,90,242,0.82) rgba(63,40,72,0.62);
}
.simple-output-preview-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}
.simple-output-preview-item {
    min-width: 0;
    min-height: 120px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}
.simple-output-preview-grid canvas,
.simple-output-cover-canvas {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 4px;
    background: #ffffff;
}
.simple-output-cover-wrap {
    position: relative;
    height: calc(100% - 34px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.simple-output-preview-panel.is-cover .simple-output-preview-body.is-cover-loading {
    background: #f4eedc;
    border-radius: 4px;
}
.simple-output-preview-panel.is-cover .is-cover-loading .simple-output-preview-empty {
    color: #292e27;
}
.simple-output-cover-transition {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    background: transparent;
    box-shadow: none;
    margin: 0;
}
.simple-output-cover-transition[hidden] { display: none; }
.simple-output-cover-canvas {
    width: auto;
    max-width: 100%;
    max-height: 100%;
}
.simple-output-preview-empty {
    min-height: 130px;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aeaeb2;
    font-size: 13px;
    font-weight: 750;
}
body.decorative-animations-off .simple-output-preview-panel {
    transition: none !important;
}
body.glass-effects-off .simple-output-preview-panel {
    background: #1f1f21;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.simple-output-preview-panel.is-layout .simple-output-preview-grid canvas {
    border: 0;
    border-radius: 0;
    background: transparent;
}
.simple-output-preview-panel.is-layout.is-refreshing .simple-output-preview-item {
    animation: simpleLayoutPreviewShuffle 0.36s cubic-bezier(.2,.82,.2,1) both;
}
.simple-output-preview-panel.is-layout.is-refreshing .simple-output-preview-item:nth-child(even) {
    animation-name: simpleLayoutPreviewShuffleReverse;
}
.simple-output-preview-panel.is-layout.is-refreshing .simple-output-preview-item:nth-child(3n) {
    animation-delay: 0.035s;
}
@keyframes simpleLayoutPreviewShuffle {
    from {
        opacity: 0.18;
        filter: blur(1.5px);
        transform: translate3d(18px, -3px, 0) scale(0.975);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
}
@keyframes simpleLayoutPreviewShuffleReverse {
    from {
        opacity: 0.18;
        filter: blur(1.5px);
        transform: translate3d(-18px, 3px, 0) scale(0.975);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
}
body.decorative-animations-off .simple-output-preview-panel.is-layout.is-refreshing .simple-output-preview-item {
    animation: none !important;
}
.simple-output-preview-panel.is-summary {
    padding: 9px;
}
.simple-output-summary-preview {
    max-height: calc(100% - 34px);
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-color: rgba(10,132,255,0.82) rgba(14,52,88,0.62);
}
.simple-output-summary-grid {
    position: relative;
    display: grid;
    align-content: start;
    align-items: start;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.simple-output-summary-item {
    box-sizing: border-box;
    transform-origin: top left;
    min-width: 0;
    margin: 0;
    padding: 4px;
    border: 1px solid rgba(10,132,255,0.20);
    border-radius: 6px;
    background: rgba(10,132,255,0.055);
}
.simple-output-summary-item.is-exiting {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}
.simple-output-summary-grid[hidden],
.simple-output-summary-preview > .simple-output-preview-empty[hidden],
.simple-output-summary-item canvas[hidden] {
    display: none;
}
.simple-output-summary-kind {
    display: block;
    margin-bottom: 3px;
    overflow: hidden;
    color: #8fc7ff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.simple-output-summary-item canvas {
    display: block;
    width: 100%;
    height: 92px;
    object-fit: contain;
    background: rgba(0,0,0,0.24);
}
.simple-output-summary-item figcaption {
    margin-top: 3px;
    overflow: hidden;
    color: #c9e5ff;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.simple-cover-options button {
    border: 1px solid rgba(50,174,198,0.72);
    color: #8ad9e8;
}
.simple-cover-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.simple-cover-options button:hover:not(:disabled):not(.active) {
    border-color: var(--accent-blue);
    background: rgba(50,174,198,0.16);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), var(--glow-blue-soft);
}
.simple-cover-options button.active {
    border-color: var(--accent-blue);
    color: var(--ink-on-accent);
    background: var(--accent-blue);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset;
}
.simple-cover-options button.active:hover:not(:disabled) {
    border-color: #49bfd5;
    background: #49bfd5;
    color: var(--ink-on-accent);
}
.simple-cover-settings {
    --modal-accent: #32aec6;
    --workspace-accent: #32aec6;
    min-width: 0;
    min-height: 86px;
    margin-top: 10px;
    padding-top: 10px;
    display: block;
    flex: 1 1 auto;
    border-top: 1px solid rgba(50,174,198,0.18);
    transition: opacity 0.18s ease;
}
.simple-cover-color-field .sunny-color-swatch-btn {
    --sunny-swatch-accent: #32aec6;
}
.simple-cover-settings.is-disabled {
    opacity: 0.42;
}
.simple-cover-settings.is-custom-cover .simple-cover-color-field,
.simple-cover-settings.is-custom-cover .simple-cover-tool-btn,
.simple-cover-settings.is-custom-cover .simple-cover-text-btn {
    opacity: 0.34;
    pointer-events: none;
}
.simple-cover-settings-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(148px, auto) minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;
}
.simple-cover-case-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(160px, 1.25fr) minmax(148px, 1.1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.simple-cover-case-fields label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #8ad9e8;
    font-size: 12px;
    font-weight: 800;
}
.simple-cover-case-fields label > span:first-child { flex: 0 0 auto; white-space: nowrap; }
.simple-cover-case-fields input:not(.sunny-date-native),
.simple-cover-case-fields .sunny-date-field,
.simple-cover-case-fields .sunny-select-shell { flex: 1 1 0; min-width: 0; width: 0; }
.simple-cover-case-fields .simple-cover-source-field select { height: 36px; font-size: 14px; }
.simple-cover-case-fields input:not(.sunny-date-native),
.simple-cover-case-fields .sunny-date-trigger {
    width: 100%;
    height: 36px;
    min-height: 36px;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(50,174,198,0.58);
    border-radius: 8px;
    background: #202022;
    color: #bceef7;
    padding: 0 10px;
    font: inherit;
    font-size: 14px;
}
@media (max-width: 1180px) {
    .simple-cover-case-fields .sunny-date-trigger { font-size: 12px; padding: 0 6px; gap: 4px; }
}
.simple-cover-section.product-feature-unavailable button:disabled {
    transition: none;
    transform: none;
    box-shadow: none;
}
.simple-cover-color-row {
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}
.simple-cover-color-field,
.simple-cover-paper-field,
.simple-cover-source-field {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8ad9e8;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}
.simple-cover-color-field {
    flex: 0 0 auto;
}
.simple-cover-color-field input[type="color"] {
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 2px;
    border: 1px solid rgba(50,174,198,0.58);
    border-radius: 6px;
    background: #202022;
    cursor: pointer;
}
.simple-cover-tool-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(50,174,198,0.54);
    border-radius: 6px;
    background: rgba(50,174,198,0.09);
    color: #8ad9e8;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}
.simple-cover-tool-btn:hover:not(:disabled) {
    border-color: #32aec6;
    background: rgba(50,174,198,0.18);
    color: #d9f8ff;
}
.simple-cover-tool-btn:active:not(:disabled) {
    transform: scale(0.96);
}
.simple-cover-text-btn,
.simple-cover-preview-btn {
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(50,174,198,0.52);
    border-radius: 6px;
    background: rgba(50,174,198,0.08);
    color: #8ad9e8;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, text-shadow 0.18s ease, opacity 0.18s ease;
}
.simple-cover-text-btn.is-random {
    color: #8ad9e8;
    border-color: rgba(50,174,198,0.52);
    background: rgba(50,174,198,0.08);
}
.simple-cover-text-btn.is-default {
    color: #c4c4c8;
    border-color: rgba(174,174,178,0.38);
    background: rgba(174,174,178,0.07);
}
.simple-cover-text-btn:hover:not(:disabled),
.simple-cover-text-btn:focus-visible:not(:disabled),
.simple-cover-preview-btn:hover:not(:disabled),
.simple-cover-preview-btn:focus-visible:not(:disabled) {
    border-color: #32aec6;
    background: rgba(50,174,198,0.16);
    color: #d9f8ff;
    text-shadow: 0 0 12px rgba(50,174,198,0.44);
    outline: none;
}
.simple-cover-text-btn.is-random:hover:not(:disabled),
.simple-cover-text-btn.is-random:focus-visible:not(:disabled) {
    border-color: #32aec6;
    background: rgba(50,174,198,0.16);
    color: #d9f8ff;
    text-shadow: 0 0 12px rgba(50,174,198,0.44);
}
.simple-cover-text-btn.is-default:hover:not(:disabled),
.simple-cover-text-btn.is-default:focus-visible:not(:disabled) {
    border-color: rgba(209,209,214,0.58);
    background: rgba(174,174,178,0.14);
    color: #f2f2f7;
    text-shadow: none;
}
.simple-cover-preview-btn {
    width: 100%;
    min-height: 34px;
}
.simple-cover-preview-btn[aria-pressed="true"] {
    color: #d9f8ff;
    text-shadow: 0 0 12px rgba(50,174,198,0.44);
}
.simple-cover-paper-field {
    justify-content: flex-end;
    gap: 6px;
}
.simple-cover-output-fields {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
}
.simple-cover-paper-field,
.simple-cover-source-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}
.simple-cover-paper-field > span { flex: 0 0 auto; white-space: nowrap; }
.simple-cover-paper-field select,
.simple-cover-source-field select {
    min-width: 0;
    width: 100%;
    height: 32px;
    padding: 0 24px 0 8px;
    border: 1px solid rgba(50,174,198,0.58);
    border-radius: 6px;
    background: #202022;
    color: #bceef7;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    accent-color: #32aec6;
}
.simple-cover-paper-field select:hover:not(:disabled),
.simple-cover-source-field select:hover:not(:disabled) {
    border-color: #32aec6;
    background: rgba(50,174,198,0.10);
}
.simple-cover-paper-field select:focus,
.simple-cover-source-field select:focus {
    border-color: #32aec6 !important;
    box-shadow: none;
}
.simple-cover-output-fields .sunny-select-shell {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
.simple-cover-settings :disabled {
    cursor: not-allowed;
}
.simple-cover-animation-row {
    width: 100%;
    min-height: 50px;
    align-self: stretch;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8ad9e8;
    font-size: 12px;
    font-weight: 900;
}

.simple-cover-design-row,
.simple-cover-export-row {
    grid-column: 1 / -1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.simple-cover-design-row { flex-wrap: wrap; }
.simple-cover-design-row .simple-cover-color-row {
    width: auto;
    flex: 0 1 auto;
    justify-content: flex-start;
}
.simple-cover-design-row .simple-cover-animation-row {
    width: auto;
    min-height: 36px;
    align-self: center;
    margin-left: auto;
    gap: 8px;
}
.simple-cover-design-row #simpleCdAnimationOption.hover-help::after { left: auto; right: 0; }
.simple-cover-design-row #simpleCdAnimationOption.hover-help::before { left: auto; right: 14px; }
.simple-cover-export-row .simple-cover-preview-btn {
    width: auto;
    min-height: 36px;
    flex: 0 0 148px;
}
.simple-cover-export-row .simple-cover-output-fields { flex: 1 1 0; }
.simple-cover-export-row .simple-cover-paper-field select { height: 36px; }

@media (min-width: 981px) {
    .simple-mode-content {
        overflow-y: hidden;
    }
    .simple-order-form,
    .simple-workflow-panel,
    .simple-spec-section,
    .simple-output-column {
        min-height: 0;
    }
    .simple-output-column {
        overflow: hidden;
    }
    .simple-output-settings-scroll {
        min-height: 0;
        padding-right: 6px;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .simple-output-actions {
        flex: 0 0 auto;
    }
    .simple-spec-grid {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .simple-mode-content:not(.has-inline-preview-layout) .simple-spec-grid.has-overflow,
    .simple-mode-content.simple-preview-in-right .simple-spec-grid {
        flex: 1 1 auto;
        max-height: none;
        min-height: 0;
        padding-right: 8px;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .simple-mode-content.has-inline-preview-layout.simple-preview-in-right {
        height: min(94vh, calc(100vh - 28px));
        overflow-y: hidden;
    }
    .simple-mode-content.has-inline-preview-layout.simple-preview-in-right .simple-order-form {
        flex: 1 1 0;
    }
    .simple-mode-content.has-inline-preview-layout.simple-preview-in-right .simple-order-form,
    .simple-mode-content.has-inline-preview-layout.simple-preview-in-right .simple-workflow-panel,
    .simple-mode-content.has-inline-preview-layout.simple-preview-in-right .simple-spec-section,
    .simple-mode-content.has-inline-preview-layout.simple-preview-in-right .simple-output-column {
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }
    .simple-mode-content.has-inline-preview-layout.simple-preview-in-right .simple-output-settings-scroll {
        min-height: 0;
        height: auto;
        padding-right: 6px;
        overflow-x: hidden;
        overflow-y: auto;
    }
}
.simple-cover-animation-row .switch-control {
    width: 38px;
    height: 22px;
    flex-basis: 38px;
}
.simple-cover-animation-row .switch-control::after {
    width: 16px;
    height: 16px;
}
.simple-cover-animation-row input[type="checkbox"]:checked + .switch-control::after {
    transform: translateX(16px);
}
.simple-finish-btn {
    align-self: stretch;
    width: 100%;
    min-height: 52px;
    margin: 0;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}
.simple-output-actions {
    margin-top: auto;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.simple-output-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 10px; min-width: 0; }
.simple-output-footer .simple-back-btn { min-height: 52px; height: 52px; margin: 0; border-radius: 8px; }
.simple-mode-content:not(.simple-composer-layout) .simple-layout-appearance { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(100px,1fr); gap: 12px; }
.simple-mode-content .simple-layout-section:has(.simple-layout-appearance-panel:not([hidden])) { position: relative; z-index: 2; }
.simple-mode-content .simple-cover-section.product-feature-unavailable { position: relative; z-index: 1; }
.simple-output-summary {
    min-height: 52px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px;
    border: 1px solid rgba(100,168,255,0.24);
    border-radius: 7px;
    background: rgba(100,168,255,0.07);
    color: #aeb9c8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    cursor: help;
}

/* Keep quick layout popovers above both columns, outside their scroll clips. */
.simple-mode-content { position: relative; }
.simple-mode-content > .simple-layout-appearance-panel.is-floating { position: absolute; z-index: 30; min-width: 0; max-width: calc(100% - 32px); overflow-y: auto; }
body .simple-mode-content:not(.simple-composer-layout) .simple-layout-appearance { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; }
body .simple-mode-content:not(.simple-composer-layout) .simple-layout-appearance > .simple-unlimited-length-option { flex: 1 1 0; min-width: 0; gap: 8px; }
body .simple-mode-content:not(.simple-composer-layout) .simple-layout-appearance > .simple-layout-appearance-menu { flex: 0 0 100px; min-width: 100px; }
body .simple-mode-content:not(.simple-composer-layout) .simple-layout-appearance-toggle { width: 100%; padding-left: 8px; padding-right: 8px; }
.simple-output-summary.has-output {
    border-color: rgba(60,174,78,0.42);
    background: rgba(60,174,78,0.09);
    color: #aee8b7;
}
.simple-last-order-summary { justify-content: space-between; gap: 12px; cursor: default; }
.simple-last-order-copy { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.simple-last-order-copy strong { font-size: 12px; }
.simple-last-order-copy span { font-size: 12px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.simple-last-order-summary .simple-last-order-apply { flex: 0 0 auto; min-width: 56px; min-height: 34px; padding: 4px 10px; border: 1px solid rgba(60,174,78,.42); border-radius: 8px; background: rgba(60,174,78,.12); color: #a4dfad; font-size: 13px; }
.simple-last-order-summary .simple-last-order-apply:hover:not(:disabled) { border-color: #48c55a; background: rgba(60,174,78,.24); color: #d2f4d7; }
.simple-last-order-summary .simple-last-order-apply:focus-visible { outline: 2px solid var(--accent-green); outline-offset: 2px; }
.simple-finish-btn .ui-download-simple-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}
.simple-finish-btn span {
    min-width: 0;
}
.simple-finish-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.simple-coverage-confirm-overlay {
    z-index: 2500;
    --coverage-confirm-rgb: 10,132,255;
    --coverage-confirm-color: #72b7ff;
    --coverage-confirm-action: #0a84ff;
    --coverage-confirm-action-hover: #2994ff;
    --coverage-confirm-action-text: #fff;
    --modal-accent: var(--coverage-confirm-action);
}
.simple-coverage-confirm-overlay[data-coverage-context="crop"] {
    --coverage-confirm-rgb: 255,159,10;
    --coverage-confirm-color: #ffb340;
    --coverage-confirm-action: var(--accent-orange);
    --coverage-confirm-action-hover: var(--accent-orange-hover);
    --coverage-confirm-action-text: var(--ink-on-accent);
}
.simple-coverage-confirm-overlay[data-coverage-context="layout"] {
    --coverage-confirm-rgb: 191,90,242;
    --coverage-confirm-color: #d7a0f5;
    --coverage-confirm-action: var(--accent-purple);
    --coverage-confirm-action-hover: var(--accent-purple-hover);
    --coverage-confirm-action-text: var(--ink-on-accent);
}
.layout-return-confirm-overlay {
    z-index: 3200;
}
.simple-coverage-confirm-overlay[data-coverage-context="settings"] {
    --coverage-confirm-rgb: 60,174,78;
    --coverage-confirm-color: #62d579;
    --coverage-confirm-action: var(--accent-green);
}
.clear-data-overlay {
    z-index: 3200;
}
.layout-return-confirm-actions .layout-return-confirm-danger {
    border: 1px solid #d83b33;
    color: #fff;
    background: #c9362f;
    box-shadow: 0 8px 22px rgba(255,69,58,0.2);
}
.layout-return-confirm-actions .layout-return-confirm-danger:hover:not(:disabled) {
    border-color: #ff6961;
    color: #fff;
    background: #e0443c;
    box-shadow: 0 8px 22px rgba(255,69,58,0.28);
}
.layout-return-confirm-actions .layout-return-confirm-danger:focus-visible {
    outline-color: #ff6961;
    box-shadow: 0 0 0 3px rgba(255,69,58,0.2), 0 8px 22px rgba(255,69,58,0.24);
}
.layout-return-confirm-actions .simple-coverage-confirm-cancel:hover:not(:disabled),
.layout-return-confirm-actions .simple-coverage-confirm-cancel:focus-visible {
    border-color: #636366;
    color: #fff;
    background: #3a3a3e;
    box-shadow: none;
}
.layout-return-confirm-actions .simple-coverage-confirm-cancel:focus-visible {
    outline-color: #8e8e93;
}

.simple-coverage-confirm-dialog {
    width: min(560px, calc(100vw - 48px));
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 8px 16px;
    padding: 28px;
    border-color: rgba(var(--coverage-confirm-rgb),0.64);
    background: rgba(28,28,30,0.96);
    box-shadow: 0 22px 70px rgba(0,0,0,0.58), 0 0 0 1px rgba(var(--coverage-confirm-rgb),0.12), 0 0 30px rgba(var(--coverage-confirm-rgb),0.12);
}
.simple-coverage-confirm-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--coverage-confirm-rgb),0.66);
    border-radius: 50%;
    color: var(--coverage-confirm-color);
    background: rgba(var(--coverage-confirm-rgb),0.12);
    box-shadow: 0 0 18px rgba(var(--coverage-confirm-rgb),0.16);
}
.simple-coverage-confirm-copy h3 {
    margin: 0;
    color: var(--coverage-confirm-color);
    font-size: 23px;
}
.simple-coverage-confirm-copy p,
.simple-coverage-confirm-note {
    margin: 7px 0 0;
    color: #c7c7cc;
    font-size: 14px;
    line-height: 1.55;
}
.simple-coverage-confirm-list {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 220px;
    margin: 12px 0 0;
    padding: 10px;
    overflow-y: auto;
    list-style: none;
    border: 1px solid rgba(var(--coverage-confirm-rgb),0.28);
    border-radius: 8px;
    background: rgba(var(--coverage-confirm-rgb),0.07);
}
.simple-coverage-confirm-list li {
    margin: 0;
}
.simple-coverage-confirm-item {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #f5f5f7;
    background: rgba(255,255,255,0.045);
    border: 1px solid transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.simple-coverage-confirm-item:hover,
.simple-coverage-confirm-item:focus-visible {
    border-color: rgba(var(--coverage-confirm-rgb),0.48);
    color: #fff;
    background: rgba(var(--coverage-confirm-rgb),0.16);
    outline: none;
}
.simple-coverage-confirm-item strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.simple-coverage-confirm-item span {
    flex: 0 0 auto;
    color: var(--coverage-confirm-color);
    font-size: 13px;
    font-weight: 750;
}
.simple-coverage-confirm-note {
    grid-column: 1 / -1;
    margin-top: 4px;
    color: #9a9aa1;
}
.simple-coverage-confirm-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}
.simple-coverage-confirm-actions .btn {
    min-height: 48px;
}
.simple-coverage-confirm-cancel {
    border: 1px solid #48484a;
    color: #f5f5f7;
    background: #323235;
}
.simple-coverage-confirm-actions .simple-coverage-confirm-cancel:hover:not(:disabled) {
    border-color: #5a5a5f;
    background: #3a3a3e;
    box-shadow: none;
}
.simple-coverage-confirm-primary {
    border: 1px solid var(--coverage-confirm-action);
    color: var(--coverage-confirm-action-text);
    background: var(--coverage-confirm-action);
    box-shadow: 0 8px 22px rgba(var(--coverage-confirm-rgb),0.22);
}
.simple-coverage-confirm-actions .simple-coverage-confirm-primary:hover:not(:disabled) {
    border-color: var(--coverage-confirm-action-hover);
    color: var(--coverage-confirm-action-text);
    background: var(--coverage-confirm-action-hover);
    box-shadow: 0 8px 22px rgba(var(--coverage-confirm-rgb),0.28);
}

.simple-complete-content {
    width: min(820px, 92vw);
}
.simple-complete-head {
    display: flex;
    align-items: center;
    gap: 16px;
}
.simple-complete-head p {
    margin: 6px 0 0;
    color: #aeaeb2;
    font-size: 14px;
}
.simple-success-check {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1c1c1e;
    background: #3CAE4E;
    box-shadow: 0 0 0 1px rgba(60,174,78,0.38), 0 0 16px rgba(60,174,78,0.22);
    transition: background-color 180ms ease, box-shadow 180ms ease;
}
.simple-success-check svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.simple-partial-mark {
    opacity: 0;
    transition: opacity 140ms ease;
}
.simple-complete-overlay.is-partial .simple-success-check {
    background: #ff9f0a;
    box-shadow: 0 0 0 1px rgba(255,159,10,0.42), 0 0 16px rgba(255,159,10,0.24);
}
.simple-complete-overlay.is-partial .simple-partial-mark {
    opacity: 1;
}
.simple-complete-overlay.is-saving .simple-success-check {
    color: #72b7ff;
    background: rgba(10,132,255,0.12);
    box-shadow: 0 0 0 1px rgba(10,132,255,0.46), 0 0 18px rgba(10,132,255,0.24);
}
.simple-complete-overlay.is-saving .simple-success-check svg {
    display: none;
}
.simple-complete-overlay.is-saving .simple-success-check::after {
    content: '';
    width: 26px;
    height: 26px;
    box-sizing: border-box;
    border: 3px solid rgba(114,183,255,0.25);
    border-top-color: #72b7ff;
    border-radius: 50%;
    animation: simpleSpinner 0.78s linear infinite;
}
.simple-complete-overlay.is-saving .simple-complete-actions {
    opacity: 0.45;
    pointer-events: none;
}
.simple-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 52vh;
    overflow-y: auto;
}
.simple-file-item {
    min-height: 64px;
    display: grid;
    grid-template-columns: var(--list-photo-thumb-compact-width) minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid #3a3a3c;
    border-radius: 8px;
    background: #202022;
}
.simple-file-item.is-choosing,
.simple-file-item.is-saving {
    border-color: rgba(10,132,255,0.42);
    background: rgba(10,132,255,0.075);
}
.simple-file-item.is-canceled,
.simple-file-item.is-failed {
    border-color: rgba(255,159,10,0.40);
    background: rgba(255,159,10,0.065);
}
.simple-file-thumb {
    width: var(--list-photo-thumb-compact-width);
    height: var(--list-photo-thumb-compact-height);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 6px;
    background: var(--list-photo-thumb-matte);
}
.simple-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.simple-file-info {
    min-width: 0;
}
.simple-file-info strong,
.simple-file-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.simple-file-info strong {
    color: #f5f5f7;
    font-size: 15px;
}
.simple-file-info span {
    margin-top: 5px;
    color: #aeaeb2;
    font-size: 13px;
}
.simple-file-folder-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(60,174,78,0.72);
    border-radius: 6px;
    color: #62d579;
    background: rgba(60,174,78,0.10);
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}
.simple-file-folder-btn:hover:not(:disabled) {
    color: #1c1c1e;
    background: #3CAE4E;
    border-color: #3CAE4E;
}
.simple-file-folder-btn:active:not(:disabled) {
    transform: scale(0.94);
}
.simple-file-folder-btn:disabled {
    color: #636366;
    border-color: #3a3a3c;
    background: #2c2c2e;
    cursor: not-allowed;
}
.simple-file-folder-btn svg {
    pointer-events: none;
}
.simple-file-status {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #48484a;
    border-radius: 50%;
    color: #8e8e93;
    background: rgba(255,255,255,0.035);
}
.simple-file-status > span {
    width: 19px;
    height: 19px;
    box-sizing: border-box;
    border: 2px solid rgba(114,183,255,0.25);
    border-top-color: #72b7ff;
    border-radius: 50%;
    animation: simpleSpinner 0.78s linear infinite;
}
.simple-file-status.is-queued > span {
    animation-play-state: paused;
    border-color: rgba(142,142,147,0.45);
    border-top-color: #8e8e93;
}
.simple-file-status svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.simple-file-status.is-saved {
    color: #62d579;
    border-color: rgba(60,174,78,0.62);
    background: rgba(60,174,78,0.10);
}
.simple-file-status.is-canceled,
.simple-file-status.is-failed {
    color: #ffb340;
    border-color: rgba(255,159,10,0.62);
    background: rgba(255,159,10,0.10);
}
.simple-complete-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.simple-complete-actions.has-retry {
    grid-template-columns: 1fr;
}
.simple-complete-actions .btn {
    width: 100%;
    min-height: 48px;
    margin: 0;
}
.simple-retry-pending-slot {
    width: 100%;
    overflow: hidden;
    transform-origin: top center;
}
.simple-retry-pending-slot[hidden] { display: none; }
.simple-retry-pending-btn {
    border: 1px solid rgba(10,132,255,0.72);
    color: #d5ebff;
    background: rgba(10,132,255,0.14);
}
.simple-retry-pending-btn:hover:not(:disabled),
.simple-retry-pending-btn:focus-visible {
    border-color: #72b7ff;
    color: #ffffff;
    background: rgba(10,132,255,0.28);
    box-shadow: 0 0 0 2px rgba(10,132,255,0.18);
}
.simple-ugem-upload-btn {
    min-height: 48px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #071315;
    border: 0;
    background: var(--ugem-cloud-action-gradient);
    font-weight: 850;
    filter: none;
    box-shadow: var(--shadow-control-rest);
    transition: transform .12s ease, filter .13s ease-out, box-shadow .13s ease-out;
}
.simple-ugem-upload-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--ugem-cloud-action-active-gradient);
    opacity: 0;
    pointer-events: none;
    transition: opacity .13s ease-out;
}
.simple-ugem-upload-btn > * { position: relative; z-index: 1; }
.simple-ugem-upload-btn img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    opacity: .9;
    filter: brightness(0) saturate(100%);
    transition: opacity .14s ease;
}
.simple-ugem-upload-btn:hover:not(:disabled),
.simple-ugem-upload-btn:focus-visible:not(:disabled) {
    color: #071315;
    background: var(--ugem-cloud-action-gradient);
    filter: none;
    box-shadow: 0 10px 28px rgba(82,196,96,.22);
}
.simple-ugem-upload-btn:hover:not(:disabled)::before,
.simple-ugem-upload-btn:focus-visible:not(:disabled)::before,
.simple-ugem-upload-btn:active:not(:disabled)::before { opacity: 1; }
.simple-ugem-upload-btn:hover:not(:disabled) img,
.simple-ugem-upload-btn:focus-visible:not(:disabled) img { opacity: 1; }
.simple-ugem-upload-btn:focus-visible {
    outline: 2px solid #49bfd5;
    outline-offset: 3px;
}
.simple-ugem-upload-btn:active:not(:disabled) {
    background: var(--ugem-cloud-action-gradient);
    filter: none;
    box-shadow: 0 4px 12px rgba(37,203,224,.18);
}
.simple-complete-nav-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.simple-complete-next-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; min-width: 0; }
.simple-complete-next-actions .btn { min-width: 0; }
.simple-complete-next-actions .btn > span { white-space: normal; }
.simple-complete-actions .btn > svg { width: 22px; height: 22px; flex: 0 0 auto; }
.simple-complete-nav-actions .btn { width: 100%; min-height: 48px; margin: 0; }
.simple-complete-nav-actions .simple-professional-return-btn {
    background: var(--surface-control);
    color: var(--accent-orange);
    border-color: var(--surface-control-hover);
}
.simple-complete-nav-actions .simple-professional-return-btn:hover:not(:disabled) {
    background: var(--surface-control-hover);
    color: var(--accent-orange-hover);
    border-color: var(--surface-control-hover);
}
.simple-complete-home-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: url("../assets/icons/house-simple.svg?v=6.12-shared-r1") center / contain no-repeat;
    mask: url("../assets/icons/house-simple.svg?v=6.12-shared-r1") center / contain no-repeat;
}
body.ugem-upload-helper-off .simple-ugem-upload-btn { display: none; }

@media (max-width: 1180px) and (min-width: 981px) {
    .simple-workflow-panel {
        gap: 16px;
    }
    .simple-spec-card {
        min-height: 100px;
        padding: 8px 10px;
        grid-template-columns: 62px 22px minmax(58px, 1fr) 108px 120px;
        gap: 6px;
    }
    .simple-crop-preview {
        width: 62px;
        height: 78px;
    }
    .simple-spec-coverage-warning-slot,
    .simple-spec-coverage-warning {
        width: 22px;
        min-width: 22px;
    }
    .simple-spec-coverage-warning {
        height: 22px;
    }
    .simple-spec-coverage-warning-icon {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
    }
    .simple-spec-identity h3 {
        font-size: 16px;
    }
    .simple-crop-toggle-label {
        min-height: 40px;
        padding: 0 4px;
        gap: 6px;
        font-size: 11px;
    }
    .simple-crop-toggle-icon {
        width: 18px;
        height: 18px;
    }
    .simple-count-row {
        min-width: 0;
        grid-template-columns: 32px minmax(50px, 1fr) 32px;
        gap: 3px;
    }
    .simple-count-row button {
        width: 32px;
        height: 38px;
    }
    .simple-flexible-spec-identity select {
        padding-left: 7px;
        font-size: 12px;
    }
    .simple-layout-appearance {
        grid-template-columns:
            minmax(126px, 1.2fr)
            minmax(64px, 0.55fr)
            minmax(104px, 0.82fr);
        gap: 4px;
    }
    .simple-layout-favorite-select {
        width: 100%;
    }
    .simple-layout-preview-btn {
        width: 100%;
        min-width: 0;
    }
    .simple-cover-settings-grid {
        grid-template-columns: 126px minmax(0, 1fr);
        column-gap: 8px;
    }
}

@media (max-width: 980px) {
    .simple-meta-row {
        grid-template-columns: 1fr;
    }
    .simple-order-form {
        flex: 0 0 auto;
        grid-template-columns: 1fr;
    }
    .simple-workflow-panel {
        grid-template-columns: 1fr;
        height: auto;
    }
    .simple-spec-card {
        flex: 0 0 auto;
        grid-template-columns: 76px 26px minmax(110px, 1fr) minmax(124px, 150px) 138px;
        gap: 10px;
    }
    .simple-spec-section,
    .simple-layout-section,
    .simple-cover-section,
    .simple-finish-btn {
        grid-column: auto;
        grid-row: auto;
    }
    .simple-output-actions {
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .welcome-actions {
        width: auto;
        bottom: 24px;
        flex-direction: row;
        gap: 24px;
    }
    .simple-mode-content {
        width: 96vw;
        padding: 16px;
    }
    .simple-source-section {
        grid-template-columns: 1fr;
    }
    .simple-source-row {
        grid-template-columns: minmax(0, 1fr) var(--simple-source-control-size);
    }
    .simple-source-folder-btn {
        width: var(--simple-source-control-size);
        min-width: var(--simple-source-control-size);
    }
    .simple-source-choose-btn {
        position: static;
        width: 100%;
        height: 38px;
        transform: none;
    }
    .simple-source-choose-btn:active {
        transform: scale(0.97);
    }
    .simple-source-row strong {
        padding-left: 12px;
    }
    .simple-case-section {
        grid-template-columns: 1fr;
    }
    .simple-spec-grid {
        display: flex;
    }
    .simple-spec-card {
        max-width: none;
        grid-template-columns: 74px 26px minmax(0, 1fr);
    }
    .simple-crop-preview {
        grid-row: 1 / span 2;
        width: 74px;
    }
    .simple-crop-toggle,
    .simple-count-row {
        grid-column: 2 / -1;
    }
    .simple-count-row {
        width: 100%;
    }
    .simple-paper-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .simple-option-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .simple-complete-actions {
        grid-template-columns: 1fr;
    }
    .simple-complete-actions.has-retry {
        grid-template-columns: 1fr;
    }
    .simple-complete-nav-actions { grid-template-columns: 1fr; }
}

/* Sunny-only responsive output workspace; U-GEM keeps its automatic overlay. */
.simple-output-status { display: grid; grid-template-rows: 1fr; min-height: 0; opacity: 1; transition: grid-template-rows .22s ease, opacity .18s ease; }
.simple-output-status.is-hidden { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.simple-output-status-body { min-height: 0; overflow: hidden; }
.simple-output-status .simple-output-status-copy { margin: 0; font-size: 13px; cursor: default; }
.simple-output-status-text { min-width: 0; overflow-wrap: anywhere; }
.simple-output-status-text strong { margin-right: 8px; }
.simple-output-status[data-status="loading"] .simple-output-status-copy svg { display: none; }
.simple-output-actions:has(.simple-output-status.is-hidden) { gap: 0; }
body.decorative-animations-off .simple-output-status, body.app-background-paused .simple-output-status { transition: none; }
@media (prefers-reduced-motion: reduce) { .simple-output-status { transition: none; } }

.simple-mode-content.simple-composer-layout {
    width: min(1344px, calc(100vw - 48px));
    height: min(752px, calc(100vh - 24px));
    max-height: calc(100vh - 24px);
    min-height: 0;
    overflow: clip;
}
.simple-mode-content.simple-composer-layout:has(.simple-spec-grid > .simple-spec-card:nth-child(5)) { height: min(804px, calc(100vh - 24px)); }
.simple-mode-content.simple-composer-layout:has(.simple-spec-grid > .simple-spec-card:nth-child(6)) { height: min(940px, calc(100vh - 24px)); }
.simple-composer-layout .simple-mode-header { flex: 0 0 auto; }
.simple-mode-content.simple-composer-layout .simple-order-form { flex: 1 1 0; min-height: 0; height: 100%; overflow: hidden; }
.simple-mode-content.simple-composer-layout .simple-workflow-panel { grid-template-columns: minmax(0,1.2fr) minmax(400px,.98fr); min-height: 0; height: 100%; overflow: hidden; }
.simple-composer-layout .simple-left-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; height: 100%; }
.simple-mode-content.simple-composer-layout .simple-spec-section { flex: 1 1 0; min-height: 0; height: auto; overflow: hidden; }
.simple-mode-content.simple-composer-layout .simple-spec-grid {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    padding-right: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}
.simple-composer-layout .simple-paper-section { flex: 0 0 auto; margin: 0; padding: 0; border: 0; }
.simple-paper-toolbar { display: grid; grid-template-columns: 104px minmax(0,1fr) 86px; gap: 8px; align-items: center; min-width: 0; }
.simple-composer-layout .simple-paper-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.simple-composer-layout .simple-paper-options button { height: 38px; min-height: 38px; padding: 0 6px; font-size: 14px; }
.simple-composer-layout .simple-paper-options button small { display: none; }
.simple-composer-layout .simple-paper-options button[hidden] { display: none; }
.simple-composer-layout .simple-paper-type-toggle { height: 38px; font-size: 13px; border-radius: 8px; padding: 0 6px; }
.simple-composer-layout .simple-layout-appearance { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.simple-composer-layout .simple-layout-appearance-panel { top: calc(100% + 8px); bottom: auto; grid-template-rows: auto auto auto; transform-origin: top right; }
.simple-paper-extra-controls { display: grid; grid-template-columns: var(--simple-appearance-columns); gap: 6px; align-items: center; }
.simple-paper-extra-controls > label:first-child { grid-column: 1 / span 2; }
.simple-paper-extra-controls > label:nth-child(2) { grid-column: 3 / span 2; }
.simple-paper-extra-controls > .simple-layout-preview-btn { grid-column: 5; }
.simple-paper-extra-controls:not(:has(.simple-layout-preview-btn)) { grid-template-columns: minmax(0,1fr); }
.simple-mode-content.simple-composer-layout .simple-output-column { min-height: 0; height: 100%; overflow: hidden; }
.simple-mode-content.simple-composer-layout .simple-output-settings-scroll {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 48%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 6px;
}
.simple-composer-layout .simple-output-settings-scroll > * { flex: 0 0 auto; }
.simple-composer-layout .simple-cover-options { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; }
.simple-composer-layout .simple-cover-options button { min-height: 38px; padding: 0 6px; }
.simple-composer-layout .simple-output-actions { flex: 0 0 auto; }
.simple-composer-layout .simple-inline-preview-right-slot { display: flex; flex: 0 0 auto; min-width: 0; min-height: 0; overflow: hidden; }
.simple-composer-layout .simple-inline-preview-right-slot { container-type: inline-size; container-name: simple-output-preview; }
.simple-composer-layout .simple-inline-preview-right-slot:has(.simple-inline-output-preview.is-open) { flex: 1 1 0; }
.simple-composer-layout .simple-inline-output-preview { flex: 1 1 0; width: 100%; margin-top: 0; }
.simple-composer-layout .simple-inline-output-preview.is-open { height: 100%; }
.simple-composer-layout .simple-inline-preview-shell { height: 100%; }
.simple-composer-layout .simple-inline-preview-strip {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-auto-rows: 144px;
    align-content: start;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 2px 2px 4px 0;
}
.simple-composer-layout .simple-inline-preview-item { width: 100%; min-width: 0; margin-right: 0; transition: opacity .18s ease; }
.simple-composer-layout .simple-inline-preview-item.is-entering,
.simple-composer-layout .simple-inline-preview-item.is-exiting { width: 100%; margin-right: 0; }
.simple-composer-layout .simple-inline-preview-card { width: 100%; height: 100%; }
.simple-composer-layout .simple-cover-settings {
    display: grid;
    grid-template-rows: 1fr;
    flex: 0 0 auto;
    min-height: 0;
    opacity: 1;
    transition: grid-template-rows .22s ease, opacity .18s ease, margin-top .22s ease, padding-top .22s ease, border-color .22s ease;
}
.simple-composer-layout .simple-cover-settings > .simple-cover-settings-grid { min-height: 0; overflow: hidden; }
.simple-composer-layout .simple-cover-color-row { grid-column: 1 / -1; }
.simple-composer-layout .simple-cover-design-row { gap: 8px 16px; }
.simple-composer-layout .simple-cover-command-row { display: flex; flex: 1 1 240px; min-width: 0; box-sizing: border-box; padding-left: 12px; align-items: center; gap: 8px; }
.simple-composer-layout .simple-cover-design-row .simple-cover-animation-row { margin-left: 0; }
.simple-composer-layout .simple-cover-design-row .simple-cover-preview-btn { flex: 0 0 120px; width: 120px; min-height: 36px; margin-left: auto; }
.simple-composer-layout .simple-cover-export-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.simple-composer-layout .simple-cover-export-row .simple-cover-output-fields { display: contents; }
.simple-composer-layout .simple-cover-export-row :is(.simple-cover-source-field,.simple-cover-paper-field) { display: grid; grid-template-columns: auto minmax(0,1fr); min-width: 0; }
.simple-composer-layout .simple-cover-export-row .simple-cover-source-field select { height: 36px; }
.simple-composer-layout .simple-cover-settings.is-collapsed { grid-template-rows: 0fr; opacity: 0; margin-top: 0; padding-top: 0; border-top-color: transparent; }
.simple-composer-layout .simple-cover-case-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
body:has(#simpleModeModal.show .simple-composer-layout #simpleCaseNumber:not(:disabled)) #workspaceCaseDock { display: none; }
body.decorative-animations-off .simple-composer-layout .simple-cover-settings,
body.app-background-paused .simple-composer-layout .simple-cover-settings,
body.decorative-animations-off .simple-composer-layout .simple-inline-preview-item,
body.app-background-paused .simple-composer-layout .simple-inline-preview-item { transition: none; }
@media (prefers-reduced-motion: reduce) { .simple-composer-layout .simple-cover-settings, .simple-composer-layout .simple-inline-preview-item { transition: none; } }
@media (max-width: 1180px) {
    .simple-mode-content.simple-composer-layout { padding: 16px; }
    .simple-composer-layout .simple-paper-section > h3 { margin-bottom: 8px; }
    .simple-composer-layout .simple-cover-design-row .simple-cover-color-row { flex: 1 1 100%; }
    .simple-composer-layout .simple-cover-command-row { padding-left: 0; }
    .simple-composer-layout .simple-cover-design-row .simple-cover-animation-row { flex: 0 0 auto; }
}
@media (max-width: 680px) { .simple-composer-layout .simple-cover-options { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@container simple-output-preview (min-width: 520px) {
    .simple-composer-layout .simple-inline-preview-strip { grid-template-columns: repeat(6,minmax(0,1fr)); grid-auto-flow: row dense; grid-auto-rows: clamp(108px, calc((100% - 16px) / 2), 144px); }
    .simple-composer-layout .simple-inline-preview-item { grid-column: span 2; }
    .simple-composer-layout .simple-inline-preview-item:has(.simple-inline-preview-card[data-kind="layout"]):not([data-layout-orientation="portrait"]) { grid-column: span 3; }
}
@media (max-width: 980px) {
    .simple-mode-content.simple-composer-layout { overflow-y: auto; }
    .simple-mode-content.simple-composer-layout .simple-order-form,
    .simple-mode-content.simple-composer-layout .simple-workflow-panel,
    .simple-mode-content.simple-composer-layout .simple-spec-section,
    .simple-mode-content.simple-composer-layout .simple-output-column { flex: 0 0 auto; height: auto; overflow: visible; }
    .simple-composer-layout .simple-left-column { height: auto; }
    .simple-mode-content.simple-composer-layout .simple-workflow-panel { grid-template-columns: 1fr; }
    .simple-mode-content.simple-composer-layout .simple-spec-grid { flex: 0 0 516px; max-height: 516px; }
    .simple-mode-content.simple-composer-layout .simple-output-settings-scroll { max-height: none; height: auto; overflow: visible; }
    .simple-composer-layout .simple-inline-preview-right-slot:has(.simple-inline-output-preview.is-open) { flex: 0 0 344px; }
}
