:root {
    --pk-teal: #1da47a;
    --pk-teal-strong: #138660;
    --pk-blue: #1f7bc2;
    --pk-purple: #5a48ac;
    --pk-ink: #151515;
    --pk-muted: #667085;
    --pk-bg: #f7f8fa;
    --pk-surface: #fff;
    --pk-soft: #f1f5f9;
    --pk-border: #e4e7ec;
    --pk-border-strong: #cbd5e1;
    --pk-success: #16a34a;
    --pk-warning: #f59e0b;
    --pk-danger: #dc2626;
    --paper: var(--pk-bg);
    --surface: var(--pk-surface);
    --surface-raised: var(--pk-surface);
    --ink: var(--pk-ink);
    --muted: var(--pk-muted);
    --line: var(--pk-border);
    --line-strong: var(--pk-border-strong);
    --accent: var(--pk-teal);
    --accent-strong: var(--pk-teal-strong);
    --success: var(--pk-success);
    --danger: var(--pk-danger);
    --radius-sm: 10px;
    --radius-md: 14px;
    --shadow-soft: 0 18px 45px rgb(15 23 42 / 8%);
    --shadow-control: 0 1px 2px rgb(15 23 42 / 6%);
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
}

* {
    box-sizing: border-box;
}

html {
    color: var(--ink);
    font-family: Inter, "Plus Jakarta Sans", Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgb(29 164 122 / 8%), transparent 300px),
        radial-gradient(circle at top right, rgb(90 72 172 / 7%), transparent 320px),
        var(--paper);
}

a {
    color: inherit;
}

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

.app-shell {
    width: min(100%, 960px);
    min-height: 100vh;
    margin: 0 auto;
    background: rgb(255 255 255 / 86%);
    border-inline: 1px solid var(--line);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 var(--space-4);
    background: rgb(255 255 255 / 92%);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    max-width: 190px;
    min-height: 48px;
    text-decoration: none;
}

.brand img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 25px;
    object-fit: contain;
}

.store-brand {
    max-width: min(72%, 260px);
}

.store-brand img {
    width: auto;
    max-width: 100%;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-action {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 48px;
    padding: 0 var(--space-3);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-control);
    cursor: pointer;
    font-weight: 700;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.topbar-action:hover {
    background: var(--surface-raised);
    border-color: rgb(31 123 194 / 28%);
    box-shadow: 0 8px 18px rgb(15 23 42 / 7%);
}

.topbar-action:active,
.primary-action:active,
.secondary-action:active,
.danger-action:active {
    transform: translateY(1px);
}

.topbar-action svg,
.primary-action svg,
.secondary-action svg,
.danger-action svg,
.metric-icon svg,
.empty-icon svg,
.icon-button svg,
.file-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.hidden {
    display: none;
}

.page {
    padding: var(--space-6) var(--space-4);
}

.auth-panel,
.empty-state,
.content-card {
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.auth-panel,
.empty-state {
    width: min(100%, 460px);
    padding: var(--space-5);
}

.auth-panel {
    margin: var(--space-6) auto 0;
}

.content-card {
    width: min(100%, 680px);
    padding: var(--space-5);
}

.wide-card {
    width: min(100%, 1040px);
}

.section-header {
    margin-bottom: var(--space-5);
}

.eyebrow {
    margin: 0 0 var(--space-1);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 2rem;
    line-height: 1.1;
}

h2 {
    margin-bottom: var(--space-2);
    font-size: 1.2rem;
}

.form-stack {
    display: grid;
    gap: var(--space-4);
}

.field {
    display: grid;
    gap: var(--space-2);
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 var(--space-4);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-control);
    outline: 3px solid transparent;
    transition: border-color 160ms ease, outline-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
    padding-block: var(--space-3);
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    outline-color: rgb(29 164 122 / 16%);
    box-shadow: 0 0 0 1px rgb(29 164 122 / 20%), var(--shadow-control);
}

.field-error {
    color: var(--danger);
    font-size: 0.92rem;
    font-weight: 600;
}

.primary-action,
.secondary-action,
.danger-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 52px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-action {
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 10px 22px rgb(29 164 122 / 20%);
}

.primary-action:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    transform: translateY(-1px);
}

.secondary-action {
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
}

.secondary-action:hover {
    color: var(--pk-blue);
    background: rgb(31 123 194 / 5%);
    border-color: rgb(31 123 194 / 32%);
}

.danger-action {
    color: #fff;
    background: var(--danger);
    border: 1px solid var(--danger);
}

