@charset "UTF-8";

/* ROOT VARIABLES */
:root {
    --primary: #0066B3;
    --primary-dark: #004d8a;
    --primary-glow: rgba(0, 102, 179, 0.25);
    --accent: #FDB913;
    --accent-dark: #d48c10;
    --danger: #e53935;
    --success: #43a047;
    --warning: #f9a825;

    /* Dark UI */
    --bg: #0d1117;
    --surf-1: #161b27;
    --surf-2: #1e2435;
    --surf-3: #28304a;
    --border: #2c3551;
    --text: #e6ecf5;
    --text-soft: #99a8c0;
    --text-mute: #5a6a88;

    --sidebar-w: 370px;
    --header-h: 60px;
    --radius: 10px;
    --tr: 0.18s ease;
}

/* BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

input,
textarea,
button {
    font-family: inherit;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-mute);
}

/* APP HEADER */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--surf-1);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 200;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo-pill {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    padding: 2px 12px 6px 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 102, 179, 0.2);
    transition: all var(--tr);
}

.header-logo-pill img {
    height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform var(--tr);
}

.header-logo-pill .logo-fallback {
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0;
}

.header-logo-pill .logo-fallback .logo-the {
    display: inline-block;
    transform: rotate(-90deg) translateY(100%);
    transform-origin: bottom left;
    font-size: 14px;
    margin-right: -3px;
    line-height: 2;
    padding-left: 3px;
}

.header-logo-pill .logo-fallback span:last-child {
    color: var(--accent);
    display: inline-block;
    transform: scaleY(0.88);
    transform-origin: bottom;
    line-height: 1;
}

.header-title {
    line-height: 1.15;
}

.header-title strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text);
}

.header-title strong span {
    color: var(--accent);
}

.header-title small {
    font-size: 0.63rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-mute);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-mute);
    flex-shrink: 0;
    transition: background 0.3s, box-shadow 0.3s;
}

.status-dot.ok {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-dot.loading {
    background: var(--accent);
    animation: _blink 0.9s ease-in-out infinite;
}

.status-dot.err {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

@keyframes _blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.25
    }
}

/* APP BODY */
.app-body {
    display: flex;
    height: 100vh;
    padding-top: var(--header-h);
}

/* EDITOR SIDEBAR */
.editor-sidebar {
    width: var(--sidebar-w);
    min-width: 220px;
    max-width: 600px;
    background: var(--surf-1);
    border-right: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

/* SIDEBAR RESIZER */
.sidebar-resizer {
    width: 5px;
    background: var(--border);
    cursor: col-resize;
    flex-shrink: 0;
    position: relative;
    transition: background 0.15s;
    z-index: 10;
}

.sidebar-resizer:hover,
.sidebar-resizer.dragging {
    background: var(--primary);
}

.sidebar-resizer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 40px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0.4;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

/* Section header inside sidebar */
.sec-hdr {
    padding: 12px 16px 6px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-mute);
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--border);
    margin-top: 2px;
}

.sec-hdr:first-child {
    border-top: none;
    margin-top: 0;
}

.sec-hdr i {
    color: var(--accent);
    font-size: 0.85rem;
}

/* Fetch bar */
.fetch-bar {
    padding: 14px 16px;
    background: var(--surf-2);
}

.fetch-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fetch-row {
    display: flex;
    gap: 7px;
}

.fetch-input {
    flex: 1;
    background: var(--surf-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 9px 14px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    outline: none;
    transition: border-color var(--tr), box-shadow var(--tr);
}

.fetch-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.fetch-input::placeholder {
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-mute);
}

.btn-fetch {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 9px 15px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: background var(--tr), transform var(--tr);
}

.btn-fetch:hover {
    background: var(--primary-dark);
}

.btn-fetch:active {
    transform: scale(0.96);
}

.btn-fetch:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.fetch-msg {
    margin-top: 8px;
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 0.77rem;
    font-weight: 500;
    display: none;
    gap: 10px;
    align-items: center;
    line-height: 1.4;
    animation: _fadein 0.25s ease;
}

.fetch-msg.ok {
    display: flex;
    background: rgba(67, 160, 71, 0.12);
    border: 1px solid rgba(67, 160, 71, 0.3);
    color: #81c784;
}

.fetch-msg.err {
    display: flex;
    background: rgba(229, 57, 53, 0.12);
    border: 1px solid rgba(229, 57, 53, 0.3);
    color: #ef9a9a;
}

.fetch-msg.info {
    display: flex;
    background: rgba(0, 102, 179, 0.12);
    border: 1px solid rgba(0, 102, 179, 0.3);
    color: #90caf9;
}

