:root {
    --bg-app: #2a2a2a;
    --bg-sidebar: #353535;
    --bg-card: #3d3d3e;
    --bg-input: #525252;
    --border: #4a4a4a;
    --text-main: #ffffff;
    --text-muted: #c0c0c0;
    --accent: #3395ff;
    --accent-hover: #57a9ff;
    --success: #2da144;
    --warning: #664d00;
    --warning-text: #ffe082;
    --error: #ff5757;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    background: var(--bg-app);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

body.maintenance-active {
    padding-top: 38px;
    height: calc(100vh - 38px);
}

body.auth-pending .sidebar,
body.auth-pending .main-wrapper,
body.auth-locked .sidebar,
body.auth-locked .main-wrapper {
    display: none;
}

body.auth-pending::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 11000;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #2a2a2a, #353535);
}

body.auth-pending::after {
    content: "Перевіряємо доступ...";
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 11001;
    transform: translate(-50%, -50%);
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 800;
}

body.auth-modal-open {
    overflow: hidden;
}

.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: block;
    overflow: auto;
    --auth-bg: #2a2a2a;
    --auth-panel: #3d3d3e;
    --auth-panel-soft: #353535;
    --auth-line: #4a4a4a;
    --auth-text: #ffffff;
    --auth-muted: #c0c0c0;
    --auth-dim: #9ca3af;
    --auth-accent: #3395ff;
    --auth-accent-soft: rgba(51, 149, 255, 0.18);
    --auth-ok: #7dd3c7;
    --auth-warn: #f3b63f;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #2a2a2a, #353535);
    color: var(--auth-text);
    letter-spacing: 0;
}

.hidden {
    display: none;
}

.auth-gate *,
.auth-gate *::before,
.auth-gate *::after {
    box-sizing: border-box;
}

.auth-gate button,
.auth-gate input {
    font: inherit;
    letter-spacing: 0;
}

.auth-site-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 8px 28px;
    background: rgba(42, 42, 42, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.auth-site-topbar img {
    display: block;
    width: 190px;
    max-width: 42vw;
    height: 52px;
    object-fit: contain;
    object-position: center;
}

.auth-site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    flex-wrap: wrap;
}

.auth-site-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 0;
    color: #c6cbd4;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.auth-site-link.is-active {
    color: #ffffff;
}

.auth-site-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 999px;
    background: var(--auth-accent);
    box-shadow: 0 0 10px rgba(51, 149, 255, 0.45);
}

.auth-flow-page {
    position: relative;
    display: none;
    min-height: calc(100vh - 70px);
    overflow: hidden;
}

.auth-flow-page.is-active {
    display: block;
}

.auth-page-shell {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 70px);
    padding: 24px 34px;
}

.auth-technical-lines {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 9%;
    width: min(780px, 66vw);
    height: min(490px, 42vw);
    opacity: 0.48;
    transform: translateX(-50%);
    pointer-events: none;
}

.auth-technical-lines::before,
.auth-technical-lines::after,
.auth-sheet-sculpture::before,
.auth-sheet-sculpture::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.13);
    transform: rotate(-12deg) skewX(-18deg);
}

.auth-technical-lines::after,
.auth-sheet-sculpture::after {
    inset: 58px 50px;
    border-color: rgba(51, 149, 255, 0.32);
    transform: rotate(11deg) skewX(19deg);
}

.auth-technical-lines-mark {
    position: absolute;
    width: 74%;
    height: 52%;
    left: 13%;
    top: 24%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    transform: rotate(-8deg);
}

.auth-button-primary,
.auth-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.auth-button-primary {
    border: 0;
    background: var(--auth-accent);
    box-shadow: 0 16px 34px rgba(47, 156, 255, 0.22);
}

.auth-button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.auth-mini-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--auth-muted);
    background: rgba(255, 255, 255, 0.045);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.auth-home-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 118px);
    overflow: hidden;
    text-align: center;
}

.auth-sheet-sculpture {
    position: absolute;
    top: 5%;
    left: 50%;
    width: min(780px, 66vw);
    height: min(490px, 42vw);
    transform: translateX(-50%);
    opacity: 0.52;
    pointer-events: none;
}

.auth-home-content {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    padding: 38px 18px 20px;
}

.auth-home-content img {
    width: min(430px, 70vw);
    height: 132px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 18px;
}

.auth-home-title {
    margin: 0;
    font-size: clamp(38px, 5.5vw, 70px);
    line-height: 0.98;
    font-weight: 900;
}

.auth-home-title span {
    color: var(--auth-accent);
}

.auth-home-text {
    width: min(700px, 100%);
    margin: 16px auto 20px;
    color: #d7dce5;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.45;
}

.auth-home-actions,
.auth-stage-modules {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-stage-modules {
    gap: 8px;
    margin-top: 24px;
}

.auth-stage-footer {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--auth-dim);
    font-size: 13px;
    font-weight: 700;
}

.auth-content-page {
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(90deg, rgba(42, 42, 42, 0.97), rgba(47, 47, 48, 0.9) 48%, rgba(42, 42, 42, 0.98)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 76px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 76px),
        var(--auth-bg);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(380px, 520px);
    gap: 54px;
    align-items: center;
    min-height: calc(100vh - 140px);
}

.auth-features-page .auth-layout {
    grid-template-columns: minmax(360px, 1fr) minmax(600px, 720px);
    gap: 42px;
}

.auth-features-page .auth-copy {
    max-width: 680px;
}

.auth-copy {
    max-width: 740px;
}

.auth-eyebrow {
    margin: 0 0 18px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-title {
    margin: 0;
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 76px);
    line-height: 1.02;
    font-weight: 900;
}

.auth-text {
    max-width: 660px;
    margin: 22px 0 28px;
    color: #e5e7eb;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.55;
}

.auth-module-strip {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.auth-login-panel,
.auth-production-showcase {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(61, 61, 62, 0.96);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.auth-production-showcase {
    background:
        radial-gradient(circle at 82% 22%, rgba(51, 149, 255, 0.18), transparent 28%),
        rgba(61, 61, 62, 0.96);
}

.auth-production-showcase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-production-showcase-head strong {
    font-size: 14px;
}

.auth-production-showcase-body {
    padding: 24px;
}

.auth-production-showcase-body h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
}

.auth-production-showcase-body p {
    margin: 0 0 22px;
    color: var(--auth-muted);
    line-height: 1.45;
}

.auth-product-carousel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
}

.auth-carousel-slide {
    position: absolute;
    inset: 0;
    display: grid;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.auth-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.auth-carousel-media {
    position: relative;
    min-height: 372px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.62)),
        var(--slide-image) var(--slide-pos, center top) / var(--slide-size, cover) no-repeat,
        rgba(42, 42, 42, 0.7);
}

.auth-carousel-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(42, 42, 42, 0.2), transparent 30%, rgba(42, 42, 42, 0.1)),
        linear-gradient(180deg, transparent 42%, rgba(42, 42, 42, 0.84));
}

.auth-carousel-media.is-clean::after {
    display: none;
}

.auth-report-pages-media {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: rgba(31, 34, 40, 0.92);
}

.auth-report-pages-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 344px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: #f8fafc;
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.26);
}

.auth-scenario-media {
    display: grid;
    grid-template-rows: 0.9fr 1.1fr 1.14fr;
    gap: 10px;
    padding: 14px;
    background: rgba(31, 34, 40, 0.92);
}

.auth-scenario-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: #303030;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.22);
}

.auth-package-media {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(38, 42, 49, 0.96), rgba(24, 27, 32, 0.98)),
        rgba(31, 34, 40, 0.94);
}

.auth-package-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-package-label {
    display: block;
    margin-bottom: 4px;
    color: #9fb9d7;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-package-top strong {
    display: block;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.1;
}

.auth-package-status {
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(83, 214, 148, 0.5);
    border-radius: 999px;
    color: #bdf7d8;
    background: rgba(43, 136, 88, 0.22);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.auth-package-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 12px;
    min-height: 0;
}

.auth-package-panel {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.auth-package-panel h3 {
    margin: 0 0 10px;
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.15;
}

.auth-package-files,
.auth-package-steps {
    display: grid;
    gap: 8px;
}

.auth-package-file {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 9px;
    align-items: center;
    min-height: 47px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.18);
}

.auth-package-type {
    display: grid;
    place-items: center;
    width: 42px;
    height: 31px;
    border-radius: 5px;
    color: #ffffff;
    background: rgba(51, 149, 255, 0.24);
    font-size: 11px;
    font-weight: 900;
}

.auth-package-name {
    display: block;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.12;
}

.auth-package-meta {
    display: block;
    margin-top: 2px;
    color: #aeb7c4;
    font-size: 10px;
    line-height: 1.15;
}

.auth-package-ok {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #53d694;
    box-shadow: 0 0 12px rgba(83, 214, 148, 0.55);
}

.auth-package-step {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 8px;
    align-items: start;
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.18;
}

.auth-package-step span:first-child {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    color: #0f172a;
    background: #53d694;
    font-size: 10px;
    font-weight: 900;
}

.auth-carousel-copy {
    min-height: 126px;
}

.auth-carousel-copy h2 {
    margin: 0 0 8px;
    font-size: 27px;
    line-height: 1.12;
}

.auth-carousel-copy p {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.45;
}

.auth-carousel-controls {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-carousel-arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}

.auth-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.auth-carousel-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.auth-carousel-dot.is-active {
    background: var(--auth-accent);
    box-shadow: 0 0 12px rgba(51, 149, 255, 0.45);
}

.auth-signup-panel {
    border-color: rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% -10%, rgba(51, 149, 255, 0.18), transparent 36%),
        linear-gradient(180deg, rgba(61, 61, 62, 0.98), rgba(53, 53, 53, 0.98));
}

.auth-signup-body {
    padding: 30px 34px 32px;
}

.auth-signup-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.auth-signup-brand img {
    width: 124px;
    height: 48px;
    object-fit: contain;
}

.auth-signup-body h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.08;
    text-align: center;
}

.auth-account-switch {
    margin: 0 0 22px;
    color: #d7dbe2;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.auth-link-button {
    border: 0;
    padding: 0;
    color: var(--auth-accent);
    background: transparent;
    font-weight: 900;
    cursor: pointer;
}

.auth-signup-form {
    display: grid;
    gap: 13px;
}

.auth-signup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.auth-signup-input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(42, 42, 42, 0.76);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    outline: none;
}

.auth-signup-input::placeholder {
    color: #9ca3af;
}

.auth-signup-input.is-active,
.auth-signup-input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(51, 149, 255, 0.16);
}

.auth-terms-row {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 2px 0 4px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.auth-terms-row input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--auth-accent);
}

.auth-terms-row a {
    color: #8fc7ff;
    text-decoration: none;
}

.auth-signup-submit,
.auth-erp-signup,
.auth-google-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.auth-signup-submit {
    border: 0;
    color: #ffffff;
    background: var(--auth-accent);
    box-shadow: 0 18px 32px rgba(51, 149, 255, 0.22);
}

.auth-signup-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin: 2px 0;
    color: #b9c0cc;
    font-size: 13px;
    font-weight: 800;
}

.auth-signup-divider::before,
.auth-signup-divider::after {
    content: "";
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
}

/* Primary sign-in path: 24print ERP SSO. */
.auth-erp-signup {
    gap: 12px;
    border: 1px solid transparent;
    color: #ffffff;
    background: var(--auth-accent);
    box-shadow: 0 18px 32px rgba(51, 149, 255, 0.22);
    font-size: 15px;
    text-decoration: none;
}

.auth-erp-signup:hover,
.auth-erp-signup:focus-visible {
    filter: brightness(1.08);
    box-shadow: 0 0 0 3px rgba(51, 149, 255, 0.28), 0 18px 32px rgba(51, 149, 255, 0.22);
}

.auth-erp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.auth-google-signup {
    gap: 12px;
    border: 1px solid #8e918f;
    color: #e3e3e3;
    background: #131314;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}

.auth-google-signup:hover,
.auth-google-signup:focus-visible {
    background: #1f1f1f;
    border-color: #c4c7c5;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(142, 145, 143, 0.18);
}

.auth-google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
}

.auth-google-mark {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.auth-access-panel .auth-signup-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-access-account {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(25, 25, 25, 0.72);
}

.auth-access-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(51, 149, 255, 0.98), rgba(23, 87, 139, 0.96));
    font-size: 18px;
    font-weight: 900;
}

.auth-access-account strong,
.auth-access-account span {
    display: block;
}

.auth-access-account strong {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.3;
}

.auth-access-account div > span {
    margin-top: 3px;
    color: #c7d0dd;
    font-size: 13px;
}

.auth-access-note {
    margin: 0;
    color: #d7dbe2;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.auth-access-actions {
    display: grid;
    gap: 10px;
    margin-top: 2px;
}

.auth-access-submit {
    min-height: 48px;
    font-size: 15px;
    text-transform: none;
}

.auth-access-secondary {
    width: 100%;
    min-height: 46px;
    border-color: rgba(51, 149, 255, 0.34);
    color: #e8f2ff;
    background: rgba(255, 255, 255, 0.035);
    font-size: 14px;
    font-weight: 850;
    text-transform: none;
}