.url-field {
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-control);
}

.money-field {
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-control);
}

.url-field > span {
    flex: 0 0 auto;
    padding-left: var(--space-4);
    font-weight: 800;
    white-space: nowrap;
}

.money-field > span {
    flex: 0 0 auto;
    min-width: 64px;
    padding-left: var(--space-4);
    font-weight: 800;
}

.url-field input,
.money-field input {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.password-field {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-control);
    outline: 3px solid transparent;
    transition: border-color 160ms ease, outline-color 160ms ease, box-shadow 160ms ease;
}

.password-field:focus-within {
    border-color: var(--accent);
    outline-color: rgb(29 164 122 / 16%);
    box-shadow: 0 0 0 1px rgb(29 164 122 / 20%), var(--shadow-control);
}

.password-field input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: 0;
}

.password-field input:focus {
    border: 0;
    outline: 0;
    box-shadow: none;
}

.icon-button {
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 52px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-left: 1px solid var(--line);
    cursor: pointer;
}

.icon-button:hover {
    color: var(--ink);
    background: rgb(31 123 194 / 7%);
}

.file-field {
    position: relative;
    display: grid;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-control);
}

.file-field input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 48px;
    padding: 0 var(--space-4);
    color: var(--ink);
    background: var(--pk-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-weight: 800;
}

.file-name {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.check-field {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 48px;
    font-weight: 700;
}

.check-field input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.muted-field {
    opacity: 0.62;
}

.notice {
    width: min(100%, 680px);
    margin: 0 0 var(--space-4);
    padding: var(--space-3) var(--space-4);
    color: var(--ink);
    background: rgb(31 123 194 / 8%);
    border: 1px solid rgb(31 123 194 / 18%);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.notice.success {
    color: var(--success);
    background: rgb(22 163 74 / 9%);
    border-color: rgb(22 163 74 / 22%);
}

.notice.warning {
    color: #92400e;
    background: rgb(245 158 11 / 12%);
    border-color: rgb(245 158 11 / 24%);
}

.row-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-2);
}

.table-card {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-3);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: var(--space-3);
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}

.admin-table th {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 900;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table th:last-child,
.admin-table td:last-child {
    position: sticky;
    right: 0;
    background: var(--surface-raised);
    box-shadow: -12px 0 18px rgb(248 250 252 / 90%);
}

.admin-table td strong,
.admin-table td small {
    display: block;
}

.admin-table td small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-table td small.mobile-meta {
    display: none;
}

.align-right {
    text-align: right;
}

.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-2);
}

.admin-table-actions form {
    display: inline-flex;
}

.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 var(--space-3);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.table-action:hover {
    color: var(--pk-blue);
    background: rgb(31 123 194 / 5%);
    border-color: rgb(31 123 194 / 26%);
}

.table-action.success {
    color: var(--success);
}

.table-action.danger {
    color: var(--danger);
}

.table-action:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: 64px;
    padding: var(--space-3);
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.list-row:hover {
    background: rgb(31 123 194 / 6%);
}

.list-row small,
.muted-text,
.detail-label {
    display: block;
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 var(--space-3);
    color: var(--muted);
    background: rgb(102 112 133 / 10%);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: capitalize;
}

.status-pill.active {
    color: var(--success);
    background: rgb(22 163 74 / 12%);
}

.status-pill.suspended {
    color: var(--danger);
    background: rgb(220 38 38 / 12%);
}

.status-pill.pending {
    color: #a16207;
    background: rgb(245 158 11 / 14%);
}

.status-pill.voided {
    color: var(--danger);
    background: rgb(220 38 38 / 12%);
}

.browse-home,
.sell-main,
.sell-header {
    width: min(100%, 1120px);
    margin-inline: auto;
}

.browse-home {
    display: grid;
    gap: var(--space-5);
}

.browse-home-header {
    display: grid;
    gap: var(--space-4);
}

.browse-home-header p {
    margin: var(--space-2) 0 0;
    color: var(--muted);
    font-weight: 700;
}

.browse-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.browse-categories span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 var(--space-3);
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
}

.browse-shop-list {
    display: grid;
    gap: var(--space-3);
}

.browse-shop-row {
    display: grid;
    align-items: center;
    gap: var(--space-3);
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 84px;
    padding: var(--space-3);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-decoration: none;
}

.browse-shop-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    color: #fff;
    background: var(--pk-teal);
    border-radius: 10px;
    font-weight: 900;
}

