:root {
    --background: #e9edf0;
    --panel: #ffffff;
    --panel-soft: #f0f3f5;
    --text: #111820;
    --muted: #5d6875;
    --line: #cfd7de;
    --brand: #caa65a;
    --brand-dark: #a8843b;
    --sidebar: #12191f;
    --sidebar-soft: #1c252d;
    --gold-soft: #efe3c4;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

.hidden {
    display: none !important;
}

.login-screen {
    background: url('/assets/pozadina.png') center center / cover no-repeat;
    display: block;
    inset: 0;
    min-height: 100vh;
    padding: clamp(18px, 4vw, 64px);
    position: fixed;
    z-index: 10;
}

.login-card {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 8px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(255, 255, 255, 0.16);
    display: grid;
    gap: 18px;
    min-height: 430px;
    padding: clamp(22px, 3vw, 38px);
    position: absolute;
    right: clamp(36px, 5.5vw, 108px);
    top: 50%;
    transform: translateY(-50%);
    width: min(370px, 28vw);
}

.login-copy {
    display: grid;
    gap: 8px;
    margin-bottom: 4px;
}

.login-card strong {
    color: #101820;
    font-size: 30px;
    line-height: 1.1;
}

.login-card span,
.error-text {
    color: #3f4c57;
}

.error-text {
    color: #b42318;
    margin: 0;
    min-height: 20px;
}

.login-card label {
    color: #17212b;
    display: grid;
    font-size: 14px;
    font-weight: 700;
    gap: 7px;
}

.login-card input {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.login-link-button {
    background: transparent;
    border: 0;
    color: #17212b;
    font-weight: 700;
    min-height: auto;
    padding: 0;
    text-align: left;
}

.login-link-button:hover {
    color: var(--brand-dark);
}

.login-footer {
    bottom: 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 700;
    left: 50%;
    letter-spacing: 0;
    position: fixed;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    transform: translateX(-50%);
    width: min(90vw, 720px);
}

.modal {
    align-items: center;
    background: rgba(17, 24, 32, 0.54);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 20;
}

.modal-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 14px;
    max-width: 760px;
    padding: 18px;
    width: min(100%, 760px);
}

.save-overlay {
    align-items: center;
    background: rgba(17, 24, 32, 0.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 50;
}

.save-overlay-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.30);
    display: grid;
    gap: 10px;
    justify-items: center;
    max-width: 380px;
    padding: 28px;
    text-align: center;
    width: min(100%, 380px);
}

.save-overlay-card strong {
    font-size: 24px;
}

.save-overlay-card span {
    color: var(--muted);
    line-height: 1.45;
}

.save-spinner {
    animation: save-spin 0.8s linear infinite;
    border: 4px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 999px;
    height: 52px;
    width: 52px;
}