.auth-access-secondary:hover,
.auth-access-secondary:focus-visible {
    border-color: rgba(51, 149, 255, 0.72);
    background: rgba(51, 149, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(51, 149, 255, 0.16);
}

.auth-status {
    min-height: 0;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.35;
}

.auth-status.is-visible,
.auth-status:not(:empty) {
    margin-top: 10px;
    min-height: 18px;
}

.auth-gate-status.is-visible {
    margin: 12px 0 14px;
}

.auth-status.is-warning,
.auth-status.is-danger {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.42;
}

.auth-status.is-warning {
    border: 1px solid rgba(255, 193, 7, 0.55);
    background: rgba(255, 193, 7, 0.12);
    color: #ffe8a3;
}

.auth-status.is-danger {
    border: 1px solid rgba(255, 87, 87, 0.68);
    background: rgba(255, 87, 87, 0.14);
    color: #ffd3d3;
    box-shadow: 0 0 0 1px rgba(255, 87, 87, 0.16);
}

.auth-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(10px);
}

.auth-terms-modal[hidden] {
    display: none;
}

.auth-terms-dialog {
    width: min(940px, 100%);
    max-height: min(86vh, 860px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background:
        radial-gradient(circle at 80% 0%, rgba(51, 149, 255, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(61, 61, 62, 0.98), rgba(47, 47, 48, 0.98));
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
}

.auth-terms-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-terms-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.12;
}

.auth-terms-close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    font-size: 24px;
    cursor: pointer;
}

.auth-terms-content {
    max-height: calc(min(86vh, 860px) - 94px);
    overflow: auto;
    padding: 24px 26px 28px;
    color: #e5e7eb;
}

.auth-terms-section {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-terms-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.auth-terms-section h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.22;
}

.auth-terms-section p,
.auth-terms-section li {
    color: #cbd5e1;
    line-height: 1.52;
}

.auth-terms-section p {
    margin: 0 0 10px;
}

.auth-terms-section ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.auth-terms-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

@media (max-height: 850px) and (min-width: 981px) {
    .auth-site-topbar {
        min-height: 58px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .auth-site-topbar img {
        width: 170px;
        height: 46px;
    }

    .auth-flow-page,
    .auth-page-shell {
        min-height: calc(100vh - 58px);
    }

    .auth-home-stage {
        min-height: calc(100vh - 94px);
    }

    .auth-home-content {
        padding-top: 20px;
        padding-bottom: 12px;
    }

    .auth-home-content img {
        width: min(360px, 62vw);
        height: 104px;
        margin-bottom: 12px;
    }

    .auth-home-title {
        font-size: clamp(34px, 4.7vw, 58px);
        line-height: 1;
    }

    .auth-home-text {
        margin-top: 12px;
        margin-bottom: 14px;
        font-size: 16px;
        line-height: 1.38;
    }

    .auth-stage-modules,
    .auth-module-strip {
        margin-top: 16px;
    }

    .auth-stage-footer {
        bottom: 12px;
    }

    .auth-technical-lines,
    .auth-sheet-sculpture {
        top: 3%;
        width: min(720px, 62vw);
        height: min(450px, 38vw);
    }

    .auth-layout {
        gap: 42px;
        min-height: calc(100vh - 94px);
    }

    .auth-features-page .auth-layout {
        grid-template-columns: minmax(320px, 1fr) minmax(620px, 700px);
        gap: 34px;
    }

    .auth-title {
        font-size: clamp(34px, 4.4vw, 64px);
    }

    .auth-text {
        margin-top: 16px;
        margin-bottom: 18px;
        font-size: 17px;
        line-height: 1.45;
    }

    .auth-production-showcase-head {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .auth-production-showcase-body {
        padding: 20px;
    }

    .auth-production-showcase-body h2,
    .auth-carousel-copy h2 {
        font-size: 22px;
        line-height: 1.08;
    }

    .auth-carousel-media {
        min-height: 310px;
    }

    .auth-product-carousel {
        min-height: 474px;
    }

    .auth-carousel-copy {
        min-height: 108px;
    }

    .auth-carousel-copy p {
        font-size: 14px;
        line-height: 1.35;
    }

    .auth-carousel-controls {
        margin-top: 10px;
        padding-top: 10px;
    }
}

@media (max-width: 980px) {
    .auth-site-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 10px 18px;
    }

    .auth-site-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
    }

    .auth-page-shell {
        padding: 22px 18px 36px;
    }

    .auth-layout,
    .auth-features-page .auth-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: auto;
    }

    .auth-title {
        font-size: clamp(34px, 11vw, 58px);
    }

    .auth-home-title {
        font-size: clamp(34px, 12vw, 60px);
    }

    .auth-product-carousel {
        min-height: 640px;
    }

    .auth-carousel-media {
        min-height: 340px;
    }

    .auth-report-pages-media {
        grid-template-columns: 1fr;
    }

    .auth-report-pages-media img {
        max-height: 260px;
    }

    .auth-package-grid {
        grid-template-columns: 1fr;
    }

    .auth-stage-footer {
        position: static;
        margin-top: 28px;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 560px) {
    .auth-site-topbar img {
        width: 154px;
        height: 42px;
    }

    .auth-site-nav {
        gap: 12px;
    }

    .auth-site-link {
        font-size: 12px;
    }

    .auth-home-content {
        padding-top: 20px;
    }

    .auth-home-content img {
        width: min(300px, 82vw);
        height: 92px;
    }

    .auth-signup-body {
        padding: 24px 22px;
    }

    .auth-signup-row {
        grid-template-columns: 1fr;
    }

    .auth-product-carousel {
        min-height: 680px;
    }

    .auth-carousel-controls {
        grid-template-columns: 34px 1fr 34px;
    }

    .auth-carousel-arrow {
        width: 34px;
        height: 34px;
    }

    .auth-carousel-dot {
        width: 24px;
    }
}

.auth-admin-view {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 18px;
    overflow: hidden;
}

.module-shell {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 94px);
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 25px;
    border: 1px solid #444;
    border-radius: 12px;
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.module-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
}

.module-title {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.1;
}

.auth-admin-subtitle,
.auth-admin-muted {
    color: #9ca3af;
    font-size: 12px;
}

.module-header-action,
.auth-admin-header #authAdminRefresh {
    position: absolute;
    top: 25px;
    right: 25px;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid #4b5563;
    border-radius: 10px;
    background: #2b2b2b;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 800;
}

/* Product updates journal */
.product-updates-view {
    --updates-heading: #d7dce4;
    --updates-strong: #cbd2dc;
    --updates-text: #bcc5d0;
    --updates-soft: #aeb8c5;
    --updates-muted: #89939f;
    --updates-accent: #82acd7;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 14px 16px 16px;
    overflow: hidden;
}

.product-updates-dialog {
    padding: 18px;
    background: #202020;
}

.product-updates-header {
    flex: 0 0 auto;
    margin-bottom: 12px;
    padding-right: 132px;
}

.product-updates-title {
    color: var(--updates-heading);
    font-size: 20px;
    line-height: 1.1;
}

.product-updates-header .auth-admin-subtitle {
    max-width: 720px;
    margin-top: 4px;
    line-height: 1.35;
}

.product-updates-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 330px;
    gap: 12px;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.product-updates-sidebar,
.product-updates-details,
.product-updates-content {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
}

