:root {
    --bg: #0b1020;
    --panel: #111827;
    --panel-2: #172033;
    --text: #f8fafc;
    --muted: #9aa7bd;
    --line: rgba(255, 255, 255, 0.13);
    --accent: #36e2b4;
    --danger: #f87171;
    --ink: #071014;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #080b14 0%, #101827 52%, #071014 100%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 8px; color: var(--ink); background: linear-gradient(135deg, var(--accent), #24c6dc); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.auth-shell { width: min(460px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0; }
.auth-panel { margin-top: 56px; border: 1px solid var(--line); border-radius: 8px; padding: 28px; background: rgba(255,255,255,0.06); }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); }
label { display: block; margin: 18px 0 8px; color: var(--muted); font-weight: 700; }
input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; color: var(--text); background: rgba(255,255,255,0.08); outline: none; }
input:focus { border-color: var(--accent); }
button, .button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 0; border-radius: 8px; padding: 0 16px; color: var(--ink); font-weight: 800; background: var(--accent); cursor: pointer; }
.auth-panel button { width: 100%; margin-top: 22px; }
.notice { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-weight: 700; }
.notice-success { color: var(--accent); background: rgba(54,226,180,0.1); }
.notice-error { color: #fecaca; background: rgba(248,113,113,0.14); }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0; }
.app-header nav { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.app-header form { margin: 0; }
.app-header button, .danger { min-height: 36px; color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,0.07); }
.app-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 80px; }
.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.toolbar p { margin: 10px 0 0; color: var(--muted); }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; margin: 22px 0; }
.search a { display: inline-flex; align-items: center; color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.05); }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
td { color: #e5edf8; }
tr:last-child td { border-bottom: 0; }
.empty { color: var(--muted); text-align: center; }
.danger { color: #fecaca; }
.pager { margin-top: 18px; color: var(--muted); }
.pager a, .pager strong { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; margin-right: 6px; }
.pager strong { color: var(--ink); background: var(--accent); }
@media (max-width: 720px) {
    .app-header, .toolbar { align-items: flex-start; flex-direction: column; }
    .search { grid-template-columns: 1fr; }
}


.app-header nav a {
    color: var(--text);
    font-weight: 800;
}

.search-wide {
    grid-template-columns: minmax(0, 1fr) 180px auto auto;
}

.search select,
.inline-form select {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--text);
    background: rgba(255,255,255,0.08);
}

.search select option,
.inline-form select option {
    color: #071014;
}

.applications-table {
    min-width: 1120px;
}

.applications-table strong {
    color: var(--text);
}

.applications-table span {
    color: var(--muted);
}

.inline-form {
    margin: 0;
}

@media (max-width: 720px) {
    .search-wide {
        grid-template-columns: 1fr;
    }
}


.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button-secondary {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.08);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.metric-card {
    min-height: 156px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: rgba(255,255,255,0.06);
}

.metric-card:nth-child(1),
.metric-card:nth-child(2) {
    grid-column: span 2;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.metric-card strong {
    display: block;
    margin: 16px 0 18px;
    font-size: 2.4rem;
    line-height: 1;
}

.metric-card a {
    color: var(--accent);
    font-weight: 800;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.dashboard-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
}

.panel-heading h2 {
    margin: 0;
    font-size: 1.1rem;
}

.panel-heading a {
    color: var(--accent);
    font-weight: 800;
}

.mini-list {
    padding: 4px 0;
}

.mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
}

.mini-row:last-child {
    border-bottom: 0;
}

.mini-row strong,
.mini-row span,
.mini-row time {
    display: block;
}

.mini-row span,
.mini-row time {
    color: var(--muted);
    margin-top: 4px;
}

.empty-line {
    margin: 0;
    padding: 18px 20px;
    color: var(--muted);
}

.status-pill {
    min-width: 92px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    text-align: center;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 900;
}

.status-new { background: rgba(54,226,180,0.12); }
.status-reviewed { background: rgba(96,165,250,0.14); }
.status-approved { background: rgba(34,197,94,0.16); }
.status-rejected { background: rgba(248,113,113,0.16); }

@media (max-width: 980px) {
    .metric-grid,
    .dashboard-panels {
        grid-template-columns: 1fr;
    }

    .metric-card:nth-child(1),
    .metric-card:nth-child(2) {
        grid-column: span 1;
    }
}


.auth-copy {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.auth-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--accent);
    font-weight: 800;
}


.narrow-shell {
    width: min(760px, calc(100% - 32px));
}

.form-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: rgba(255,255,255,0.06);
}

.form-panel label {
    display: block;
    margin: 16px 0 8px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.form-actions a,
.table-link {
    color: var(--accent);
    font-weight: 800;
}

.actions-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.actions-cell form {
    margin: 0;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}


.audit-table {
    min-width: 1160px;
}

.audit-table code {
    display: block;
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
}


textarea,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text);
    background: rgba(255,255,255,0.08);
    outline: none;
    font: inherit;
}

textarea:focus,
select:focus {
    border-color: var(--accent);
}

select option {
    color: #071014;
}

.setup-shell {
    padding-top: 28px;
}

.setup-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.setup-steps {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.setup-step {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 13px 14px;
    color: var(--muted);
    font-weight: 800;
}

.setup-step:last-child {
    border-bottom: 0;
}

.setup-step span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
}

.setup-step.is-active {
    color: var(--text);
    background: rgba(54,226,180,0.1);
}

