:root {
    --ink: #333333;
    --ink-soft: #444444;
    --muted: #6b7280;
    --paper: #e3e3e8;
    --paper-2: #f3f4f6;
    --card: #ffffff;
    --line: #b0afb5;
    --line-strong: #9ca3af;
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --blue-soft: #dbeafe;
    --blue-text: #1d4ed8;
    --accent: #d96b22;
    --accent-hover: #c25a16;
    --accent-soft: #f8eadc;
    --gold: #c97a28;
    --gold-dark: #b0681c;
    --forest: #28c76f;
    --forest-soft: #d4f5e4;
    --danger: #ea5455;
    --danger-soft: #fde8e8;
    --warn: #d96b22;
    --warn-soft: #f8eadc;
    --purple: #7367f0;
    --purple-soft: #eeedfe;
    --teal: #00cfe8;
    --side-text: #444444;
    --input-bg: #f3f4f6;
    --row-hover: #f3f4f6;
    --radius: 8px;
    --radius-sm: 6px;
    --shadow: 0 2px 6px rgba(47, 43, 61, 0.14);
    --shadow-sm: 0 1px 3px rgba(47, 43, 61, 0.1);
    --font: Inter, "Segoe UI", system-ui, sans-serif;
    --topbar-h: 64px;
    color-scheme: light;
}
html[data-theme="dark"] {
    --ink: #e4e2dc;
    --ink-soft: #c2bfb6;
    --muted: #9a968c;
    --paper: #141311;
    --paper-2: #1c1b18;
    --card: #1a1916;
    --line: #2e2c27;
    --line-strong: #3d3a33;
    --accent: #e09a45;
    --accent-hover: #f0b060;
    --accent-soft: #3a3020;
    --gold: #d4b05a;
    --gold-dark: #e4c878;
    --forest: #5cbc90;
    --forest-soft: #1c2a22;
    --danger: #e07084;
    --danger-soft: #3a2428;
    --warn: #e09a45;
    --warn-soft: #3a3020;
    --purple: #8b7cc8;
    --purple-soft: #2a2838;
    --teal: #4ab8b2;
    --blue: #3b82f6;
    --blue-hover: #60a5fa;
    --blue-soft: #1e3a5f;
    --blue-text: #93c5fd;
    --side-text: #c2bfb6;
    --input-bg: #141311;
    --row-hover: #22211c;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
    min-height: 100dvh;
    font-size: 14px;
    line-height: 1.42857;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
img { max-width: 100%; }
h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}
h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.lede { color: var(--muted); margin: 0 0 16px; font-size: 14px; }