.browse-shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.browse-shop-row small {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.sell-page {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Inter, "Plus Jakarta Sans", Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sell-header {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-4);
}

.sell-logo {
    display: inline-flex;
    width: 176px;
    min-height: 44px;
    align-items: center;
}

.sell-logo img {
    width: 100%;
    height: auto;
}

.sell-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.sell-nav a,
.sell-link {
    color: var(--pk-blue);
    font-weight: 800;
    text-decoration: none;
}

.sell-nav .sell-nav-cta,
.sell-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 var(--space-4);
    color: #fff;
    background: var(--pk-teal);
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.sell-main {
    display: grid;
    gap: 56px;
    padding: var(--space-3) var(--space-4) 72px;
}

.sell-hero {
    display: grid;
    gap: var(--space-5);
    padding-top: var(--space-4);
}

.sell-hero-copy {
    display: grid;
    gap: var(--space-4);
}

.sell-hero h1 {
    max-width: 8.6em;
    font-size: clamp(3rem, 14vw, 4.4rem);
    line-height: 0.94;
}

.sell-hero p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    font-weight: 700;
}

.sell-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.sell-url {
    display: inline-flex;
    width: fit-content;
    padding-block: var(--space-2);
    color: var(--ink) !important;
    border-bottom: 3px solid var(--pk-purple);
    font-weight: 900 !important;
}

.sell-screenshot {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.sell-screenshot img {
    width: 100%;
    display: block;
}

.sell-benefits {
    display: grid;
    gap: var(--space-4);
}

.sell-benefits h2,
.sell-final h2 {
    margin: 0;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    line-height: 1.08;
}

.sell-benefits ol {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.sell-benefits li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--line);
}

.sell-benefits li span {
    color: var(--pk-purple);
    font-weight: 900;
}

.sell-benefits li strong {
    font-size: 1.18rem;
}

.sell-steps {
    display: grid;
    gap: var(--space-2);
    color: var(--muted);
    font-weight: 900;
}

.sell-steps span {
    display: block;
    padding-block: var(--space-2);
    border-bottom: 1px solid var(--line);
}

.sell-final {
    display: grid;
    gap: var(--space-4);
    padding-top: var(--space-2);
}

@media (min-width: 720px) {
    .browse-home-header,
    .sell-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .browse-shop-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sell-header {
        padding: var(--space-5) var(--space-4);
    }

    .sell-hero {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
        padding-top: var(--space-6);
    }

    .sell-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }

    .sell-steps span {
        border-top: 1px solid var(--line);
    }

    .sell-final {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
        border-top: 1px solid var(--line);
        padding-top: var(--space-6);
    }
}

.detail-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sales-list {
    width: min(100%, 760px);
}

.sales-row {
    align-items: flex-start;
}

.sales-summary {
    display: grid;
    gap: var(--space-1);
    min-width: 0;
}

.sales-summary strong,
.sales-summary small,
.sales-summary span {
    overflow-wrap: anywhere;
}

.sales-summary span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.sales-total {
    display: grid;
    justify-items: end;
    gap: var(--space-2);
    text-align: right;
    white-space: nowrap;
}

.store-hero {
    display: grid;
    align-items: center;
    gap: var(--space-5);
    grid-template-columns: 112px minmax(0, 1fr);
    width: min(100%, 760px);
    margin-bottom: var(--space-6);
}

.store-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    overflow: hidden;
    color: #fff;
    background: var(--pk-teal);
    border: 1px solid rgb(29 164 122 / 14%);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 32px rgb(15 23 42 / 10%);
    font-size: 2rem;
    font-weight: 900;
}

.store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-hero-copy {
    display: grid;
    gap: var(--space-3);
    min-width: 0;
}

.store-hero-copy h1 {
    overflow-wrap: anywhere;
}

.store-hero-copy p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.store-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    color: var(--muted);
    font-weight: 800;
}

.store-hero .primary-action {
    width: fit-content;
}

.store-products-header {
    margin-bottom: var(--space-3);
}

.store-product-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    width: min(100%, 760px);
}

.store-product-card {
    display: grid;
    overflow: hidden;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgb(15 23 42 / 5%);
}

.store-product-card.is-disabled {
    opacity: 0.72;
}

.store-product-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    color: var(--pk-blue);
    background: rgb(31 123 194 / 8%);
}

.store-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-product-image svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.store-product-body {
    display: grid;
    gap: var(--space-4);
    padding: var(--space-4);
}