.setup-step.is-active span {
    color: var(--ink);
    border-color: transparent;
    background: var(--accent);
}

.setup-panel h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.choice-grid,
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.choice-card,
.review-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
}

.choice-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 5px;
    margin: 0;
    cursor: pointer;
}

.choice-card input {
    width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
}

.choice-card strong,
.choice-card span {
    display: block;
}

.choice-card span,
.review-grid span {
    color: var(--muted);
}

.choice-card span {
    grid-column: 2;
}

.review-grid strong,
.review-grid span {
    display: block;
}

.review-grid strong {
    margin-top: 8px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.check-row input {
    width: 18px;
    min-height: 18px;
}

.setup-actions {
    justify-content: space-between;
}

@media (max-width: 860px) {
    .setup-layout,
    .choice-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }
}


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

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

.inline-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 18px;
    padding: 14px;
    color: var(--muted);
    background: rgba(54,226,180,0.08);
}

@media (max-width: 720px) {
    .form-grid-2,
    .inline-callout {
        grid-template-columns: 1fr;
        align-items: flex-start;
        flex-direction: column;
    }
}


.language-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 18px;
    background: rgba(255,255,255,0.045);
}

.language-panel-rtl {
    text-align: right;
}

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

.language-heading span {
    color: var(--accent);
    font-weight: 900;
}

.language-heading strong,
.field-help {
    color: var(--muted);
}

.field-help {
    margin: 0 0 18px;
    line-height: 1.6;
}

.language-pill {
    display: inline-flex;
    min-width: 34px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-right: 6px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    background: rgba(54,226,180,0.08);
}


.table-link {
    color: var(--accent);
    font-weight: 900;
}

.muted-line {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

.orders-table {
    min-width: 1080px;
}

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

.detail-panel,
.order-items {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
}

.detail-panel h2,
.order-items h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.detail-panel dl {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.detail-panel dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-panel dd {
    margin: 0;
    color: var(--text);
}

.detail-panel select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--text);
    background: rgba(255,255,255,0.08);
}

.detail-panel select option {
    color: #071014;
}

.detail-panel form button {
    margin-top: 18px;
}

.order-item-card {
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.order-item-card:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.order-item-main,
.order-total {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.order-item-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.order-total {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 1.08rem;
}

.status-pending, .status-unpaid, .status-unfulfilled { background: rgba(250,204,21,0.14); }
.status-confirmed, .status-paid, .status-fulfilled, .status-delivered { background: rgba(34,197,94,0.16); }
.status-processing, .status-partial, .status-shipped { background: rgba(96,165,250,0.14); }
.status-cancelled, .status-refunded, .status-returned, .status-failed { background: rgba(248,113,113,0.16); }

@media (max-width: 860px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-panel dl {
        grid-template-columns: 1fr;
    }

    .order-item-main,
    .order-total {
        flex-direction: column;
    }
}


.settings-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 22px;
    background: rgba(255,255,255,0.05);
}

.settings-list {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.settings-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255,255,255,0.045);
}

.settings-card h3 {
    margin: 0 0 14px;
}

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

.settings-card textarea,
.settings-card select,
.zone-row select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text);
    background: rgba(255,255,255,0.08);
    font: inherit;
}

.settings-card textarea {
    min-height: 88px;
    resize: vertical;
}

.settings-card select option {
    color: #071014;
}

.switch-row,
.switch-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
}

.switch-row input,
.switch-inline input {
    width: auto;
    min-height: auto;
}

.settings-actions {
    margin-top: 14px;
}

.zones-block {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 18px;
}

.zone-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 120px auto;
    gap: 10px;
    align-items: end;
    margin-top: 10px;
}

.zone-row input {
    min-height: 42px;
}

@media (max-width: 980px) {
    .settings-grid,
    .zone-row {
        grid-template-columns: 1fr;
    }
}

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

.settings-card input[type="color"] {
    min-height: 46px;
    padding: 4px;
}

.sticky-save {
    position: sticky;
    bottom: 16px;
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(11, 16, 32, 0.86);
    backdrop-filter: blur(14px);
}

@media (max-width: 720px) {
    .settings-grid-wide {
        grid-template-columns: 1fr;
    }

    .sticky-save {
        justify-content: stretch;
    }

    .sticky-save button {
        width: 100%;
    }
}

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

.upload-card {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
}

.upload-card span:first-child {
    color: var(--text);
    font-weight: 800;
}

.upload-card small {
    color: var(--muted);
    font-weight: 700;
}

.upload-preview {
    display: grid;
    min-height: 120px;
    place-items: center;
    overflow: hidden;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(0,0,0,0.18);
}

.upload-preview img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    padding: 8px;
}

.upload-card input[type="file"] {
    min-height: auto;
    padding: 10px;
}

@media (max-width: 960px) {
    .upload-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
}

.inline-image-preview {
    display: block;
    margin: 10px 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0,0,0,0.18);
}

.inline-image-preview img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    padding: 8px;
}

.image-manage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.image-manage-card {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
}

.image-manage-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
}

.image-manage-card span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.image-manage-card input[type="checkbox"] {
    width: auto;
    min-height: auto;
}

@media (max-width: 960px) {
    .image-manage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .image-manage-grid {
        grid-template-columns: 1fr;
    }
}