@keyframes _fadein {
    from {
        opacity: 0;
        transform: translateY(-4px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* Form fields */
.fg {
    padding: 6px 16px;
}

.fg+.fg {
    padding-top: 4px;
}

.lbl {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 4px;
}

.fi {
    width: 100%;
    background: var(--surf-2);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    padding: 8px 11px;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--tr), box-shadow var(--tr);
    resize: none;
}

.fi:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-with-clear {
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-with-clear .fi {
    flex: 1;
    min-width: 0;
}

.btn-clear {
    background: transparent;
    border: none;
    color: var(--text-mute);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: color var(--tr);
}

.btn-clear:hover {
    color: var(--danger);
}

.fi::placeholder {
    color: var(--text-mute);
}

/* Size buttons */
.size-btns {
    display: flex;
    gap: 6px;
    padding: 6px 16px 10px;
    flex-wrap: wrap;
}

.sz {
    padding: 5px 13px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surf-2);
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--tr);
    letter-spacing: 0.3px;
}

.sz:hover {
    border-color: var(--primary);
    color: var(--text);
}

.sz.on {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Feature rows */
.features-list {
    padding: 2px 16px 8px;
}

.feat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.feat-row .bull {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}

.feat-in {
    flex: 1;
    background: var(--surf-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 6px 10px;
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--tr);
}

.feat-in:focus {
    border-color: var(--primary);
}

.btn-add-feat {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-soft);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--tr);
}

.btn-add-feat:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-remove-feat {
    background: transparent;
    border: none;
    color: var(--text-mute);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: color var(--tr);
}

.btn-remove-feat:hover {
    color: var(--danger);
}

/* Image upload area */
.img-thumb {
    width: 100%;
    max-height: 130px;
    object-fit: contain;
    border-radius: 7px;
    background: var(--surf-2);
    border: 1px solid var(--border);
    margin-top: 7px;
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 7px;
    border: 1.5px dashed var(--border);
    cursor: pointer;
    margin-top: 7px;
    color: var(--text-soft);
    font-size: 0.79rem;
    transition: border-color var(--tr), background var(--tr);
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
    color: var(--text);
}

.file-upload-label input {
    display: none;
}

/* Action buttons (sticky bottom) */
.sidebar-actions {
    padding: 12px 16px;
    background: var(--surf-1);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 11px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all var(--tr);
}

.btn-pdf {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 102, 179, 0.35);
}

.btn-pdf:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 102, 179, 0.5);
}

.btn-row {
    display: flex;
    gap: 7px;
}

.btn-row .btn-main {
    padding: 9px 10px;
    font-size: 0.81rem;
}

.btn-print {
    background: var(--surf-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-print:hover {
    background: var(--surf-3);
}

.btn-reset {
    background: var(--surf-2);
    color: #ef9a9a;
    border: 1px solid rgba(229, 57, 53, 0.25);
}

.btn-reset:hover {
    background: rgba(229, 57, 53, 0.1);
}

/* Credentials section */
.cred-toggle {
    padding: 8px 16px;
    font-size: 0.75rem;
    color: var(--text-mute);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color var(--tr);
}

.cred-toggle:hover {
    color: var(--text-soft);
}

.cred-panel {
    display: none;
    padding: 0 16px 10px;
}

.cred-panel.open {
    display: block;
}

/* PREVIEW PANEL */
.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #12151f;
    background-image:
        radial-gradient(ellipse at 50% 20%, rgba(0, 102, 179, 0.08) 0%, transparent 65%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 24px 24px, 24px 24px;
}

.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
    color: var(--text-mute);
    flex-shrink: 0;
}

.preview-toolbar .left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-toolbar .right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sz-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 100px;
    letter-spacing: 1px;
}

.dim-label {
    color: var(--text-soft);
    font-size: 0.75rem;
}

.preview-scroll {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 36px 30px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.poster-wrapper {
    position: relative;
    flex-shrink: 0;
}

/* POSTER */
#poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 794px;
    height: 1123px;
    background: #fff;
    transform-origin: top left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.3);
}

/* POSTER HEADER */
.p-header {
    background: #0066B3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 32px 0;
    flex-shrink: 0;
}