.store-product-body h2 {
    margin-bottom: var(--space-1);
}

.store-product-body p {
    margin-bottom: 0;
    color: var(--muted);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.store-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.store-product-footer .status-pill {
    text-transform: none;
}

.product-list {
    display: grid;
    gap: var(--space-2);
}

.product-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
}

.product-row + .product-row {
    border-top: 1px solid var(--line);
}

.product-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    color: var(--pk-blue);
    background: rgb(31 123 194 / 8%);
    border: 1px solid rgb(31 123 194 / 15%);
    border-radius: var(--radius-sm);
}

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

.product-thumb svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.product-summary {
    display: grid;
    gap: var(--space-1);
    min-width: 0;
}

.product-summary strong,
.product-summary span {
    overflow-wrap: anywhere;
}

.product-summary > span {
    color: var(--muted);
    font-weight: 700;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.pos-layout {
    display: grid;
    align-items: start;
    gap: var(--space-4);
    grid-template-columns: minmax(0, 1fr) 300px;
}

.pos-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.pos-product,
.pos-cart {
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgb(15 23 42 / 5%);
}

.pos-product {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-3);
}

.pos-product h2 {
    margin: 0;
    font-size: 1rem;
}

.pos-product p {
    margin: var(--space-1) 0;
    color: var(--ink);
    font-weight: 800;
}

.pos-product small {
    color: var(--muted);
    font-weight: 700;
}

.pos-product.is-disabled {
    opacity: 0.66;
}

.pos-product .compact-action {
    width: 100%;
    min-height: 44px;
}

.pos-product .compact-action:disabled {
    color: var(--muted);
    background: var(--pk-soft);
    cursor: not-allowed;
}

.pos-cart {
    position: sticky;
    top: var(--space-4);
    padding: var(--space-4);
}

.checkout-form {
    display: grid;
    gap: var(--space-4);
}

.cart-header,
.cart-total,
.cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.cart-header h2,
.cart-total strong {
    margin: 0;
}

.cart-header span,
.cart-row span {
    color: var(--muted);
    font-weight: 700;
}

.cart-items {
    display: grid;
    gap: var(--space-3);
}

.cart-row {
    align-items: flex-start;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line);
}

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

.quantity-control {
    display: inline-grid;
    align-items: center;
    grid-template-columns: 36px 32px 36px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.quantity-control button {
    width: 36px;
    height: 36px;
    color: var(--ink);
    background: var(--surface);
    border: 0;
    cursor: pointer;
    font-weight: 900;
}

.quantity-control button:hover {
    background: rgb(31 123 194 / 7%);
}

.quantity-control strong {
    text-align: center;
}

.cart-total {
    min-height: 52px;
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}

.checkout-field {
    gap: var(--space-2);
}

.checkout-field input {
    min-height: 48px;
}

.change-preview strong {
    color: var(--pk-teal);
}

.primary-action:disabled,
.secondary-action:disabled,
.danger-action:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
}

.cart-clear-action {
    margin-top: var(--space-2);
}

.order-card {
    display: grid;
    gap: var(--space-5);
}

.success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: #fff;
    background: var(--success);
    border-radius: 999px;
    box-shadow: 0 12px 24px rgb(22 163 74 / 20%);
}

.success-mark svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.success-mark.is-muted {
    background: var(--danger);
    box-shadow: 0 12px 24px rgb(220 38 38 / 16%);
}

.receipt-lines,
.receipt-summary {
    display: grid;
    gap: var(--space-3);
}

.receipt-line,
.receipt-summary > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
}

.receipt-line span,
.receipt-summary span {
    color: var(--muted);
    font-weight: 700;
}

.change-line {
    min-height: 52px;
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}

.change-line strong {
    color: var(--pk-teal);
    font-size: 1.25rem;
}

.invoice-share {
    display: grid;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
}

.invoice-share a {
    color: var(--pk-blue);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.void-sale-form,
.voided-note {
    display: grid;
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
}

.voided-note {
    padding: var(--space-4);
    color: var(--danger);
    background: rgb(220 38 38 / 7%);
    border: 1px solid rgb(220 38 38 / 16%);
    border-radius: var(--radius-sm);
}

.voided-note span {
    color: var(--muted);
    font-weight: 700;
}

.invoice-vendor {
    display: grid;
    align-items: center;
    gap: var(--space-4);
    grid-template-columns: 64px minmax(0, 1fr);
}

.invoice-vendor-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    color: #fff;
    background: var(--pk-teal);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgb(29 164 122 / 14%);
}