/* Owner admin refresh: friendlier, lighter, and easier to scan. */
.owner-admin-v2 {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --panel-2: #f8fafc;
    --text: #162033;
    --muted: #667085;
    --line: #dbe3ef;
    --accent: #08b981;
    --accent-2: #2563eb;
    --danger: #dc2626;
    --ink: #ffffff;
    color: var(--text);
    background: #f4f7fb;
}

.owner-admin-v2 .app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    padding: 14px max(20px, calc((100% - 1180px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.owner-admin-v2 .brand {
    color: #111827;
}

.owner-admin-v2 .brand-mark {
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #10b981);
}

.owner-admin-v2 .app-header nav {
    gap: 8px;
}

.owner-admin-v2 .app-header nav a,
.owner-admin-v2 .app-header nav span {
    color: #475467;
    font-weight: 800;
}

.owner-admin-v2 .app-header nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 12px;
}

.owner-admin-v2 .app-header nav a:hover,
.owner-admin-v2 .app-header nav a.active {
    color: #111827;
    background: #eef4ff;
}

.owner-admin-v2 .app-header button,
.owner-admin-v2 .danger {
    color: #344054;
    border-color: var(--line);
    background: #ffffff;
}

.owner-admin-v2 .app-shell {
    padding-top: 30px;
}

.owner-admin-v2 .owner-hero {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.owner-admin-v2 h1 {
    color: #101828;
    letter-spacing: 0;
}

.owner-admin-v2 .eyebrow {
    color: #059669;
    letter-spacing: 0.08em;
}

.owner-admin-v2 .toolbar p,
.owner-admin-v2 .muted-line,
.owner-admin-v2 label,
.owner-admin-v2 .empty-line,
.owner-admin-v2 .empty,
.owner-admin-v2 .pager {
    color: var(--muted);
}

.owner-admin-v2 button,
.owner-admin-v2 .button {
    min-height: 42px;
    border-radius: 8px;
    color: #ffffff;
    background: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.owner-admin-v2 .button-secondary,
.owner-admin-v2 .app-header button {
    color: #344054;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: none;
}

.owner-admin-v2 .notice,
.owner-admin-v2 .table-wrap,
.owner-admin-v2 .dashboard-panel,
.owner-admin-v2 .metric-card,
.owner-admin-v2 .settings-section,
.owner-admin-v2 .settings-card,
.owner-admin-v2 .form-panel,
.owner-admin-v2 .upload-card,
.owner-admin-v2 .image-manage-card {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.owner-admin-v2 .settings-section {
    overflow: hidden;
    margin-top: 18px;
}

.owner-admin-v2 .panel-heading {
    align-items: flex-start;
    padding: 18px 22px;
    background: #fbfcfe;
}

.owner-admin-v2 .panel-heading h2 {
    color: #101828;
    font-size: 1.08rem;
}

.owner-admin-v2 .settings-card {
    border: 0;
    border-radius: 0;
    padding: 22px;
    box-shadow: none;
}

.owner-admin-v2 .settings-card input,
.owner-admin-v2 .settings-card textarea,
.owner-admin-v2 .settings-card select,
.owner-admin-v2 input,
.owner-admin-v2 textarea,
.owner-admin-v2 select,
.owner-admin-v2 .zone-row select,
.owner-admin-v2 .search select,
.owner-admin-v2 .inline-form select {
    color: #101828;
    border-color: #d0d5dd;
    background: #ffffff;
}

.owner-admin-v2 .settings-card input:focus,
.owner-admin-v2 .settings-card textarea:focus,
.owner-admin-v2 .settings-card select:focus,
.owner-admin-v2 input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.owner-admin-v2 .settings-grid {
    gap: 16px;
}

.owner-admin-v2 label {
    margin-top: 0;
    font-size: 0.9rem;
}

.owner-admin-v2 label input,
.owner-admin-v2 label select,
.owner-admin-v2 label textarea {
    margin-top: 8px;
}

.owner-admin-v2 .switch-row {
    min-height: 48px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 10px 12px;
    color: #344054;
    background: #f9fafb;
}

.owner-admin-v2 .switch-row input {
    accent-color: #10b981;
}

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

.quick-setting-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.quick-setting-card span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.quick-setting-card strong {
    display: block;
    margin-top: 8px;
    color: #101828;
    font-size: 1.15rem;
}

.color-grid,
.toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.toggle-grid-small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-admin-v2 .color-grid label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 10px 12px;
    color: #344054;
    background: #f9fafb;
}

.owner-admin-v2 .color-grid input[type="color"] {
    width: 52px;
    min-height: 34px;
    margin: 0;
    padding: 2px;
    border-radius: 6px;
}

.owner-admin-v2 .upload-preview,
.owner-admin-v2 .inline-image-preview,
.owner-admin-v2 .image-manage-card img {
    border-color: #d0d5dd;
    background: #f8fafc;
}

.owner-admin-v2 th {
    color: #667085;
    background: #f9fafb;
}

.owner-admin-v2 td {
    color: #344054;
}

.owner-admin-v2 .table-link,
.owner-admin-v2 .form-actions a,
.owner-admin-v2 .panel-heading a,
.owner-admin-v2 .metric-card a {
    color: #047857;
}

.owner-admin-v2 .sticky-save {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.owner-admin-v2 .notice-success {
    color: #047857;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.owner-admin-v2 .notice-error {
    color: #b42318;
    border-color: #fecaca;
    background: #fff1f2;
}

@media (max-width: 980px) {
    .quick-settings-grid,
    .color-grid,
    .toggle-grid,
    .toggle-grid-small {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .owner-admin-v2 .app-header {
        position: static;
        padding: 14px 16px;
    }

    .owner-admin-v2 .app-header nav {
        flex-wrap: wrap;
    }
}

/* Owner admin usability pass. */
.owner-admin-v2 .app-shell {
    width: min(1240px, calc(100% - 36px));
}

.owner-admin-v2 .toolbar {
    margin-bottom: 20px;
}

.owner-admin-v2 .owner-hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.owner-admin-v2 .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}

.owner-admin-v2 .metric-card {
    min-height: 112px;
    padding: 18px;
}

.owner-admin-v2 .metric-card strong {
    margin: 10px 0 0;
    font-size: 2rem;
}

.owner-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 28px 0 14px;
}

.owner-section-heading h2 {
    margin: 0;
    color: #101828;
    font-size: 1.35rem;
}

.owner-section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.store-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.store-card,
.empty-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.store-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 800;
}

.store-card h2,
.empty-panel h2 {
    margin: 18px 0 6px;
    color: #101828;
    font-size: 1.6rem;
}

.store-card p,
.empty-panel p {
    margin: 0;
    color: var(--muted);
}

.store-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 12px 14px;
    background: #f9fafb;
}

.store-progress span {
    color: var(--muted);
    font-weight: 800;
}

.store-progress strong {
    color: #101828;
}

.store-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.owner-admin-v2 .store-card-actions .button,
.owner-admin-v2 .actions-cell .table-link,
.owner-admin-v2 .actions-cell button.danger,
.owner-admin-v2 td > .table-link {
    min-height: 36px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.9rem;
}

.owner-admin-v2 .button-light {
    color: #047857;
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    box-shadow: none;
}

.owner-admin-v2 .actions-cell .table-link,
.owner-admin-v2 td > .table-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: #111827;
}

.owner-admin-v2 .actions-cell button.danger {
    color: #b42318;
    border-color: #fecaca;
    background: #fff1f2;
}

.owner-admin-v2 .actions-cell {
    flex-wrap: wrap;
    min-width: 210px;
}

.owner-admin-v2 .table-wrap {
    overflow: hidden;
}

.owner-admin-v2 table {
    min-width: 980px;
}

.owner-admin-v2 th,
.owner-admin-v2 td {
    padding: 16px;
}

.owner-admin-v2 tbody tr:hover td {
    background: #fbfcfe;
}

.owner-admin-v2 td strong {
    color: #101828;
}

.owner-admin-v2 .muted-line {
    display: block;
    margin-top: 4px;
    font-size: 0.86rem;
}

.owner-admin-v2 .status-pill {
    display: inline-flex;
    min-width: auto;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-color: transparent;
    padding: 4px 10px;
    color: #344054;
    background: #eef2f7;
}

.owner-admin-v2 .status-active,
.owner-admin-v2 .status-complete,
.owner-admin-v2 .status-paid,
.owner-admin-v2 .status-approved {
    color: #047857;
    background: #d1fae5;
}

.owner-admin-v2 .status-draft,
.owner-admin-v2 .status-pending,
.owner-admin-v2 .status-new {
    color: #92400e;
    background: #fef3c7;
}

.owner-admin-v2 .status-cancelled,
.owner-admin-v2 .status-rejected,
.owner-admin-v2 .status-failed {
    color: #b42318;
    background: #fee2e2;
}

.owner-admin-v2 .language-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    min-width: 34px;
    border-radius: 999px;
    margin-right: 6px;
    color: #075985;
    background: #e0f2fe;
    font-size: 0.78rem;
    font-weight: 900;
}