.product-updates-sidebar {
    padding: 0 12px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.product-updates-content {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.product-updates-details {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #292929;
}

.product-updates-side-title {
    margin: 0 0 7px;
    color: #9ca3af;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.product-updates-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 13px;
}

.product-updates-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
}

.product-updates-metric span {
    color: #9ca3af;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.15;
}


.product-updates-metric.is-unread {
    border-color: rgba(234, 179, 8, 0.24);
    background: rgba(234, 179, 8, 0.08);
}

.product-updates-metric.is-unread strong {
    color: #f4c84c;
}

.product-updates-mark-all {
    width: 100%;
    min-height: 32px;
    padding: 7px 9px;
    border: 1px solid rgba(130, 172, 215, 0.42);
    border-radius: 7px;
    background: rgba(51, 149, 255, 0.12);
    color: var(--updates-heading);
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.product-updates-mark-all:hover:not(:disabled) {
    border-color: rgba(130, 172, 215, 0.72);
    background: rgba(51, 149, 255, 0.18);
}

.product-updates-mark-all:disabled {
    cursor: default;
    opacity: 0.45;
}
.product-updates-metric strong {
    min-width: 0;
    color: var(--updates-strong);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-updates-filters {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.product-updates-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-updates-filter-field span {
    color: #aeb6c2;
    font-size: 11px;
    font-weight: 700;
}

.product-updates-filter-field input,
.product-updates-filter-field select {
    width: 100%;
    min-height: 32px;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #505050;
    border-radius: 6px;
    background: #242424;
    color: var(--updates-strong);
    font: inherit;
    font-size: 12px;
}

.product-updates-filter-field input:focus,
.product-updates-filter-field select:focus {
    border-color: rgba(51, 149, 255, 0.8);
    outline: none;
    box-shadow: 0 0 0 2px rgba(51, 149, 255, 0.16);
}

.product-updates-module-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-updates-module {
    min-height: 29px;
    padding: 6px 8px;
    border: 1px solid #4b5563;
    border-radius: 6px;
    background: #2b2b2b;
    color: #d1d5db;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.product-updates-module:hover,
.product-updates-module.is-active {
    border-color: rgba(51, 149, 255, 0.68);
    background: rgba(51, 149, 255, 0.16);
    color: var(--updates-heading);
}

.product-updates-release {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #2a2a2a;
}

.product-updates-release-date strong {
    display: block;
    color: var(--updates-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.product-updates-release-date span {
    display: block;
    margin-top: 5px;
    color: #9ca3af;
    font-size: 11.5px;
    line-height: 1.3;
}

.product-updates-release-body h2 {
    margin: 0 0 6px;
    color: var(--updates-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.product-updates-release-body p {
    margin: 0 0 12px;
    color: var(--updates-text);
    font-size: 12.5px;
    line-height: 1.5;
}

.product-updates-category {
    margin-top: 10px;
}

.product-updates-category-title {
    margin-bottom: 6px;
    color: var(--updates-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0.02em;
}

.product-updates-entry-list {
    display: grid;
    gap: 5px;
}

.product-updates-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    background: #333;
    color: var(--updates-text);
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.product-updates-entry:hover {
    border-color: rgba(147, 197, 253, 0.45);
    background: #373737;
}

.product-updates-entry.is-active {
    border-color: rgba(51, 149, 255, 0.62);
    background: rgba(51, 149, 255, 0.12);
    box-shadow: inset 3px 0 0 rgba(51, 149, 255, 0.95);
}

.product-updates-entry-main,
.product-updates-entry-meta {
    min-width: 0;
}



.product-updates-entry-main strong {
    display: block;
    color: var(--updates-heading);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-updates-entry-main small {
    display: -webkit-box;
    margin-top: 3px;
    color: #aeb6c2;
    font-size: 11.5px;
    line-height: 1.42;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-updates-entry-meta {
    color: #8f98a6;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-updates-detail-placeholder {
    display: grid;
    gap: 6px;
    color: #9ca3af;
    font-size: 13px;
}

.product-updates-detail-placeholder strong {
    color: var(--updates-heading);
}

.product-updates-detail-head {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.product-updates-detail-date {
    margin-bottom: 7px;
    color: var(--updates-accent);
    font-size: 12px;
    font-weight: 800;
}

.product-updates-detail-head h2 {
    margin: 0 0 8px;
    color: var(--updates-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.product-updates-detail-head p {
    margin: 0;
    color: var(--updates-soft);
    font-size: 12.5px;
    line-height: 1.52;
}

.product-updates-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.product-updates-chip {
    padding: 4px 7px;
    border: 1px solid #4b5563;
    border-radius: 6px;
    background: #242424;
    color: var(--updates-soft);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.15;
}

.product-updates-chip.is-importance {
    border-color: rgba(234, 179, 8, 0.5);
    color: #facc15;
}

.product-updates-detail-section {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-updates-detail-section h3 {
    margin: 0 0 6px;
    color: var(--updates-accent);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0.02em;
}

.product-updates-detail-section p {
    margin: 0;
    color: var(--updates-text);
    font-size: 12.5px;
    line-height: 1.55;
}

.product-updates-sources div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.product-updates-sources code {
    max-width: 100%;
    padding: 3px 5px;
    border-radius: 5px;
    background: #202020;
    color: var(--updates-text);
    font-size: 10.5px;
    white-space: normal;
    word-break: break-word;
}

.product-updates-empty {
    display: grid;
    gap: 5px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #292929;
    color: #9ca3af;
}

.product-updates-empty strong {
    color: var(--updates-heading);
}

@media (max-width: 1420px) {
    .product-updates-layout {
        grid-template-columns: 200px minmax(0, 1fr) 318px;
        gap: 10px;
    }

    .product-updates-release {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
    }
}

@media (max-width: 1200px) {
    .product-updates-layout {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .product-updates-details {
        grid-column: 2;
        max-height: 300px;
    }
}

@media (max-width: 900px) {
    .product-updates-view {
        padding: 12px;
    }

    .product-updates-dialog {
        padding: 14px;
    }

    .product-updates-header {
        padding-right: 0;
    }

    .product-updates-layout,
    .product-updates-release {
        grid-template-columns: 1fr;
    }

    .product-updates-sidebar {
        padding-right: 0;
        padding-bottom: 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .product-updates-details {
        grid-column: auto;
        max-height: none;
    }
}

.module-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
}

.module-tab {
    min-width: 122px;
    min-height: 38px;
    padding: 10px 20px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #888;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: none;
    cursor: pointer;
}

.module-tab:hover {
    color: #d1d5db;
}

.module-tab.is-active,
.module-tab.active {
    color: #eab308;
    border-bottom-color: #eab308;
}

.settings-manager-view {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 18px;
    overflow: hidden;
}

.settings-manager-dialog .tab-content {
    min-width: 0;
}

.auth-admin-layout {
    min-height: 0;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 16px;
    flex: 1;
    padding: 5px 0 0;
    overflow: hidden;
}

.auth-admin-sidebar {
    min-height: 0;
    padding-right: 12px;
    overflow-y: auto;
    border-right: 1px solid #444;
}

.auth-admin-side-title {
    margin-bottom: 8px;
    color: #888;
    font-size: 12px;
    font-weight: 800;
}

.auth-admin-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.auth-admin-metric {
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #333;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
}

.auth-admin-metric span {
    display: block;
    margin-bottom: 2px;
    color: #888;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
}

.auth-admin-metric strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-admin-filter-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.auth-admin-filter-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.auth-admin-filter-field span,
.auth-admin-filter-check span {
    color: #aaa;
    font-size: 11px;
    font-weight: 700;
}

.auth-admin-filter-field input,
.auth-admin-filter-field select {
    width: 100%;
    min-height: 31px;
    box-sizing: border-box;
    padding: 5px 8px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font: inherit;
    font-size: 12px;
}

.auth-admin-filter-field input:focus,
.auth-admin-filter-field select:focus {
    border-color: #3395ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(53, 151, 255, 0.18);
}

.auth-admin-filter-check {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
}

.auth-admin-filter-check input {
    width: 14px;
    height: 14px;
    margin: 0;
}

.auth-admin-filter-note {
    padding: 8px 10px;
    border: 1px solid #333;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.35;
}

.auth-admin-filter-note strong {
    color: #fff;
}

.auth-admin-filter-primary,
.auth-admin-filter-clear,
.auth-admin-filter-danger {
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 7px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.auth-admin-filter-primary {
    border: 1px solid rgba(51, 149, 255, 0.55);
    background: linear-gradient(180deg, rgba(51, 149, 255, 0.18), rgba(51, 149, 255, 0.08));
}

.auth-admin-filter-clear {
    border: 1px solid #4b5563;
    background: #2b2b2b;
}

.auth-admin-filter-danger {
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.16), rgba(239, 68, 68, 0.08));
}

.auth-admin-filter-danger:disabled {
    cursor: default;
    opacity: 0.45;
}

.auth-admin-status {
    display: none;
    margin-top: 14px;
    padding: 10px 12px;
    border-bottom: 1px solid #333;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.35;
}

.auth-admin-status.is-visible {
    display: block;
}

.auth-admin-content {
    min-width: 0;
    min-height: 0;
    padding-right: 4px;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-admin-section {
    min-height: 100%;
}

.auth-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.auth-admin-panel {
    min-width: 0;
    padding: 15px;
    border: 0;
    border-radius: 8px;
    background: #333;
}

.auth-admin-panel h2 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    color: #eab308;
    font-size: 16px;
    font-weight: 800;
}

.auth-admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.auth-admin-panel-head h2 {
    min-width: 180px;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.auth-admin-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-width: min(520px, 100%);
}

.auth-admin-sticky-panel {
    --auth-admin-sticky-head-offset: 42px;
    position: relative;
}

.auth-admin-sticky-panel.auth-admin-sticky-panel--with-head {
    --auth-admin-sticky-head-offset: 58px;
}

.auth-admin-sticky-panel > h2,
.auth-admin-sticky-panel > .auth-admin-panel-head {
    position: sticky;
    top: 0;
    z-index: 12;
    background: #333;
}

.auth-admin-sticky-panel > h2 {
    margin: -15px -15px 0;
    padding: 15px 15px 10px;
}

.auth-admin-sticky-panel > .auth-admin-panel-head {
    margin: -15px -15px 0;
    padding: 15px 15px 4px;
    border-bottom: 0;
}

.auth-admin-sticky-panel > .auth-admin-panel-head h2 {
    padding-bottom: 6px;
    border-bottom: 0;
}

.auth-admin-sticky-panel .auth-admin-table-shell {
    overflow: visible;
}

.auth-admin-sticky-panel .auth-admin-table thead th {
    position: sticky;
    top: var(--auth-admin-sticky-head-offset);
    z-index: 11;
    background: #333;
    box-shadow: 0 -1px 0 #333, 0 1px 0 rgba(255, 255, 255, 0.08);
}
.auth-admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
    margin-bottom: 12px;
}

.auth-admin-create-panel .auth-admin-form-grid {
    grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.8fr) repeat(4, minmax(130px, 1fr));
    align-items: end;
}

.auth-admin-registry-panel .auth-admin-table-shell {
    max-height: none;
}

.auth-admin-enforcement-panel {
    padding-bottom: 13px;
}

.auth-admin-enforcement-head {
    align-items: center;
    margin-bottom: 10px;
}

.auth-admin-enforcement-head h2 {
    margin-bottom: 4px;
    padding-bottom: 0;
    border-bottom: 0;
}

.auth-admin-enforcement-actions {
    flex: 0 0 auto;
}

.auth-admin-enforcement-actions button {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.auth-admin-enforcement-actions button:disabled {
    cursor: default;
    opacity: 0.5;
}

.auth-admin-enforcement-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.auth-admin-form-grid label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
}

.auth-admin-form-grid input,
.auth-admin-form-grid select,
.auth-admin-row input {
    width: 100%;
    min-height: 36px;
    box-sizing: border-box;
    margin-top: 0;
    padding: 6px 8px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font: inherit;
    font-size: 13px;
}

.auth-admin-form-grid input:focus,
.auth-admin-form-grid select:focus,
.auth-admin-row input:focus {
    border-color: #3395ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(53, 151, 255, 0.18);
}

.auth-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.auth-admin-actions button,
.auth-admin-row button {
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.auth-admin-table-shell {
    min-width: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
}

.auth-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.auth-admin-table th,
.auth-admin-table td {
    padding: 9px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}

.auth-admin-table th {
    color: #9ca3af;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-admin-table select,
.auth-admin-table input,
.auth-admin-table button {
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-size: 11px;
}


.auth-admin-limit-value-cell {
    min-width: 130px;
}

.auth-admin-limit-input {
    max-width: 112px;
}

.auth-admin-limit-warning {
    margin-top: 5px;
    color: #fbbf24;
    font-size: 11px;
    line-height: 1.35;
}

.auth-admin-limit-actions {
    justify-content: flex-end;
    padding-top: 12px;
}

.auth-admin-table button:disabled {
    cursor: default;
    opacity: 0.45;
}

.auth-admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 170px;
}

.auth-admin-row-actions button {
    min-height: 26px;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

.auth-admin-table tbody tr[data-user-id] {
    cursor: pointer;
}

.auth-admin-table tbody tr[data-user-id]:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.auth-admin-table tbody tr[data-user-id] select,
.auth-admin-table tbody tr[data-user-id] button {
    cursor: default;
}

.auth-admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 700;
}

.auth-admin-badge.is-disabled,
.auth-admin-badge.is-terminated {
    background: rgba(255, 87, 87, 0.18);
    color: #fecaca;
}

.auth-admin-badge.is-active {
    background: rgba(45, 161, 68, 0.18);
    color: #bbf7d0;
}

.auth-admin-event-summary {
    margin-top: 5px;
    color: #d1d5db;
    font-size: 11px;
    line-height: 1.35;
    max-width: 360px;
}

.auth-admin-details {
    max-width: 440px;
    color: #cbd5e1;
    font-size: 11px;
}

.auth-admin-details summary {
    cursor: pointer;
    color: #93c5fd;
    font-weight: 800;
}

.auth-admin-details pre {
    max-height: 220px;
    margin: 8px 0 0;
    padding: 10px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    color: #e5e7eb;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    line-height: 1.45;
    white-space: pre-wrap;
}


.auth-admin-job-layout {
    display: grid;
    grid-template-columns: minmax(520px, 1.05fr) minmax(390px, 0.95fr);
    gap: 14px;
    align-items: start;
}

.auth-admin-job-list,
.auth-admin-job-detail-panel {
    min-width: 0;
}

.auth-admin-job-table tbody tr[data-job-public-id] {
    cursor: pointer;
}

.auth-admin-production-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    max-width: 190px;
    line-height: 1.25;
}

.auth-admin-production-numbers span {
    font-weight: 700;
    color: #f3f6fb;
    white-space: nowrap;
}

.auth-admin-job-table tbody tr[data-job-public-id]:hover td,
.auth-admin-job-table tbody tr[data-job-public-id].is-selected td {
    background: rgba(51, 149, 255, 0.08);
}

.auth-admin-job-table tbody tr[data-job-public-id].is-selected td:first-child {
    box-shadow: inset 3px 0 0 #3395ff;
}

.auth-admin-job-detail-panel {
    position: sticky;
    top: 8px;
    max-height: calc(100vh - 190px);
    overflow: auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(25, 25, 25, 0.72);
}

.auth-admin-job-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-admin-job-detail-head h3 {
    margin: 0 0 4px;
    color: #f3f4f6;
    font-size: 15px;
    font-weight: 850;
}

.auth-admin-job-detail-head span,
.auth-admin-job-empty span,
.auth-admin-release-head span,
.auth-admin-timeline-row span,
.auth-admin-file-row span {
    color: #aab4c3;
    font-size: 11px;
    line-height: 1.35;
}

.auth-admin-job-detail-head button {
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
}

.auth-admin-job-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 14px;
}

.auth-admin-kv,
.auth-admin-release-meta-item {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
}

.auth-admin-kv span,
.auth-admin-release-meta-item span,
.auth-admin-summary-row span {
    display: block;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.auth-admin-kv strong,
.auth-admin-release-meta-item strong,
.auth-admin-summary-row strong {
    display: block;
    margin-top: 2px;
    overflow-wrap: anywhere;
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.25;
}

.auth-admin-job-detail-section {
    margin-top: 14px;
}

.auth-admin-job-detail-section h4,
.auth-admin-release-subtitle {
    margin: 0 0 8px;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-admin-release-card {
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.auth-admin-release-card + .auth-admin-release-card {
    margin-top: 10px;
}

.auth-admin-release-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.auth-admin-release-head strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.auth-admin-release-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 9px;
}

.auth-admin-units-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0;
}

.auth-admin-unit-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid rgba(234, 179, 8, 0.42);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(234, 179, 8, 0.1);
    font-size: 11px;
    font-weight: 800;
}

.auth-admin-file-list {
    display: grid;
    gap: 5px;
    margin: 9px 0 11px;
}

.auth-admin-file-row {
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.16);
}

.auth-admin-file-row strong {
    display: block;
    overflow-wrap: anywhere;
    color: #e5e7eb;
    font-size: 12px;
}


.auth-admin-scenario-path {
    margin: -2px 0 9px;
    padding: 7px 8px;
    border-left: 3px solid rgba(147, 197, 253, 0.74);
    border-radius: 6px;
    background: rgba(147, 197, 253, 0.07);
}

.auth-admin-scenario-path > span {
    display: block;
    margin-bottom: 5px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.auth-admin-scenario-path div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.auth-admin-scenario-path strong {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 2px 7px;
    border: 1px solid rgba(51, 149, 255, 0.38);
    border-radius: 999px;
    background: rgba(51, 149, 255, 0.14);
    color: #dbeafe;
    font-size: 11px;
    font-weight: 800;
}
.auth-admin-snapshot-summary {
    display: grid;
    gap: 8px;
}

.auth-admin-summary-group {
    padding: 8px;
    border-left: 3px solid rgba(51, 149, 255, 0.82);
    border-radius: 6px;
    background: rgba(51, 149, 255, 0.055);
}

.auth-admin-summary-group h5 {
    margin: 0 0 6px;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 850;
}

.auth-admin-summary-row {
    display: grid;
    grid-template-columns: minmax(90px, 0.48fr) minmax(0, 1fr);
    gap: 8px;
    padding: 4px 0;
}

.auth-admin-summary-row + .auth-admin-summary-row {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-admin-job-timeline {
    display: grid;
    gap: 9px;
}

.auth-admin-timeline-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 8px;
}

.auth-admin-timeline-dot {
    width: 7px;
    height: 7px;
    margin-top: 5px;
    border-radius: 999px;
    background: #3395ff;
    box-shadow: 0 0 0 3px rgba(51, 149, 255, 0.16);
}

.auth-admin-timeline-row strong,
.auth-admin-timeline-row em {
    display: block;
    color: #e5e7eb;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.auth-admin-timeline-row em {
    margin-top: 2px;
    color: #cbd5e1;
}

.auth-admin-json-details {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 11px;
}

.auth-admin-json-details summary {
    cursor: pointer;
    color: #93c5fd;
    font-weight: 850;
}

.auth-admin-json-details pre {
    max-height: 260px;
    margin: 8px 0 0;
    padding: 9px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.32);
    color: #e5e7eb;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.auth-admin-job-empty,
.auth-admin-job-error {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.4;
}

.auth-admin-job-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #f3f4f6;
}

.auth-admin-job-empty.is-inline {
    margin: 8px 0;
    padding: 8px;
}

.auth-admin-job-error {
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
    background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 1320px) {
    .auth-admin-job-layout {
        grid-template-columns: 1fr;
    }

    .auth-admin-job-detail-panel {
        position: static;
        max-height: none;
    }
}

.auth-admin-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
}

.auth-admin-modal-card {
    width: min(480px, 100%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #2f2f2f;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.auth-admin-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-admin-modal-head h2 {
    margin: 0 0 4px;
    color: #eab308;
    font-size: 18px;
    font-weight: 800;
}

.auth-admin-modal-head p,
.auth-admin-modal-note {
    margin: 0;
    color: #c9d1d9;
    font-size: 13px;
    line-height: 1.45;
}

.auth-admin-modal-close {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.auth-admin-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    color: #aaa;
    font-size: 12px;
    font-weight: 800;
}

.auth-admin-modal-field input {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #1f1f1f;
    color: #fff;
    font: inherit;
    font-size: 14px;
}

.auth-admin-modal-field input:focus {
    border-color: #3395ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(53, 151, 255, 0.18);
}

.auth-admin-modal-error {
    min-height: 20px;
    margin-top: 8px;
    color: #fecaca;
    font-size: 12px;
    font-weight: 700;
}

.auth-admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.auth-admin-modal-actions button {
    min-width: 92px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .auth-admin-view {
        padding: 12px;
    }

    .auth-admin-dialog {
        height: auto;
        min-height: calc(100vh - 24px);
    }

    .auth-admin-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .auth-admin-sidebar {
        padding-right: 0;
        padding-bottom: 14px;
        border-right: 0;
        border-bottom: 1px solid #444;
    }

    .auth-admin-content {
        overflow: visible;
    }

    .auth-admin-grid {
        grid-template-columns: 1fr;
    }

    .auth-admin-panel-head,
    .auth-admin-header,
    .auth-admin-row {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-admin-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-admin-create-panel .auth-admin-form-grid {
        grid-template-columns: 1fr;
    }
}

.deploy-maintenance-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    background: #7a3b00;
    color: #fff3d5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.deploy-maintenance-banner.hidden {
    display: none;
}

.sequence-recipe-action-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
}

.sequence-recipe-action-card--compact {
    width: min(420px, 100%);
}

.sequence-recipe-action-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 8px;
}

.sequence-recipe-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sequence-recipe-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    padding-right: 4px;
}

.sequence-recipe-topbar {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sequence-recipe-mode-switch {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sequence-recipe-mode-chip {
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    cursor: pointer;
    flex: 1;
}

.sequence-recipe-mode-chip.is-active {
    background: rgba(45, 212, 191, 0.16);
    color: #d1fae5;
}

.sequence-recipe-rules-shell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
}

.sequence-recipe-rules-head {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.sequence-recipe-rules-head-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sequence-recipe-rules-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7dd3c7;
    font-weight: 700;
}

.sequence-recipe-rules-note {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.45;
}

.sequence-recipe-rule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 340px;
    overflow: auto;
    padding-right: 4px;
}

.sequence-recipe-rule-row {
    display: grid;
    grid-template-columns: 188px 150px 150px 88px auto;
    gap: 8px;
    align-items: end;
}

.sequence-recipe-rule-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sequence-recipe-rule-field label {
    margin: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 700;
}

.sequence-recipe-rule-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.sequence-recipe-rule-btn {
    min-width: 42px;
    padding: 10px 10px;
}

.sequence-recipe-rule-btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.sequence-recipe-rule-empty {
    padding: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.sequence-recipe-rule-row select option[disabled] {
    color: #64748b;
}

.sequence-recipe-manual-shell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
}

.sequence-recipe-manual-shell summary {
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.sequence-recipe-manual-shell summary::-webkit-details-marker {
    display: none;
}

.sequence-recipe-manual-shell summary::before {
    content: '+';
    display: inline-block;
    width: 14px;
    color: #7dd3c7;
    font-weight: 700;
}

.sequence-recipe-manual-shell[open] summary::before {
    content: '-';
}

.sequence-recipe-manual-body {
    margin-top: 10px;
}

.sequence-recipe-modal-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-end;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.sequence-recipe-modal-footer #sequenceRecipeSummary {
    min-width: 0;
    grid-column: 1;
}

.sequence-recipe-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    justify-self: end;
    grid-column: 2;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        height: auto;
        overflow: auto;
    }

    .sidebar {
        width: 100% !important;
        height: auto !important;
        flex-direction: row !important;
        padding: 6px 8px !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border);
        overflow-x: auto;
    }

    .logo {
        display: none;
    }

    .nav-item {
        min-height: 36px;
        padding: 0 12px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    .sidebar-nav {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
    }

    .nav-group {
        flex-direction: row;
        align-items: center;
        margin: 0;
    }

    .nav-header,
    .sidebar-bottom-divider {
        display: none;
    }

    .nav-item.active {
        box-shadow: inset 0 -3px 0 var(--accent);
    }

    .sidebar-bottom {
        margin-top: 0 !important;
        display: flex;
        flex-direction: row;
        gap: 6px;
        flex: 0 0 auto;
    }

    .top-bar {
        flex-direction: column;
        height: auto !important;
        padding: 10px !important;
        gap: 10px;
    }

    .top-bar-title-group {
        width: 100%;
        justify-content: center;
    }

    .sidebar-toggle {
        display: none;
    }

    #top-actions {
        width: 100%;
        justify-content: center;
    }

    button {
        flex: 1;
        padding: 8px 5px !important;
        font-size: 10px !important;
    }

    .sequence-recipe-rules-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .sequence-recipe-rule-row {
        grid-template-columns: 1fr 1fr;
    }

    .sequence-recipe-rule-actions {
        grid-column: 1 / -1;
    }

    .sequence-recipe-modal-footer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .sequence-recipe-footer-actions {
        width: 100%;
    }
}

.sidebar {
    width: 200px;
    background:
        linear-gradient(180deg, rgba(59, 59, 60, 0.98), rgba(43, 43, 44, 0.98)),
        var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 14px 10px 12px;
    flex-shrink: 0;
    transition: width 0.22s ease, padding 0.22s ease, border-right-color 0.22s ease;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0 8px 18px;
}

.logo img {
    display: block;
    width: 156px;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 4px;
}

.sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-bottom-divider {
    height: 1px;
    margin: 0 8px 4px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-header {
    font-size: 10.5px;
    text-transform: uppercase;
    color: rgba(214, 219, 229, 0.62);
    font-weight: 800;
    padding: 4px 10px 0;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.nav-item {
    position: relative;
    min-height: 38px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d4d4d8;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 7px;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.nav-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-item .nav-icon {
    flex: 0 0 16px;
    width: 16px;
    color: #9fb9d7;
    text-align: center;
    font-size: 13px;
    transition: color 0.16s ease;
}

.nav-group .nav-item {
    padding-left: 10px;
}

.nav-item:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.055);
}

.nav-item.drag-target {
    color: #fff;
    border-color: rgba(51, 149, 255, 0.58);
    background: rgba(51, 149, 255, 0.14);
}

.nav-item.active {
    color: #fff;
    border-color: rgba(51, 149, 255, 0.32);
    background: linear-gradient(90deg, rgba(51, 149, 255, 0.22), rgba(255, 255, 255, 0.055));
    box-shadow: inset 3px 0 0 var(--accent);
}


.nav-item .product-updates-nav-badge {
    flex: 0 0 auto;
    min-width: 18px;
    height: 18px;
    margin-left: auto;
    padding: 0 5px;
    border-radius: 999px;
    background: #eab308;
    color: #191919;
    font-size: 10px;
    font-weight: 900;
    line-height: 18px;
    text-align: center;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.16);
}

.nav-item.has-unread-updates:not(.active) {
    border-color: rgba(234, 179, 8, 0.24);
}
.nav-item.active .nav-icon,
.nav-item:hover .nav-icon,
.nav-item.drag-target .nav-icon {
    color: #8fc7ff;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
}

.top-bar {
    height: 48px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
    background: #353535;
    position: sticky;
    /* Make sticky */
    top: 0;
    /* Stick to top */
    z-index: 50;
    /* Ensure it stays above scrolled content */
}

.top-bar-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

#top-actions {
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}

.sidebar-toggle {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    text-transform: none;
    flex: 0 0 auto;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.auth-profile-mount {
    position: relative;
    flex: 0 0 auto;
}

.auth-profile {
    position: relative;
}

.auth-profile button {
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
}

.auth-profile-chip {
    height: 40px;
    min-width: 0;
    max-width: 320px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 11px 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, #3a3a3a, #2d2d2d);
    color: #fff;
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-profile-chip:hover {
    border-color: rgba(53, 151, 255, 0.62);
    background: linear-gradient(135deg, #424242, #333333);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.24);
}

.auth-profile-login-chip {
    min-width: 108px;
    justify-content: center;
    padding: 5px 13px;
}

.auth-profile-login-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(53, 151, 255, 0.18);
    color: #8fc8ff;
    font-size: 12px;
    border: 1px solid rgba(53, 151, 255, 0.38);
}

.auth-profile-chip-name {
    min-width: 0;
    max-width: 210px;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-profile-caret {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
}

.auth-profile-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #245f91;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(53, 151, 255, 0.42);
}

.auth-profile-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1f2933;
}

.auth-profile-avatar-lg {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 14px;
}

.auth-profile-avatar-xl {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    font-size: 20px;
}

.auth-profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 210px;
    z-index: 80;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #313131;
    box-shadow: var(--shadow);
}

.auth-profile-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-main);
    box-shadow: none;
}

.auth-profile-menu button:hover {
    background: rgba(53, 151, 255, 0.14);
}

.auth-profile-menu button {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 800;
}

.auth-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
}

.auth-profile-dialog {
    width: min(1280px, 96vw);
    height: min(640px, calc(100vh - 48px));
    max-height: min(860px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #444;
    border-radius: 12px;
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.auth-profile-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 12px;
}

.auth-profile-dialog-head h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.1;
}

.auth-profile-close {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    box-shadow: none;
}

.auth-profile-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.auth-profile-tabs {
    display: flex;
    gap: 10px;
    padding: 0 24px;
    border-bottom: 1px solid #444;
}

.auth-profile-tabs button {
    min-width: 148px;
    padding: 10px 20px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #888;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: none;
}

.auth-profile-tabs button:hover {
    color: #d1d5db;
}

.auth-profile-tabs button.is-active {
    border-bottom-color: #eab308;
    color: #eab308;
}

.auth-profile-layout {
    min-height: 0;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    flex: 1;
    padding: 20px 24px 24px;
    overflow: hidden;
}

.auth-profile-sidebar {
    min-height: 0;
    padding-right: 12px;
    overflow-y: auto;
    border-right: 1px solid #444;
}

.auth-profile-side-title {
    margin-bottom: 10px;
    color: #888;
    font-size: 12px;
    font-weight: 800;
}

.auth-profile-account-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #333;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.auth-profile-account-card h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
}

.auth-profile-account-card p {
    margin: 5px 0 0;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.3;
    word-break: break-word;
}

.auth-profile-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.auth-profile-summary-row {
    padding: 10px 12px;
    border-bottom: 1px solid #333;
    color: #d1d5db;
}

.auth-profile-summary-row span {
    display: block;
    margin-bottom: 4px;
    color: #888;
    font-size: 12px;
    font-weight: 700;
}

.auth-profile-summary-row strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
}