.save-check {
    align-items: center;
    background: linear-gradient(135deg, #caa65a, #9a7937);
    border-radius: 999px;
    color: #ffffff;
    display: flex;
    font-size: 30px;
    font-weight: 800;
    height: 52px;
    justify-content: center;
    line-height: 1;
    width: 52px;
}

@keyframes save-spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.modal-heading h2 {
    margin: 0;
}

.modal-close {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 24px;
    height: 38px;
    line-height: 1;
    width: 38px;
}

.modal-textarea {
    min-height: 280px;
}

.image-modal-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-modal-grid label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.stock-modal-card {
    max-width: 420px;
}

.stock-modal-field {
    color: var(--text);
    display: grid;
    font-weight: 700;
    gap: 8px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
}

button,
input,
textarea,
select {
    font: inherit;
}

.app-shell {
    display: grid;
    background:
        radial-gradient(circle at top right, rgba(202, 166, 90, 0.18), transparent 34%),
        linear-gradient(135deg, #e8ecef 0%, #f7f8f9 52%, #ece4d4 100%);
    grid-template-columns: 300px minmax(0, 1fr);
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(18, 25, 31, 0.96), rgba(12, 17, 22, 0.98)),
        #12191f;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
    overflow: hidden;
    padding: 24px 20px;
}

.sidebar-main {
    display: grid;
    gap: 0;
}

.brand {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.brand img {
    display: block;
    height: auto;
    max-width: 218px;
}

.brand span,
.label {
    color: #cdd5dc;
    font-size: 13px;
}

.label {
    font-weight: 700;
    margin: 22px 0 10px;
    text-transform: uppercase;
}

.site-list,
.form,
.history {
    display: grid;
    gap: 10px;
}

.nav-item {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: inherit;
    min-height: 42px;
    padding: 10px 12px;
    text-align: left;
    width: 100%;
}

.nav-item.active {
    background: linear-gradient(135deg, #caa65a, #8f7132);
    color: #ffffff;
    font-weight: 700;
}

.logout-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #f8fafc;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    min-height: 46px;
    padding: 11px 14px;
    width: 100%;
}

.logout-button:hover {
    background: rgba(202, 166, 90, 0.18);
    border-color: rgba(202, 166, 90, 0.42);
}

.shutdown-icon {
    border: 2px solid currentColor;
    border-radius: 999px;
    display: inline-block;
    height: 18px;
    position: relative;
    width: 18px;
}

.shutdown-icon::before {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 10px;
    left: 50%;
    position: absolute;
    top: -5px;
    transform: translateX(-50%);
    width: 2px;
}

.site-item {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: inherit;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px 36px 36px;
    overflow: hidden;
}

.site-status-dot {
    align-self: center;
    border-radius: 999px;
    height: 9px;
    justify-self: center;
    width: 9px;
}

.site-status-dot.active {
    background: #16a34a;
}

.site-status-dot.draft {
    background: #f59e0b;
}

.site-status-dot.error {
    background: #dc2626;
}

.site-select-button,
.site-delete-button,
.site-test-button {
    background: transparent;
    border: 0;
    color: inherit;
}

.site-select-button {
    min-height: 48px;
    padding: 10px 12px;
    text-align: left;
}

.admin-sites-list {
    display: grid;
    gap: 10px;
}

.admin-site-row {
    align-items: center;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    padding: 12px;
}

.admin-site-row strong,
.admin-site-row span {
    display: block;
}

.admin-site-row span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.admin-site-status {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    gap: 7px;
}

.site-delete-button {
    align-items: center;
    display: flex;
    font-size: 22px;
    font-weight: 700;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.site-test-button {
    align-items: center;
    display: flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.site-item:hover .site-delete-button,
.site-item:hover .site-test-button {
    opacity: 1;
}

.site-test-button:hover {
    background: rgba(202, 166, 90, 0.28);
}

.site-delete-button:hover {
    background: rgba(180, 35, 24, 0.35);
}

.site-item.active {
    background: linear-gradient(135deg, #caa65a, #8f7132);
    color: #ffffff;
}

.main {
    height: 100vh;
    overflow-y: auto;
    padding: 32px;
}

.header {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 28px;
    margin: 0 0 6px;
}

.header p {
    color: var(--muted);
    margin: 0;
}

.status-pill {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    padding: 8px 12px;
}

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(17, 24, 32, 0.06);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 18px;
}

.panel h2 {
    margin: 0 0 12px;
}

.panel-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-heading h2 {
    margin: 0;
}

.history-filter {
    max-width: 260px;
    width: 100%;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.button {
    border: 0;
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 14px;
}

.button-primary {
    background: linear-gradient(135deg, #caa65a, #9a7937);
    color: #ffffff;
    font-weight: 700;
}

.button-primary:hover {
    background: linear-gradient(135deg, #d6b76e, #a8843b);
}

.empty {
    color: var(--muted);
}

.confirm-card,
.history-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.account-item {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.account-item span {
    color: var(--muted);
    display: block;
    margin-top: 4px;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.compact-select,
.compact-input {
    font-size: 13px;
    min-height: 32px;
    padding: 6px 8px;
    width: auto;
}

.compact-input {
    max-width: 210px;
}

.small-primary-button {
    background: linear-gradient(135deg, #caa65a, #9a7937);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    min-height: 34px;
    padding: 7px 10px;
}

.account-summary {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-summary-item {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px;
}

.account-summary-item span,
.account-summary-item strong {
    display: block;
}

.account-summary-item span {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.account-password-form {
    max-width: 620px;
}

.account-password-form label {
    color: var(--text);
    display: grid;
    font-weight: 700;
    gap: 7px;
}

.small-danger-button {
    background: #fee4e2;
    border: 1px solid #fecdca;
    border-radius: 8px;
    color: #b42318;
    min-height: 34px;
    padding: 7px 10px;
}

.inline-form {
    grid-template-columns: minmax(0, 1fr) auto;
}

.price-row {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-box {
    background: var(--panel-soft);
    border-radius: 8px;
    padding: 12px;
}

.price-box span {
    color: var(--muted);
    display: block;
    font-size: 13px;
}

.price-box strong {
    display: block;
    font-size: 22px;
    margin-top: 4px;
}

.sku-search-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1fr) auto auto;
    margin-bottom: 16px;
}

.button-secondary {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 700;
}

.product-editor-wrap {
    overflow-x: auto;
}

.product-editor-table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

.product-editor-table th,
.product-editor-table td {
    border-bottom: 1px solid var(--line);
    padding: 8px 6px;
    text-align: left;
    vertical-align: middle;
}

.product-editor-table th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
}

.field-tooltip {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 10px;
    height: 15px;
    justify-content: center;
    margin-left: 3px;
    text-transform: none;
    transform: translateY(-1px);
    vertical-align: middle;
    width: 15px;
}

.product-editor-table input,
.product-editor-table select {
    min-height: 38px;
    width: 100%;
}

.product-title-input {
    min-width: 0;
}

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

.remove-row-button {
    align-items: center;
    background: #fff1f0;
    border: 1px solid #fecdca;
    border-radius: 999px;
    color: #b42318;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.remove-row-button:hover {
    background: #fee4e2;
}

.sku-input {
    max-width: 96px;
}

.price-input {
    max-width: 118px;
}

.stock-mode-select {
    min-width: 150px;
}

.product-extra-row td {
    background: rgba(240, 243, 245, 0.72);
}

.product-extra-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1.4fr 1fr;
}

.product-extra-field {
    display: grid;
    gap: 7px;
}

.product-extra-field label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.image-ratio-note {
    color: var(--muted);
    font-size: 12px;
}

.category-check-list {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 150px;
    overflow: auto;
    padding: 8px;
}

.category-modal-list {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 420px;
    overflow: auto;
    padding: 12px;
}

.category-check {
    align-items: center;
    color: var(--text);
    display: flex;
    font-size: 14px;
    font-weight: 400;
    gap: 7px;
    line-height: 1.25;
    min-height: 30px;
    padding: 3px 4px;
}

.category-check:hover {
    background: var(--panel-soft);
    border-radius: 6px;
}

.category-check input {
    min-height: auto;
    width: auto;
}

.text-action-row {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-action-button {
    background: linear-gradient(135deg, #caa65a, #9a7937);
    border-color: transparent;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    min-height: 38px;
    padding: 7px 12px;
    width: 100%;
}

.compact-action-button:hover {
    background: linear-gradient(135deg, #d6b76e, #a8843b);
}

.product-name-cell {
    width: 21%;
}

.product-name-cell strong,
.product-name-cell span {
    display: block;
}

.product-name-cell strong {
    font-size: 14px;
    line-height: 1.18;
}

.product-editor-table th:nth-child(1),
.product-editor-table td:nth-child(1) {
    width: 21%;
}

.product-editor-table th:nth-child(2),
.product-editor-table td:nth-child(2) {
    width: 27%;
}

.product-editor-table th:nth-child(3),
.product-editor-table td:nth-child(3) {
    width: 8%;
}

.product-editor-table th:nth-child(4),
.product-editor-table td:nth-child(4),
.product-editor-table th:nth-child(5),
.product-editor-table td:nth-child(5) {
    width: 11%;
}

.product-editor-table th:nth-child(6),
.product-editor-table td:nth-child(6) {
    width: 16%;
}

.product-editor-table th:nth-child(7),
.product-editor-table td:nth-child(7) {
    width: 11%;
}

.product-name-cell span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.stock-quantity-input.is-hidden {
    display: none;
}

.table-empty {
    color: var(--muted);
    text-align: center !important;
}

details summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
}

.details-content {
    margin-top: 14px;
}

.workspace-help {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.workspace-tab {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-weight: 700;
    min-height: 42px;
    padding: 9px 13px;
}

.workspace-tab.active {
    background: linear-gradient(135deg, #caa65a, #9a7937);
    color: #ffffff;
}

.promotion-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    margin-bottom: 14px;
}

.promotion-actions .button,
.promotion-product-row .button,
.promotion-product-row .small-primary-button,
.promotion-list-heading .button {
    min-height: 34px;
    padding: 7px 11px;
}

.promotion-results {
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.promotion-list,
.promotion-results {
    display: grid;
    gap: 10px;
}

.promotion-list-heading {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    padding-top: 14px;
}

.promotion-search-title {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.promotion-product-row {
    align-items: center;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: 54px minmax(0, 1fr) minmax(190px, 0.45fr) auto auto auto;
    padding: 10px;
}

.promotion-product-row.is-draggable {
    cursor: grab;
}

.promotion-product-row.is-dragging {
    opacity: 0.58;
}

.promotion-product-row img {
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    width: 54px;
}

.promotion-image-placeholder {
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 54px;
}

.promotion-product-row strong,
.promotion-product-row span {
    display: block;
}

.promotion-product-row span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.promotion-price-fields {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promotion-price-fields input {
    min-height: 34px;
    padding: 7px 9px;
}

.drag-handle {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 10px;
}

.danger-button {
    background: #fff1f0;
    color: #9f2d20;
}

.category-create-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 12px;
}

.category-search-input {
    margin-bottom: 12px;
}

.category-modal-list {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 360px;
    overflow: auto;
    padding: 10px;
}

.category-check {
    align-items: center;
    background: var(--panel-soft);
    border: 1px solid transparent;
    border-radius: 7px;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 38px;
    padding: 8px 10px;
}

.category-check:hover {
    border-color: var(--line);
}

.category-check span {
    color: var(--text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: none;
}

.new-product-form {
    display: grid;
    gap: 16px;
}

.new-product-grid,
.form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.new-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.new-product-form label,
.form-section-title {
    color: var(--muted);
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.new-product-form textarea {
    min-height: 130px;
    resize: vertical;
}

.compact-category-list {
    margin-top: 8px;
    max-height: 230px;
}

.workspace-help div {
    background: var(--panel-soft);
    border-radius: 8px;
    padding: 14px;
}

.workspace-help strong,
.workspace-help span {
    display: block;
}

.workspace-help span {
    color: var(--muted);
    margin-top: 5px;
}

.manual-confirm-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-confirm-item {
    background: var(--panel-soft);
    border-radius: 8px;
    padding: 12px;
}

.manual-confirm-item span,
.manual-confirm-item strong {
    display: block;
}

.manual-confirm-item span {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.batch-confirm-list {
    display: grid;
    gap: 12px;
}

.batch-confirm-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.batch-confirm-item summary {
    background: var(--panel-soft);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 14px;
    text-transform: none;
}

.batch-confirm-item .manual-confirm-grid {
    padding: 12px;
}

.batch-confirm-actions {
    display: flex;
    justify-content: flex-end;
}

.manual-confirm-item strong {
    font-size: 15px;
    font-weight: 600;
}

.instructions-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.instruction-step,
.instruction-note {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.instruction-step strong,
.instruction-note strong {
    display: block;
    margin-bottom: 6px;
}

.instruction-step p,
.instruction-note p {
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
}

.instruction-note {
    margin-top: 14px;
}

/* Compact polish: keeps the same layout, but makes the app feel lighter. */
:root {
    --panel-soft: #f4f6f7;
    --shadow-soft: 0 10px 28px rgba(17, 24, 32, 0.05);
}

.app-shell {
    grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
    padding: 22px 18px;
}

.brand {
    margin-bottom: 24px;
}

.brand img {
    max-width: 200px;
}

.label {
    margin: 18px 0 8px;
}

.nav-item {
    font-size: 15px;
    min-height: 38px;
    padding: 8px 11px;
}

.logout-button {
    min-height: 42px;
    padding: 9px 13px;
}

.site-select-button {
    min-height: 44px;
    padding: 9px 11px;
}

.main {
    padding: 15px;
}

.header {
    margin-bottom: 16px;
}

.header h1 {
    font-size: 26px;
    margin-bottom: 4px;
}

.status-pill {
    font-size: 14px;
    padding: 6px 11px;
}

.grid {
    gap: 14px;
    margin-bottom: 14px;
}

.panel {
    box-shadow: var(--shadow-soft);
    margin-bottom: 14px;
    padding: 16px;
}

.panel h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

input,
select,
textarea {
    min-height: 38px;
    padding: 8px 11px;
}

.button {
    font-size: 15px;
    min-height: 38px;
    padding: 8px 13px;
}

.button-primary,
.workspace-tab.active,
.compact-action-button,
.small-primary-button {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.small-primary-button,
.small-danger-button {
    font-size: 14px;
    min-height: 32px;
    padding: 6px 10px;
}

.sku-search-row {
    gap: 8px;
    margin-bottom: 12px;
}

.product-editor-table th,
.product-editor-table td {
    padding: 7px 6px;
}

.product-editor-table th {
    font-size: 12px;
}

.field-tooltip {
    font-size: 10px;
    height: 14px;
    margin-left: 2px;
    width: 14px;
}

.product-editor-table input,
.product-editor-table select {
    min-height: 36px;
}

.product-name-cell strong,
.promotion-product-row strong {
    font-size: 13px;
    line-height: 1.25;
}

.row-action-buttons {
    gap: 6px;
    justify-content: flex-end;
    min-width: 0;
}

.row-action-buttons .small-primary-button {
    flex: 0 0 auto;
    font-size: 14px;
    min-height: 34px;
    padding: 6px 10px;
}

.remove-row-button {
    flex: 0 0 30px;
    font-size: 18px;
    height: 30px;
    width: 30px;
}

.product-editor-table th:nth-child(1),
.product-editor-table td:nth-child(1) {
    width: 20%;
}

.product-editor-table th:nth-child(2),
.product-editor-table td:nth-child(2) {
    width: 25%;
}

.product-editor-table th:nth-child(3),
.product-editor-table td:nth-child(3) {
    width: 7%;
}

.product-editor-table th:nth-child(4),
.product-editor-table td:nth-child(4),
.product-editor-table th:nth-child(5),
.product-editor-table td:nth-child(5) {
    width: 10%;
}

.product-editor-table th:nth-child(6),
.product-editor-table td:nth-child(6) {
    width: 15%;
}

.product-editor-table th:nth-child(7),
.product-editor-table td:nth-child(7) {
    width: 13%;
}

.compact-action-button {
    min-height: 34px;
    padding: 6px 11px;
}

.workspace-tabs {
    margin-bottom: 12px;
}

.workspace-tab {
    font-size: 14px;
    min-height: 36px;
    padding: 7px 12px;
}

.promotion-actions {
    gap: 8px;
    margin-bottom: 12px;
}

.promotion-actions .button,
.promotion-product-row .button,
.promotion-product-row .small-primary-button,
.promotion-list-heading .button {
    min-height: 32px;
    padding: 6px 10px;
}

.promotion-list,
.promotion-results {
    gap: 8px;
}

.promotion-product-row {
    gap: 8px;
    padding: 8px;
}

.promotion-price-fields input {
    min-height: 32px;
    padding: 6px 8px;
}

.confirm-card,
.history-item,
.workspace-help div,
.manual-confirm-item,
.instruction-step,
.instruction-note {
    padding: 12px;
}

.manual-confirm-grid {
    gap: 8px;
}

.batch-confirm-list {
    gap: 10px;
}

.batch-confirm-item summary {
    padding: 11px 12px;
}

.batch-confirm-item .manual-confirm-grid {
    padding: 10px;
}

.compact-select,
.compact-input {
    min-height: 30px;
}

@media (max-width: 900px) {
    .login-card {
        min-height: auto;
        right: 50%;
        transform: translate(50%, -50%);
        width: min(100%, 440px);
    }

    .app-shell,
    .account-summary,
    .grid,
    .price-row,
    .inline-form,
    .sku-search-row,
    .promotion-actions,
    .category-create-row,
    .form-grid,
    .new-product-grid,
    .promotion-product-row,
    .promotion-price-fields,
    .workspace-help,
    .manual-confirm-grid,
    .product-extra-grid,
    .instructions-grid {
        grid-template-columns: 1fr;
    }

    .panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .history-filter {
        max-width: none;
    }
}