.owner-admin-v2 .search {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.owner-admin-v2 .search a {
    color: #047857;
}

.owner-admin-v2 .upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-admin-v2 .upload-card:hover,
.store-card:hover,
.quick-setting-card:hover {
    border-color: #10b981;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.owner-admin-v2 .settings-section + .settings-section {
    margin-top: 22px;
}

@media (max-width: 980px) {
    .store-card-grid,
    .owner-admin-v2 .metric-grid,
    .owner-admin-v2 .upload-grid {
        grid-template-columns: 1fr;
    }

    .owner-admin-v2 .table-wrap {
        overflow-x: auto;
    }
}

@media (max-width: 720px) {
    .owner-admin-v2 .app-shell {
        width: min(100% - 24px, 1240px);
    }

    .store-card,
    .empty-panel,
    .owner-admin-v2 .owner-hero {
        padding: 18px;
    }

    .store-card-actions .button,
    .owner-admin-v2 .toolbar-actions .button {
        width: 100%;
    }
}

.product-options-panel {
    margin-top: 22px;
}

.option-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.option-editor-table {
    min-width: 980px;
    border-collapse: collapse;
}

.option-editor-table th,
.option-editor-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.option-editor-table th {
    color: #667085;
    background: #f9fafb;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.option-editor-table input,
.option-editor-table select,
.option-editor-table textarea {
    width: 100%;
    min-height: 38px;
    margin: 0;
}

.option-editor-table input[type="color"] {
    min-width: 48px;
    padding: 2px;
}

.option-editor-table-small {
    min-width: 720px;
}

.option-group-card {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fbfcfe;
}

.mini-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #344054;
    font-weight: 800;
}

.mini-check input {
    width: auto;
    min-height: auto;
    accent-color: #10b981;
}


.preset-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.preset-check-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 92px;
    margin: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    padding: 14px;
    color: #0f172a;
    background: #fff;
}