.auth-profile-panel {
    min-width: 0;
    min-height: 0;
    padding: 15px;
    overflow-y: auto;
    border-radius: 8px;
    background: #333;
}

.auth-profile-section-title {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.auth-profile-section-title h3 {
    margin: 0;
    color: #eab308;
    font-size: 16px;
    font-weight: 800;
}

.auth-profile-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 10px;
    align-items: start;
}

.auth-profile-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-sizing: border-box;
}

.auth-profile-field span {
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.auth-profile-field input,
.auth-profile-field select {
    width: 100%;
    min-height: 36px;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font: inherit;
    font-size: 13px;
}

.auth-profile-field input[readonly] {
    cursor: default;
    font-weight: 400;
    color: #fff;
}

.auth-profile-form-grid--profile .auth-profile-field:nth-child(4),
.auth-profile-form-grid--profile .auth-profile-field:nth-child(7),
.auth-profile-form-grid--access .auth-profile-field:nth-child(4),
.auth-profile-form-grid--access .auth-profile-field:nth-child(8) {
    grid-column: span 2;
}

.auth-profile-field input:focus,
.auth-profile-field select:focus {
    border-color: #3395ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(53, 151, 255, 0.18);
}

.auth-profile-message {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
}

.auth-profile-message.success {
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(74, 222, 128, 0.1);
}

.auth-profile-message.error {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.1);
}