.p-logo {
    height: 125px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.p-logo-text {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 88px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.logo-the {
    display: inline-block;
    transform: rotate(-90deg) translateY(100%);
    transform-origin: bottom left;
    font-size: 36px;
    letter-spacing: -1px;
    margin-right: -8px;
    line-height: 2;
    padding-left: 4px;
}

.p-logo-text span:last-child {
    color: #FDB913;
    line-height: 1;
    display: inline-block;
    transform: scaleY(0.88);
    transform-origin: bottom;
}

.p-title {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 50px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 14px;
    word-break: break-word;
}

.p-date-banner {
    background: #FCD34D;
    width: calc(100% + 64px);
    margin: 0 -32px;
    padding: 9px 32px;
    text-align: center;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0066B3;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* POSTER IMAGE */
.p-image-section {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 14px;
    min-height: 0;
}

.p-product-img {
    max-width: var(--img-sz, 100%);
    max-height: var(--img-sz, 100%);
    object-fit: contain;
    display: none;
    transition: max-width 0.1s ease, max-height 0.1s ease;
}

.p-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    color: #ccc;
}

.p-img-placeholder i {
    font-size: 56px;
    color: #ddd;
}

.p-img-placeholder span {
    font-size: 13px;
    color: #bbb;
}

/* POSTER INFO */
.p-info {
    display: flex;
    align-items: flex-end;
    gap: 0;
    padding: 32px;
    background: #fff;
    border-top: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.p-info-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 18px;
}

.p-product-titles {
    text-align: center;
    padding: 16px 32px 4px;
    background: #fff;
    flex-shrink: 0;
}

.p-brand {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 60px;
    font-weight: 800;
    color: #0066B3;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 8px;
    min-height: 60px;
}

.p-model {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 45px;
    font-weight: 700;
    color: #333;
    line-height: 1.25;
    margin-bottom: 6px;
    min-height: 45px;
}

.p-extra-line {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: #666;
    line-height: 1.3;
    margin-bottom: 4px;
    min-height: 0;
}

.p-description {
    font-size: 18px;
    color: #444;
    line-height: 1.4;
    margin-bottom: 14px;
    display: none;
}

.p-features {
    list-style: none;
    flex: 1;
    margin: 0;
    padding: 0;
}

.p-features li {
    font-size: 20px;
    color: #333;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.p-features li::before {
    content: '•';
    color: #0066B3;
    font-weight: 900;
    flex-shrink: 0;
    line-height: 1.55;
}

.p-features li:empty {
    display: none;
}

.p-sku {
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* POSTER PRICE BOX */
.p-price-box {
    background: linear-gradient(160deg, #0066B3 0%, #004d8a 100%);
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 220px;
    gap: 8px;
    flex-shrink: 0;
    box-shadow: 2px 2px 14px rgba(0, 0, 0, 0.18);
}

.price-blk {
    text-align: center;
}

.price-num {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}

.price-num.secondary {
    font-size: 54px;
    font-weight: 900;
    color: #F5A623;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.price-lbl {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.price-divider {
    width: 70%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    align-self: center;
    margin: 2px 0;
}

/* LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    backdrop-filter: blur(5px);
}

.loading-overlay.show {
    display: flex;
}

.loading-card {
    background: var(--surf-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.spinner {
    width: 46px;
    height: 46px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: _spin 0.75s linear infinite;
}

@keyframes _spin {
    to {
        transform: rotate(360deg)
    }
}

.loading-msg {
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
}

/* HISTORY STYLES */
.history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--surf-1);
    border: 1px solid var(--border);
    border-radius: 8px;
    gap: 12px;
    transition: border-color var(--tr);
}

.history-row:hover {
    border-color: var(--primary);
}

.history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.history-model {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    font-size: 0.75rem;
    color: var(--text-soft);
    margin-top: 3px;
}

.history-actions {
    display: flex;
    gap: 6px;
}

.history-btn-load {
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tr);
}

.history-btn-load:hover {
    background: var(--primary);
    color: #fff;
}

/* PRINT STYLES */
@media print {

    html,
    body {
        overflow: visible !important;
        height: auto !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    @page {
        margin: 0;
    }

    .app-header,
    .editor-sidebar,
    .sidebar-resizer,
    .preview-toolbar,
    .loading-overlay {
        display: none !important;
    }

    .app-body {
        display: block !important;
        padding-top: 0 !important;
    }

    .preview-panel {
        background: white !important;
        display: block !important;
    }

    .preview-scroll {
        display: block !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .poster-wrapper {
        position: static !important;
        width: auto !important;
        height: auto !important;
    }

    #poster {
        position: static !important;
        width: 100% !important;
        height: 100vh !important;
        transform: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

}

/* Orientation injected dynamically via <style id="printOrientStyle"> */

/* ORIENTATION BUTTONS */
.orient-btns {
    display: flex;
    gap: 6px;
    padding: 4px 0 0;
}

.orient-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--surf-2);
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tr);
    flex: 1;
    justify-content: center;
}

.orient-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.orient-btn.on {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.orient-btn i {
    font-size: 1rem;
}

/* Flash animation for size/orientation badge confirmation */
@keyframes _badgeFlash {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.25);
        box-shadow: 0 0 0 4px rgba(0, 102, 179, 0.3);
    }

    100% {
        transform: scale(1);
    }
}

.badge-flash {
    animation: _badgeFlash 0.35s ease;
}

/* MISC */
.two-col {
    display: flex;
    gap: 10px;
}

.two-col>div {
    flex: 1;
}

.two-col .fg {
    padding: 0;
}