.preset-check-card input {
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.preset-check-card span,
.preset-check-card strong,
.preset-check-card small,
.preset-check-card em {
    display: block;
}

.preset-check-card strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.preset-check-card small,
.preset-check-card em {
    margin-top: 5px;
    color: #64748b;
    font-size: 0.82rem;
    font-style: normal;
}

.option-editor-table-presets th:nth-child(1),
.option-editor-table-presets th:nth-child(2) {
    min-width: 190px;
}

.option-editor-table-compact {
    min-width: 620px;
}

/* Product presets owner UI. */
.preset-config-form {
    display: grid;
    gap: 22px;
}

.preset-intro-panel,
.preset-section,
.preset-save-bar {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.preset-intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
}

.preset-intro-panel h2,
.preset-section-heading h2,
.preset-template-header h3 {
    margin: 0;
    color: #101828;
}

.preset-intro-panel p,
.preset-section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.preset-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(76px, 1fr));
    gap: 10px;
}

.preset-stats span {
    display: grid;
    gap: 4px;
    min-height: 72px;
    align-content: center;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 10px 12px;
    color: #667085;
    background: #f9fafb;
    font-size: 0.82rem;
    font-weight: 800;
}

.preset-stats strong {
    color: #101828;
    font-size: 1.35rem;
}

.preset-section {
    overflow: hidden;
}

.preset-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 20px 22px;
    background: #fbfcfe;
}

.preset-section-heading > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
}

.preset-section-heading p {
    grid-column: 2;
}

.preset-section-heading a {
    color: #047857;
    font-weight: 900;
    white-space: nowrap;
}

.preset-step {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: #111827;
    font-weight: 900;
}