.auth-profile-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 62px;
    box-sizing: border-box;
    padding: 0 24px 22px;
}

.auth-profile-dialog-actions--reserved {
    pointer-events: none;
}

.auth-profile-dialog-actions button {
    min-height: 40px;
    min-width: 180px;
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.auth-profile-dialog-actions button.primary {
    border-color: rgba(51, 149, 255, 0.55);
    background: linear-gradient(180deg, rgba(51, 149, 255, 0.18), rgba(51, 149, 255, 0.08));
    color: #fff;
}

.auth-profile-dialog-actions button.secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.auth-admin-user-details-modal {
    z-index: 115;
}

.auth-admin-user-dialog {
    width: min(1320px, 96vw);
    height: min(760px, calc(100vh - 48px));
}

.auth-admin-user-tabs {
    flex-wrap: wrap;
    row-gap: 0;
}

.auth-admin-user-tabs button {
    min-width: 116px;
    padding: 10px 14px;
}

.auth-admin-user-layout {
    grid-template-columns: 290px minmax(0, 1fr);
}

.auth-admin-user-sidebar {
    display: flex;
    flex-direction: column;
}

.auth-admin-user-panel {
    display: flex;
    flex-direction: column;
}

.auth-admin-user-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    color: #d1d5db;
    font-size: 15px;
    font-weight: 800;
}

.auth-admin-user-loading.is-error {
    color: #fecaca;
}

.auth-admin-user-action-stack {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.auth-admin-user-action-stack button,
.auth-admin-user-panel-actions button {
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-admin-user-action-stack button:hover,
.auth-admin-user-panel-actions button:hover {
    border-color: rgba(51, 149, 255, 0.65);
    background: rgba(51, 149, 255, 0.14);
}

.auth-admin-user-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #444;
}

.auth-admin-user-panel-actions--top {
    margin-top: 0;
    margin-bottom: 12px;
    padding-top: 0;
    border-top: 0;
}

.auth-admin-user-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-admin-user-card-grid--metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auth-admin-user-info-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid #3f3f3f;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.18);
}

.auth-admin-user-info-card h4 {
    margin: 0 0 10px;
    color: #eab308;
    font-size: 14px;
    font-weight: 800;
}

.auth-admin-user-info-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-admin-user-info-row:first-of-type {
    border-top: 0;
}

.auth-admin-user-info-row span,
.auth-admin-user-metric-card span {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
}

.auth-admin-user-info-row strong,
.auth-admin-user-metric-card strong {
    min-width: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
}

.auth-admin-user-metric-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-admin-user-metric-card strong {
    font-size: 16px;
}

.auth-admin-user-note {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid rgba(234, 179, 8, 0.22);
    border-radius: 6px;
    background: rgba(234, 179, 8, 0.06);
    color: #d1d5db;
    font-size: 12px;
    line-height: 1.45;
}

.auth-admin-user-table-shell {
    min-height: 0;
    max-height: 360px;
    overflow: auto;
}

.auth-admin-user-table-shell .auth-admin-table {
    min-width: 760px;
}

.auth-admin-employee-link {
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 13px;
    border: 1px solid #3f3f3f;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.18);
}

.auth-admin-employee-link-head {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}

.auth-admin-employee-link-head h4 {
    margin: 0 0 4px;
    color: #eab308;
    font-size: 14px;
    font-weight: 800;
}

.auth-admin-employee-link-head p {
    max-width: 720px;
    margin: 0;
    color: #b8c0cc;
    font-size: 12px;
    line-height: 1.45;
}

.auth-admin-employee-link-head button,
.auth-admin-employee-search button,
.auth-admin-employee-results button {
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(51, 149, 255, 0.55);
    border-radius: 6px;
    background: rgba(51, 149, 255, 0.13);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-admin-employee-link-head button.secondary {
    border-color: #555;
    background: #222;
}

.auth-admin-employee-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 10px;
}

.auth-admin-employee-search input {
    min-width: 0;
    height: 34px;
    padding: 0 11px;
    border: 1px solid #4a4a4a;
    border-radius: 6px;
    background: #171717;
    color: #fff;
    font-size: 13px;
}

.auth-admin-employee-results {
    max-height: 240px;
    overflow: auto;
}

.auth-admin-employee-results .auth-admin-table {
    min-width: 720px;
}

.auth-admin-employee-results td span {
    color: #9fb2c8;
}

.auth-admin-employee-results button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

@media (max-width: 900px) {
    .auth-profile-mount {
        width: 100%;
    }

    .auth-profile-chip {
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    .auth-profile-menu {
        left: 0;
        right: 0;
        width: 100%;
    }

    .auth-profile-dialog {
        width: 100%;
        height: calc(100vh - 28px);
        max-height: calc(100vh - 28px);
    }

    .auth-profile-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .auth-profile-sidebar {
        padding-right: 0;
        padding-bottom: 14px;
        border-right: 0;
        border-bottom: 1px solid #444;
    }

    .auth-profile-panel {
        overflow: visible;
    }

    .auth-profile-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-profile-form-grid--profile .auth-profile-field:nth-child(4),
    .auth-profile-form-grid--profile .auth-profile-field:nth-child(7),
    .auth-profile-form-grid--access .auth-profile-field:nth-child(4),
    .auth-profile-form-grid--access .auth-profile-field:nth-child(8) {
        grid-column: auto;
    }

    .auth-profile-dialog-actions {
        flex-direction: column;
        padding: 0 24px 22px;
    }

    .auth-profile-dialog-actions button {
        width: 100%;
    }

    .auth-admin-user-layout {
        grid-template-columns: 1fr;
    }

    .auth-admin-user-card-grid,
    .auth-admin-user-card-grid--metrics {
        grid-template-columns: 1fr;
    }

    .auth-admin-user-tabs button {
        flex: 1 1 140px;
    }
}

body.sidebar-collapsed .sidebar {
    width: 0;
    min-width: 0;
    max-width: 0;
    flex-basis: 0;
    padding: 0;
    overflow: hidden;
    border-right-color: transparent;
}

body.sidebar-collapsed .sidebar>* {
    opacity: 0;
    pointer-events: none;
}

.container {
    padding: 16px;
    /* Reduced from 24px */
    display: grid;
    gap: 12px;
    /* Reduced from 20px */
    align-items: start;
}

#view-imposition.container {
    grid-template-columns: 300px 280px 1fr;
    position: relative;
}

#view-brochure.container {
    position: relative;
}

@media(max-width:1400px) {
    #view-imposition.container {
        grid-template-columns: 340px 1fr;
        /* Adjusted for smaller screens */
    }

    #tyrageCard {
        grid-column: 1;
    }
}

@media(max-width:1024px) {
    #view-imposition.container {
        grid-template-columns: 1fr;
    }

    #tyrageCard {
        grid-column: auto;
    }
}

#view-brochure.container {
    grid-template-columns: 300px 1fr;
}

.results-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    /* Reduced width */
    gap: 12px;
    /* Reduced gap */
}

@media (max-width: 1200px) {
    #view-brochure.container {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    /* Reduced from 16px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 6px 0;
    /* Reduced margin */
    letter-spacing: 0.5px;
}

label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
    margin-top: 4px;
    /* Reduced margin */
}

/* ... */

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 12px;
    /* Reduced padding */
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 8px;
    /* Reduced margin */
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent);
    background: rgba(51, 149, 255, 0.05);
}

.upload-zone i {
    font-size: 24px;
    /* Reduced icon size */
    display: block;
    margin-bottom: 4px;
    /* Reduced margin */
}



input,
select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: #fff;
    padding: 6px 8px;
    /* Compact padding */
    border-radius: 4px;
    font-size: 12px;
    /* Reduced from 13px */
    box-sizing: border-box;
    outline: none;
    height: 28px;
    /* Fixed compact height */
}

.row {
    display: flex;
    gap: 6px;
    /* Reduced gap */
}

.col {
    flex: 1;
}

button {
    padding: 8px 12px;
    /* Compact padding */
    font-size: 10px;
    /* Reduced size */
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #5a5a5a;
    color: #fff;
    transition: 0.2s;
    height: 28px;
    /* Match input height */
    white-space: nowrap;
    /* Prevent wrap */
}

button.primary {
    background: var(--accent);
}

button.primary:hover {
    background: var(--accent-hover);
}

.report-title-overlay {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
}

.report-title-dialog {
    width: min(480px, 100%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #2f2f2f;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
    color: var(--text-main);
}

.report-title-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-title-kicker {
    display: none;
    text-transform: uppercase;
}

.report-title-dialog h3 {
    margin: 0 0 4px;
    color: #eab308;
    font-size: 18px;
    font-weight: 800;
}

.report-title-dialog p {
    margin: 0;
    color: #c9d1d9;
    font-size: 13px;
    line-height: 1.45;
}

.report-title-close {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 20px !important;
    font-weight: 800;
    line-height: 1;
    text-transform: none;
}

.report-title-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.report-title-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.report-title-field span {
    display: block;
    color: #aaa;
    font-size: 14px;
    font-weight: 800;
}

.report-title-input {
    min-height: 42px;
    height: 42px;
    padding: 8px 10px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #1f1f1f;
    color: #fff;
    font: inherit;
    font-size: 14px;
}

.report-title-input:focus {
    border-color: #3395ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(53, 151, 255, 0.18);
}

.report-title-hint {
    margin: 0;
    color: #c9d1d9;
    font-size: 13px;
    line-height: 1.45;
}

.report-title-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.report-title-save {
    min-width: 92px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.report-confirm-dialog {
    width: min(520px, 100%);
}

.report-confirm-dialog[data-tone="warning"] h3 {
    color: #f4c15d;
}

.report-confirm-detail {
    margin-top: -4px;
    padding: 10px 12px;
    border: 1px solid rgba(244, 193, 93, 0.22);
    border-radius: 8px;
    background: rgba(244, 193, 93, 0.08);
    color: #d7dde4;
    font-size: 13px;
    line-height: 1.45;
}

.report-confirm-actions {
    margin-top: 16px;
}

.report-confirm-actions button {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.report-confirm-cancel {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #d7dde4;
}

.report-confirm-cancel:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.report-confirm-accept {
    min-width: 150px;
}

.sm-btn {
    padding: 6px 10px !important;
    font-size: 14px !important;
    min-width: 32px;
    background: #444;
}

.sm-btn:hover {
    background: #666;
}

.result {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
}

.result h3 {
    font-size: 13px;
    margin: 0 0 8px 0;
    color: var(--accent);
}

.result-body {
    font-size: 10px;
    /* Reduced to 10px */
    line-height: 1.4;
}

.result-optimization {
    background: rgba(255, 255, 255, 0.04);
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 11px;
    margin-top: 8px;
    border-left: 3px solid currentColor;
    line-height: 1.4;
}

.result-optimization-hint {
    background: #333;
    border-left: 3px solid #ffcc00;
    padding: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: #ffd700;
    border-radius: 2px;
    line-height: 1.7;
}

.result-full-fill {
    background: #1a2e1a;
    border-left: 3px solid #4caf50;
    padding: 8px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #81c784;
    border-radius: 2px;
}

.result-cut-info {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    line-height: 1.5;
}

.result-cut-info summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.result-cut-info summary::-webkit-details-marker {
    display: none;
}

.result-cut-info summary::before {
    content: "+";
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 2px;
}

.result-cut-info[open] summary::before {
    content: "-";
}

.result-cut-info-toggle {
    color: var(--text-muted);
    font-weight: 500;
}

.result-cut-info-body {
    padding: 0 10px 8px 23px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    font-weight: 400;
}

.result-cut-info-body b {
    color: var(--text);
}

.result-cut-info-note {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 400;
}

.result-error {
    font-size: 11px;
    color: #ff4444;
    font-weight: 400;
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(255, 68, 68, 0.1);
    border-left: 3px solid #ff4444;
    border-radius: 4px;
    line-height: 1.5;
}

.res-main {
    font-size: 12px;
    /* Increased to 12px */
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.res-sub {
    font-size: 12px;
    /* Increased to 12px */
    font-weight: 600;
    /* Bold as requested */
    color: var(--text-main);
    /* Promoted to main color */
    margin-bottom: 2px;
    line-height: 1.3;
}

.res-opt {
    font-size: 12px;
    /* Increased to 12px */
    margin-top: 6px;
    line-height: 1.3;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 10px;
}

.tech-item {
    display: grid;
    grid-template-columns: 1fr 100px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.tech-label {
    padding: 6px 10px;
    color: var(--text-muted);
    font-size: 11px;
}

.tech-label-main {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.25;
}

.tech-label-spec {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: inherit;
    font-weight: 400;
    line-height: 1.25;
}

.tech-value {
    padding: 6px 8px;
    background: var(--bg-input);
    color: #fff;
    font-weight: 600;
    text-align: center;
    font-size: 12px;
    border-left: 1px solid var(--border);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    min-height: 32px;
}

.tag-item {
    background: #444;
    border: 1px solid #555;
    color: #ccc;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
}

.tag-remove:hover {
    opacity: 1;
}

.text-error {
    color: var(--error) !important;
    font-weight: 800;
}

/* Updated Preview Logic for Stability */
.canvas-container {
    position: relative;
    width: 100%;
    /* Usage: High Density Layout + Pop-out Preview */
    max-width: 1200px;
    margin: 0 auto;
    max-height: 85vh;
    /* Layout constraint */
    overflow: visible;
    /* Allow preview to bleed out when zoomed */
    z-index: 100;
    /* Cover other elements */
    border: 1px solid var(--border);
    border-radius: 4px;
}

.canvas-header {
    background: #3d3d3e;
    border-radius: 4px 4px 0 0;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 101;
    /* Above canvas */
}

canvas {
    max-width: 100%;
    max-height: 100%;
    /* Fit container initially */
    width: auto;
    height: auto;
    background: #fff;
    border-radius: 0 0 4px 4px;
    display: block;
    margin: 0 auto;
    position: relative;
    /* Promote to stacking context */
    z-index: 105;
    /* Above header (101) */
}

.footer-text,
.preview-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

.hidden {
    display: none;
}

.icon-action-row {
    gap: 5px;
    flex: 0 0 auto;
}

.icon-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    line-height: 1;
}

.icon-action-button:hover,
.icon-action-button:focus-visible {
    border-color: rgba(51, 149, 255, 0.65);
    color: #ffffff;
    background: rgba(51, 149, 255, 0.18);
}

.icon-action-button.is-danger {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.32);
    background: rgba(239, 68, 68, 0.14);
}

.icon-action-button.is-danger:hover,
.icon-action-button.is-danger:focus-visible {
    border-color: rgba(239, 68, 68, 0.72);
    background: rgba(239, 68, 68, 0.28);
}

.icon-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
    color: #9ca3af;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.section-title {
    font-weight: bold;
    color: var(--accent);
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.sub-header {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 12px 0 6px 0;
    font-weight: 700;
    opacity: 0.8;
}

/* MODERN TOGGLE SWITCHES */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    flex-shrink: 0;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #525252;
    /* Grey OFF state */
    transition: .3s;
    border-radius: 18px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent);
    /* Blue ON state */
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--accent);
}

