/* Metro Package System
   Warm-neutral surfaces, charcoal ink (from the Metro logo) and an amber "lamp glow" accent. */

:root {
	--bg: #f6f4ef;
	--surface: #ffffff;
	--surface-2: #faf8f4;
	--border: #e5e0d6;
	--border-strong: #d4cdbf;
	--ink: #1d1c1a;
	--ink-2: #45433e;
	--muted: #77736a;
	--accent: #e39b2d;
	--accent-strong: #c97f12;
	--accent-soft: #fcf1de;
	--accent-ink: #6e4304;
	--danger: #b42318;
	--danger-soft: #fdecea;
	--success: #15703a;
	--success-soft: #e6f4ea;
	--info-soft: #e9f0fb;
	--info: #1f4f99;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgba(29, 28, 26, .06), 0 2px 8px rgba(29, 28, 26, .05);
	--shadow-lift: 0 4px 18px rgba(29, 28, 26, .12);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", Impact, sans-serif;
	color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 15px/1.5 var(--font);
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 58px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark { font-family: var(--font-display); font-stretch: condensed; font-weight: 900; font-size: 1.6rem; letter-spacing: .02em; color: #fff; }
.brand-sub { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.topnav { display: flex; gap: 4px; flex: 1; }
.topnav a { color: #d9d5cc; text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 500; }
.topnav a:hover { background: rgba(255,255,255,.08); color: #fff; }

.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 8px; border-radius: var(--radius-sm); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: rgba(255,255,255,.08); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.usermenu-name { color: #e9e6df; }
.usermenu-panel { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lift); min-width: 240px; padding: 6px; }
.usermenu-panel a, .usermenu-panel .linklike { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; font: inherit; }
.usermenu-panel a:hover, .usermenu-panel .linklike:hover { background: var(--surface-2); }
.usermenu-email { padding: 8px 10px; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; }

/* ---------- Page structure ---------- */
.main { max-width: 1240px; margin: 0 auto; padding: 28px 20px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .lead { color: var(--muted); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--border-strong); }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

/* ---------- Buttons & forms ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	font: 600 .92rem/1 var(--font); padding: 10px 16px; border-radius: var(--radius-sm);
	border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
	text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn-small { padding: 7px 11px; font-size: .84rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field-hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=tel], select, textarea {
	width: 100%; font: inherit; color: var(--ink); background: var(--surface);
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible {
	outline: 3px solid rgba(227, 155, 45, .45); outline-offset: 1px; border-color: var(--accent-strong);
}
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.search { position: relative; width: 340px; max-width: 100%; }
.search input { padding-left: 38px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ---------- Flash messages ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid transparent; overflow-wrap: anywhere; }
.flash a { font-weight: 600; }
.flash-success { background: var(--success-soft); color: var(--success); border-color: #bfe3cb; }
.flash-error { background: var(--danger-soft); color: var(--danger); border-color: #f5c6c0; }
.flash-info { background: var(--info-soft); color: var(--info); border-color: #c8d8f2; }

/* ---------- Cards & lists ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile {
	display: flex; gap: 14px; align-items: center; padding: 16px; text-decoration: none;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
	transition: border-color .12s, box-shadow .12s, transform .12s;
}
.tile:hover { border-color: var(--accent); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.tile-logo { width: 56px; height: 56px; flex: none; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; grid-template: 100% / 100%; overflow: hidden; }
.tile-logo img { width: 100%; height: 100%; object-fit: contain; }
.tile-logo .initials { font-weight: 800; font-size: 1.15rem; color: var(--accent-ink); }
.tile-body { min-width: 0; }
.tile-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-meta { font-size: .84rem; color: var(--muted); }

.badge { display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); vertical-align: middle; }
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: #f2d8ad; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: #bfe3cb; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: #c8d8f2; }

.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--border); text-decoration: none; }
.list-row:first-child { border-top: 0; }
a.list-row:hover { background: var(--surface-2); }
.list-row .grow { flex: 1; min-width: 0; }
.list-title { font-weight: 600; }
.list-sub { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-thumb { width: 54px; height: 54px; flex: none; border-radius: 6px; background: #fff; border: 1px solid var(--border); object-fit: contain; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 6px; }

/* ---------- Header block for a builder / project ---------- */
.hero { display: flex; gap: 20px; align-items: center; }
.hero-logo { width: 84px; height: 84px; flex: none; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); display: grid; place-items: center; grid-template: 100% / 100%; overflow: hidden; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.hero-logo .initials { font-weight: 800; font-size: 1.6rem; color: var(--accent-ink); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); margin-top: 6px; }

/* ---------- Package items ---------- */
.items { display: grid; gap: 12px; }
.item { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.item-img { width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 6px; }
.item-loc { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.item-name { font-weight: 700; font-size: 1.05rem; }
.item-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .86rem; color: var(--ink-2); margin-top: 4px; }
.item-notes { margin-top: 8px; font-size: .88rem; background: var(--surface-2); border-left: 3px solid var(--accent); padding: 6px 10px; border-radius: 0 6px 6px 0; white-space: pre-line; }
.item-price { text-align: right; font-weight: 700; white-space: nowrap; }
.item-price .muted { font-weight: 500; }
.totals { display: flex; justify-content: flex-end; gap: 24px; margin-top: 16px; font-size: 1rem; }

/* ---------- Sign-in pages ---------- */
body.bare { background: radial-gradient(1200px 500px at 50% -120px, #fff3dc 0%, var(--bg) 60%); }
.auth-main { max-width: 440px; margin: 0 auto; padding: 56px 20px; }
.auth-brand { text-align: center; margin-bottom: 26px; }
.auth-brand .brand-mark { color: var(--ink); font-size: 2.6rem; display: block; line-height: 1; }
.auth-brand .brand-sub { display: block; margin-top: 6px; color: var(--accent-strong); }
.auth-card h1 { font-size: 1.35rem; margin-bottom: 18px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.auth-foot a { color: var(--ink); font-weight: 600; }
.split { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: .9rem; }

/* ---------- Claim page ---------- */
.claim-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); }
.claim-row:first-child { border-top: 0; }
.claim-form { display: flex; gap: 8px; align-items: center; }
.claim-form input { width: 150px; padding: 7px 10px; }

/* ---------- Forms pages ---------- */
.form-card { max-width: 760px; }
.form-card + .form-card { margin-top: 18px; }
.form-section { margin: 26px 0 4px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 1rem; }
.form-section + p { margin-bottom: 12px; }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }
fieldset.choices { border: 0; padding: 0; margin: 0 0 16px; }
fieldset.choices legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
fieldset.choices .check { margin-bottom: 6px; font-weight: 400; }
.logo-field { display: flex; gap: 16px; align-items: flex-start; }
.logo-preview { width: 96px; height: 72px; flex: none; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: #fff; display: grid; place-items: center; grid-template: 100% / 100%; overflow: hidden; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.danger-zone { border-color: #f1d3cf; }
.danger-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.danger-row + .danger-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.danger-text { color: var(--danger); }

/* ---------- Sortable rows with a menu ---------- */
.list-row-wrap { display: flex; align-items: center; border-top: 1px solid var(--border); background: var(--surface); }
.list-row-wrap:first-child { border-top: 0; }
.list:has(.row-menu) { overflow: visible; }   /* let menus extend past the list; round the rows instead */
.list-row-wrap:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.list-row-wrap:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.list-row-wrap:only-child { border-radius: var(--radius); }
.list-row-wrap .list-row { flex: 1; min-width: 0; border-top: 0; padding-left: 12px; }
.list-row-wrap:hover { background: var(--surface-2); }
.list-row-wrap .list-row:hover { background: transparent; }
.drag-handle { cursor: grab; color: var(--border-strong); padding: 14px 0 14px 14px; font-size: 1.2rem; user-select: none; }
.drag-handle:hover { color: var(--ink-2); }
.drag-handle-hint { color: var(--ink-2); }
.drag-ghost { opacity: .4; background: var(--accent-soft); }
.row-menu { position: relative; margin-right: 10px; }
.row-menu summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--muted); font-size: 1.2rem; line-height: 1; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary:hover, .row-menu[open] summary { background: var(--border); color: var(--ink); }
.row-menu-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lift); min-width: 160px; padding: 6px; }
.row-menu-panel a, .row-menu-panel .linklike { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; }
.row-menu-panel a:hover, .row-menu-panel .linklike:hover { background: var(--surface-2); }

/* ---------- Package editor ---------- */
.row-4 { grid-template-columns: repeat(4, 1fr); }
.totals-bar {
	position: sticky; top: 58px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: baseline;
	background: rgba(246, 244, 239, .94); backdrop-filter: blur(6px); padding: 10px 0 12px; margin: -6px 0 10px; border-bottom: 1px solid var(--border);
}
.totals-bar strong { font-size: 1.05rem; }
.item-edit { grid-template-columns: auto 110px 1fr auto; align-items: start; gap: 16px; padding: 14px 10px 14px 4px; }
.item-edit .drag-handle { padding: 4px 0 4px 10px; align-self: center; }
.item-edit .item-img { width: 110px; height: 110px; }
.item-main { min-width: 0; }
.item-desc { margin: 4px 0 0; }
.item-fields { display: grid; grid-template-columns: minmax(160px, 1fr) 80px 120px 96px; gap: 10px; align-items: end; margin-top: 10px; }
.item-fields label > span, .drawer-location > span { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .04em; }
.item-fields input { padding: 7px 9px; }
.f-line { padding-bottom: 9px; white-space: nowrap; }
.item-flags { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; margin-top: 8px; }
.item-flags .check { font-weight: 500; margin: 0; }
.save-state { color: var(--muted); margin-left: auto; min-height: 1em; }
.save-state.saved { color: var(--success); }
.f-notes { display: block; margin: 8px 0 0; }
.f-notes textarea { padding: 7px 9px; resize: none; overflow: hidden; min-height: 36px; font-size: .9rem; }
.item-edit .row-menu { margin-right: 0; }

/* Dragging (Sortable's mouse-based mode): the floating copy follows the pointer */
.drag-floating { opacity: .95 !important; box-shadow: var(--shadow-lift) !important; transform: rotate(1deg); }
.drag-chosen { background: var(--accent-soft); }

/* Compact view: one slim row per item for reordering */
.compact-loc { display: none; }
.items.compact { gap: 3px; }
.items.compact .item-edit { grid-template-columns: auto 36px 1fr auto; align-items: center; gap: 12px; padding: 2px 8px 2px 2px; border-radius: 6px; }
.items.compact .item-img { width: 36px; height: 36px; }
.items.compact .drag-handle { padding: 6px 0 6px 10px; }
.items.compact .row-menu summary { padding: 2px 10px; }
.items.compact .item-name { font-size: .95rem; }
.items.compact .compact-loc { display: inline; margin-left: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.items.compact .item-specs, .items.compact .item-desc, .items.compact .item-fields,
.items.compact .item-flags, .items.compact .f-notes { display: none; }
.btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.items-foot { display: flex; justify-content: flex-end; margin-top: 16px; }   /* right-aligned, like the top "+ Add items" */

/* Search drawer */
body.drawer-open { overflow: hidden; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); z-index: 40; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.15); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(29, 28, 26, .35); z-index: 39; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-controls { padding: 14px 20px; display: grid; gap: 10px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.drawer-controls .search { width: 100%; }
.drawer-controls .row { gap: 10px; }
.drawer-controls select { padding: 8px 10px; }
.drawer-location { display: block; margin: 0; font-weight: 400; }
.drawer-location input { padding: 8px 10px; }
.drawer-results { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.drawer-hint { padding: 20px 8px; text-align: center; }
.drawer-note { margin: 10px 8px; padding: 10px 12px; background: var(--accent-soft); border-radius: var(--radius-sm); color: var(--accent-ink); }
.drawer-note .linklike { text-decoration: underline; font-weight: 600; }
.drawer-sub { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 8px 4px; }
.drawer-foot { padding: 12px 20px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.drawer-foot a { color: var(--ink); font-weight: 600; }
.result { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.result img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 4px; }
.r-name { font-weight: 650; }
.r-specs { font-size: .84rem; color: var(--ink-2); }
.r-side { text-align: right; display: grid; gap: 4px; justify-items: end; }
.r-price { font-weight: 700; font-size: .92rem; }
.drawer-results [data-more] { margin-top: 12px; }

/* ---------- Sharing, links, admin ---------- */
.section-title { font-size: 1rem; margin: 28px 0 10px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 16px; margin-bottom: 10px;
	background: var(--accent-soft); border: 1px solid #f2d8ad; border-radius: var(--radius-sm); color: var(--accent-ink); }
.share-list { overflow: visible; }
.share-row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border); }
.share-row:first-child { border-top: 0; }
.share-pending { background: var(--accent-soft); }
.share-who { flex: 1; min-width: 220px; }
.share-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.perm-checks { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.perm-checks .check { margin: 0; font-weight: 500; }
.perm-fixed { font-size: .85rem; color: var(--muted); }
.share-add { max-width: 760px; }
.share-add-row { display: flex; gap: 10px; align-items: flex-end; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
.user-row:first-child { border-top: 0; }
.user-row.is-disabled { opacity: .6; }
.user-who { flex: 1; min-width: 0; }
.user-menu-panel { min-width: 260px; }
.transfer-form { border-top: 1px solid var(--border); margin-top: 6px; padding: 8px 10px 4px; display: grid; gap: 6px; }
.transfer-form select { padding: 6px 8px; }

/* Product edit page */
.photo-edit { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
/* A plain block (not a centering grid), so the photo's 100% height means the box's fixed 180px;
   object-fit then scales the photo down to fit and centers it, whatever its shape */
.photo-preview { width: 180px; height: 180px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.photo-preview img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
input[readonly] { background: var(--surface-2); color: var(--ink-2); }
@media (max-width: 720px) { .photo-edit { grid-template-columns: 1fr; } }

/* Wish list import result */
.import-report { padding: 14px 18px; margin-bottom: 16px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid #f2d8ad; color: var(--accent-ink); }
.import-report.is-ok { background: var(--success-soft); border-color: #bfe3cb; color: var(--success); }
.import-report-head { font-weight: 700; margin-top: 10px; }
.import-report ul { margin: 4px 0 0; padding-left: 20px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; }
.toast { padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lift); font-weight: 500; }
.toast-error { background: var(--danger); }

@media (max-width: 720px) {
	.danger-row { flex-direction: column; align-items: flex-start; }
	.row-4 { grid-template-columns: 1fr 1fr; }
	.item-edit { grid-template-columns: auto 64px 1fr auto; gap: 10px; }
	.item-edit .item-img { width: 64px; height: 64px; }
	.item-fields { grid-template-columns: 1fr 70px 100px; }
	.f-line { display: none; }
	.logo-field { flex-direction: column; }
	.topbar-inner { gap: 12px; padding: 0 14px; }
	.brand-sub, .usermenu-name { display: none; }
	.main { padding: 20px 16px 48px; }
	.row { grid-template-columns: 1fr; }
	.item { grid-template-columns: 80px 1fr; }
	.item-img { width: 80px; height: 80px; }
	.item-price { grid-column: 2; text-align: left; }
	.claim-row { grid-template-columns: 1fr; }
	.hero-logo { width: 64px; height: 64px; }
}