.preset-color-grid,
.preset-size-grid,
.preset-field-grid,
.preset-template-list {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.preset-color-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.preset-size-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.preset-field-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.preset-template-list {
    grid-template-columns: 1fr;
}

.preset-color-card,
.preset-size-card,
.preset-field-card,
.preset-template-card {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
}

.preset-color-card.is-empty,
.preset-size-card.is-empty,
.preset-field-card.is-empty {
    background: #fbfcfe;
}

.preset-card-topline,
.preset-template-header,
.preset-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.preset-card-topline strong,
.preset-template-header span {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.preset-toggle-row {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.preset-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    margin: 0;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    padding: 5px 10px;
    color: #344054;
    background: #f9fafb;
    font-size: 0.82rem;
    font-weight: 900;
}

.preset-toggle input {
    width: 15px;
    min-height: 15px;
    margin: 0;
    accent-color: #10b981;
}

.swatch-picker {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    margin: 14px 0 0;
}

.swatch-picker input[type="color"] {
    min-height: 44px;
    margin: 0;
    padding: 3px;
}

.swatch-picker span {
    display: block;
    width: 44px;
    height: 44px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
}

.preset-card-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.preset-card-fields-compact {
    grid-template-columns: 1fr 1fr;
}

.preset-card-fields label {
    margin: 0;
    color: #667085;
    font-size: 0.82rem;
    font-weight: 900;
}

.preset-card-fields input,
.preset-card-fields select,
.preset-card-fields textarea,
.preset-item-row input {
    min-height: 42px;
    margin-top: 7px;
}

.preset-template-card {
    padding: 0;
    overflow: hidden;
}

.preset-template-header {
    padding: 16px;
    border-bottom: 1px solid #e4e7ec;
    background: #fbfcfe;
}

.preset-template-header h3 {
    margin-top: 4px;
    font-size: 1.06rem;
}

.preset-template-card > .preset-card-fields,
.preset-item-grid {
    padding: 0 16px;
}

.preset-item-grid {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.preset-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 110px auto;
    gap: 10px;
    align-items: center;
}

.preset-item-row input {
    margin: 0;
}

.preset-save-bar {
    position: sticky;
    bottom: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.preset-save-bar a {
    color: #047857;
    font-weight: 900;
}

@media (max-width: 980px) {
    .preset-intro-panel,
    .preset-card-fields,
    .preset-item-row {
        grid-template-columns: 1fr;
    }

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

    .preset-template-header,
    .preset-card-topline,
    .preset-save-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .preset-toggle-row {
        justify-content: flex-start;
    }

    .preset-save-bar button {
        width: 100%;
    }
}

.preset-add-card,
.preset-add-option {
    width: 100%;
    min-height: 48px;
    border: 1px dashed #98a2b3;
    border-radius: 8px;
    color: #047857;
    background: #f0fdf4;
    box-shadow: none;
    font-weight: 900;
}

.preset-add-card:hover,
.preset-add-option:hover {
    border-color: #10b981;
    background: #dcfce7;
}

.preset-add-card:disabled,
.preset-add-option:disabled {
    color: #98a2b3;
    border-color: #e4e7ec;
    background: #f9fafb;
}

.preset-item-grid .preset-add-option {
    margin-top: 2px;
}

.attach-presets-panel {
    background: #ffffff;
}

.attach-section {
    display: grid;
    gap: 14px;
}

.attach-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfe;
}

.attach-section-heading-compact {
    margin-bottom: 14px;
}

.attach-section-heading h2 {
    margin: 0;
    color: #101828;
    font-size: 1.05rem;
}

.attach-section-heading p {
    margin: 5px 0 0;
    color: #667085;
    line-height: 1.45;
}

.attach-section-heading .preset-add-card {
    width: auto;
    min-width: 190px;
    padding: 0 16px;
}

.product-variant-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.product-variant-card {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
}

.product-variant-card .preset-card-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-variant-card .preset-card-fields label:last-child {
    grid-column: span 2;
}

.product-attach-grid {
    margin-top: 0;
}

.product-attach-card {
    cursor: pointer;
}

.product-attach-card.is-selected {
    border-color: #10b981;
    background: #f0fdf4;
}

.product-attach-card input[type="checkbox"] {
    accent-color: #10b981;
}

@media (max-width: 760px) {
    .attach-section-heading,
    .attach-section-heading-compact {
        flex-direction: column;
    }

    .attach-section-heading .preset-add-card {
        width: 100%;
    }

    .product-variant-card .preset-card-fields {
        grid-template-columns: 1fr;
    }

    .product-variant-card .preset-card-fields label:last-child {
        grid-column: auto;
    }
}

.store-public-link {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 12px 14px;
    background: #f9fafb;
}

.store-public-link span {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.store-public-link a {
    color: #047857;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.admin-list-section {
    overflow: hidden;
}

.admin-list {
    display: grid;
    gap: 0;
}

.admin-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    border-top: 1px solid #e4e7ec;
    padding: 16px 18px;
    background: #ffffff;
}

.admin-list-item:first-child {
    border-top: 0;
}

.admin-list-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.admin-list-main strong {
    display: block;
    color: #101828;
    font-size: 1rem;
}

.admin-thumb {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    color: #047857;
    background: #f0fdf4;
    font-weight: 900;
}

.admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-list-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #667085;
    font-weight: 800;
    white-space: nowrap;
}

.admin-list-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-list-actions form {
    margin: 0;
}

.admin-drawer {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.admin-edit-drawer {
    margin: 0 18px 18px;
}

.admin-empty-panel {
    margin: 18px;
}

@media (max-width: 900px) {
    .admin-list-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .admin-list-meta,
    .admin-list-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.inline-edit-drawer {
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -1px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.category-inline-sort {
    gap: 12px;
}

.category-inline-sort form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.category-inline-sort input[type="number"] {
    width: 74px;
    min-height: 36px;
    margin: 0;
    padding: 0 9px;
    text-align: center;
    font-weight: 800;
}

.icon-actions {
    gap: 6px;
}

.icon-button {
    display: inline-grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    place-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0;
    color: #344054;
    background: #ffffff;
    box-shadow: none;
}

.icon-button:hover {
    color: #047857;
    border-color: #10b981;
    background: #f0fdf4;
}

.icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-button-danger {
    color: #b42318;
    border-color: #fecaca;
    background: #fff7f7;
}

.icon-button-danger:hover {
    color: #991b1b;
    border-color: #fca5a5;
    background: #fee2e2;
}

.autosave-status {
    min-width: 48px;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 900;
}

.autosave-status[data-state="saving"] {
    color: #92400e;
}

.autosave-status[data-state="saved"] {
    color: #047857;
}

.autosave-status[data-state="error"] {
    color: #b42318;
}

.preset-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.preset-remove-button {
    min-height: 32px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: 5px 11px;
    color: #b42318;
    background: #fff5f5;
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 900;
}

.preset-remove-button:hover {
    border-color: #f87171;
    background: #fee2e2;
}

.preset-item-row .preset-remove-button {
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
}

@media (max-width: 980px) {
    .preset-row-actions {
        justify-content: flex-start;
    }
}

.preset-remove-button {
    display: inline-grid;
    place-items: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 999px;
    font-size: 1.1rem;
    line-height: 1;
}

.preset-remove-button span {
    display: block;
    transform: translateY(-1px);
}

.preset-item-row .preset-remove-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 999px;
}

.preset-switch {
    position: relative;
    gap: 8px;
    min-width: 76px;
    border-color: transparent;
    padding: 4px 8px 4px 4px;
    background: transparent;
}

.preset-switch input {
    appearance: none;
    position: relative;
    width: 36px;
    min-width: 36px;
    height: 20px;
    min-height: 20px;
    border: 0;
    border-radius: 999px;
    background: #d0d5dd;
    cursor: pointer;
    transition: background 0.18s ease;
}

.preset-switch input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.22);
    transition: transform 0.18s ease;
}

.preset-switch input:checked {
    background: #10b981;
}

.preset-switch input:checked::after {
    transform: translateX(16px);
}

.preset-switch:focus-within input {
    outline: 3px solid rgba(16, 185, 129, 0.18);
    outline-offset: 2px;
}

.preset-card-topline .preset-row-actions,
.preset-toggle-row {
    align-items: center;
}

.preset-item-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 110px auto 34px;
}

@media (max-width: 980px) {
    .preset-item-row {
        grid-template-columns: 1fr;
    }
}

.preset-row-actions,
.preset-toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.preset-remove-button {
    flex: 0 0 auto;
    color: #b42318;
}

.preset-remove-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.preset-item-row {
    align-items: end;
}

.preset-item-row .preset-switch,
.preset-item-row .preset-remove-button {
    margin-top: 7px;
}

.admin-thumb-wide {
    width: 116px;
    height: 72px;
    border-radius: 8px;
}

.admin-thumb-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-slide-item .admin-list-main {
    min-width: 0;
}

.home-slide-list .admin-list-item {
    align-items: center;
}

/* Owner checkout configuration hub. */
.commerce-config-shell .owner-hero {
    align-items: flex-start;
}