input:checked+.slider:before {
    transform: translateX(16px);
}

input:disabled+.slider {
    opacity: 0.55;
    cursor: not-allowed;
}

input:disabled+.slider:before {
    opacity: 0.9;
}

.checkbox-row span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
    text-transform: none;
    cursor: pointer;
}

.checkbox-row span.muted {
    color: #ccc;
}

.proportional-size-control {
    margin: -6px 0 12px 0;
    gap: 8px;
    min-height: 22px;
}

.proportional-size-control .proportional-size-label {
    color: #e5e7eb;
    font-weight: 650;
}

.proportional-size-control .proportional-size-base {
    color: #94a3b8;
    font-size: 11px;
    overflow-wrap: anywhere;
}

#brochureProductSizeDeltaInfo {
    margin-top: 10px !important;
    margin-bottom: 12px !important;
}

.brochure-stretch-controls {
    margin: 10px 0 14px 0 !important;
}

.brochure-stretch-row {
    justify-content: flex-start !important;
    gap: 8px;
    flex-wrap: nowrap;
}

.brochure-stretch-main {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.brochure-stretch-main span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: normal;
    line-height: 1.2;
    white-space: nowrap;
}

.brochure-crop-toggle {
    flex: 0 0 auto;
    margin-left: 0;
}

.plotter-settings-panel {
    margin-top: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.plotter-section {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plotter-section:last-child {
    border-bottom: 0;
}

.plotter-section--primary {
    background: rgba(255, 255, 255, 0.015);
}

.plotter-section--disclosure {
    padding-top: 3px;
    padding-bottom: 3px;
}

.plotter-primary-toggle {
    margin: 0;
}

.plotter-primary-toggle>span {
    color: var(--text-main);
    font-weight: 700;
}

.plotter-section-title {
    color: var(--text-main);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.plotter-section-body {
    margin-top: 10px;
}

.plotter-field-spaced {
    margin-top: 10px;
}

.plotter-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.plotter-validation {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: #fca5a5;
    line-height: 1.45;
}

.plotter-contour-offset {
    margin-top: 10px;
}

.plotter-disclosure-button,
.plotter-disclosure-row {
    width: 100%;
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    text-transform: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.plotter-disclosure-row {
    padding-top: 1px;
    padding-bottom: 1px;
}

.plotter-disclosure-button {
    margin-top: 10px;
    padding: 6px 8px;
    border-radius: 4px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
}

.plotter-disclosure-button:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.07);
}

.plotter-disclosure-chevron {
    width: 18px;
    flex: 0 0 18px;
    height: 14px;
    color: transparent;
    font-size: 0;
    line-height: 0;
    position: relative;
}

.plotter-disclosure-chevron::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 3px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid var(--accent);
    transition: transform 0.18s ease;
    transform-origin: 3px 6px;
}

.plotter-disclosure-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plotter-disclosure-input:checked+.plotter-disclosure-chevron::before {
    transform: rotate(90deg);
}

.plotter-check-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.plotter-check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 22px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
}

.plotter-check-row.hidden {
    display: none;
}

.plotter-check-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    flex: 0 0 15px;
    accent-color: var(--accent);
}

.plotter-check-row input[type="checkbox"]:disabled+span {
    opacity: 0.5;
}

.plotter-badge {
    margin-left: auto;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 193, 7, 0.14);
    color: #ffe082;
    border: 1px solid rgba(255, 193, 7, 0.22);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0;
}

.plotter-input-hint {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.25;
}

/* TOASTS & LOADERS */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    min-width: 250px;
    transition: 0.3s;
    border-left: 4px solid var(--accent);
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-warning {
    border-left-color: #ffd700;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 10, 16, 0.76);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-card {
    min-width: 320px;
    max-width: 420px;
    padding: 26px 28px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(34, 40, 49, 0.96), rgba(20, 24, 31, 0.96));
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.06);
}

.loading-title {
    margin-top: 18px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.loading-subtext {
    margin-top: 10px;
    color: #aeb8c7;
    font-size: 13px;
    line-height: 1.45;
    max-width: 340px;
}

.pdf-fix-progress,
.pdf-fix-outcome {
    color: #fff;
    text-align: center;
}

.pdf-fix-progress .spinner {
    margin: 0 auto;
}

.pdf-fix-progress-title,
.pdf-fix-outcome h3 {
    margin: 18px 0 8px;
    color: #fff;
    font-size: 20px;
}

.pdf-fix-progress-detail,
.pdf-fix-outcome p {
    margin: 0;
    color: #c8d0dc;
    font-size: 14px;
    line-height: 1.5;
}

.pdf-fix-elapsed {
    margin-top: 18px;
    color: #fbbf24;
    font-size: 19px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.pdf-fix-progress-hint {
    margin-top: 12px !important;
    color: #9eabbc !important;
    font-size: 13px !important;
}

.pdf-fix-option-control {
    flex: 1 1 240px;
    min-width: 0;
}

.pdf-fix-outcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 900;
}

.pdf-fix-outcome-success .pdf-fix-outcome-icon {
    color: #0f2b1b;
    background: #4ade80;
}

.pdf-fix-outcome-error .pdf-fix-outcome-icon {
    color: #fff;
    background: #ef4444;
}

.pdf-fix-outcome-cancelled .pdf-fix-outcome-icon {
    color: #3f2a00;
    background: #fbbf24;
}

.pdf-fix-download-name,
.pdf-fix-error-message {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pdf-fix-error-message {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
    text-align: left;
}

.pdf-fix-outcome-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.pdf-fix-outcome-actions .btn {
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.pdf-fix-outcome-actions .btn-secondary {
    border-color: #666;
    background: #444;
    color: #fff;
}

.pdf-fix-outcome-actions .btn-primary {
    border-color: #facc15;
    background: #eab308;
    color: #171717;
}

.pdf-fix-outcome-actions .btn:focus-visible {
    outline: 3px solid rgba(250, 204, 21, 0.42);
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .pdf-fix-outcome-actions {
        flex-direction: column;
    }

    .pdf-fix-outcome-actions .btn {
        width: 100%;
    }
}

.module-loading-shield {
    position: absolute;
    inset: 8px;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(18, 22, 28, 0.78);
    backdrop-filter: blur(3px);
    border-radius: 8px;
}

.module-loading-shield.hidden {
    display: none;
}

.module-loading-card {
    width: min(360px, 100%);
    padding: 20px 22px;
    border-radius: 8px;
    border: 1px solid rgba(51, 149, 255, 0.28);
    background: linear-gradient(180deg, rgba(42, 48, 57, 0.98), rgba(28, 32, 38, 0.98));
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
    color: var(--text-main);
    text-align: center;
}

.module-loading-spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 12px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.module-loading-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.module-loading-text {
    margin-top: 7px;
    color: #b6c0cc;
    font-size: 12px;
    line-height: 1.4;
}

/* Dashboard Compact Styles */
.dash-workspace {
    display: grid;
    padding: 20px 24px 20px 24px;
    min-height: calc(100vh - 48px);
    align-content: start;
    align-items: start;
    grid-template-columns: minmax(340px, 420px) minmax(520px, 1fr);
    grid-template-areas:
        "hub preview";
    gap: 18px;
    overflow: visible;
}

.dash-workspace.dash-scenarios-open {
    grid-template-areas:
        "hub preview"
        "launcher launcher";
}

.dash-workspace.dash-preflight-open {
    grid-template-columns: minmax(340px, 420px) minmax(360px, 410px) minmax(520px, 1fr);
    grid-template-areas:
        "hub preflight preview";
}

.dash-workspace.dash-scenarios-open.dash-preflight-open {
    grid-template-areas:
        "hub preflight preview"
        "launcher launcher launcher";
}

.dash-panel {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dash-main-panel {
    grid-area: hub;
    height: calc(92vh - 32px);
    overflow-y: auto;
    overflow-x: hidden;
}

.dash-preview-panel {
    grid-area: preview;
    height: calc(92vh - 32px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    min-width: 0;
}

.dash-preflight-panel {
    grid-area: preflight;
    height: calc(92vh - 32px);
    display: flex;
    flex-direction: column;
    padding: 18px;
    overflow: hidden;
}

.dash-scenarios-panel {
    grid-area: launcher;
    padding: 18px;
    overflow: visible;
    box-sizing: border-box;
    max-width: 100%;
    scroll-margin-top: 64px;
    border-color: rgba(180, 196, 214, 0.28);
    background: linear-gradient(180deg, rgba(62, 66, 71, 0.96), rgba(47, 50, 54, 0.96));
}

.dash-scenario-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
}

.dash-scenario-step {
    display: grid;
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 0;
    align-items: stretch;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(51, 149, 255, 0.36);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.dash-scenario-step-copy {
    grid-column: 1;
    min-width: 0;
    min-height: 54px;
    padding: 8px 10px;
    border-left: 4px solid rgba(51, 149, 255, 0.92);
    border-radius: 7px;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(51, 149, 255, 0.15), rgba(255, 255, 255, 0.045));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.dash-scenario-step-body {
    grid-column: 2;
    min-width: 0;
    align-self: center;
}

.dash-scenario-step-title {
    font-size: 14px;
    font-weight: 760;
    letter-spacing: 0;
    color: #e5ecf4;
}

.dash-scenario-step-hint {
    font-size: 12px;
    color: #a7b4c3;
    line-height: 1.35;
}

.dash-scenario-step-body > .dash-scenario-flow-grid,
.dash-scenario-step-body > .dash-scenario-actions-grid,
.dash-scenario-step-body > .dash-scenario-family,
.dash-scenario-step-body > .dash-scenario-card-placeholder,
.dash-scenario-step-body > [style*="border:1px dashed"] {
    width: 100%;
}

.dash-scenario-flow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.dash-scenario-family {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border-top: 0;
}

.dash-scenario-family + .dash-scenario-family {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(214, 226, 240, 0.055);
}

.dash-scenario-family-title {
    font-size: 13px;
    font-weight: 740;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #d5dfeb;
}

.dash-scenario-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px;
    align-items: start;
}

.dash-scenario-actions-grid--product-sizes {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.dash-scenario-actions-grid--recipe-skoba {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.dash-scenario-actions-grid--recipe-standard {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.dash-scenario-card-placeholder {
    min-height: 56px;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
}

.dash-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dash-panel-title {
    margin: 0;
    font-size: 18px;
    color: #edf3f8;
}

.dash-panel-subtitle {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.45;
}

.dash-preview-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(51, 149, 255, 0.45);
    background: rgba(51, 149, 255, 0.1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
}

.dash-preview-link:hover {
    background: rgba(51, 149, 255, 0.18);
}

.dash-preview-status {
    min-height: 18px;
    font-size: 12px;
    color: #9ca3af;
}

.dash-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.dash-preview-toolbtn {
    min-width: 0;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    background: #4a4a4a;
}

.dash-preview-fit-btn {
    padding: 0 12px;
}

.dash-preview-pagebox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #d1d5db;
}

.dash-preview-pagebox input {
    width: 58px;
    height: 30px;
    text-align: center;
    padding: 4px 6px;
}

.dash-preview-toolbar-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.12);
}

.dash-preview-zoom-label {
    min-width: 44px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.dash-preview-shell {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12)),
        #2d2d2e;
    overflow: hidden;
}

.dash-preview-shell.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-preview-loading {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.84);
    border: 1px solid rgba(51, 149, 255, 0.32);
    color: #dbeafe;
    font-size: 11px;
    font-weight: 700;
}

.dash-preview-empty {
    max-width: 380px;
    padding: 24px;
    text-align: center;
}

.dash-preview-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(51, 149, 255, 0.22), rgba(51, 149, 255, 0.08));
    border: 1px solid rgba(51, 149, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #dbeafe;
    letter-spacing: 1px;
}

.dash-preview-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.dash-preview-empty-text {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #cbd5e1;
}

.dash-preview-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #2f2f30;
}