.invoice-vendor-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.invoice-vendor h1 {
    margin-bottom: var(--space-2);
    overflow-wrap: anywhere;
}

.invoice-vendor-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    color: var(--muted);
    font-weight: 700;
}

.invoice-vendor-details span {
    overflow-wrap: anywhere;
}

.full-action {
    width: 100%;
}

.order-number-block h2 {
    margin-bottom: 0;
    font-size: 1.55rem;
}

.metric-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.metric {
    position: relative;
    padding: var(--space-4);
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgb(15 23 42 / 5%);
}

.metric-icon,
.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-3);
    color: var(--pk-blue);
    background: rgb(31 123 194 / 9%);
    border: 1px solid rgb(31 123 194 / 16%);
    border-radius: var(--radius-sm);
}

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

.metric strong {
    display: block;
    margin-top: var(--space-2);
    font-size: 2rem;
    line-height: 1;
}

.empty-state {
    margin-top: var(--space-4);
    box-shadow: 0 8px 20px rgb(15 23 42 / 5%);
}

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

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.compact-row {
    margin-top: calc(var(--space-4) * -1);
    margin-bottom: var(--space-5);
}

.action-row form {
    display: inline-flex;
}

@media (max-width: 520px) {
    .app-shell {
        border-inline: 0;
    }

    .auth-panel,
    .empty-state,
    .content-card {
        padding: var(--space-4);
    }

    .brand {
        max-width: 178px;
    }

    .action-row > * {
        width: 100%;
    }

    .action-row form > .primary-action,
    .action-row form > .danger-action,
    .action-row form > .secondary-action {
        width: 100%;
    }

    .row-header {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .header-actions {
        width: 100%;
        justify-self: stretch;
    }

    .header-actions > .primary-action,
    .header-actions > .secondary-action {
        flex: 1 1 140px;
    }

    .row-header > .secondary-action {
        width: 100%;
    }

    .sales-row {
        display: grid;
        align-items: stretch;
    }

    .sales-total {
        justify-items: stretch;
        text-align: left;
        white-space: normal;
    }

    .sales-total .status-pill {
        justify-self: start;
    }

    .browse-home-header .secondary-action {
        width: 100%;
    }

    .sell-header {
        padding-inline: var(--space-4);
    }

    .sell-nav {
        align-items: stretch;
    }

    .sell-nav a:not(.sell-nav-cta) {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .sell-nav-cta,
    .sell-primary {
        width: 100%;
    }

    .sell-hero h1 {
        font-size: 3rem;
    }

    .sell-actions {
        align-items: stretch;
    }

    .sell-screenshot {
        max-height: 520px;
    }

    .sell-steps {
        gap: 0;
    }

    .store-hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .store-meta {
        justify-content: center;
    }

    .store-hero .primary-action {
        width: 100%;
    }

    .store-product-grid {
        grid-template-columns: 1fr;
    }

    .product-row {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        align-items: start;
    }

    .product-row .compact-action {
        min-height: 44px;
        padding: 0 var(--space-3);
    }

    .pos-layout {
        grid-template-columns: 1fr;
    }

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

    .pos-product {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        align-items: center;
    }

    .pos-product .compact-action {
        width: auto;
        min-width: 72px;
    }

    .pos-cart {
        position: static;
    }

    .order-complete-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .order-complete-header > div {
        width: 100%;
    }

    .order-complete-header > .secondary-action {
        justify-self: center;
        width: min(100%, 320px);
    }

    .order-complete-card .success-mark {
        justify-self: center;
        width: 72px;
        height: 72px;
    }

    .order-complete-card .success-mark svg {
        width: 36px;
        height: 36px;
    }

    .order-number-block {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .admin-table {
        min-width: 0;
    }

    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2),
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3),
    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4),
    .admin-table th:nth-child(5),
    .admin-table td:nth-child(5),
    .admin-table th:nth-child(6),
    .admin-table td:nth-child(6) {
        display: none;
    }

    .admin-table th,
    .admin-table td {
        padding: var(--space-3) var(--space-2);
    }

    .admin-table th:last-child,
    .admin-table td:last-child {
        position: static;
        box-shadow: none;
    }

    .admin-table td small.desktop-meta {
        display: none;
    }

    .admin-table td small.mobile-meta {
        display: block;
    }

    .admin-table-actions {
        min-width: 128px;
    }

    .table-action {
        min-width: 58px;
        padding: 0 var(--space-2);
    }
}