.config-overview-grid,
.config-preset-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.config-overview-grid article,
.config-preset-card {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.config-overview-grid span,
.config-preset-card span,
.admin-list-meta-text,
.config-card-head span {
    display: block;
    color: #667085;
    font-size: 0.86rem;
    font-weight: 800;
}

.config-overview-grid strong {
    display: block;
    margin: 8px 0 4px;
    color: #101828;
    font-size: 1.65rem;
    line-height: 1;
}

.config-overview-grid small {
    color: #667085;
    font-weight: 700;
}

.config-preset-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 18px;
    margin: 0;
}

.config-preset-card {
    display: grid;
    gap: 10px;
    margin: 0;
}

.config-preset-card strong,
.config-card-head strong {
    color: #101828;
    font-size: 1rem;
}

.config-preset-card button {
    width: fit-content;
    min-height: 38px;
    padding: 0 16px;
}

.config-card-compact form {
    display: grid;
    gap: 14px;
}

.config-method-list {
    border-top: 1px solid #e4e7ec;
}

.config-method-item {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.config-edit-details {
    position: relative;
}

.config-edit-details > summary,
.config-edit-block > summary,
.config-add-drawer > summary {
    cursor: pointer;
    list-style: none;
}

.config-edit-details > summary::-webkit-details-marker,
.config-edit-block > summary::-webkit-details-marker,
.config-add-drawer > summary::-webkit-details-marker {
    display: none;
}

.config-inline-form {
    position: absolute;
    right: 0;
    z-index: 20;
    width: min(920px, calc(100vw - 54px));
    margin-top: 10px;
    padding: 18px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.config-add-drawer {
    margin: 18px;
}

.config-add-drawer > summary.button {
    display: inline-flex;
    width: fit-content;
}

.config-shipping-card {
    border: 1px solid #e4e7ec !important;
    border-radius: 8px !important;
    margin-bottom: 14px;
}

.config-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.config-edit-block {
    margin: 12px 0 18px;
}

.config-edit-block > summary {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 14px;
    color: #344054;
    background: #ffffff;
    font-weight: 900;
}

.config-edit-block[open] > summary {
    margin-bottom: 14px;
}

.config-zone-table {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #e4e7ec;
}

.config-zone-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.35fr) minmax(120px, 1fr) 130px 96px 96px 82px 52px auto;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.config-zone-row input,
.config-zone-row select {
    min-height: 40px;
    margin: 0;
}

.config-zone-delete {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 8px;
}

.config-zone-add-row {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed #d0d5dd;
}

.switch-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
}

.switch-mini input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-mini span {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d0d5dd;
    transition: background 0.18s ease;
}

.switch-mini span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: transform 0.18s ease;
}

.switch-mini input:checked + span {
    background: #10b981;
}

.switch-mini input:checked + span::after {
    transform: translateX(18px);
}

.settings-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1180px) {
    .config-overview-grid,
    .config-preset-grid,
    .settings-two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .config-zone-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .config-overview-grid,
    .config-preset-grid,
    .settings-two-column,
    .config-method-item {
        grid-template-columns: 1fr;
    }

    .config-preset-grid {
        padding: 14px;
    }

    .config-inline-form {
        position: static;
        width: 100%;
        margin-top: 12px;
        box-shadow: none;
    }

    .config-zone-row {
        grid-template-columns: 1fr;
    }

    .config-zone-delete {
        justify-content: flex-start;
    }
}

/* Owner dashboard simplification: task-first, non-technical control panel. */
.owner-dashboard-simple .app-shell {
    width: min(1180px, calc(100% - 36px));
}

.owner-welcome-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 48%, #ecfdf5 100%);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.owner-welcome-panel h1 {
    margin: 6px 0 8px;
    color: #101828;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
}

.owner-welcome-panel p:not(.eyebrow) {
    max-width: 660px;
    margin: 0;
    color: #667085;
    font-size: 1.02rem;
}

.owner-empty-start {
    margin-top: 18px;
}

.owner-store-grid {
    grid-template-columns: 1fr;
    margin-top: 22px;
}

.owner-store-card {
    padding: 24px;
}

.owner-store-card h2 {
    margin-top: 14px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.owner-next-step,
.store-public-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 14px 16px;
    background: #f9fafb;
}