.dash-preview-canvas-wrap {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
}

.dash-preview-canvas {
    display: block;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    flex: 0 0 auto;
}

.dash-card {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 18px;
    min-width: 0;
}

.dash-title {
    font-size: 18px;
    /* Reduced from 24px */
    margin-bottom: 6px;
    position: relative;
    text-transform: uppercase;
    color: var(--text-main);
}

.dash-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    /* Reduced from 30px */
    font-size: 12px;
}

.dash-upload {
    height: 90px;
    /* Reduced from 120px */
    border: 2px dashed var(--accent);
    background: rgba(59, 130, 246, 0.05);
    display: flex;
    /* Center content */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dash-upload.is-analyzing {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.dash-upload i {
    font-size: 24px !important;
    /* Reduced from 36px */
    margin-bottom: 4px !important;
}

.dash-upload span {
    font-size: 13px !important;
    /* Reduced from 15px */
    margin-top: 4px !important;
}

.dash-analysis-status {
    margin-top: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fde68a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.dash-analysis-status.hidden {
    display: none;
}

.dash-analysis-status::before {
    content: "";
    width: 13px;
    height: 13px;
    border: 2px solid rgba(253, 230, 138, 0.28);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    flex: 0 0 auto;
}

.dash-results-box {
    margin-top: 20px;
    text-align: left;
    background: #2a2a2a;
    padding: 15px;
    /* Reduced from 20px */
    border-radius: 8px;
}

/* Wider columns for dashboard results */
.dash-results-box .tech-item {
    grid-template-columns: 70px 1fr;
}

.dash-results-box .tech-value {
    text-align: left;
    /* Align text left */
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Handle long names */
}

@media (max-width: 1400px) {
    .dash-workspace {
        grid-template-columns: minmax(320px, 380px) minmax(420px, 1fr);
    }

    .dash-workspace.dash-preflight-open {
        grid-template-columns: minmax(320px, 360px) minmax(320px, 360px) minmax(420px, 1fr);
    }
}

@media (max-width: 1100px) {
    .dash-workspace,
    .dash-workspace.dash-scenarios-open,
    .dash-workspace.dash-preflight-open,
    .dash-workspace.dash-scenarios-open.dash-preflight-open {
        min-height: auto;
        grid-template-columns: 1fr;
        grid-template-areas:
            "hub"
            "preflight"
            "preview"
            "launcher";
    }

    .dash-main-panel,
    .dash-preview-panel,
    .dash-preflight-panel,
    .dash-scenarios-panel {
        height: auto;
        max-height: none;
    }

    .dash-preview-shell {
        min-height: 540px;
    }
}

@media (max-width: 768px) {
    .dash-workspace {
        padding: 14px;
        gap: 14px;
    }

    .dash-preview-panel,
    .dash-preflight-panel,
    .dash-scenarios-panel,
    .dash-main-panel {
        padding: 14px;
    }

    .dash-panel-heading {
        flex-direction: column;
    }

    .dash-preview-shell {
        min-height: 420px;
    }

    .dash-preview-toolbar {
        gap: 6px;
    }

    .dash-scenario-groups {
        gap: 10px;
    }

    .dash-scenario-step {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
        border-radius: 8px;
    }

    .dash-scenario-step-copy,
    .dash-scenario-step-body {
        grid-column: 1;
    }

    .dash-scenario-step-copy {
        min-height: 0;
    }

    .dash-scenario-flow-grid,
    .dash-scenario-actions-grid,
    .dash-scenario-actions-grid--product-sizes,
    .dash-scenario-actions-grid--recipe-skoba,
    .dash-scenario-actions-grid--recipe-standard {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    }

    .dash-scenario-card-placeholder {
        display: none;
    }

}

.contour-detection-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.contour-detection-panel.hidden {
    display: none !important;
}

.contour-detection-panel[data-tone="success"] {
    border-color: rgba(74, 222, 128, 0.35);
    background: linear-gradient(180deg, rgba(22, 101, 52, 0.24), rgba(20, 83, 45, 0.12));
}

.contour-detection-panel[data-tone="warning"] {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.22), rgba(120, 53, 15, 0.10));
}

.contour-detection-panel[data-tone="muted"] {
    border-color: rgba(107, 114, 128, 0.35);
    background: linear-gradient(180deg, rgba(55, 65, 81, 0.22), rgba(31, 41, 55, 0.10));
}

.contour-detection-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.contour-detection-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.contour-detection-subtitle {
    font-size: 12px;
    color: #d1d5db;
    line-height: 1.45;
    margin-top: 4px;
}

.contour-detection-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.contour-detection-badge[data-tone="success"] {
    background: rgba(74, 222, 128, 0.16);
    color: #bbf7d0;
}

.contour-detection-badge[data-tone="warning"] {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
}

.contour-detection-badge[data-tone="muted"] {
    background: rgba(107, 114, 128, 0.18);
    color: #d1d5db;
}

.contour-detection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.contour-detection-item {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contour-detection-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.contour-detection-value {
    font-size: 12px;
    color: #fff;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.contour-detection-note {
    font-size: 12px;
    color: #d1d5db;
    line-height: 1.5;
}

.contour-detection-note strong {
    color: #fff;
}

.contour-detection-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.contour-detection-actions button {
    flex: 0 0 auto;
    min-width: 0;
    height: 32px;
    padding: 8px 12px;
    font-size: 11px;
    text-transform: none;
}

.contour-detection-actions .secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contour-detection-actions .ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d1d5db;
}

.contour-detection-actions .cancel-detected-button {
    font-weight: 700;
}

@media (max-width: 768px) {
    .contour-detection-grid {
        grid-template-columns: 1fr;
    }

    .contour-detection-actions {
        flex-direction: column;
    }
}

.suggestion-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    height: auto !important;
    white-space: normal !important;
    text-transform: none !important;
}

.suggestion-card:active {
    transform: translateY(1px);
}

.suggestion-card:focus-visible {
    outline: none;
}

.suggestion-card-surface {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(51, 149, 255, 0.38);
    background: linear-gradient(180deg, rgba(51, 149, 255, 0.14), rgba(51, 149, 255, 0.05));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.suggestion-card:hover .suggestion-card-surface,
.suggestion-card.is-hovered .suggestion-card-surface {
    transform: translateY(-1px);
    border-color: rgba(51, 149, 255, 0.9);
    background: linear-gradient(180deg, rgba(51, 149, 255, 0.2), rgba(51, 149, 255, 0.08));
}

.suggestion-card:focus-visible .suggestion-card-surface {
    border-color: rgba(51, 149, 255, 1);
    box-shadow: 0 0 0 1px rgba(51, 149, 255, 0.3), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.suggestion-card * {
    text-transform: none !important;
}

.suggestion-card-title {
    font-weight: 800;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.15;
    color: #fff;
    letter-spacing: 0;
    flex: 1 1 auto;
}

.suggestion-card-arrow {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.7);
}

.suggestion-card-tooltip {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    padding: 10px 12px;
    border-radius: 10px;
    background: #262626;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    font-size: 12px;
    color: #ddd;
    opacity: 0;
    line-height: 1.35;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.14s ease, transform 0.14s ease;
    z-index: 30;
    white-space: normal;
    overflow-wrap: anywhere;
}

.suggestion-card:hover .suggestion-card-tooltip,
.suggestion-card.is-hovered .suggestion-card-tooltip {
    opacity: 1;
    transform: translateY(0);
}

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



/* Preflight Results */
.preflight-results {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

.preflight-results h3 {
    margin: 0 0 12px 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preflight-results h3::before {
    content: "🔍";
    font-size: 14px;
}

.preflight-content-wrapper {
    font-size: 12px;
}

.preflight-item {
    margin-bottom: 8px;
}

.preflight-warning-list {
    margin: 8px 0 0 0;
    padding-left: 18px;
    color: var(--text-muted);
    line-height: 1.5;
}

.preflight-warning-list li {
    margin-bottom: 4px;
}

.pf-section {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 auto;
}

.pf-section[data-status="ok"] {
    border-color: rgba(74, 222, 128, 0.35);
}

.pf-section[data-status="warning"] {
    border-color: rgba(251, 191, 36, 0.35);
}

.pf-section[data-status="critical"] {
    border-color: rgba(239, 68, 68, 0.35);
}

.pf-section[data-status="error"] {
    border-color: rgba(239, 68, 68, 0.35);
}

.pf-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    font-size: 14px;
    font-weight: 700;
}

.dash-preflight-panel .pf-sec-head {
    font-size: 13px;
}

.pf-sec-head::-webkit-details-marker {
    display: none;
}

.pf-sec-title {
    min-width: 0;
}

.pf-sec-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.pf-sec-state {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.pf-sec-chevron {
    font-size: 12px;
    color: #9ca3af;
    transform: rotate(-90deg);
    transition: transform 0.16s ease;
}

.pf-export-btn {
    height: 26px;
    min-width: 78px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: rgba(37, 99, 235, 0.18);
    color: #dbeafe;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.pf-export-btn:hover {
    background: rgba(37, 99, 235, 0.28);
    border-color: rgba(96, 165, 250, 0.7);
}

.pf-export-btn:focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.9);
    outline-offset: 1px;
}

.pf-section[open] .pf-sec-chevron {
    transform: rotate(0deg);
}

.pf-section[data-status="ok"] .pf-sec-head,
.pf-section[data-status="ok"] .pf-sec-state {
    color: #4ade80;
}

.pf-section[data-status="warning"] .pf-sec-head,
.pf-section[data-status="warning"] .pf-sec-state {
    color: #fbbf24;
}

.pf-section[data-status="critical"] .pf-sec-head,
.pf-section[data-status="critical"] .pf-sec-state {
    color: #ef4444;
}

.pf-section[data-status="error"] .pf-sec-head,
.pf-section[data-status="error"] .pf-sec-state {
    color: #ef4444;
}

.pf-sec-body {
    padding: 0 12px 12px 12px;
}

.pf-sec-list {
    margin: 0;
    padding-left: 20px;
    font-size: 12px;
    line-height: 1.5;
    color: #ddd;
    opacity: 0.95;
}

.pf-sec-list li+li {
    margin-top: 2px;
}

.pf-sec-empty {
    opacity: 0.55;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 10px;
}

.tech-item {
    display: grid;
    grid-template-columns: 1fr 100px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.tech-label {
    padding: 6px 10px;
    color: var(--text-muted);
    font-size: 11px;
}

.tech-value {
    padding: 6px 8px;
    background: var(--bg-input);
    color: #fff;
    font-weight: 600;
    text-align: center;
    font-size: 12px;
    border-left: 1px solid var(--border);
}

.tech-item-error .tech-label {
    color: var(--error);
    font-weight: 800;
}

.tech-value-error {
    color: var(--error) !important;
    font-weight: 800;
}

.tech-warning-box {
    margin-top: 8px;
    padding: 10px 12px;
    border-left: 4px solid #ff5b5b;
    background: rgba(120, 20, 20, 0.55);
    color: #ff6b5f;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
}

/* Fold Panels Grid */
.fold-panels-grid {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    overflow-x: auto;
}

.panel-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.panel-input {
    width: 100%;
    text-align: center;
    padding-bottom: 14px;
    /* Space for index */
    font-weight: bold;
    color: var(--accent);
}

.panel-idx {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
    color: #666;
    pointer-events: none;
}

/* ==========================================================================
   IMPOSITION TABS CSS
   ========================================================================== */
.imp-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 3px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.imp-tab {
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 6px;
    color: #aaa;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.imp-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.imp-tab.active {
    color: var(--accent);
    background: #525252;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.imp-tab-content {
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}

.imp-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PREVIEW CONTROLS & STALE STATES */
.preview-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.preview-controls .switch-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0;
}

.btn-render-manual {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: all;
    opacity: 0.85;
}

.btn-render-manual.stale {
    background: #e67e22; /* Warning Orange */
    color: #fff;
    border-color: #d35400;
    pointer-events: all;
    opacity: 1;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.4);
    animation: pulse-orange 2s infinite;
}

.btn-render-manual:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-render-manual i {
    font-size: 12px;
}