.app {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    background: var(--paper);
}
.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 40;
}
.brand { color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.shop-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.shop-nav a {
    color: var(--side-text);
    text-decoration: none;
    font-weight: 600;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
}
.shop-nav a:hover { background: var(--paper-2); color: var(--ink); }

.app-topnav .topbar {
    grid-column: 1;
    grid-row: 1;
    min-height: var(--topbar-h);
    width: 100%;
    padding: 6px 16px;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: visible;
}
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: var(--card);
    color: var(--ink-soft);
    border-radius: 12px;
    box-shadow: var(--shadow);
    place-items: center;
    cursor: pointer;
    flex: none;
    padding: 0;
}
.nav-toggle:hover { color: var(--ink); }
.nav-toggle svg { display: block; }
.nav-toggle-close { display: none; }
.app-topnav.nav-open .nav-toggle-open { display: none; }
.app-topnav.nav-open .nav-toggle-close { display: block; }
.app-topnav .sidebar-brand {
    display: flex;
    align-items: center;
    height: 40px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex: none;
}
.app-topnav .sidebar-brand:hover { color: var(--ink); }
.app-topnav .nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.app-topnav .nav::-webkit-scrollbar { display: none; }
.app-topnav .nav a {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--side-text);
    border-radius: 12px;
    white-space: nowrap;
    text-decoration: none;
    flex: none;
}
.app-topnav .nav a:hover { background: var(--paper-2); color: var(--ink); }
.app-topnav .nav a.active { background: var(--accent-soft); color: var(--gold-dark); font-weight: 700; }
.nav-extras { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-switch {
    display: flex;
    align-items: center;
    border-radius: 999px;
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    flex: none;
}
.theme-switch button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    height: 32px;
    cursor: pointer;
}
.theme-switch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-hover); }
.theme-switch button:hover { color: var(--ink); }
.who-menu { position: relative; flex: none; }
.who-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    padding: 0;
    max-width: 14rem;
}
.who-menu-name {
    font-size: 13px;
    font-weight: 600;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.who-menu-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    min-width: 180px;
    padding: 10px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.who-menu-pop[hidden] { display: none; }
.who-menu-pop a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 8px;
}
.who-menu-pop a:hover { background: var(--paper-2); color: var(--ink); }
.who-menu-pop a[aria-current="page"] { background: var(--accent-soft); color: var(--gold-dark); }
.nav-help {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
}
.nav-help.on,
.nav-help:hover { background: var(--paper-2); color: var(--ink); }
.help-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 16px;
}
.help-jump a { font-weight: 600; }
.help-sheet { max-width: 42rem; }
.help-topic { margin: 0; scroll-margin-top: 80px; }
.help-topic + .help-topic { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.help-topic h2 { margin: 0 0 6px; font-size: 16px; }
.help-topic p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.help-topic p + p { margin-top: 8px; }
.gift-code {
    font-family: ui-monospace, Consolas, monospace;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d14d66, #d8892e);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(209, 77, 102, 0.28);
    flex: none;
}
.main { grid-column: 1; grid-row: 2; min-width: 0; width: 100%; }
.page {
    max-width: 1280px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 16px 24px 40px;
}
.page-head, .card-head, .filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}
.page-head { align-items: flex-start; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.card-head { margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-head form, .filters form { display: flex; gap: 8px; align-items: center; margin: 0; min-width: 0; }
.filters { margin-bottom: 16px; }
.filters a {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
}
.filters a:hover { background: var(--paper-2); color: var(--ink); }
.filters a.on { background: var(--accent-soft); color: var(--gold-dark); }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.stat, .card {
    background: var(--card);
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat { padding: 18px 18px 16px; }
.stat-label, .stat .k {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stat-value, .stat .v {
    font-size: 24px;
    font-weight: 600;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.stat-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.dash-kpi-items { background: color-mix(in srgb, var(--purple-soft) 70%, var(--card)); box-shadow: var(--shadow-sm), inset 0 3px 0 var(--purple); }
.dash-kpi-sold { background: color-mix(in srgb, var(--blue-soft) 70%, var(--card)); box-shadow: var(--shadow-sm), inset 0 3px 0 var(--blue); }
.dash-kpi-share { background: color-mix(in srgb, var(--teal) 12%, var(--card)); box-shadow: var(--shadow-sm), inset 0 3px 0 var(--teal); }
.dash-kpi-people { background: color-mix(in srgb, var(--forest-soft) 70%, var(--card)); box-shadow: var(--shadow-sm), inset 0 3px 0 var(--forest); }
.dash-kpi-due { background: color-mix(in srgb, var(--accent-soft) 80%, var(--card)); box-shadow: var(--shadow-sm), inset 0 3px 0 var(--accent); }
.dash-kpi-items .stat-value { color: color-mix(in srgb, var(--purple) 55%, var(--ink)); }
.dash-kpi-sold .stat-value { color: color-mix(in srgb, var(--blue) 55%, var(--ink)); }
.dash-kpi-share .stat-value { color: color-mix(in srgb, var(--teal) 45%, var(--ink)); }
.dash-kpi-people .stat-value { color: color-mix(in srgb, var(--forest) 45%, var(--ink)); }
.dash-kpi-due .stat-value { color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.card { padding: 20px; margin-bottom: 16px; }
.shop-grid .card { margin-bottom: 0; }

.table-wrap { overflow: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.actions { text-align: right; white-space: nowrap; }
tr:hover td { background: var(--row-hover); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 12px;
    padding: 6px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    height: 40px;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(216, 137, 46, 0.24);
    white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-quiet, .btn-ghost {
    background: var(--card);
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}
.btn-quiet:hover, .btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 8px 16px rgba(209, 77, 102, 0.24); }
.btn-danger:hover { background: var(--danger); color: #fff; filter: brightness(0.95); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.banner { border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; }
.banner.ok { background: var(--forest-soft); color: var(--forest); }
.banner.bad { background: var(--danger-soft); color: var(--danger); }
html[data-theme="dark"] .banner.ok { color: #d8f3e6; }
html[data-theme="dark"] .banner.bad { color: #f8d0d6; }
.empty { color: var(--muted); }

.stack { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; min-width: 0; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; }
:where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
    select
) {
    font: inherit;
    color: var(--ink);
    background: var(--input-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    height: 40px;
    padding: 8px 12px;
    line-height: 20px;
    width: 100%;
    max-width: 100%;
}
textarea {
    font: inherit;
    color: var(--ink);
    background: var(--input-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    width: 100%;
    max-width: 100%;
    min-height: 80px;
    resize: vertical;
}
input[type="file"] { font: inherit; max-width: 100%; }
input[type="checkbox"], input[type="radio"] { width: auto; height: auto; }
:where(input, textarea, select):focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
html[data-theme="dark"] option { color: #17181d; background-color: #fff; }
.form-card { max-width: 32rem; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inline-form { margin-top: 12px; }
.hint { color: var(--muted); font-size: 13px; margin: 0; font-weight: 500; }
.people { margin: 12px 0 16px; }
.person {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.person-id { min-width: 0; }
.person-id strong, .person-id span { display: block; overflow-wrap: anywhere; }
.person-id span { color: var(--muted); font-size: 13px; font-weight: 500; }
.person-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.person-actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0; }
.person-actions input { width: 12rem; max-width: 100%; }
.signin-add { margin-top: 4px; max-width: 32rem; }
.was { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.pay-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 14px; }
.pay-form label { flex: 1 1 10rem; }
.rule-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rule-list { margin: 0; padding-left: 1.1rem; }
.rule-list li { margin: 4px 0; }
.linkish {
    background: none;
    border: 0;
    color: var(--blue);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.linkish:hover { color: var(--blue-hover); }
.return-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
}
.return-form select { width: auto; max-width: 11rem; }
.returned { color: var(--muted); font-weight: 600; font-size: 13px; }
.matching > h2 { margin: 0 0 12px; font-size: 18px; }

.shop-search { display: flex; gap: 8px; margin-bottom: 16px; }
.shop-search input { flex: 1; min-width: 0; }
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.shop-card { display: flex; flex-direction: column; gap: 6px; }
.shop-photo { display: block; aspect-ratio: 4 / 3; background: var(--paper-2); border-radius: 8px; overflow: hidden; }
.shop-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-main { margin: 0 0 12px; }
.photo-main img { width: 100%; max-height: 28rem; object-fit: contain; background: var(--card); border-radius: 10px; display: block; }
.photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.photo-thumbs a { display: block; border-radius: 8px; border: 2px solid transparent; line-height: 0; }
.photo-thumbs a.on { border-color: var(--accent); }
.photo-thumbs img { width: 64px; height: 64px; object-fit: cover; display: block; border-radius: 6px; }
.photo-edit { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.photo-edit figure { margin: 0; width: 7.5rem; }
.photo-edit img { width: 100%; height: 6rem; object-fit: cover; border-radius: 8px; background: var(--paper-2); display: block; }
.photo-edit figcaption { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.photo-edit form { margin: 0; }
.floor-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.item-photo { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--paper-2); flex: none; }
.with-photo { display: flex; align-items: center; gap: 8px; }
.cart-main { display: flex; gap: 10px; align-items: center; min-width: 0; }
.cart-main a { overflow-wrap: anywhere; }
.shop-title { color: var(--ink); font-weight: 700; text-decoration: none; }
.shop-title:hover { color: var(--blue); }
.shop-price { margin: 0; font-size: 20px; font-weight: 700; }
.shop-meta { margin: 0; color: var(--muted); font-size: 13px; }
.section-gap { margin-top: 24px; }
.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.cart-line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.register { display: grid; grid-template-columns: 1.3fr .9fr; gap: 16px; align-items: start; }
.floor-list, .ticket-lines { list-style: none; margin: 0; padding: 0; }
.floor-list li, .ticket-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.floor-list span, .ticket-lines span { display: block; color: var(--muted); font-size: 13px; }
.floor-buy { display: flex; align-items: center; gap: 10px; }
.floor-buy form { margin: 0; }
.tender { border: 0; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.tender legend { font-weight: 700; margin-bottom: 6px; width: 100%; }
.tender label { font-weight: 600; flex-direction: row; align-items: center; }
.totals { margin: 0; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-size: 20px; font-weight: 700; }
.sale-total { text-align: right; font-weight: 700; margin: 10px 0 0; }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--paper); }
.auth-card {
    width: min(400px, 94vw);
    background: var(--card);
    border: 0;
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.auth-card .btn { width: 100%; }

.label-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 12px; }
.label-tools form { display: flex; gap: 8px; align-items: center; margin: 0; }
.label-tools select { width: 12rem; }
.label-pick { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 16px; }
.label-pick label { width: auto; }
.label-pick select { width: 12rem; }
.label-pick .check input { margin: 0; }
.label-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.label-tag {
    background: #fff;
    color: #222;
    border: 1px dashed #b0afb5;
    border-radius: 8px;
    min-height: 168px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    overflow: hidden;
    color-scheme: light;
}
.label-store { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #666; }
.label-title { font-weight: 700; font-size: 15px; line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.label-price { font-size: 22px; font-weight: 800; }
.label-sku { font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 700; }
.label-barcode { width: 100%; max-width: 220px; }
.label-barcode svg { display: block; width: 100%; height: 48px; }
.print-body { background: var(--paper); }
.print-body .page, .print-body { padding: 16px; }
.contract-page { max-width: 40rem; }
.contract-page h1 { margin: 0 0 8px; }
.contract-page h2 { margin: 18px 0 6px; }
.contract-page p { margin: 0 0 10px; line-height: 1.5; }
.contract-terms, .contract-note { white-space: pre-wrap; line-height: 1.5; margin: 0 0 10px; }
.contract-sign { display: flex; align-items: flex-end; gap: 8px; max-width: 24rem; }
.contract-line { flex: 1; border-bottom: 1px solid #17181d; min-height: 1.4em; }
@media print {
    .label-tools, .banner { display: none !important; }
    .print-body { background: #fff; padding: 0; }
    .contract-page { max-width: none; }
    .label-grid { gap: 0; }
    .label-tag { border-color: transparent; border-radius: 0; break-inside: avoid; page-break-inside: avoid; }
    .size-shelf .label-grid { grid-template-columns: repeat(3, 3in); }
    .size-shelf .label-tag { width: 3in; height: 2in; min-height: 0; }
    .size-avery5160 .label-grid { grid-template-columns: repeat(3, 2.625in); }
    .size-avery5160 .label-tag { width: 2.625in; height: 1in; min-height: 0; padding: 2px 4px; gap: 0; }
    .size-avery5160 .label-store { font-size: 7px; }
    .size-avery5160 .label-title { font-size: 8px; }
    .size-avery5160 .label-price { font-size: 11px; }
    .size-avery5160 .label-sku { font-size: 8px; }
    .size-avery5160 .label-barcode svg { height: 22px; }
    .size-dymo .label-grid { grid-template-columns: 3.5in; }
    .size-dymo .label-tag {
        width: 3.5in;
        height: 1.125in;
        min-height: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        text-align: left;
        align-items: center;
    }
    .size-dymo .label-barcode { max-width: 1.8in; }
    @page { margin: 0.4in; }
}

.shop-copy { font-size: 16px; line-height: 1.5; max-width: 40rem; }

body.shop {
    --shop-bg: #f4f5f7;
    --shop-ink: #10141c;
    --shop-mute: #5c6573;
    --shop-line: #e4e7ec;
    --shop-accent: #c1121f;
    margin: 0;
    background: var(--shop-bg);
    color: var(--shop-ink);
    font-family: Outfit, system-ui, sans-serif;
}
body.shop .page {
    width: min(1120px, calc(100% - 32px));
    max-width: none;
    margin: 24px auto 32px;
    padding: 0;
}
body.shop .shop-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    padding: 10px 24px;
    background: #fff;
    border-bottom: 1px solid var(--shop-line);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: none;
}
body.shop .brand {
    color: inherit;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0;
    line-height: 1.15;
    max-width: 18rem;
    min-width: 0;
    overflow-wrap: anywhere;
}
body.shop .shop-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-left: auto;
    min-width: 0;
}
body.shop .shop-nav a {
    color: var(--shop-mute);
    height: auto;
    padding: 0;
    border-radius: 0;
    font-weight: 500;
    background: transparent;
}
body.shop .shop-nav a:hover { background: transparent; color: var(--shop-ink); }
body.shop h1 { color: var(--shop-ink); letter-spacing: -0.02em; }
body.shop .btn {
    background: var(--shop-accent);
    color: #fff;
    border-radius: 10px;
    box-shadow: none;
}
body.shop .btn:hover { background: #9b0e18; color: #fff; }
body.shop .btn-quiet,
body.shop .btn-ghost {
    background: #fff;
    color: var(--shop-ink);
    box-shadow: inset 0 0 0 1px var(--shop-line);
}
body.shop .btn-quiet:hover,
body.shop .btn-ghost:hover { background: #f4f5f7; color: var(--shop-ink); }
body.shop .card {
    background: #fff;
    border: 1px solid var(--shop-line);
    border-radius: 16px;
    box-shadow: none;
}
body.shop .shop-foot {
    text-align: center;
    color: var(--shop-mute);
    padding: 24px 16px 32px;
    border-top: 1px solid var(--shop-line);
    font-size: 14px;
}
body.shop .shop-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 16px;
    margin: 0 0 22px;
}
body.shop .shop-live,
body.shop .shop-consign { min-width: 0; }
body.shop .shop-live {
    background: #fff;
    border: 1px solid var(--shop-line);
    border-radius: 16px;
    overflow: hidden;
}
body.shop .shop-live-head {
    background: #0c1220;
    color: #fff;
    padding: 16px 20px;
}
body.shop .shop-live-head h1 { margin: 0; color: #fff; font-size: 1.25rem; }
body.shop .shop-live-body { padding: 4px 20px 16px; }
body.shop .shop-live-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--shop-line);
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
body.shop .shop-live-row:first-child { border-top: 0; }
body.shop .shop-live-row img,
body.shop .shop-live-ph {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 8px;
    object-fit: cover;
    background: #eceff3;
}
body.shop .shop-live-ph {
    display: grid;
    place-items: center;
    color: var(--shop-mute);
    font-size: 11px;
    font-weight: 700;
}
body.shop .shop-live-copy { min-width: 0; flex: 1; }
body.shop .shop-live-copy strong,
body.shop .shop-live-copy span { display: block; overflow-wrap: anywhere; }
body.shop .shop-live-copy span { color: var(--shop-mute); font-size: 13px; }
body.shop .shop-live-price { font-weight: 800; white-space: nowrap; }
body.shop .shop-consign {
    background: #0c1220;
    color: #eef2f7;
    border-radius: 16px;
    padding: 20px;
}
body.shop .shop-consign .kicker {
    margin: 0 0 8px;
    color: #f87171;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
body.shop .shop-consign h2 { margin: 0 0 8px; color: #fff; font-size: 1.4rem; }
body.shop .shop-consign p,
body.shop .shop-consign li { color: #9aa6b8; }
body.shop .shop-consign ul { margin: 0 0 16px; padding-left: 1.1rem; }
body.shop .shop-consign .btn { background: #fff; color: #0c1220; }
body.shop .shop-consign .btn:hover { background: #f4f5f7; color: #0c1220; }
body.shop .shop-consign .btn-ghost {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
body.shop .shop-consign .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
body.shop .shop-consign-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.shop .shop-search {
    display: flex;
    gap: 8px;
    margin: 0 0 22px;
    background: #fff;
    border: 1px solid var(--shop-line);
    border-radius: 12px;
    padding: 8px;
}
body.shop .shop-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    padding: 8px;
    color: inherit;
}
body.shop .shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
body.shop .shop-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--shop-line);
    border-radius: 10px;
    padding: 8px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
body.shop .shop-tile-photo {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #eceff3;
}
body.shop .shop-tile-photo img { width: 100%; height: 100%; object-fit: contain; }
body.shop .shop-ph { color: var(--shop-mute); font-size: 12px; font-weight: 700; }
body.shop .shop-tile-price { font-weight: 800; color: var(--shop-accent); }
body.shop .shop-tile-title { font-weight: 700; overflow-wrap: anywhere; }
body.shop .shop-tile-meta { color: var(--shop-mute); font-size: 13px; }
body.shop .shop-night-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 18px;
    border: 1px solid #e1e5ee;
    border-radius: 10px;
    padding: 18px;
    background: #fff;
    margin: 0 0 18px;
}
body.shop .shop-night-copy { min-width: 0; }
body.shop .shop-night-copy .kicker {
    margin: 0 0 6px;
    color: #1e2b4d;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
body.shop .shop-night-copy h1 {
    margin: 0 0 12px;
    color: #1e2b4d;
    font-size: clamp(1.7rem, 2.4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    line-height: 1.05;
}
body.shop .shop-night-copy p { margin: 0 0 16px; color: #5c6578; }
body.shop .shop-night-copy .btn {
    display: flex;
    width: 100%;
    background: #d0121a;
    border-radius: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}
body.shop .shop-night-copy .btn:hover { background: #b40f16; }
body.shop .shop-night-photo {
    min-height: 220px;
    border-radius: 6px;
    overflow: hidden;
    background: #1e2b4d;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.shop .shop-night-photo a,
body.shop .shop-night-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.shop .shop-night-photo p { color: #fff; margin: 0; padding: 24px; text-align: center; }
body.shop .shop-promises {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 28px;
    padding: 28px 0;
    background: #1b2744;
    color: #fff;
    border-radius: 10px;
}
body.shop .shop-promises > div { min-width: 0; padding: 4px 22px; text-align: center; }
body.shop .shop-promises > div + div { border-left: 1px solid rgba(255, 255, 255, 0.2); }
body.shop .shop-promises h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
body.shop .shop-promises p { margin: 0; color: #c5cedd; font-size: 15px; }

body.shop.look-fun {
    --shop-bg: #fff3ea;
    --shop-ink: #2a1224;
    --shop-mute: #7a4d5c;
    --shop-line: #ffd0c0;
    --shop-accent: #e11d48;
    font-family: Fredoka, Outfit, system-ui, sans-serif;
    background:
        radial-gradient(circle at 8% -8%, #ffe08a 0, transparent 28%),
        radial-gradient(circle at 100% 0, #ffb4d0 0, transparent 26%),
        var(--shop-bg);
}
body.shop.look-fun .shop-top {
    background: linear-gradient(100deg, #ff3d7f, #ff6a3d);
    color: #fff;
    border-bottom: 0;
}
body.shop.look-fun .shop-nav a,
body.shop.look-fun .brand { color: #fff; }
body.shop.look-fun .shop-nav a:hover { color: #ffe08a; }
body.shop.look-fun .btn { background: linear-gradient(180deg, #ff7a45, #e11d48); border-radius: 999px; }
body.shop.look-fun .btn:hover { background: #e11d48; }
body.shop.look-fun .shop-top .btn-quiet,
body.shop.look-fun .btn-quiet,
body.shop.look-fun .btn-ghost {
    background: #fff;
    color: #e11d48;
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px #ffb4c8;
}
body.shop.look-fun .shop-live,
body.shop.look-fun .shop-tile,
body.shop.look-fun .card { border-radius: 22px; border-color: #ffd0b8; }
body.shop.look-fun .shop-live-head { background: linear-gradient(100deg, #ff3d7f, #ff6a3d); }
body.shop.look-fun .shop-consign { background: linear-gradient(160deg, #3b1764, #e11d48); border-radius: 22px; }
body.shop.look-fun .shop-consign .kicker,
body.shop.look-fun .shop-consign h2 { color: #ffe08a; }
body.shop.look-fun .shop-consign p,
body.shop.look-fun .shop-consign li { color: #ffe4ef; }
body.shop.look-fun .shop-consign .btn { background: #ffe08a; color: #3b1764; box-shadow: none; }
body.shop.look-fun .shop-consign .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75); }
body.shop.look-fun .shop-foot { background: #2a1230; color: #ffd6e4; border-top: 0; }
body.shop.look-fun h1,
body.shop.look-fun h2 { letter-spacing: -0.03em; }

body.shop.look-modern {
    --shop-bg: #f6f6f4;
    --shop-ink: #111;
    --shop-mute: #5c5c5c;
    --shop-line: #e6e6e6;
    --shop-accent: #111;
    font-family: Manrope, Outfit, system-ui, sans-serif;
}
body.shop.look-modern .shop-top { background: #fff; border-bottom: 2px solid #111; }
body.shop.look-modern .shop-nav a {
    color: #111;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
body.shop.look-modern .btn,
body.shop.look-modern .btn:hover { background: #111; color: #fff; border-radius: 0; }
body.shop.look-modern .btn-quiet,
body.shop.look-modern .btn-ghost { background: #fff; color: #111; border-radius: 0; box-shadow: inset 0 0 0 1px #111; }
body.shop.look-modern .shop-live,
body.shop.look-modern .shop-tile,
body.shop.look-modern .shop-consign,
body.shop.look-modern .card,
body.shop.look-modern .shop-search { border-radius: 0; border-color: #111; box-shadow: none; }
body.shop.look-modern .shop-live-head,
body.shop.look-modern .shop-consign { background: #111; color: #fff; }
body.shop.look-modern .shop-consign .kicker,
body.shop.look-modern .shop-consign h2 { color: #fff; }
body.shop.look-modern .shop-consign p,
body.shop.look-modern .shop-consign li { color: #cfcfcf; }
body.shop.look-modern .shop-consign .btn { background: #fff; color: #111; }
body.shop.look-modern .shop-consign .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
body.shop.look-modern .shop-foot { background: #111; color: #f3f3f3; border-top: 0; letter-spacing: 0.04em; }
body.shop.look-modern h1,
body.shop.look-modern h2 { letter-spacing: -0.045em; font-weight: 800; }

body.shop.look-old-school {
    --shop-bg: #f3ead7;
    --shop-ink: #2c1810;
    --shop-mute: #6b5344;
    --shop-line: #e2d3b4;
    --shop-accent: #6b1e2e;
    font-family: "Libre Baskerville", Georgia, serif;
}
body.shop.look-old-school .shop-top {
    background: #5c1220;
    color: #f6e7c1;
    border-bottom: 4px solid #c6a15b;
}
body.shop.look-old-school .brand { color: #f6e7c1; }
body.shop.look-old-school .shop-nav a,
body.shop.look-old-school .kicker {
    color: #f6e7c1;
    font-family: Oswald, "Arial Narrow", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 13px;
}
body.shop.look-old-school .shop-nav a:hover { color: #c6a15b; }
body.shop.look-old-school .btn { background: #6b1e2e; color: #f6e7c1; border-radius: 0; box-shadow: inset 0 0 0 2px #c6a15b; }
body.shop.look-old-school .btn:hover { background: #5c1220; color: #f6e7c1; }
body.shop.look-old-school .btn-quiet,
body.shop.look-old-school .btn-ghost { background: #fffaf2; color: #6b1e2e; border-radius: 0; box-shadow: inset 0 0 0 1px #6b1e2e; }
body.shop.look-old-school .shop-live,
body.shop.look-old-school .shop-tile,
body.shop.look-old-school .card { border-radius: 0; border: 1px solid #6b1e2e; background: #fffaf2; box-shadow: none; }
body.shop.look-old-school .shop-live-head {
    background: #5c1220;
    color: #f6e7c1;
    border-bottom: 4px solid #c6a15b;
}
body.shop.look-old-school .shop-live-head h1 { color: #f6e7c1; font-family: "Libre Baskerville", Georgia, serif; }
body.shop.look-old-school .shop-consign { background: #5c1220; color: #f6e7c1; border: 1px solid #c6a15b; border-radius: 0; }
body.shop.look-old-school .shop-consign .kicker { color: #c6a15b; }
body.shop.look-old-school .shop-consign h2 { color: #f6e7c1; font-family: "Libre Baskerville", Georgia, serif; }
body.shop.look-old-school .shop-consign p,
body.shop.look-old-school .shop-consign li { color: #f0d7b0; }
body.shop.look-old-school .shop-consign .btn { background: #c6a15b; color: #3d1018; box-shadow: none; }
body.shop.look-old-school .shop-consign .btn-ghost { background: transparent; color: #f6e7c1; box-shadow: inset 0 0 0 1px #c6a15b; }
body.shop.look-old-school .shop-search { border-radius: 0; background: #fffaf2; }
body.shop.look-old-school .shop-foot {
    background: #5c1220;
    color: #f6e7c1;
    border-top: 4px solid #c6a15b;
    font-family: "Libre Baskerville", Georgia, serif;
}

body.shop.look-shop-night { background: #fff; color: #1e2b4d; --shop-ink: #1e2b4d; --shop-accent: #d0121a; }
body.shop.look-shop-night .shop-top {
    display: block;
    padding: 16px 0 8px;
    background: #fff;
    border-bottom: 0;
}
body.shop.look-shop-night .night-bar {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 28px;
}
body.shop.look-shop-night .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; max-width: none; }
body.shop.look-shop-night .brand-name {
    color: #1e2b4d;
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    line-height: 0.95;
}
body.shop.look-shop-night .brand-tag {
    margin-top: 7px;
    color: #1e2b4d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}
body.shop.look-shop-night .night-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 0;
    text-align: right;
}
body.shop.look-shop-night .night-meta { margin: 0; color: #1e2b4d; font-weight: 700; }
body.shop.look-shop-night .night-meta a { color: inherit; text-decoration: none; }
body.shop.look-shop-night .night-side .shop-nav { margin-left: 0; justify-content: flex-end; gap: 16px 22px; }
body.shop.look-shop-night .shop-nav a {
    color: #1e2b4d;
    font-weight: 700;
    border-bottom: 2px solid #d0121a;
    padding: 0 0 4px;
}
body.shop.look-shop-night .shop-foot { background: #1e2b4d; color: #fff; border-top: 0; }
body.shop.look-shop-night .shop-tile-price { color: #d0121a; }

@media (max-width: 800px) {
    body.shop .shop-hero,
    body.shop .shop-night-hero,
    body.shop .shop-promises { grid-template-columns: minmax(0, 1fr); }
    body.shop .shop-promises > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 16px; margin-top: 12px; }
    body.shop.look-shop-night .night-bar { flex-direction: column; align-items: stretch; }
    body.shop.look-shop-night .night-side,
    body.shop.look-shop-night .night-side .shop-nav { align-items: flex-start; justify-content: flex-start; text-align: left; }
}

.site-preview-switch {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.site-preview-bar { display: flex; gap: 8px; margin: 0 0 12px; }
.site-preview-stage { min-width: 0; margin: 0 0 16px; }
.site-preview-device {
    height: 640px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.site-preview-frame { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
#site-preview-desk:checked ~ .site-preview-bar label[for="site-preview-desk"],
#site-preview-phone:checked ~ .site-preview-bar label[for="site-preview-phone"] {
    background: var(--accent-soft);
    color: var(--gold-dark);
}
#site-preview-phone:checked ~ .site-preview-stage .site-preview-device {
    width: min(390px, 100%);
    height: 700px;
    margin: 0 auto;
    box-sizing: border-box;
    border: 8px solid #222;
    border-radius: 28px;
}
.website-edit { margin-top: 16px; }

.logout { margin: 0; }
.card-head form input[type="search"],
.filters form input[type="search"] { width: 16rem; max-width: 100%; }

@media (max-width: 1100px) {
    .app-topnav .nav-toggle { display: grid; }
    .app-topnav .nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 12px;
        overflow-x: visible;
    }
    .app-topnav.nav-open .nav { display: flex; }
    .app-topnav .nav a { width: 100%; }
    .app-topnav .topbar { overflow: hidden; }
    .app-topnav .topbar-actions { display: none; }
    .app-topnav .nav-extras {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }
}
@media (max-width: 800px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .register { grid-template-columns: 1fr; }
    .rule-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .page { padding: 10px 12px 28px; }
    .app-topnav .topbar { padding: 8px 12px; }
    h1, .page-head h1 { font-size: 20px; }
    th, td { padding: 8px 6px; }
    .card { overflow-x: auto; }
    .form-card, .shop-card, .contract-terms-card { overflow: visible; }
    .card-head form, .filters form, .shop-search { width: 100%; }
    .card-head form input[type="search"],
    .filters form input[type="search"] { width: auto; flex: 1; min-width: 0; }
    input, select, textarea, button { max-width: 100%; }
    :where(input, select, textarea) { font-size: 16px; }
    .auth-card { padding: 28px 20px; }
}
@media (max-width: 520px) {
    .stats { grid-template-columns: 1fr; }
    .app-topnav .sidebar-brand { font-size: 16px; }
}

.web-tab-switch {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.web-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
}
.web-tabs label,
.web-tabs a.site-page-link {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--line);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 10px 22px;
    margin: 0 2px 0 0;
    cursor: pointer;
    user-select: none;
}
.web-tabs a.site-page-link {
    display: block;
    text-decoration: none;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.web-tabs a.site-add-page { margin-left: 16px; }
.web-tabs label:hover,
.web-tabs a.site-page-link:hover { background: var(--card); color: var(--ink); }
.web-panels {
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--card);
    padding: 16px;
    min-width: 0;
}
.web-panel { display: none; }
.web-panel h2 { margin: 0 0 8px; }
#web-tab-preview:checked ~ .web-tabs label[for="web-tab-preview"],
#web-tab-main:checked ~ .web-tabs label[for="web-tab-main"],
#web-tab-about:checked ~ .web-tabs label[for="web-tab-about"],
#web-tab-hours:checked ~ .web-tabs label[for="web-tab-hours"],
#web-tab-page:checked ~ .web-tabs a.site-page-link.is-on {
    background: var(--card);
    color: var(--blue);
    font-weight: 700;
    border-bottom: 1px solid var(--card);
    margin-bottom: -1px;
    z-index: 1;
}
#web-tab-preview:focus-visible ~ .web-tabs label[for="web-tab-preview"],
#web-tab-main:focus-visible ~ .web-tabs label[for="web-tab-main"],
#web-tab-about:focus-visible ~ .web-tabs label[for="web-tab-about"],
#web-tab-hours:focus-visible ~ .web-tabs label[for="web-tab-hours"] {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.web-tabs a.site-page-link:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
#web-tab-preview:checked ~ .web-panels .web-panel-preview,
#web-tab-main:checked ~ .web-panels .web-panel-main,
#web-tab-about:checked ~ .web-panels .web-panel-about,
#web-tab-hours:checked ~ .web-panels .web-panel-hours,
#web-tab-page:checked ~ .web-panels .web-panel-page { display: block; }
html[data-theme="dark"] .web-tabs label,
html[data-theme="dark"] .web-tabs a.site-page-link { background: rgba(255, 255, 255, 0.04); }
html[data-theme="dark"] .web-tabs label:hover,
html[data-theme="dark"] .web-tabs a.site-page-link:hover,
html[data-theme="dark"] .web-tabs a.site-page-link.is-on { background: var(--card); }
.page-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.page-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.page-list li strong { overflow-wrap: anywhere; min-width: 0; }
.page-list form { margin: 0; }
.page-block { border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }
.page-block-actions, .page-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.page-block-photo { display: block; width: 160px; max-width: 100%; height: auto; border-radius: 8px; margin: 0 0 8px; }
.page-editor input[type="file"] { width: 100%; }
.shop-page h2 { margin: 18px 0 8px; }
.shop-page p { margin: 0 0 12px; }
.shop-page-photo { display: block; max-width: 100%; height: auto; margin: 12px 0; border-radius: 12px; }
body.shop .shop-nav a { overflow-wrap: anywhere; max-width: 100%; }
.web-panel-page > form,
.web-panel-page > .site-page-actions {
    width: min(1120px, 100%);
    margin-left: auto;
    margin-right: auto;
}
.site-page-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.site-page-actions form { margin: 0; }
.web-panel-page { overflow: visible; }
.page-design { display: grid; gap: 12px; }
.page-design > .btn { justify-self: start; }
@media (max-width: 760px) {
    .web-tabs label,
    .web-tabs a.site-page-link { padding: 8px 12px; }
    .web-tabs a.site-add-page { margin-left: 0; }
    .web-panels { padding: 12px; }
}

.web-look { display: none; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
#web-tab-main:checked ~ .web-panels .web-look,
#web-tab-about:checked ~ .web-panels .web-look,
#web-tab-hours:checked ~ .web-panels .web-look,
#web-tab-page:checked ~ .web-panels .web-look { display: block; }
.web-look-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.web-look-line label { flex-direction: row; align-items: center; width: auto; gap: 8px; }
.web-look-line select { width: auto; min-width: 9rem; }
.web-look-status { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; min-width: 0; color: var(--muted); font-weight: 500; }
.web-look .hint { margin-top: 8px; }
.web-palette { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.web-palette > label { flex-direction: row; align-items: center; width: auto; }
.web-palette-picks, .web-swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.web-palette-chip, .web-swatch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    border-radius: 999px;
    padding: 4px 10px 4px 4px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    height: auto;
    box-shadow: none;
    cursor: pointer;
    white-space: nowrap;
}
.web-swatch { cursor: default; }
.web-palette-chip i, .web-swatch i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
    flex: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.web-palette-chip.is-on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--accent-soft); }
.web-color-input {
    width: 42px;
    height: 36px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
}
.web-palette.is-off .web-swatches { opacity: 0.45; }
@media (max-width: 760px) {
    .web-look-line select { min-width: 0; flex: 1 1 8rem; }
}

body.shop.theme-halloween {
    --shop-bg: #fff4e8;
    --shop-ink: #1c140c;
    --shop-mute: #6b5344;
    --shop-line: #f0d2b0;
    --shop-accent: #e85d04;
    --shop-head: #1c120c;
    --holiday-label: "Happy Halloween";
    background:
        radial-gradient(circle at 0 0, rgba(232, 93, 4, 0.18), transparent 28%),
        radial-gradient(circle at 100% 0, rgba(88, 28, 135, 0.12), transparent 24%),
        var(--shop-bg);
}
body.shop.theme-christmas {
    --shop-bg: #f6f3ea;
    --shop-ink: #14241b;
    --shop-mute: #4d6256;
    --shop-line: #d7e4d4;
    --shop-accent: #b42318;
    --shop-head: #14532d;
    --holiday-label: "Merry Christmas";
    background:
        radial-gradient(circle at 8% 0, rgba(180, 35, 24, 0.14), transparent 26%),
        radial-gradient(circle at 100% 0, rgba(20, 83, 45, 0.16), transparent 28%),
        var(--shop-bg);
}
body.shop.theme-easter {
    --shop-bg: #f7f4fb;
    --shop-ink: #2a1838;
    --shop-mute: #65577a;
    --shop-line: #e4d8f2;
    --shop-accent: #6d28d9;
    --shop-head: #5b2a86;
    --holiday-label: "Happy Easter";
    background:
        radial-gradient(circle at 0 0, rgba(244, 114, 182, 0.2), transparent 26%),
        radial-gradient(circle at 100% 0, rgba(109, 40, 217, 0.14), transparent 28%),
        var(--shop-bg);
}
body.shop.theme-independence {
    --shop-bg: #f5f7fb;
    --shop-ink: #10233f;
    --shop-mute: #51627a;
    --shop-line: #d5deea;
    --shop-accent: #b91c1c;
    --shop-head: #0c2340;
    --holiday-label: "Happy Independence Day";
    background:
        radial-gradient(circle at 0 0, rgba(185, 28, 28, 0.12), transparent 24%),
        radial-gradient(circle at 100% 0, rgba(12, 35, 64, 0.12), transparent 28%),
        var(--shop-bg);
}
body.shop.theme-thanksgiving {
    --shop-bg: #fbf6ee;
    --shop-ink: #3b2412;
    --shop-mute: #6f5640;
    --shop-line: #ead7bf;
    --shop-accent: #c2410c;
    --shop-head: #6b3410;
    --holiday-label: "Happy Thanksgiving";
    background:
        radial-gradient(circle at 0 0, rgba(194, 65, 12, 0.16), transparent 26%),
        radial-gradient(circle at 100% 0, rgba(146, 64, 14, 0.12), transparent 24%),
        var(--shop-bg);
}
body.shop.theme-valentine {
    --shop-bg: #fff5f7;
    --shop-ink: #3f1220;
    --shop-mute: #7a4a58;
    --shop-line: #f3d0d8;
    --shop-accent: #be123c;
    --shop-head: #881337;
    --holiday-label: "Happy Valentine's Day";
    background:
        radial-gradient(circle at 12% 0, rgba(190, 18, 60, 0.14), transparent 26%),
        radial-gradient(circle at 100% 0, rgba(244, 114, 182, 0.18), transparent 24%),
        var(--shop-bg);
}
body.shop.theme-new-year {
    --shop-bg: #f6f5f1;
    --shop-ink: #17181c;
    --shop-mute: #5c584e;
    --shop-line: #e4dcc8;
    --shop-accent: #8a5a06;
    --shop-head: #111318;
    --holiday-label: "Happy New Year";
    background:
        radial-gradient(circle at 0 0, rgba(198, 161, 91, 0.22), transparent 26%),
        radial-gradient(circle at 100% 0, rgba(17, 19, 24, 0.08), transparent 28%),
        var(--shop-bg);
}
body.shop.shop-holiday::before {
    content: var(--holiday-label);
    display: block;
    text-align: center;
    background: var(--shop-head);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 1.3;
    padding: 7px 12px;
}
body.shop:is(.shop-holiday, .has-palette) .shop-top,
body.shop.look-fun:is(.shop-holiday, .has-palette) .shop-top,
body.shop.look-modern:is(.shop-holiday, .has-palette) .shop-top,
body.shop.look-old-school:is(.shop-holiday, .has-palette) .shop-top,
body.shop.look-shop-night:is(.shop-holiday, .has-palette) .shop-top,
body.shop.look-shop-night:is(.shop-holiday, .has-palette) .night-bar {
    background: var(--shop-head);
    color: #fff;
    border-bottom: 3px solid var(--shop-accent);
}
body.shop:is(.shop-holiday, .has-palette) .brand,
body.shop:is(.shop-holiday, .has-palette) .brand-name,
body.shop:is(.shop-holiday, .has-palette) .brand-tag,
body.shop:is(.shop-holiday, .has-palette) .shop-nav a,
body.shop:is(.shop-holiday, .has-palette) .night-meta,
body.shop:is(.shop-holiday, .has-palette) .night-meta a,
body.shop.look-fun:is(.shop-holiday, .has-palette) .brand,
body.shop.look-fun:is(.shop-holiday, .has-palette) .shop-nav a,
body.shop.look-modern:is(.shop-holiday, .has-palette) .shop-nav a,
body.shop.look-old-school:is(.shop-holiday, .has-palette) .brand,
body.shop.look-old-school:is(.shop-holiday, .has-palette) .shop-nav a,
body.shop.look-shop-night:is(.shop-holiday, .has-palette) .brand-name,
body.shop.look-shop-night:is(.shop-holiday, .has-palette) .brand-tag,
body.shop.look-shop-night:is(.shop-holiday, .has-palette) .night-meta,
body.shop.look-shop-night:is(.shop-holiday, .has-palette) .shop-nav a {
    color: #fff;
}
body.shop:is(.shop-holiday, .has-palette) .shop-nav a:hover,
body.shop.look-fun:is(.shop-holiday, .has-palette) .shop-nav a:hover,
body.shop.look-old-school:is(.shop-holiday, .has-palette) .shop-nav a:hover {
    color: #fff;
}
body.shop.look-shop-night:is(.shop-holiday, .has-palette) .shop-nav a { border-bottom-color: var(--shop-accent); }
body.shop:is(.shop-holiday, .has-palette) .btn,
body.shop.look-fun:is(.shop-holiday, .has-palette) .btn,
body.shop.look-modern:is(.shop-holiday, .has-palette) .btn,
body.shop.look-old-school:is(.shop-holiday, .has-palette) .btn,
body.shop.look-shop-night:is(.shop-holiday, .has-palette) .btn,
body.shop:is(.shop-holiday, .has-palette) .btn:hover,
body.shop.look-fun:is(.shop-holiday, .has-palette) .btn:hover,
body.shop.look-modern:is(.shop-holiday, .has-palette) .btn:hover,
body.shop.look-old-school:is(.shop-holiday, .has-palette) .btn:hover {
    background: var(--shop-accent);
    color: #fff;
    box-shadow: none;
}
body.shop:is(.shop-holiday, .has-palette) .shop-tile-price,
body.shop.look-shop-night:is(.shop-holiday, .has-palette) .shop-tile-price { color: var(--shop-accent); }


/* Shop page designer. Public rules apply on the shop. Editor rules apply on Website. */
.about-palette { display: flex; flex-wrap: wrap; gap: 8px; }
.about-palette button {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 1px dashed var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: grab;
}
.about-palette button:active { cursor: grabbing; }
body.shop .page-build {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
}
body.shop .page-build-space { width: 100%; flex: 0 0 100%; pointer-events: none; }
body.shop .page-build-canvas { position: absolute; inset: 0; pointer-events: none; }
body.shop .page-build-canvas > .page-build-box,
body.shop .page-build-canvas > .page-build-text,
body.shop .page-build-canvas > .page-build-icon,
body.shop .page-build > .page-build-text[data-w],
body.shop .page-build > .page-build-icon[data-w] { pointer-events: auto; max-width: none; flex: none; box-sizing: border-box; }
body.shop .page-build-canvas > .page-build-text,
body.shop .page-build > .page-build-text[data-w] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
body.shop .page-build-copy {
  display: flow-root;
  width: 100%;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: start;
  line-height: 1.45;
}
body.shop .page-build-photo {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
body.shop .page-build-photo[data-side="left"] { float: left; margin: 0 12px 8px 0; }
body.shop .page-build-photo[data-side="right"] { float: right; margin: 0 0 8px 12px; }
body.shop .page-build > .page-build-box,
body.shop .page-build > .page-build-grid,
body.shop .page-build > .page-build-form,
body.shop .page-build > .page-build-circle,
body.shop .page-build > .page-build-icon,
body.shop .page-build > .page-build-image { min-width: 0; max-width: 100%; box-sizing: border-box; }
body.shop .page-build > .page-build-box[data-w],
body.shop .page-build > .page-build-grid[data-w],
body.shop .page-build > .page-build-circle[data-w],
body.shop .page-build > .page-build-icon[data-w],
body.shop .page-build > .page-build-image[data-w] { max-width: none; }
body.shop .page-build > .page-build-grid:not([data-w]),
body.shop .page-build > .page-build-form,
body.shop .page-build > .page-build-box[data-width="full"] { width: 100%; }
body.shop .page-build > .page-build-box[data-width="three"] { width: calc(75% - 12px); }
body.shop .page-build > .page-build-box[data-width="two"] { width: calc(66.666% - 12px); }
body.shop .page-build > .page-build-box[data-width="half"] { width: calc(50% - 8px); }
body.shop .page-build > .page-build-box[data-width="third"] { width: calc(33.333% - 11px); }
body.shop .page-build > .page-build-box[data-width="quarter"] { width: calc(25% - 12px); }
body.shop .page-build-box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: stretch;
  gap: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4e7ec;
  box-sizing: border-box;
}
body.shop .page-build-box > .page-build-box { min-width: 0; max-width: 100%; box-sizing: border-box; }
body.shop .page-build-box > .page-build-box[data-width="full"] { width: 100%; }
body.shop .page-build-box > .page-build-box[data-width="three"] { width: calc(75% - 12px); }
body.shop .page-build-box > .page-build-box[data-width="two"] { width: calc(66.666% - 12px); }
body.shop .page-build-box > .page-build-box[data-width="half"] { width: calc(50% - 8px); }
body.shop .page-build-box > .page-build-box[data-width="third"] { width: calc(33.333% - 11px); }
body.shop .page-build-box > .page-build-box[data-width="quarter"] { width: calc(25% - 12px); }
body.shop .page-build-box[data-corners="square"] { border-radius: 0; }
body.shop .page-build-circle {
  border-radius: 50%;
  aspect-ratio: 1;
  height: auto !important;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4e7ec;
}
body.shop .page-build-circle[data-fill="color"],
body.shop .page-build-circle[data-fill="gradient"],
body.shop .page-build-circle[data-fill="photo"] { box-shadow: none; }
body.shop .page-build-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  height: auto !important;
  box-sizing: border-box;
  color: #1e2b4d;
}
body.shop .page-build-icon svg { width: 78%; height: 78%; display: block; overflow: visible; }
body.shop .page-build-image { overflow: hidden; box-sizing: border-box; background: #f4f5f7; }
body.shop .page-build-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
body.shop .page-build > .page-build-box,
body.shop .page-build > .page-build-circle,
body.shop .page-build > .page-build-grid { z-index: 1; }
body.shop .page-build > .page-build-text,
body.shop .page-build > .page-build-icon,
body.shop .page-build > .page-build-image { z-index: 2; }
body.shop .page-build-cell.is-covered { display: none; }
body.shop .page-build-box[data-fill="color"],
body.shop .page-build-box[data-fill="gradient"],
body.shop .page-build-box[data-fill="photo"] { box-shadow: none; }
body.shop .page-build-box[data-height="short"] { min-height: 140px; }
body.shop .page-build-box[data-height="medium"] { min-height: 240px; }
body.shop .page-build-box[data-height="tall"] { min-height: 380px; }
body.shop .page-build-text { flex: 1 0 100%; width: 100%; padding: 16px; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; }
body.shop .page-build-text p,
body.shop .page-build-copy p { margin: 0; }
body.shop .page-build-text a { color: inherit; text-decoration: underline; }
body.shop .page-build-text ul,
body.shop .page-build-copy ul,
body.shop .page-build-text ol,
body.shop .page-build-copy ol {
  display: block;
  margin: 0.2em 0 0.2em 1.25em;
  padding: 0;
  list-style-position: outside;
}
body.shop .page-build-text ul,
body.shop .page-build-copy ul { list-style: disc; }
body.shop .page-build-text ol,
body.shop .page-build-copy ol { list-style: decimal; }
body.shop .page-build-text li,
body.shop .page-build-copy li { display: list-item; margin: 0; }
body.shop .page-build-text s,
body.shop .page-build-copy s { text-decoration: line-through; }
body.shop .page-build .page-build-text:empty { display: none; }
body.shop .page-build .page-build-text[data-fill="color"]:empty,
body.shop .page-build .page-build-text[data-fill="gradient"]:empty,
body.shop .page-build .page-build-text[data-fill="photo"]:empty { display: flex; }
body.shop .page-build-grid { display: grid; gap: 8px; width: 100%; }
body.shop .page-build-grid[data-w] { overflow: hidden; box-sizing: border-box; }
body.shop .page-build-grid[data-w] > .page-build-cell { min-width: 0; min-height: 0; box-sizing: border-box; }
body.shop .page-build-grid[data-cols="1"] { grid-template-columns: 1fr; }
body.shop .page-build-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.shop .page-build-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.shop .page-build-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.shop .page-build-grid[data-border="1"] {
  border: 1px solid #d5dbe6;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}
body.shop .page-build-cell { position: relative; min-height: 64px; }
body.shop .page-build-grid[data-border="1"] .page-build-cell { border-radius: 8px; box-shadow: inset 0 0 0 1px #d5dbe6; }
body.shop .page-build-cell-photo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
}
body.shop .page-build-form {
  display: grid;
  gap: 12px;
  width: 100%;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 16px;
}
body.shop .page-build-form label { display: grid; gap: 6px; font-weight: 650; color: #10141c; }
body.shop .page-build-form input[type="text"],
body.shop .page-build-form input[type="email"],
body.shop .page-build-form input[type="tel"],
body.shop .page-build-form textarea {
  width: 100%;
  font: inherit;
  font-weight: 500;
  padding: 10px 12px;
  border: 1px solid #d5dbe6;
  border-radius: 8px;
  background: #fff;
  color: #10141c;
  box-sizing: border-box;
}
body.shop .page-build-form textarea { min-height: 120px; }
body.shop .page-build-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 700px) {
  body.shop .page-build > .page-build-box:not([data-w]):not([data-x]),
  body.shop .page-build-box > .page-build-box:not([data-w]):not([data-x]) { width: 100% !important; }
  body.shop .page-build-grid:not([data-w]) { grid-template-columns: 1fr !important; }
}
.page-builder { display: grid; gap: 12px; }
.page-builder [hidden] { display: none !important; }
.pb-inspector {
  display: block;
  position: relative;
  z-index: 30;
  min-width: 0;
  max-width: 100%;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #d5dbe6;
  border-radius: 8px;
  color: #333;
  box-sizing: border-box;
}
.pb-field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: #333; }
.pb-field input,
.pb-field select,
.pb-form-row input,
.pb-form-row select {
  font: inherit;
  font-weight: 500;
  padding: 6px 8px;
  border: 1px solid #c5cad3;
  border-radius: 8px;
  background: #fff;
  color: #10141c;
  width: 100%;
  box-sizing: border-box;
}
.pb-form-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; grid-column: 1 / -1; }
.pb-form-row input { flex: 1 1 140px; width: auto; }
.pb-form-row select { width: auto; flex: none; }
.pb-form-row .pb-remove { flex: none; }
.pb-hint { grid-column: 1 / -1; margin: 0; color: #5c6573; font-weight: 500; }
.pb-sheet {
  position: relative;
  min-height: 70vh;
  background: #f4f5f7;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 0;
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: flex-start;
  box-sizing: border-box;
}
.pb-empty { width: 100%; margin: 48px 0; text-align: center; color: #5c6573; }
.pb-sheet-extend {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 8;
  width: 88px;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 1px solid #d96b22;
  border-radius: 8px;
  background: #fff;
  transform: translateX(-50%);
  cursor: ns-resize;
  touch-action: none;
}
.pb-sheet-extend::after { content: ''; position: absolute; inset: -12px -8px; }
.pb-spacer { width: 100%; flex: 0 0 100%; pointer-events: none; }
.pb-gap { flex: 1 0 100%; height: 4px; border-radius: 4px; background: #d96b22; }
.pb-gap.is-snap { position: absolute; left: 8px; right: 8px; width: auto; flex: none; z-index: 6; pointer-events: none; }
.pb-block { position: relative; min-width: 0; box-sizing: border-box; }
.page-builder .pb-block.is-moving { cursor: grabbing; user-select: none; }
.page-builder .page-build-copy,
.page-builder .note-editable { cursor: text; touch-action: auto; }
.pb-block[data-kind="box"],
.pb-block[data-kind="circle"],
.pb-block[data-kind="grid"][data-w] { position: absolute; z-index: 1; margin: 0; }
.pb-block[data-kind="text"],
.pb-block[data-kind="icon"],
.pb-block[data-kind="image"] { position: absolute; z-index: 2; margin: 0; }
.pb-block[data-kind="box"].is-on,
.pb-block[data-kind="box"].is-moving,
.pb-block[data-kind="circle"].is-on,
.pb-block[data-kind="circle"].is-moving,
.pb-block[data-kind="grid"][data-w].is-on,
.pb-block[data-kind="grid"][data-w].is-moving,
.pb-block[data-kind="text"].is-on,
.pb-block[data-kind="text"].is-moving,
.pb-block[data-kind="icon"].is-on,
.pb-block[data-kind="icon"].is-moving,
.pb-block[data-kind="image"].is-on,
.pb-block[data-kind="image"].is-moving { z-index: 4; }
.pb-block[data-width="full"] { width: 100%; }
.pb-block[data-width="three"] { width: calc(75% - 12px); }
.pb-block[data-width="two"] { width: calc(66.666% - 12px); }
.pb-block[data-width="half"] { width: calc(50% - 8px); }
.pb-block[data-width="third"] { width: calc(33.333% - 11px); }
.pb-block[data-width="quarter"] { width: calc(25% - 12px); }
.pb-block.is-on { outline: 2px solid #d96b22; outline-offset: 2px; border-radius: 12px; }
.pb-block[data-kind="box"][data-corners="square"].is-on { border-radius: 0; }
.pb-block[data-kind="circle"] { aspect-ratio: 1; height: auto !important; }
.pb-block[data-kind="circle"].is-on { border-radius: 50%; }
.pb-block[data-kind="icon"] { aspect-ratio: 1; height: auto !important; }
.pb-block.is-dragging { opacity: 0.45; }
.pb-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 2px 6px; border-radius: 8px; background: #fff; color: #5c6573; font-size: 12px; font-weight: 700; }
.page-builder .pb-block > .pb-bar { display: none; }
.page-builder .pb-block.is-on > .pb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 8;
  gap: 6px;
  margin: 0 0 8px;
  padding: 4px 6px;
  background: #fff;
  border: 1px solid #d5dbe6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(16, 20, 28, 0.08);
}
.page-builder .pb-block.is-on[data-kind="box"] > .pb-bar,
.page-builder .pb-block.is-on[data-kind="circle"] > .pb-bar,
.page-builder .pb-block.is-on[data-kind="grid"][data-w] > .pb-bar,
.page-builder .pb-block.is-on[data-kind="text"] > .pb-bar,
.page-builder .pb-block.is-on[data-kind="icon"] > .pb-bar,
.page-builder .pb-block.is-on[data-kind="image"] > .pb-bar {
  position: absolute;
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: min(720px, calc(100vw - 24px));
  margin: 0;
}
.pb-block[data-kind="box"] > .pb-bar span,
.pb-block[data-kind="circle"] > .pb-bar span,
.pb-block[data-kind="grid"][data-w] > .pb-bar span,
.pb-block[data-kind="text"] > .pb-bar span,
.pb-block[data-kind="icon"] > .pb-bar span,
.pb-block[data-kind="image"] > .pb-bar span { flex: none; }
.pb-block.is-nest-target > .page-build-box,
.pb-block.is-nest-target > .page-build-circle { box-shadow: inset 0 0 0 2px #d96b22; }
.pb-nest-add { grid-column: 1 / -1; justify-self: start; }
.pb-block[data-kind="box"] > .pb-bar,
.pb-block[data-kind="grid"][data-w] > .pb-bar,
.pb-block[data-kind="text"] > .pb-bar { flex-wrap: wrap; }
.pb-block.is-on > .pb-bar > .pb-bar-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
}
.pb-bar-action {
  height: 21px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #1e2b4d;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 21px;
  cursor: pointer;
}
.pb-bar-action:hover { color: #d96b22; }
.pb-bar-menu { position: relative; display: inline-flex; flex: none; }
.pb-bar-menu-btn {
  height: 21px;
  margin: 0;
  padding: 0 14px 0 4px;
  border: 0;
  background: transparent;
  color: #5c6573;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 21px;
  cursor: pointer;
  box-sizing: border-box;
}
.pb-bar-menu-btn::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #5c6573;
  vertical-align: 2px;
}
.pb-bar-menu-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  min-width: 100%;
  max-width: calc(100vw - 16px);
  padding: 4px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #e4e7ec;
  max-height: 240px;
  overflow: auto;
  box-sizing: border-box;
}
.pb-bar-menu-list button {
  border: 0;
  background: transparent;
  color: #5c6573;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-align: left;
  white-space: nowrap;
  padding: 4px 8px;
  cursor: pointer;
}
.pb-bar-menu-list button.is-on { color: #1e2b4d; font-weight: 700; }
.pb-color-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(16, 20, 28, 0.25);
  vertical-align: -1px;
}
.pb-color-board { flex-direction: row; align-items: center; gap: 8px; padding: 8px; }
.pb-color-board input[type="color"] {
  width: 44px;
  height: 32px;
  padding: 0;
  border: 1px solid #d5dbe6;
  border-radius: 6px;
  background: #fff;
}
.pb-color-board .pb-color-apply {
  height: 28px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: #d96b22;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.pb-bar-tools .pb-field {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: 100%;
  height: 28px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #d5dbe6;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  box-sizing: border-box;
}
.pb-bar .pb-bar-menu-btn,
.pb-bar .pb-bar-action,
.pb-bar .pb-nest-add {
  height: 28px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #d5dbe6;
  border-radius: 8px;
  background: #fff;
  color: #1e2b4d;
  line-height: 26px;
  box-sizing: border-box;
}
.pb-bar .pb-bar-menu-btn { padding: 0 16px 0 8px; }
.pb-bar .pb-bar-menu-btn:hover,
.pb-bar .pb-bar-action:hover,
.pb-bar .pb-nest-add:hover { border-color: #d96b22; color: #d96b22; }
.pb-bar .pb-icon-pick,
.pb-bar .pb-photos,
.pb-bar .pb-form-row,
.pb-bar .pb-hint {
  flex: 1 0 100%;
  min-width: 0;
  max-width: 100%;
}
.pb-bar .pb-bar-tools .pb-field input[type="text"],
.pb-bar .pb-bar-tools .pb-field input[type="email"] {
  width: 12rem;
  max-width: 100%;
  height: 22px;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
}
.pb-bar-tools select {
  height: 21px;
  width: auto;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5c6573;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 21px;
  box-sizing: border-box;
}
.pb-bar-tools .pb-field select,
.pb-bar-tools .pb-field input[type="color"] {
  width: auto;
  font-size: 12px;
  font-weight: 500;
  padding: 0 2px;
  border-radius: 6px;
}
.pb-bar-tools .pb-field input[type="color"] { width: 28px; height: 21px; padding: 0; }
.pb-bar-tools .pb-thumb { width: 36px; height: 36px; padding: 0; }
.pb-bar-tools .pb-photos { display: flex; flex-wrap: wrap; flex: 1 0 100%; grid-column: auto; width: auto; max-width: 100%; }
.pb-bar span { flex: 1; }
.pb-drag, .pb-remove { border: 0; background: transparent; color: #5c6573; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 2px 4px; }
.pb-drag { cursor: grab; }
.pb-block[data-kind="box"] .pb-drag,
.pb-block[data-kind="circle"] .pb-drag,
.pb-block[data-kind="grid"][data-w] .pb-drag,
.pb-block[data-kind="text"] .pb-drag,
.pb-block[data-kind="icon"] .pb-drag,
.pb-block[data-kind="image"] .pb-drag { touch-action: none; cursor: move; }
.page-builder .page-build-box {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: stretch;
  gap: 12px;
  min-height: 72px;
  border-radius: 12px;
  overflow: visible;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4e7ec;
}
.page-builder .page-build-box[data-corners="square"] { border-radius: 0; }
.page-builder .pb-block[data-kind="circle"] > .page-build-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4e7ec;
}
.page-builder .page-build-circle[data-fill="color"],
.page-builder .page-build-circle[data-fill="gradient"],
.page-builder .page-build-circle[data-fill="photo"] { box-shadow: none; }
.page-builder .pb-block[data-kind="icon"] > .page-build-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e2b4d;
  box-sizing: border-box;
}
.page-builder .page-build-icon svg { width: 78%; height: 78%; display: block; overflow: visible; }
.page-builder .pb-block[data-kind="image"] > .page-build-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background: #f4f5f7;
  box-shadow: inset 0 0 0 1px #e4e7ec;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-builder .page-build-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.page-builder .page-build-image.is-empty::before { content: "Image"; color: #5c6573; font-size: 13px; font-weight: 700; }
.pb-icon-label { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: #333; }
.pb-icon-pick { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, 40px); gap: 6px; }
.pb-icon-choice {
  width: 40px;
  height: 40px;
  padding: 4px;
  border: 1px solid #d5dbe6;
  border-radius: 8px;
  background: #fff;
  color: #1e2b4d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pb-icon-choice.is-on { border-color: #d96b22; box-shadow: inset 0 0 0 1px #d96b22; }
.pb-icon-choice svg { width: 22px; height: 22px; display: block; }
.page-builder .pb-block[data-kind="box"] > .page-build-box {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}
.page-builder .page-build-canvas { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.page-builder .page-build-canvas > .pb-block { pointer-events: auto; }
.page-builder .page-build-box > .page-build-text { flex: 1 0 100%; }
.page-builder .pb-block[data-kind="box"] > .page-build-box > .page-build-text { position: relative; z-index: 1; flex: none; width: auto; }
.page-builder .pb-block[data-kind="text"] > .page-build-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  overflow: auto;
  border-radius: 12px;
  cursor: text;
}
.page-builder .page-build-copy {
  display: flow-root;
  min-width: 0;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  outline: none;
}
.page-builder .page-build-text .note-editable { display: flow-root; }
.page-builder .page-build-photo {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
}
.page-builder .note-editor .note-editable img.page-build-photo,
.page-builder .page-build-copy img.page-build-photo {
  width: auto;
  max-width: 100%;
  height: auto;
}
.page-builder .page-build-photo.is-picked {
  outline: 2px solid #d96b22;
  outline-offset: 1px;
}
.pb-photo-remove {
  position: fixed;
  z-index: 30;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #5c6573;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  padding: 2px 6px;
  box-shadow: 0 1px 4px rgba(16, 20, 28, 0.18);
}
.page-builder .page-build-photo[data-side="left"] { float: left; margin: 0 12px 8px 0; }
.page-builder .page-build-photo[data-side="right"] { float: right; margin: 0 0 8px 12px; }
.page-builder .page-build-photo-ghost {
  width: 42%;
  max-width: 220px;
  height: 140px;
  min-height: 140px;
  background: repeating-linear-gradient(135deg, #eef1f6, #eef1f6 8px, #e4e8f0 8px, #e4e8f0 16px);
  border: 1px dashed #9aa3b5;
  box-sizing: border-box;
  pointer-events: none;
}
.page-builder .pb-block[data-kind="text"] > .page-build-text > .page-build-copy {
  width: 100%;
  box-sizing: border-box;
  text-align: start;
  line-height: 1.45;
}
.page-builder .pb-block[data-kind="text"] > .page-build-text > .page-build-copy:empty::before {
  content: 'Type here';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #8b93a3;
  white-space: normal;
  pointer-events: none;
}
.page-builder .page-build-box[data-height="short"] { min-height: 140px; }
.page-builder .page-build-box[data-height="medium"] { min-height: 240px; }
.page-builder .page-build-box[data-height="tall"] { min-height: 380px; }
.page-builder .page-build-text {
  min-height: 1.4em;
  padding: 16px;
  outline: none;
  color: #10141c;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}
.page-builder .page-build-text:empty::before { content: 'Type here'; color: #8b93a3; }
.page-builder .page-build-cell > .page-build-text:empty::before { content: none; }
.page-builder .page-build-cell[data-fill="text"] > .page-build-text > .page-build-copy:empty::before {
  content: 'Type here';
  color: #8b93a3;
}
.page-builder .pb-block:not(.is-on) > .pb-resize { display: none; }
.pb-resize {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 1px solid #d96b22;
  border-radius: 3px;
  background: #fff;
  z-index: 6;
  touch-action: none;
}
.pb-resize::after { content: ''; position: absolute; inset: -6px; }
.pb-resize-n { top: -7px; left: 50%; margin-left: -7px; cursor: ns-resize; }
.pb-resize-s { bottom: -7px; left: 50%; margin-left: -7px; cursor: ns-resize; }
.pb-resize-e { right: -7px; top: 50%; margin-top: -7px; cursor: ew-resize; }
.pb-resize-w { left: -7px; top: 50%; margin-top: -7px; cursor: ew-resize; }
.pb-resize-ne { top: -7px; right: -7px; cursor: nesw-resize; }
.pb-resize-nw { top: -7px; left: -7px; cursor: nwse-resize; }
.pb-resize-se { bottom: -7px; right: -7px; cursor: nwse-resize; }
.pb-resize-sw { bottom: -7px; left: -7px; cursor: nesw-resize; }
.page-builder .page-build-grid { display: grid; gap: 8px; width: 100%; }
.page-builder .pb-block[data-kind="grid"][data-w] > .page-build-grid { height: 100%; box-sizing: border-box; overflow: hidden; }
.page-builder .pb-block[data-kind="grid"][data-w] > .page-build-grid > .page-build-cell { min-width: 0; min-height: 0; }
.page-builder .pb-block[data-kind="grid"][data-w] > .page-build-grid > .page-build-cell > .page-build-text {
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
}
.page-builder .page-build-cell > .page-build-text > .page-build-copy {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
}
.page-builder .page-build-copy p { margin: 0; }
.page-builder .note-editable ul,
.page-builder .page-build-copy ul,
.page-builder .note-editable ol,
.page-builder .page-build-copy ol {
  display: block;
  margin: 0.2em 0 0.2em 1.25em;
  padding: 0;
  list-style-position: outside;
}
.page-builder .note-editable ul,
.page-builder .page-build-copy ul { list-style: disc; }
.page-builder .note-editable ol,
.page-builder .page-build-copy ol { list-style: decimal; }
.page-builder .note-editable li,
.page-builder .page-build-copy li { display: list-item; margin: 0; }
.page-builder .note-editable s,
.page-builder .page-build-copy s { text-decoration: line-through; }
.page-builder .page-build-copy a { color: inherit; text-decoration: underline; }
.page-builder .page-build-text > .note-editor.note-frame,
.page-builder .page-build-text > .note-editor.note-airframe,
.page-builder .page-build-text > .note-editor .note-editing-area,
.page-builder .page-build-text > .note-editor .note-editable {
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
}
.page-builder .page-build-text > .note-editor.note-frame { margin: 0; }
.page-builder .page-build-text > .note-editor .note-statusbar { display: none; }
.page-builder .pb-block[data-kind="text"] > .page-build-text > .note-editor.note-frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-builder .pb-block[data-kind="text"] > .page-build-text > .note-editor .note-editing-area { flex: 0 0 auto; }
.page-builder .note-popover { display: none !important; }
.pb-rich-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 40;
  min-width: 0;
}
.site-page-panel[data-panel="page"] > .card { overflow: visible; }
.pb-rich-bar .note-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.pb-rich-bar .note-btn-group { display: inline-flex; margin: 0; position: relative; }
.pb-rich-bar .note-btn {
  padding: 4px 8px;
  font-size: 13px;
  line-height: 1.2;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d5dbe6;
  color: #1e2b4d;
  box-shadow: none;
}
.pb-rich-bar .note-dropdown-menu { z-index: 50; max-height: 240px; max-width: min(320px, calc(100vw - 24px)); overflow: auto; }
.pb-rich-bar .note-color .note-dropdown-menu { left: auto; right: 0; }
.pb-photo-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 4px);
  left: 0;
  width: min(320px, calc(100vw - 24px));
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #d5dbe6;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 20, 28, 0.16);
  box-sizing: border-box;
}
.pb-photo-menu-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pb-photo-menu-bar .is-on { border-color: #d96b22; color: #9a3d00; }
.pb-photo-menu-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pb-photo-menu-grid .muted { margin: 0; }
.pb-photo-menu .pb-thumb { width: 56px; height: 56px; }
.page-build-cell > .pb-rich-bar.is-cell {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 0;
  transform: translateY(calc(-100% - 4px));
  z-index: 8;
  width: auto;
  margin: 0;
  padding: 2px 4px;
  background: #fff;
  border: 1px solid #d5dbe6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(16, 20, 28, 0.12);
  box-sizing: border-box;
}
.page-build-cell > .pb-rich-bar.is-cell .note-toolbar { width: 100%; }
.pb-block.is-on > .pb-bar > .pb-rich-bar.is-piece {
  flex: 1 0 100%;
  width: 100%;
  min-width: 0;
  margin: 2px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.page-builder .page-build-text > .note-editor.note-frame .note-editing-area .note-editable,
.page-builder .page-build-text > .note-editor.note-airframe .note-editing-area .note-editable {
  min-height: 0;
  padding: 0;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}
.page-builder .page-build-text > .note-editor .note-editable p { margin: 0; }
.page-builder .page-build-text > .note-editor .note-editable a { color: inherit; text-decoration: underline; }
.page-builder .page-build-cell > .page-build-text > .note-editor.note-frame .note-editing-area .note-editable,
.page-builder .page-build-cell > .page-build-text > .note-editor.note-airframe .note-editing-area .note-editable { padding: 16px; box-sizing: border-box; }
.page-builder .pb-block[data-kind="text"] > .page-build-text > .note-editor .note-placeholder,
.page-builder .page-build-cell[data-fill="text"] > .page-build-text > .note-editor .note-placeholder { color: #8b93a3; }
.page-builder .pb-block[data-kind="text"] > .page-build-text > .note-editor .note-placeholder { text-align: center; }
.page-builder .page-build-grid[data-cols="1"] { grid-template-columns: 1fr; }
.page-builder .page-build-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-builder .page-build-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-builder .page-build-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-builder .page-build-grid[data-border="1"] { border: 1px solid #d5dbe6; border-radius: 12px; padding: 8px; background: #fff; }
.page-builder .page-build-cell { position: relative; min-height: 72px; border-radius: 8px; }
.page-builder .page-build-grid[data-border="1"] .page-build-cell { box-shadow: inset 0 0 0 1px #d5dbe6; }
.page-builder .page-build-cell.is-on { outline: 2px solid #d96b22; }
.page-builder .page-build-cell-photo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  pointer-events: none;
}
.page-builder .pb-cell-photo-resize,
.page-builder .pb-cell-photo-remove {
  position: absolute;
  z-index: 8;
  margin: 0;
}
.page-builder .pb-cell-photo-resize {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #d96b22;
  border-radius: 2px;
  background: #fff;
  transform: translate(-100%, -100%);
  cursor: nwse-resize;
  touch-action: none;
}
.page-builder .pb-cell-photo-remove {
  transform: none;
  border: 0;
  background: #fff;
  color: #1e2b4d;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  padding: 0 4px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px #e4e7ec;
  cursor: pointer;
}
.page-builder .page-build-cell:not(.is-on) > .pb-cell-photo-resize,
.page-builder .page-build-cell:not(.is-on) > .pb-cell-photo-remove { display: none; }
.pb-cell-resize {
  position: absolute;
  z-index: 5;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  touch-action: none;
}
.pb-cell-resize-e { top: 0; right: -16px; width: 24px; height: 100%; cursor: ew-resize; }
.pb-cell-resize-s { left: 0; bottom: -16px; width: 100%; height: 24px; cursor: ns-resize; }
.pb-cell-resize-se { right: -16px; bottom: -16px; width: 24px; height: 24px; cursor: nwse-resize; z-index: 6; }
.pb-cell-resize-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border: 1px solid #d96b22;
  border-radius: 2px;
  background: #fff;
  pointer-events: none;
}
.pb-form-preview { display: grid; gap: 10px; background: #fff; border: 1px solid #e4e7ec; border-radius: 12px; padding: 16px; }
.pb-fake-label { display: grid; gap: 6px; margin: 0; font-weight: 700; color: #10141c; }
.pb-fake-input { display: block; min-height: 40px; border: 1px solid #d5dbe6; border-radius: 8px; background: #f4f5f7; }
.pb-fake-input.is-tall { min-height: 96px; }
.pb-photos { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pb-thumb { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #eee; cursor: pointer; }
.pb-thumb.is-on { border-color: #d96b22; }
.pb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-theme="dark"] .pb-sheet { background: #f4f5f7; }
html[data-theme="dark"] .pb-inspector,
html[data-theme="dark"] .pb-inspector input,
html[data-theme="dark"] .pb-inspector select,
html[data-theme="dark"] .pb-form-row input,
html[data-theme="dark"] .pb-form-row select { background: #fff; color: #10141c; }
@media (max-width: 700px) {
  .pb-block[data-kind="grid"]:not([data-w]),
  .pb-block[data-kind="form"] { width: 100% !important; }
  .page-builder .pb-block[data-kind="grid"]:not([data-w]) > .page-build-grid { grid-template-columns: 1fr !important; }
}
