/* RUNA admin */
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant.woff') format('woff'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-italic.woff') format('woff'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope.woff') format('woff'); font-weight: 200 800; font-style: normal; font-display: swap; }
:root { --ink: #14110f; --ink-2: #1e1a17; --ivory: #f5f1ea; --paper: #fff; --line: #e7dfd2; --muted: #7a6f63; --gold: #b8925a; --gold-2: #dcc396; --ok: #3f7a4f; --bad: #a8323e; --warn: #b7791f; --r: 12px; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 'Manrope', system-ui, sans-serif; background: var(--ivory); color: var(--ink); display: flex; min-height: 100vh; }
a { color: inherit; } button, input, select, textarea { font: inherit; color: inherit; }
.side { width: 240px; flex: none; background: var(--ink); color: rgba(255,255,255,.72); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-logo { display: flex; align-items: center; gap: 12px; padding: 26px 22px 22px; color: #fff; text-decoration: none; }
.side-word { font: 500 30px/1 'Cormorant Garamond', serif; letter-spacing: .42em; position: relative; }
.side-word::after { content: 'RUNA'; position: absolute; left: 0; top: 100%; transform: scaleY(-1); transform-origin: top; opacity: .18; -webkit-mask: linear-gradient(to bottom, transparent 20%, #000); mask: linear-gradient(to bottom, transparent 20%, #000); line-height: .72; margin-top: 2px; }
.side-logo svg { width: 16px; color: var(--gold); }
.side-logo span { font: 600 10px 'Manrope'; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-left: -4px; align-self: flex-end; padding-bottom: 4px; }
.side-logo.dark { color: var(--ink); justify-content: center; padding: 0 0 20px; }
.side nav { display: grid; gap: 2px; padding: 0 12px; flex: 1; overflow-y: auto; align-content: start; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; text-decoration: none; transition: .15s; }
.side nav a svg { width: 18px; height: 18px; flex: none; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.on { background: rgba(220,195,150,.14); color: var(--gold-2); }
.side nav a b { margin-left: auto; background: var(--gold); color: var(--ink); font-size: 11px; padding: 1px 7px; border-radius: 9px; }
.side-foot { padding: 16px 22px 22px; display: grid; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.side-foot a { text-decoration: none; } .side-foot a:hover { color: #fff; }
.side-foot button { background: none; border: 0; color: inherit; padding: 0; cursor: pointer; text-align: left; } .side-foot button:hover { color: #fff; }
.main { flex: 1; min-width: 0; }
.top { display: flex; align-items: center; gap: 14px; padding: 22px 32px 0; }
.top h1 { margin: 0; font: 500 34px 'Cormorant Garamond', serif; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; }
.content { padding: 22px 32px 60px; }
.flash { margin: 16px 32px 0; padding: 12px 16px; border-radius: 10px; background: #e3efe3; color: #2d5a37; font-weight: 600; animation: fade 4s forwards; }
@keyframes fade { 80% { opacity: 1; } 100% { opacity: .5; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px; }
.card h2 { margin: 0 0 16px; font: 600 15px 'Manrope'; letter-spacing: .02em; }
.card h4 { margin: 14px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .card-head h2 { margin: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid2.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid2 > * { min-width: 0; }
.form select { max-width: 100%; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 4px; }
.kpi span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { font: 500 32px 'Cormorant Garamond', serif; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted); }
.kpi.accent { background: var(--ink); color: #fff; border-color: var(--ink); } .kpi.accent span, .kpi.accent em { color: var(--gold-2); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 10px; }
.chart .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.chart .bar i { width: 100%; max-width: 30px; background: linear-gradient(var(--gold-2), var(--gold)); border-radius: 6px 6px 2px 2px; transition: .2s; }
.chart .bar:hover i { background: var(--ink); }
.chart .bar span { font-size: 10px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl.compact td { padding: 9px 8px; }
.tbl tfoot td { border: 0; padding: 6px 12px; } .tbl tfoot .grand td { font-weight: 700; font-size: 16px; }
.tbl .r { text-align: right; }
.rowlink { cursor: pointer; } .rowlink:hover td { background: #faf7f2; }
.thumb { width: 44px; height: 52px; object-fit: cover; border-radius: 6px; background: var(--ivory); display: block; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #eee8de; font-size: 12px; font-weight: 600; }
.pill.ok { background: #dcecdc; color: #2d5a37; } .pill.bad { background: #f3dcdc; color: var(--bad); } .pill.warn { background: #f7e9cc; color: #8a5a10; } .pill.gold { background: #f1e5cf; color: #7a5a2a; }
.as-btn { border: 0; cursor: pointer; }
.vchip { display: inline-block; font-size: 12px; background: var(--ivory); border-radius: 6px; padding: 2px 8px; margin: 2px 4px 2px 0; white-space: nowrap; }
.vchip s { color: var(--muted); }
.st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eee8de; white-space: nowrap; }
.st-new { background: #f6e3bd; } .st-confirmed { background: #dbe6f1; } .st-packed { background: #e6def0; } .st-shipped { background: #d5ebe4; } .st-delivered { background: #dcebd9; color: #2f5a3a; } .st-cancelled { background: #f1dcdc; color: #8b2a2a; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.tabs a { padding: 7px 12px; border-radius: 7px; text-decoration: none; font-size: 13px; font-weight: 500; }
.tabs a em { font-style: normal; color: var(--muted); font-size: 11px; }
.tabs a.on { background: var(--ink); color: #fff; } .tabs a.on em { color: var(--gold-2); }
.search { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.search input, .search select { height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; background: var(--paper); }
.search input { flex: 1; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; transition: .15s; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); } .btn.primary:hover { background: #3a332d; }
.btn.danger { color: var(--bad); border-color: #ecc9c9; } .btn.danger:hover { background: var(--bad); color: #fff; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn.block { width: 100%; margin-top: 10px; }
.btn.confirming { background: var(--bad) !important; color: #fff !important; }
.link { background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; } .link.danger { color: var(--bad); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: #4a423a; }
.form input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), .form select, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: #fdfcfa; font-weight: 400; outline: none; transition: .15s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,146,90,.15); }
.form textarea { resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.form small { font-weight: 400; color: var(--muted); }
.form input[type=color] { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; background: #fff; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; }
.form .check input { width: 17px; height: 17px; accent-color: var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; } .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pform .card { display: grid; gap: 12px; }
.pform .card h2 { margin: 0 0 4px; }
.hint { font-size: 12px; color: var(--muted); margin: 0; }
.vtbl td { padding: 6px 4px; border: 0; } .vtbl input, .vtbl select { padding: 8px !important; min-width: 70px; }
.x { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; color: var(--muted); }
.x:hover { color: var(--bad); border-color: var(--bad); }
.acc-row { display: grid; grid-template-columns: 1fr 1fr 44px 32px; gap: 8px; align-items: center; margin-bottom: 6px; }
.acc-row input[type=range] { accent-color: var(--gold); }
.acc-row output { font-size: 12px; font-weight: 600; text-align: right; }
.img-prev { border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--hue) 14%, #f1ebe2); aspect-ratio: 5/6; max-width: 220px; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.danger-zone { margin-top: 10px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.info-grid p { margin: 0; } .info-grid .span2 { grid-column: 1 / -1; } .info-grid h4 { margin-top: 0; }
.review { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border: 0; } .review p { margin: 6px 0 0; }
.review-actions { display: flex; gap: 6px; align-items: flex-start; flex: none; }
.narrow-card { max-width: 480px; margin-top: 20px; }
code { background: var(--ivory); padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.login-body { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(60% 80% at 80% 0%, #5b3a22, transparent 60%), var(--ink); }
.login-card { width: min(380px, 92vw); background: #fff; border-radius: 18px; padding: 34px; display: grid; gap: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.login-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.login-card input { height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; outline: none; }
.login-card input:focus { border-color: var(--gold); }
.login-card .btn { height: 48px; }
.login-card .err { background: #f6e1e1; color: var(--bad); padding: 10px 12px; border-radius: 8px; margin: 0; font-size: 13px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } .grid2, .grid2.wide-left { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .side { position: fixed; z-index: 50; left: 0; transform: translateX(-100%); transition: .3s; }
  body.side-open .side { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .burger { display: block; } .top, .content { padding-left: 16px; padding-right: 16px; } .flash { margin: 12px 16px 0; }
  .top h1 { font-size: 26px; } .row2, .row3, .info-grid { grid-template-columns: 1fr; } .kpis { gap: 10px; } .kpi strong { font-size: 24px; }
  .review { flex-direction: column; }
}

/* ---------- marketing / promo ---------- */
.btn.small { height: 32px; padding: 0 12px; font-size: 12px; }
.subtabs { display: flex; gap: 4px; margin-bottom: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; }
.subtabs a { padding: 9px 16px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; }
.subtabs a.on { background: var(--ink); color: #fff; }
.preview-card { padding-bottom: 14px; }
.bn-preview { width: 100%; height: 460px; border: 0; border-radius: 14px; background: #eee; display: block; }
.bn-preview.wide { height: 460px; }
.bn-preview.side { max-width: 420px; height: 460px; }
.bn-admin-list { display: grid; gap: 10px; }
.bn-admin { display: grid; grid-template-columns: 170px 1fr auto; gap: 16px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.bn-admin.off { opacity: .55; }
.bn-admin-info { display: grid; gap: 4px; } .bn-admin-info a { text-decoration: none; }
.bn-admin-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bn-thumb { position: relative; height: 84px; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; text-decoration: none; color: var(--fg); background: radial-gradient(120% 90% at 80% 40%, var(--b2), transparent 60%), var(--b1); }
.bn-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.bn-thumb strong { position: relative; font: 600 26px/1 'Cormorant Garamond', serif; }
.bn-thumb em { position: relative; font-style: normal; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.th-autumn { --b1: #2a1a10; --b2: #6b3a1a; --fg: #fff6ea; } .th-noir { --b1: #0e0c0b; --b2: #3a2c1a; --fg: #dcc396; }
.th-burgundy { --b1: #2a0b13; --b2: #8e2a3c; --fg: #fff1f0; } .th-emerald { --b1: #08201a; --b2: #1f5a48; --fg: #effaf4; }
.th-gold { --b1: #e9dcc3; --b2: #c9a46a; --fg: #241a10; } .th-rose { --b1: #f3dcd6; --b2: #d79a9a; --fg: #3a1d20; }
.th-winter { --b1: #0d1a2b; --b2: #3b5f86; --fg: #f1f6fc; } .th-ivory { --b1: #fbf7f0; --b2: #e7d9c2; --fg: #14110f; }
.theme-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.theme-swatches .sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; background: radial-gradient(circle at 70% 30%, var(--b2), var(--b1)); }
.theme-swatches .sw.on { box-shadow: 0 0 0 2px var(--ink); }
.bn-img-prev { width: 100%; border-radius: 10px; margin-bottom: 8px; }
.story-thumb { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; padding: 2px; background: conic-gradient(var(--gold-2), #8e2a3c, var(--gold), var(--gold-2)); }
.story-thumb img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; background: #f5efe6; object-fit: contain; }
.kpis.mini { grid-template-columns: 1fr 1fr; }
.bulk-row { display: flex; gap: 8px; flex-wrap: wrap; } .bulk-row select { flex: 1; min-width: 180px; }
.toolbar-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .toolbar-inline input { height: 36px; }
.form .check.big { font-size: 16px; font-weight: 700; margin-bottom: 8px; } .form .check.big input { width: 20px; height: 20px; }
.bogo-tbl td:first-child input { width: 18px; height: 18px; accent-color: var(--ink); }
@media (max-width: 760px) { .bn-admin { grid-template-columns: 1fr; } .bn-admin-act { justify-content: flex-start; } .bn-preview, .bn-preview.wide { height: 240px; } }
.form textarea { font: inherit; font-weight: 400; }
.story-thumb { --c1: #0e0c0b; --c2: #4a3a24; --c3: #dcc396; background: conic-gradient(var(--c3), var(--c2), var(--gold), var(--c1), var(--c3)); }
.story-thumb img { background: radial-gradient(circle at 50% 30%, var(--c3), var(--c2)); }
.pick-list { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 14px; }
.pick-list input[type=search] { margin-bottom: 8px; }
.pick-scroll { max-height: 260px; overflow-y: auto; display: grid; gap: 2px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.pick:hover { background: var(--ivory); }
.pick img { width: 28px; height: 34px; object-fit: contain; }
.pick span { display: grid; } .pick small { color: var(--muted); font-size: 11px; }
.pick input { accent-color: var(--ink); width: 16px; height: 16px; }
/* customers / club */
.cust { display: flex; align-items: center; gap: 12px; }
.cava { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 'Cormorant Garamond', serif; color: #2a1d0c; background: linear-gradient(135deg, #f6e4bc, #c9a25d); }
.cava.lg { width: 64px; height: 64px; font-size: 24px; }
.tierpill.tp-0 { background: #e7e8ec; color: #3b3f47; } .tierpill.tp-1 { background: #f1e1bd; color: #6b4c1e; } .tierpill.tp-2 { background: #1e1a16; color: #e9cf98; }
.sorter { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.sorter a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sorter a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
tr.off { opacity: .55; }
.cust-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.cust-hero h2 { margin: 0 0 4px; font-size: 20px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .cust-hero p { margin: 0; }
.cust-kpis { display: grid; grid-template-columns: repeat(4, auto); gap: 22px; }
.cust-kpis span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .cust-kpis strong { font: 700 20px 'Manrope', sans-serif; }
.pos { color: #2f6b45; } .neg { color: #9a3a2c; }
.addr-mini { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .addr-mini:last-child { border: 0; }
ul.plain { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; }
.tbl.compact input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: #fdfcfa; }
@media (max-width: 1100px) { .cust-hero { grid-template-columns: auto 1fr; } .cust-kpis { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); } }
/* ---------- gift card visual ---------- */
.gcard { --gc1: #1b1713; --gc2: #0a0908; --gfg: #ecd29d; --gacc: rgba(236,210,157,.35);
  position: relative; display: grid; grid-template-rows: auto 1fr auto; aspect-ratio: 1.6; width: 100%; max-width: 460px; padding: 1.6em 1.7em; font-size: 16px; border-radius: 1.3em; overflow: hidden; isolation: isolate; color: var(--gfg);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--gfg) 22%, transparent), transparent 55%), linear-gradient(135deg, var(--gc1), var(--gc2));
  box-shadow: 0 2em 3.5em -1.8em rgba(20,17,15,.7), inset 0 0 0 1px var(--gacc); transition: background .5s, color .5s; text-align: left; }
.gcard.sm { font-size: 10px; }
.gd-champagne { --gc1: #f8e9c4; --gc2: #b98d48; --gfg: #2b1d0c; --gacc: rgba(255,255,255,.4); }
.gd-rose { --gc1: #f6e0dc; --gc2: #d49b9f; --gfg: #4a1f28; --gacc: rgba(255,255,255,.45); }
.gd-emerald { --gc1: #1f5a48; --gc2: #071a14; --gfg: #e6cf9c; --gacc: rgba(230,207,156,.35); }
.gd-bordeaux { --gc1: #7d2335; --gc2: #2a0b13; --gfg: #f1d6a8; --gacc: rgba(241,214,168,.35); }
.gcard::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .3; background: repeating-linear-gradient(115deg, transparent 0 .9em, rgba(255,255,255,.07) .9em 1em); }
.gcard-orn { position: absolute; z-index: -1; right: -18%; top: 50%; width: 70%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; border: 1px solid var(--gacc); box-shadow: 0 0 0 1.4em transparent, inset 0 0 0 1.4em transparent; opacity: .9; }
.gcard-orn::before, .gcard-orn::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--gacc); }
.gcard-orn::after { inset: 30%; }
.gcard-shine { position: absolute; inset: -40% -60%; z-index: -1; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.35) 50%, transparent 58%); transform: translateX(-60%); animation: mcShine 7s ease-in-out infinite; }
.gcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.gcard-logo { display: inline-grid; line-height: .7; }
.gcard-logo b { font: 500 1.6em/0.72 var(--serif); letter-spacing: .36em; }
.gcard-logo i { font: 500 1.6em/0.72 var(--serif); letter-spacing: .36em; font-style: normal; transform: scaleY(-1); opacity: .22; height: .32em; overflow: hidden; margin-top: .25em; -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000); display: flex; align-items: flex-end; }
.gcard-kind { font: 700 .62em/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; opacity: .8; text-align: right; max-width: 12em; }
.gcard-amt { align-self: center; }
.gcard-amt strong { font: 500 3.6em/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.gcard-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; }
.gcard-to { display: grid; gap: .15em; min-width: 0; } .gcard-to em { font: 600 .6em/1 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; opacity: .65; } .gcard-to b { font: 500 1.25em/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12em; }
.gcard-code { display: grid; justify-items: end; gap: .3em; font: 600 .78em/1 var(--sans); letter-spacing: .14em; opacity: .9; white-space: nowrap; } .gcard-code em { font-style: normal; font-weight: 500; font-size: .85em; letter-spacing: .04em; opacity: .7; }
.gcard.pop { animation: gPop .45s var(--ease); }
@keyframes gPop { 0% { transform: scale(.97) rotate(-.5deg); } 60% { transform: scale(1.015); } 100% { transform: none; } }
@keyframes mcShine { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }
.gcard { --serif: 'Cormorant Garamond', serif; --sans: 'Manrope', sans-serif; --display: 'Manrope', sans-serif; --ease: cubic-bezier(.2,.7,.2,1); }
.gcard-amt strong { font-weight: 700; }
.gsw { display: inline-block; width: 18px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: middle; background: linear-gradient(135deg, var(--gc1, #1b1713), var(--gc2, #0a0908)); }
.gsw.gd-champagne { --gc1: #f8e9c4; --gc2: #b98d48; } .gsw.gd-rose { --gc1: #f6e0dc; --gc2: #d49b9f; } .gsw.gd-emerald { --gc1: #1f5a48; --gc2: #071a14; } .gsw.gd-bordeaux { --gc1: #7d2335; --gc2: #2a0b13; }
.gift-adm-hero { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; } .gift-adm-hero h2 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.gift-adm-hero .cust-kpis { grid-template-columns: repeat(3, auto); justify-content: start; margin-bottom: 10px; }
.gift-msg-adm { font-style: italic; color: var(--muted); }
.order-certs-adm { margin: 16px 0; padding: 14px; border-radius: 10px; background: #faf6ee; border: 1px solid var(--line); } .order-certs-adm h4 { margin: 0 0 8px; }
.ocert { display: flex; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; border-bottom: 1px solid var(--line); } .ocert:last-of-type { border: 0; }
@media (max-width: 900px) { .gift-adm-hero { grid-template-columns: 1fr; } }
/* ---------- dashboard ---------- */
.dash-filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); gap: 2px; }
.seg a, .seg button { padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; }
.seg a.on, .seg button.on { background: var(--ink); color: #fff; }
.seg.sm a, .seg.sm button { padding: 6px 12px; font-size: 12px; }
.attn { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.attn-chip { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #f7eedb; color: #6b4c1e; font-size: 13px; text-decoration: none; border: 1px solid #ecdcb8; }
.attn-chip b { font-size: 14px; } .attn-chip.hot { background: var(--ink); color: #fff; border-color: var(--ink); } .attn-chip.hot b { color: var(--gold-2); }
.kpi strong { font: 700 28px/1.15 'Manrope', sans-serif; letter-spacing: -.01em; }
.kpi em { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.dl { font-weight: 700; font-size: 12px; } .dl-good { color: #2f6b45; } .dl-bad { color: #a8323e; } .dl-flat, .dl-vs { color: var(--muted); font-weight: 500; } .dl-new { color: var(--gold); }
.chart-card { position: relative; }
.chart-head { align-items: flex-start; } .chart-head p { margin: 4px 0 0; }
.vc-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.vc-legend span { display: inline-flex; gap: 8px; align-items: center; } .vc-legend i { width: 12px; height: 12px; border-radius: 3px; } .vc-legend b { color: var(--ink); }
.vchart { display: grid; grid-template-columns: 56px 1fr; height: 260px; }
.vc-y { position: relative; height: calc(100% - 26px); } .vc-y span { position: absolute; right: 10px; transform: translateY(50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vc-plot { position: relative; height: 100%; }
.vc-grid { position: absolute; left: 0; right: 0; height: 1px; background: #efe8dc; } .vc-grid.base { background: #d9cdb8; }
.vc-cols { position: absolute; inset: 0; display: flex; }
.vc-col { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 0 26px; background: none; border: 0; cursor: pointer; border-radius: 6px; }
.vc-col:hover, .vc-col.hov, .vc-col:focus-visible { background: rgba(184,146,90,.07); outline: none; }
.vc-stack { width: min(24px, 70%); display: flex; flex-direction: column; gap: 2px; min-height: 3px; }
.vc-stack i { display: block; min-height: 2px; } .vc-stack i:first-child { border-radius: 4px 4px 0 0; }
.vc-col.hov .vc-stack i { filter: brightness(1.12); }
.vc-col em { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vc-col em.hid { visibility: hidden; } .vc-col.today em { color: var(--ink); font-weight: 700; }
.vc-tip { position: absolute; z-index: 5; min-width: 170px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); pointer-events: none; font-size: 12px; }
.tip-d { color: rgba(255,255,255,.6); margin-bottom: 2px; } .tip-big { font: 700 20px/1.2 'Manrope', sans-serif; margin-bottom: 6px; }
.tip-row { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; color: rgba(255,255,255,.75); } .tip-row b { color: #fff; }
.tip-row.k-goods span::before, .tip-row.k-gifts span::before { content: ''; display: inline-block; width: 10px; height: 2px; margin-right: 6px; vertical-align: middle; background: #d9a650; } .tip-row.k-gifts span::before { background: #e06f84; }
.vc-table { margin-top: 12px; } .vc-table summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid3.wide-first { grid-template-columns: 1.6fr 1fr 1fr; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; gap: 5px; text-decoration: none; color: inherit; }
.hbar-t { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; } .hbar-t > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 6px; border-radius: 3px; background: #f3ede2; overflow: hidden; } .hbar-track i { display: block; height: 100%; border-radius: 0 3px 3px 0; background: #b07d2a; } .hbar-track i.neg { background: #8e2a3c; }
.hbar:hover .hbar-t strong { text-decoration: underline; }
.money-list { margin: 0; display: grid; gap: 0; } .money-list div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.money-list dt { color: var(--ink); } .money-list dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; } .money-list .sub dt, .money-list .sub dd { color: var(--muted); font-weight: 500; }
.money-list .tot { border-bottom: 0; padding-top: 12px; } .money-list .tot dt { font-weight: 700; } .money-list .tot dd { font-size: 16px; }
@media (max-width: 1200px) { .grid3, .grid3.wide-first { grid-template-columns: 1fr 1fr; } .grid3 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .grid3, .grid3.wide-first { grid-template-columns: 1fr; } .vchart { height: 220px; grid-template-columns: 44px 1fr; } }
.vchart[hidden] { display: none; }
.hbar-t b, .tbl td.r strong, .tbl td.r { white-space: nowrap; }
.sms-bubble { position: relative; max-width: 420px; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: #e9f0e6; color: #1f2a1f; font-size: 13.5px; line-height: 1.45; margin: 6px 0 10px; white-space: pre-wrap; word-break: break-word; }
.sms-txt { max-width: 420px; font-size: 12.5px; color: var(--muted); }
.kpis.mini3 { grid-template-columns: repeat(3, 1fr); }
.rules-box { background: #faf6ee; border: 1px solid #eadfc9; border-radius: 10px; padding: 12px 16px; margin: 12px 0; font-size: 13px; }
.rules-box ul.plain { margin: 6px 0 0; padding-left: 18px; } .rules-box li { margin: 3px 0; }
.vchip.sale { background: #f6e7ea; color: #8e2a3c; } .vchip s { opacity: .6; margin-left: 4px; }
.cb-admin { font-size: 13px; background: #f3f8f1; border: 1px solid #d5e6cf; border-radius: 10px; padding: 10px 14px; margin: 12px 0 0; }
.ship-adm h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.carrier-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }
.carrier-pill.c-np { background: #fde3e4; color: #b3121c; } .carrier-pill.c-up { background: #fff3c4; color: #6a5300; }
table.kv { border-collapse: collapse; width: 100%; font-size: 13.5px; } table.kv th { text-align: left; font-weight: 500; color: var(--muted); padding: 5px 14px 5px 0; white-space: nowrap; width: 1%; vertical-align: top; } table.kv td { padding: 5px 0; }
.cp { cursor: copy; border-bottom: 1px dashed #d6c9b5; } .cp:hover { background: #faf3e4; } .cp.ok { background: #e3efe3; border-color: transparent; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 14px; }
.grid2 > .card.span2 { grid-column: 1 / -1; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
.alert.warn { background: #fff4d8; border: 1px solid #f0d58c; color: #6a4a0a; } .alert.ok { background: #e8f2e6; border: 1px solid #cfe2ca; color: #2d5a37; }
.alert a { font-weight: 600; }
.tok-card .toks { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
code.tok { font-size: 12px; background: #f6efe2; border: 1px solid #ead9b8; border-radius: 6px; padding: 3px 7px; cursor: copy; } code.tok.ok { background: #e3efe3; }
.sched { border: 1px solid #ead9b8; background: #fbf6ec; border-radius: 12px; padding: 14px; display: grid; gap: 10px; margin-bottom: 12px; }
.sched-t { margin: 0; font-weight: 600; }
.cd-opts { display: grid; gap: 8px; padding-top: 4px; }
.radio-line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #fff; border: 1px solid #ead9b8; border-radius: 10px; cursor: pointer; font-weight: 400; }
.radio-line input { margin-top: 3px; accent-color: #14110f; } .radio-line b { display: block; font-size: 13.5px; } .radio-line em { font-style: normal; font-size: 12px; color: var(--muted); }
.cd-preview { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: #1f1a15; color: #f1dcae; font-variant-numeric: tabular-nums; }
.cd-preview b { color: #fff; font-size: 15px; } .cd-preview .warn-t { color: #ffcf8a; }
.cd-chip b { font-variant-numeric: tabular-nums; }
.form .radio-line { display: flex; flex-direction: row; grid-template-columns: none; } .form .radio-line input { width: auto; flex: none; margin: 3px 0 0; } .form .radio-line > span { display: block; }
.form [hidden], .cd-opts[hidden] { display: none !important; }
.code-n { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.pr-cell { display: grid; gap: 4px; } .pr-cell input { max-width: 160px; } .neg { color: #a33; }
/* clean-slate reset card */
.danger-card { border-color: #ecc9c9; margin-top: 18px; }
.danger-card h2 { color: var(--bad); }
table.mini { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 13px; }
table.mini td { padding: 6px 0; border-bottom: 1px solid var(--line); }
table.mini td.num { text-align: right; font-weight: 600; }

/* always-visible save bar on long edit forms */
.savebar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px -4px 0; padding: 14px 20px; border-radius: 16px; background: rgba(255,252,247,.94); backdrop-filter: blur(10px); border: 1px solid var(--line, #e7dccb); box-shadow: 0 -10px 30px -18px rgba(20,17,15,.35); }
.savebar span { font-size: 13px; color: var(--muted, #7a6f63); }
.savebar .btn { min-width: 220px; }
.subtabs.sub2 { margin-top: -6px; } .subtabs .cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgba(20,17,15,.08); font-size: 11px; }
.subtabs a.on .cnt { background: rgba(255,255,255,.2); }
.chips-on { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-on { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #f3ead9; font-size: 12.5px; }
.chip-on img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
