:root {
    color-scheme:light;
    --ink:#172737;
    --muted:#647483;
    --blue:#205ddb;
    --line:#dce4eb;
    --bg:#f5f7fa;
    --paper:#fff;
}
* {
    box-sizing:border-box;
}
body {
    margin:0;
    color:var(--ink);
    background:var(--bg);
    font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;
}
a {
    color:var(--blue);
    text-decoration:none;
}
a:hover {
    text-decoration:underline;
}
button,input,select {
    font:inherit;
}
button,.button {
    background:var(--blue);
    border:1px solid var(--blue);
    border-radius:8px;
    color:#fff;
    padding:10px 17px;
    font-weight:600;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    text-decoration:none;
}
button:hover,.button:hover {
    filter:brightness(.96);
    text-decoration:none;
}
button:disabled {
    opacity:.5;
    cursor:default;
}
button.secondary {
    color:var(--blue);
    background:#fff;
    border-color:#ccd8ed;
}
input,select {
    width:100%;
    min-width:0;
    border:1px solid #bbc9d5;
    border-radius:7px;
    padding:10px 11px;
    background:#fff;
    color:var(--ink);
}
input:focus,select:focus,button:focus-visible,a:focus-visible,summary:focus-visible {
    outline:3px solid #9bbdfb;
    outline-offset:2px;
}
label {
    display:block;
    font-size:13px;
    font-weight:600;
}
label input,label select {
    display:block;
    margin-top:6px;
    font-weight:400;
}
[hidden] {
    display:none!important;
}
h1 {
    font-size:32px;
    line-height:1.2;
    font-weight:650;
    letter-spacing:-1px;
    margin:5px 0 18px;
}
p {
    margin:0 0 16px;
}
.muted {
    color:var(--muted);
}
.eyebrow {
    font-size:11px;
    letter-spacing:1.7px;
    font-weight:700;
    color:var(--muted);
    margin-bottom:10px;
}
.site-header {
    background:var(--paper);
    border-bottom:1px solid var(--line);
}
.header-inner {
    max-width:1160px;
    margin:auto;
    min-height:74px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 28px;
    gap:20px;
}
.brand {
    color:var(--ink);
    font-size:22px;
    font-weight:750;
    letter-spacing:-.8px;
    white-space:nowrap;
}
.brand span {
    color:var(--blue);
    font-size:28px;
    margin-right:7px;
}
.navigation summary {
    cursor:pointer;
    list-style:none;
}
.navigation nav {
    display:flex;
    align-items:center;
    gap:26px;
    font-size:14px;
}
.navigation nav a {
    color:var(--ink);
}
.nav-disabled {
    color:#97a3ae;
    cursor:default;
}
.container {
    max-width:1160px;
    margin:0 auto;
    padding:32px 28px 48px;
    min-height:calc(100vh - 145px);
}
.site-footer {
    font-size:12px;
    color:var(--muted);
    border-top:1px solid var(--line);
    max-width:1104px;
    margin:0 auto;
    padding:22px 0;
}
.intro {
    padding:65px 0 95px;
    max-width:650px;
}
.intro h1 {
    font-size:clamp(42px,7vw,68px);
    line-height:1.06;
    letter-spacing:-2.5px;
    margin:23px 0;
}
.intro-text {
    font-size:19px;
    color:#526474;
    max-width:530px;
    margin-bottom:28px;
}
.intro-note {
    font-size:13px;
    margin-top:21px;
}
.login-card {
    max-width:400px;
    margin:40px auto;
    background:#fff;
    border:1px solid var(--line);
    border-radius:13px;
    padding:30px;
}
.login-card label {
    margin:18px 0;
}
.login-card button {
    width:100%;
    margin-top:6px;
}
.login-card #pow-status {
    font-size:12px;
    margin:12px 0 0;
    min-height:18px;
}
.error {
    background:#fff0f0;
    color:#a62424;
    border-radius:6px;
    padding:10px;
    font-size:13px;
}
.page-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:6px;
}
.subtle-tag {
    font-size:12px;
    background:#eaf0f8;
    color:#52697f;
    border-radius:20px;
    padding:5px 12px;
}
.filters {
    display:flex;
    align-items:end;
    gap:13px;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:10px;
    padding:18px;
    margin-bottom:20px;
}
.filters label {
    flex:1;
    min-width:120px;
}
.filters .filter-name {
    flex:1.6;
}
.filters button {
    padding:10px 15px;
}
.reset {
    font-size:12px;
    padding:13px 0;
    white-space:nowrap;
}
.table-help {
    display:flex;
    gap:20px;
    justify-content:space-between;
    color:var(--muted);
    font-size:11px;
    margin:0 2px 10px;
}
.table-scroll {
    border:1px solid var(--line);
    border-radius:9px;
    overflow:auto;
    background:#fff;
}
table {
    width:100%;
    border-collapse:collapse;
    text-align:left;
}
th {
    background:#edf2f7;
    color:#526779;
    font-size:11px;
    font-weight:650;
    padding:13px 15px;
    white-space:nowrap;
    border-bottom:1px solid var(--line);
}
td {
    border-bottom:1px solid #e9eef2;
    padding:15px;
    vertical-align:middle;
}
tbody tr:last-child td {
    border-bottom:0;
}
tbody tr:hover {
    background:#fbfcff;
}
.image-column {
    width:80px;
}
.image-link {
    display:flex;
    align-items:center;
    justify-content:center;
    width:64px;
    height:64px;
    overflow:hidden;
    border-radius:6px;
    background:#fff;
}
.image-link img {
    object-fit:contain;
    max-width:100%;
    max-height:100%;
}
.image-empty {
    color:#8999a8;
    font-size:28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:64px;
    min-height:64px;
}
.image-fallback {
    font-size:10px;
    color:var(--muted);
    text-align:center;
}
.product-name {
    font-weight:550;
    color:var(--ink);
    line-height:1.45;
    display:inline-block;
    max-width:480px;
    overflow-wrap:anywhere;
}
.price-cell {
    min-width:110px;
}
.price {
    font-size:19px;
    font-variant-numeric:tabular-nums;
    font-weight:650;
    white-space:nowrap;
}
.price small {
    font-size:11px;
    color:var(--muted);
    font-weight:400;
}
.direction {
    font-size:13px;
    margin-left:9px;
    vertical-align:super;
    color:var(--blue);
}
.promotion {
    font-size:10px;
    line-height:1.5;
    color:#5e7285;
    max-width:220px;
    margin-top:4px;
    white-space:pre-line;
    overflow-wrap:anywhere;
}
.number {
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
}
.discount {
    color:#22604a;
    font-weight:600;
}
.empty {
    text-align:center;
    color:var(--muted);
    padding:55px 10px;
    border:1px solid var(--line);
    border-top:0;
    background:#fff;
    margin-top:-7px;
    border-radius:0 0 9px 9px;
}
.load-area {
    text-align:center;
    margin:20px 0;
}
.load-area p:empty {
    display:none;
}
.load-area p {
    font-size:13px;
}
.statistics-note {
    color:var(--muted);
    font-size:12px;
    margin-top:20px;
    max-width:850px;
}
.statistics-note summary {
    cursor:pointer;
}
.statistics-note p {
    margin:12px 0;
}
.back-link {
    font-size:13px;
    display:inline-block;
    margin-bottom:25px;
}
.product-heading {
    display:flex;
    gap:38px;
    align-items:center;
    margin-bottom:30px;
}
.product-heading h1 {
    max-width:650px;
    font-size:30px;
    overflow-wrap:anywhere;
}
.image-large {
    width:210px;
    height:210px;
    flex-shrink:0;
    border:1px solid var(--line);
    border-radius:10px;
    padding:10px;
}
.offers-table {
    min-width:690px;
}
.offers-table th {
    white-space:normal;
}
.offers-table td:first-child {
    min-width:170px;
}
.hours {
    font-size:11px;
    color:var(--muted);
    display:flex;
    gap:6px;
    align-items:center;
    margin-top:6px;
}
.hours-dot {
    display:inline-block;
    flex-shrink:0;
    width:7px;
    height:7px;
    border-radius:50%;
}
.hours-dot.open {
    background:#91cf9e;
}
.hours-dot.closed {
    background:#df6b6b;
}
.small-note {
    font-size:12px;
    margin-top:18px;
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
}
dialog {
    border:0;
    border-radius:12px;
    padding:0;
    width:min(680px,95vw);
    color:var(--ink);
    max-height:95vh;
}
dialog::backdrop {
    background:#152536b8;
}
.gallery-top,.gallery-bottom {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:14px 18px;
}
.gallery-top {
    font-size:13px;
    border-bottom:1px solid var(--line);
}
.gallery-top span {
    overflow-wrap:anywhere;
}
.gallery-top button {
    background:none;
    color:var(--ink);
    border:0;
    padding:8px;
}
.gallery-image {
    height:min(58vh,600px);
    padding:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.gallery-image img {
    max-height:100%;
    max-width:100%;
    object-fit:contain;
    touch-action:pan-y;
}
.gallery-bottom button {
    font-size:13px;
    background:#edf3fc;
    color:var(--blue);
    border:0;
}
.gallery-bottom span {
    font-size:12px;
    color:var(--muted);
}
@media(min-width:720px) {
    .navigation summary {
        display:none;
    }
    .navigation:not([open]) nav {
        display:flex;
    }
    .navigation>nav {
        display:flex!important;
    }
}
@media(max-width:850px) {
    .filters {
        flex-wrap:wrap;
    }
    .filters .filter-name {
        flex-basis:100%;
    }
    .table-help {
        flex-wrap:wrap;
        gap:4px;
    }
    .filters label {
        min-width:130px;
    }
    .filters button {
        flex-grow:1;
    }
}
@media(max-width:719px) {
    .header-inner {
        padding:13px 16px;
        min-height:64px;
        align-items:flex-start;
    }
    .navigation {
        text-align:right;
        padding-top:7px;
    }
    .navigation nav {
        flex-direction:column;
        align-items:flex-end;
        gap:14px;
        margin-top:18px;
        margin-bottom:8px;
    }
    .container {
        padding:25px 14px 35px;
    }
    .site-footer {
        margin:0 14px;
    }
    .intro {
        padding:40px 5px;
    }
    .intro h1 {
        font-size:48px;
    }
    .login-card {
        margin:20px auto;
        padding:24px;
    }
    .main-table {
        table-layout:fixed;
    }
    .main-table th,.main-table td {
        padding:11px 7px;
    }
    .main-table th {
        font-size:9px;
        white-space:normal;
    }
    .main-table th:nth-child(1) {
        width:40px;
    }
    .main-table th:nth-child(2) {
        width:auto;
    }
    .main-table th:nth-child(3) {
        width:66px;
    }
    .main-table th:nth-child(4) {
        width:52px;
    }
    .main-table th:nth-child(5) {
        width:49px;
    }
    .main-table td:first-child {
        padding-left:4px;
        padding-right:4px;
    }
    .main-table .image-link,.main-table .image-empty {
        width:32px;
        height:40px;
        min-width:0;
        min-height:0;
    }
    .main-table .product-name {
        font-size:12px;
    }
    .main-table .price {
        font-size:15px;
        white-space:normal;
    }
    .main-table .price small {
        font-size:9px;
    }
    .main-table .price-cell {
        min-width:0;
    }
    .main-table .promotion {
        font-size:9px;
    }
    .main-table .number {
        font-size:11px;
    }
    .main-table .direction {
        font-size:10px;
        margin-left:3px;
    }
    .product-heading {
        gap:20px;
        align-items:flex-start;
    }
    .product-heading h1 {
        font-size:23px;
    }
    .product-heading .image-large {
        width:110px;
        height:130px;
    }
    .product-heading .muted {
        font-size:12px;
    }
    h1 {
        font-size:29px;
    }
    .filters {
        gap:10px;
        padding:13px;
    }
    .table-help {
        font-size:10px;
    }
    .table-scroll {
        border-radius:7px;
    }
    .gallery-top,.gallery-bottom {
        padding:12px;
    }
    .gallery-bottom button {
        font-size:12px;
        padding:10px;
    }
}
textarea { width:100%; margin-top:8px; padding:12px; border:1px solid #bbc9d5; border-radius:8px; font:14px/1.5 monospace; resize:vertical; }
#manage-status { white-space:pre-wrap; overflow-wrap:anywhere; }
#shop-edit-form { max-width:600px; }
#shop-edit-form label { margin-bottom:18px; }
#shop-edit-form button:disabled { background:#929ca8; border-color:#929ca8; }
.manage-table { min-width:650px; }
.manage-table td { overflow-wrap:anywhere; }
.manage-table button { font-size:12px; white-space:nowrap; }
.delete-content { padding:24px; overflow-wrap:anywhere; }
.jobs-panel {display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;margin-bottom:1rem;padding:1rem;border:1px solid #dce3e8;border-radius:12px}
.jobs-panel p {flex:1 1 260px;margin:0;font-size:.9rem}
.jobs-panel progress {max-width:100%;width:160px}