.owner-next-step span,
.store-public-link span {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.owner-next-step strong,
.store-public-link a {
    color: #101828;
    font-weight: 900;
}

.store-public-link a {
    overflow-wrap: anywhere;
}

.owner-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.owner-action-card {
    display: grid;
    gap: 6px;
    min-height: 138px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 18px;
    color: #101828;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.owner-action-card:hover {
    transform: translateY(-2px);
    border-color: #10b981;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.owner-action-card span {
    color: #047857;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.owner-action-card strong {
    color: #101828;
    font-size: 1.05rem;
}

.owner-action-card small {
    color: #667085;
    font-weight: 700;
    line-height: 1.45;
}

.owner-action-card.primary {
    color: #ffffff;
    border-color: #111827;
    background: #111827;
}

.owner-action-card.primary span,
.owner-action-card.primary strong,
.owner-action-card.primary small {
    color: #ffffff;
}

@media (max-width: 980px) {
    .owner-welcome-panel,
    .owner-next-step,
    .store-public-link {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 620px) {
    .owner-dashboard-simple .app-shell {
        width: min(100% - 24px, 1180px);
    }

    .owner-welcome-panel,
    .owner-store-card {
        padding: 18px;
    }

    .owner-action-grid {
        grid-template-columns: 1fr;
    }
}

/* Per-store Countries & Areas management. */
.countries-area-shell .owner-hero p:not(.eyebrow) {
    max-width: 780px;
}

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

.area-help-grid article {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.area-help-grid strong {
    display: block;
    color: #101828;
    font-size: 1rem;
}

.area-help-grid span {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-weight: 700;
    line-height: 1.45;
}

.area-settings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.area-admin-list .area-list-item {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.area-admin-list .admin-list-meta {
    gap: 12px;
}

@media (max-width: 980px) {
    .area-help-grid,
    .area-settings-grid,
    .area-admin-list .area-list-item {
        grid-template-columns: 1fr;
    }

    .area-admin-list .admin-list-meta {
        justify-content: flex-start;
    }
}

.shipping-overview-shell .owner-hero {
    align-items: flex-start;
}

.shipping-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.shipping-choice-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shipping-choice-card.primary {
    border-color: #111827;
    box-shadow: 0 22px 52px rgba(15, 23, 42, .14);
}

.shipping-choice-card h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 0;
}

.shipping-choice-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.choice-step {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 11px;
    background: #f3f4f6;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.shipping-choice-card.primary .choice-step {
    background: #111827;
    color: #fff;
}

.choice-flow,
.shipping-rule-list {
    display: grid;
    gap: 10px;
}

.choice-flow span,
.shipping-rule-list article {
    padding: 13px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #111827;
    font-weight: 700;
}

.choice-status {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.choice-status strong {
    font-size: 20px;
}

.choice-status span,
.shipping-rule-list span {
    color: #6b7280;
    font-weight: 600;
}

.shipping-rule-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shipping-rule-list article {
    display: grid;
    gap: 8px;
    align-content: start;
}

@media (max-width: 760px) {
    .shipping-choice-grid,
    .shipping-rule-list {
        grid-template-columns: 1fr;
    }

    .shipping-choice-card {
        padding: 18px;
        border-radius: 14px;
    }
}

.common-shipping-simple .shipping-start-card,
.common-shipping-card {
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.shipping-start-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.shipping-start-card h3,
.common-shipping-card h3,
.country-rule-panel h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0;
}

.common-shipping-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
}

.common-shipping-head p {
    color: #5b6472;
    margin: 8px 0 0;
    max-width: 720px;
    line-height: 1.55;
}

.common-method-form {
    margin-top: 18px;
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
}

.country-rule-panel {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
}

.panel-heading.compact {
    margin-bottom: 12px;
}

.country-rule-list {
    display: grid;
    gap: 10px;
}

.country-rule-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.country-rule-row > form:first-child {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(130px, .9fr) minmax(110px, .75fr) minmax(110px, .75fr) auto auto;
    gap: 10px;
    align-items: end;
}

.country-rule-row label,
.country-rule-form label,
.common-method-form label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.country-rule-row input,
.country-rule-row select,
.country-rule-form input,
.country-rule-form select,
.common-method-form input,
.common-method-form select {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid #d7dee8;
    background: #fff;
    padding: 0 11px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.country-rule-add {
    margin-top: 14px;
}

.country-rule-add > summary.button {
    width: fit-content;
}

.compact-empty {
    padding: 18px;
    margin-bottom: 12px;
}

.advanced-shipping-details {
    margin-top: 18px;
    border-top: 1px dashed #d7dee8;
    padding-top: 14px;
}

.advanced-shipping-details > summary {
    cursor: pointer;
    color: #475569;
    font-weight: 800;
}

@media (max-width: 980px) {
    .shipping-start-card,
    .common-shipping-head,
    .country-rule-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .country-rule-row > form:first-child {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .country-rule-row > form:first-child {
        grid-template-columns: 1fr;
    }
}

.shipping-single-page .owner-hero {
    margin-bottom: 22px;
}

.shipping-setup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.shipping-question-card {
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    display: grid;
    gap: 18px;
}

.shipping-question-card.primary {
    border-color: #111827;
    box-shadow: 0 22px 52px rgba(15, 23, 42, .14);
}

.shipping-question-head {
    display: grid;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f7;
}

.shipping-question-head h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: 0;
}

.shipping-question-head p {
    margin: 8px 0 0;
    color: #5b6472;
    line-height: 1.55;
}

.shipping-simple-form {
    display: grid;
    gap: 14px;
}

.shipping-simple-form label,
.simple-rule-row label {
    display: grid;
    gap: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.shipping-simple-form input,
.shipping-simple-form select,
.simple-rule-row input,
.simple-rule-row select {
    min-height: 44px;
    border-radius: 11px;
    border: 1px solid #d7dee8;
    background: #fff;
    padding: 0 12px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.large-switch {
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 15px !important;
}

.shipping-sub-panel {
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

.simple-rule-list {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.simple-rule-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.simple-rule-row > form:first-child {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(150px, 1.2fr) minmax(100px, .7fr) auto auto;
    gap: 10px;
    align-items: end;
}

.simple-rule-row.country-row > form:first-child {
    grid-template-columns: minmax(170px, 1.3fr) minmax(120px, .9fr) minmax(95px, .65fr) minmax(95px, .65fr) auto auto;
}

@media (max-width: 1120px) {
    .shipping-setup-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .simple-rule-row,
    .simple-rule-row > form:first-child,
    .simple-rule-row.country-row > form:first-child {
        grid-template-columns: 1fr;
    }
}