.canvas-container.stale canvas {
    opacity: 0.4;
    filter: blur(1px) grayscale(0.2);
    transition: all 0.3s ease;
}

.stale-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    display: none;
    z-index: 110;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.canvas-container.stale .stale-overlay {
    display: block;
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230, 126, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
    }
}

/* Product updates overrides after legacy global button styles */
.product-updates-module,
.product-updates-entry {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: none;
    letter-spacing: 0;
}

.product-updates-module {
    padding: 6px 8px !important;
    font-size: 11px !important;
}

.product-updates-entry {
    min-height: 76px;
    padding: 8px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}



.product-updates-entry.is-unread {
    border-color: rgba(234, 179, 8, 0.22);
    background: #363431;
}

.product-updates-entry-title-line {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.product-updates-unread-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

.product-updates-entry.is-unread .product-updates-unread-dot {
    background: #eab308;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.14);
}
.product-updates-entry-main strong {
    font-size: 12.5px !important;
    font-weight: 700 !important;
}

.product-updates-entry-main small {
    font-size: 11.5px !important;
    font-weight: 500 !important;
}

.product-updates-entry-meta {
    font-size: 11.5px !important;
    font-weight: 600 !important;
}
/* Mobile production layout stabilization */
.dash-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #2f2f30;
}

.dash-preview-frame.hidden,
.dash-preview-image.hidden,
.dash-preview-loading.hidden,
.dash-preview-empty.hidden {
    display: none;
}

.dash-preview-shell.is-raster-preview {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
}

.dash-preview-shell.is-raster-preview .dash-preview-image {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        min-height: 100dvh;
        height: auto;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    body.auth-modal-open {
        overflow: hidden;
    }

    body.sidebar-collapsed .sidebar {
        width: 100% !important;
        min-width: 0;
        max-width: none;
        flex-basis: auto;
        padding: 8px 10px !important;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    body.sidebar-collapsed .sidebar>* {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 90;
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        min-height: 0;
        box-sizing: border-box;
        display: grid !important;
        grid-template-columns: 62px minmax(0, 1fr);
        grid-template-areas:
            "mobile-logo mobile-nav"
            "mobile-logo mobile-actions";
        gap: 6px 8px;
        padding: 8px 10px !important;
        overflow: visible;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    }

    .logo {
        grid-area: mobile-logo;
        display: flex !important;
        min-height: 0;
        height: 100%;
        padding: 0 8px 0 0;
        align-items: center;
        justify-content: center;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .logo img {
        width: 64px;
        max-width: 64px;
        max-height: 38px;
        object-fit: contain;
    }

    .sidebar-nav {
        grid-area: mobile-nav;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        align-items: stretch;
    }

    .nav-group {
        display: contents;
        margin: 0;
    }

    .sidebar-bottom {
        grid-area: mobile-actions;
        width: 100%;
        margin-top: 0 !important;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .nav-header,
    .sidebar-bottom-divider {
        display: none !important;
    }

    .nav-item {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        height: 38px;
        box-sizing: border-box;
        justify-content: flex-start;
        padding: 0 10px !important;
        border-radius: 8px;
        font-size: 12px !important;
        line-height: 1.15;
        box-shadow: none;
    }

    .nav-item.active {
        border-color: rgba(51, 149, 255, 0.45);
        box-shadow: inset 0 -2px 0 var(--accent);
    }

    .nav-item .nav-icon {
        flex: 0 0 15px;
        width: 15px;
        font-size: 13px;
    }

    .nav-item span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .main-wrapper {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: visible;
    }

    .top-bar {
        position: static;
        width: 100%;
        min-height: 0;
        height: auto !important;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 9px 12px !important;
    }

    .top-bar-title-group {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    #page-title {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }

    .sidebar-toggle {
        display: none !important;
    }

    #top-actions {
        width: 100% !important;
        min-width: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    #top-actions button {
        flex: 1 1 96px;
        min-width: 0;
    }

    .auth-profile-mount {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .container,
    #view-imposition.container,
    #view-brochure.container,
    .dash-workspace {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 12px;
        gap: 12px;
        overflow-x: hidden;
    }

    #view-imposition.container,
    #view-brochure.container,
    .results-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .left-panel,
    .right-panel,
    .results-col,
    .results-grid,
    .card,
    #settingsCard,
    #settingsCardBr,
    #previewCardImp,
    #previewCardBr,
    #tyrageCard,
    #tyrageCardBr {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .row {
        min-width: 0;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .col,
    .row>.col {
        min-width: 0;
        flex: 1 1 140px;
    }

    button {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .icon-action-row {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .icon-action-button {
        flex: 0 0 34px;
        width: 34px;
        min-width: 34px;
    }

    .imp-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3px;
        overflow-x: hidden;
        scrollbar-width: none;
    }

    .imp-tabs::-webkit-scrollbar {
        display: none;
    }

    .imp-tab {
        min-width: 0;
        padding-left: 2px;
        padding-right: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        letter-spacing: 0;
    }

    #previewCardImp>.row:first-child,
    #previewCardBr>.row:first-child {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
    }

    .preview-controls {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 9px;
        flex-wrap: wrap;
    }

    .preview-controls .switch-label {
        flex: 1 1 auto;
    }

    .btn-render-manual {
        flex: 0 0 auto;
        min-width: 92px;
        justify-content: center;
    }

    .pagination-controls {
        width: 100%;
        justify-content: space-between;
    }

    .pagination-controls .sm-btn,
    .sm-btn {
        flex: 0 0 38px;
        width: 38px;
        min-width: 38px;
    }

    .canvas-container {
        width: 100%;
        max-width: 100%;
        max-height: none;
        overflow: auto;
        z-index: auto;
    }

    .canvas-header {
        position: static;
        flex-wrap: wrap;
        gap: 4px 10px;
        padding: 7px 9px;
        font-size: 10px;
        line-height: 1.25;
    }

    .canvas-header>* {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    canvas {
        max-width: 100%;
        height: auto;
    }

    #canvasContainerImp canvas,
    #canvasContainerBr canvas {
        width: auto !important;
        height: auto !important;
        max-width: 100%;
        max-height: none;
    }

    .tech-item {
        grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
    }

    .tech-label,
    .tech-value {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .dash-workspace,
    .dash-workspace.dash-scenarios-open,
    .dash-workspace.dash-preflight-open,
    .dash-workspace.dash-scenarios-open.dash-preflight-open {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .dash-workspace,
    .dash-workspace.dash-scenarios-open,
    .dash-workspace.dash-preflight-open,
    .dash-workspace.dash-scenarios-open.dash-preflight-open {
        grid-template-areas:
            "hub"
            "preflight"
            "preview"
            "launcher";
    }

    .dash-main-panel,
    .dash-preview-panel,
    .dash-preflight-panel,
    .dash-scenarios-panel {
        height: auto;
        max-height: none;
        padding: 14px;
    }

    .dash-preview-shell {
        min-height: 360px;
    }

    .dash-preview-shell.is-raster-preview {
        min-height: 0;
        max-height: min(62vh, 520px);
        padding: 10px;
    }

    .dash-preview-shell.is-raster-preview .dash-preview-image {
        min-height: 0;
        border-radius: 8px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
    }

    .dash-panel-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .dash-preview-link {
        width: fit-content;
        max-width: 100%;
    }

    .dash-results-box .tech-item {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .dash-results-box .tech-value {
        white-space: normal;
    }

    #dash-suggestions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    #dash-suggestions .suggestion-card {
        min-height: 52px !important;
    }

    #dash-suggestions .suggestion-card-surface {
        min-height: 52px;
        padding: 8px 10px;
        border-radius: 8px;
    }

    #dash-suggestions .suggestion-card-title {
        font-size: 11.5px;
        line-height: 1.15;
    }

    #dash-suggestions .suggestion-card-arrow {
        font-size: 12px;
    }

    .dash-scenario-groups {
        grid-template-columns: minmax(0, 1fr);
    }

    .dash-scenario-flow-grid,
    .dash-scenario-actions-grid,
    .dash-scenario-actions-grid--recipe-skoba,
    .dash-scenario-actions-grid--recipe-standard {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    }

    .dash-scenario-card-placeholder {
        display: none;
    }

    .dash-scenario-step {
        border-radius: 8px;
    }
}

@media (max-width: 430px) {
    .sidebar {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "mobile-logo"
            "mobile-nav"
            "mobile-actions";
    }

    .logo {
        min-height: 28px;
        padding: 0 0 6px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .logo img {
        width: 112px;
        max-width: 46vw;
        max-height: 44px;
    }

    .nav-item {
        padding: 0 9px !important;
        font-size: 11.5px !important;
    }

    #dash-suggestions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    #dash-suggestions .suggestion-card {
        min-height: 48px !important;
    }

    #dash-suggestions .suggestion-card-surface {
        min-height: 48px;
        padding: 8px 9px;
    }

    #dash-suggestions .suggestion-card-title {
        font-size: 11px;
    }
}


.crop-passport-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
}

.crop-control-card,
.wide-format-passport-section {
    padding: 0;
    border: 0;
    background: transparent;
}

.wide-format-passport-section:not(.hidden) {
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.crop-control-card.is-disabled {
    opacity: 0.58;
}

.crop-control-card.is-disabled,
.crop-control-card.is-disabled label,
.crop-control-card.is-disabled span,
.crop-control-card.is-disabled button {
    cursor: not-allowed;
}

.crop-toggle-row,
.passport-toggle-row {
    margin: 0;
    gap: 8px;
}

.crop-toggle-row .muted {
    color: #f8fafc;
    font-weight: 700;
}

.crop-anchor-control {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 0;
    margin-top: 7px;
}

.crop-anchor-control.is-disabled {
    pointer-events: none;
}

.crop-anchor-select {
    display: none;
}

.crop-anchor-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.crop-anchor-button {
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 22px;
    cursor: pointer;
}

.crop-anchor-button.active {
    border-color: var(--accent);
    background: rgba(46, 155, 255, 0.18);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(46, 155, 255, 0.22) inset;
}

.crop-anchor-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.crop-control-card.is-disabled .crop-anchor-button.active {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
}
.size-delta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5px;
}

.size-delta-col,
.size-delta-artwork {
    min-width: 0;
}

.size-delta-artwork {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.size-delta-title {
    margin-bottom: 4px;
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
}

.size-delta-row {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 3px;
    align-items: baseline;
    min-width: 0;
    color: #cbd5e1;
    line-height: 1.3;
}

.size-delta-label {
    color: #94a3b8;
    font-size: 11px;
    white-space: nowrap;
}

.size-delta-value {
    min-width: 0;
    color: #e5e7eb;
    font-size: 11.5px;
    font-weight: 650;
    overflow-wrap: normal;
    word-break: normal;
}

.size-delta-artwork .size-delta-row {
    grid-template-columns: 54px minmax(0, 1fr);
}


.size-delta-artwork .size-delta-crop-warning,
.size-delta-artwork .size-delta-crop-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 1px;
    line-height: 1.2;
}

.size-delta-artwork .size-delta-crop-summary {
    margin-top: 8px;
}

.size-delta-crop-warning .size-delta-label,
.size-delta-crop-summary .size-delta-label {
    display: none;
}

.size-delta-crop-warning .size-delta-value,
.size-delta-crop-summary .size-delta-value {
    overflow-wrap: normal;
    word-break: normal;
}

.size-delta-page-row .size-delta-value {
    color: #bfdbfe;
    font-weight: 700;
}


.size-delta-crop-summary .size-delta-value {
    color: #fbbf24;
    font-size: 12px;
    font-weight: 750;
}

.size-delta-crop-warning .size-delta-value {
    color: #fb7185;
    font-size: 12.5px;
    font-weight: 800;
}

.size-delta-crop-tone-danger .size-delta-value,
.size-delta-crop-tone-critical .size-delta-value {
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 850;
}




.size-delta-change-stack {
    display: grid;
    gap: 1px;
    line-height: 1.18;
}

.size-delta-change-line {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    column-gap: 3px;
    white-space: nowrap;
}

.size-delta-change-axis {
    color: #bfdbfe;
    font-weight: 750;
}

.size-delta-change-percent {
    color: #cbd5e1;
    font-weight: 650;
}

.size-delta-change-rotation {
    display: block;
    margin-top: 2px;
    color: #cbd5e1;
    white-space: nowrap;
}


.size-delta-scale-row .size-delta-label,
.size-delta-dpi-row .size-delta-label {
    color: #cbd5e1;
    font-weight: 650;
}

.size-delta-scale-row .size-delta-value,
.size-delta-dpi-row .size-delta-value {
    color: #e5e7eb;
    font-size: 11.5px;
    font-weight: 650;
}

.size-delta-value-emphasis {
    color: #f8fafc;
    font-size: 12.3px;
    font-weight: 750;
}

.size-delta-dpi-warning .size-delta-value-emphasis {
    color: #f59e0b;
}

.size-delta-dpi-critical .size-delta-value-emphasis {
    color: #ff6b6b;
    font-weight: 850;
}

.size-delta-mode {
    color: #cbd5e1;
    font-weight: 500;
}

@media (max-width: 620px) {
    .size-delta-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }
}
