/* Book A Print — Admin. Classic premium: warm paper, ink sidebar, antique-gold accents. */
:root {
  --ink: #17140f;
  --ink-2: #26211a;
  --ink-3: #3a332a;
  --paper: #f6f3ec;
  --paper-2: #efe9dd;
  --card: #fffdf9;
  --line: #e7e0d2;
  --line-2: #d9d0be;
  --text: #1f1b16;
  --muted: #7a7164;
  --gold: #b08a4f;
  --gold-2: #c9a46a;
  --gold-soft: #f4ecdd;
  --red: #c8283a;
  --red-soft: #fbe9eb;
  --green: #2f7d55;
  --green-soft: #e6f2ea;
  --amber: #a86b12;
  --amber-soft: #fbf0dc;
  --blue: #2b62a3;
  --blue-soft: #e5eef8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 20, 15, .04), 0 8px 24px -12px rgba(23, 20, 15, .12);
  --shadow-lg: 0 24px 60px -20px rgba(23, 20, 15, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 .75em; }
code { background: var(--paper-2); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.ico { flex-shrink: 0; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 256px; flex-shrink: 0; background: var(--ink); color: #d8cfbf;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(176, 138, 79, .16), transparent 60%);
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink);
  background: linear-gradient(135deg, #e9cf9e, var(--gold));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px -6px rgba(176,138,79,.7);
}
.brand-text strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 16px; color: #fbf6ec; }
.brand-text small { display: block; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.side-nav { flex: 1; overflow-y: auto; padding: 10px 12px 20px; scrollbar-width: thin; scrollbar-color: #3a332a transparent; }
.side-group { margin: 18px 12px 6px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #8d8273; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 2px 0;
  border-radius: 10px; color: #cfc5b4; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.side-link::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 3px; height: 0; border-radius: 0 3px 3px 0;
  background: var(--gold-2); transform: translateY(-50%); transition: height .3s var(--ease);
}
.side-link:hover { background: rgba(255,255,255,.05); color: #fff; transform: translateX(2px); }
.side-link.active { background: linear-gradient(90deg, rgba(201,164,106,.18), rgba(201,164,106,.04)); color: #fff; }
.side-link.active::before { height: 22px; }
.side-link.active .ico { color: var(--gold-2); }
.side-count {
  margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; display: grid; place-items: center; background: var(--red); color: #fff;
  animation: pulse 2.4s var(--ease) infinite;
}
.side-foot { padding: 10px 12px 16px; border-top: 1px solid rgba(255,255,255,.06); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 16px 32px; background: rgba(246, 243, 236, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.topbar-title h1 { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb { color: var(--muted); font-size: 14px; }
.crumb:hover { color: var(--text); }
.crumb-sep { color: var(--line-2); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.today { color: var(--muted); font-size: 12.5px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; font-weight: 600; font-size: 13px;
  color: var(--ink); background: linear-gradient(135deg, #f1dfbd, var(--gold-2)); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line-2);
  transition: transform .2s var(--ease);
}
.avatar:hover { transform: scale(1.06); }
.user-menu { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); width: 220px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; transform: translateY(-6px) scale(.98);
  pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); transform-origin: top right;
}
.dropdown.open { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dropdown-head small { display: block; color: var(--muted); }
.dropdown a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; }
.dropdown a:hover { background: var(--paper); }

.content { padding: 28px 32px 48px; flex: 1; }
.admin-foot { padding: 18px 32px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.mobile-only { display: none; }
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--text); border-radius: 8px; }
.icon-btn:hover { background: var(--paper-2); }

.nav-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--gold), var(--red)); z-index: 100; transition: width .4s var(--ease), opacity .3s; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 40, 58, .45); } 50% { box-shadow: 0 0 0 5px rgba(200, 40, 58, 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.content > .reveal:nth-child(2) { --i: 1; } .content > .reveal:nth-child(3) { --i: 2; } .content > .reveal:nth-child(4) { --i: 3; }
.content > .reveal:nth-child(5) { --i: 4; } .content > .reveal:nth-child(6) { --i: 5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px;
  font: 600 13.5px/1.2 var(--sans); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); color: #fbf6ec; box-shadow: 0 6px 16px -8px rgba(23,20,15,.6); }
.btn-primary:hover { background: var(--ink-3); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(23,20,15,.6); }
.btn-gold { background: linear-gradient(135deg, #d9b778, var(--gold)); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(176,138,79,.8); }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-link { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 600; cursor: pointer; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 14.5px; }
.btn-icon { padding: 7px; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; transition: all .2s var(--ease); }
.btn-icon:hover { background: var(--paper-2); color: var(--text); }
.btn-icon.danger:hover { background: var(--red-soft); color: var(--red); }

/* ---------- page header & layout ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.stack > * + * { margin-top: 20px; }
.sticky-side { position: sticky; top: 92px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.card-head h3 .ico { color: var(--gold); }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .card-head { padding: 18px 22px 0; }

/* stat tiles */
.stat { position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; }
.stat-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.stat-value { font-family: var(--serif); font-size: 34px; font-weight: 500; margin: 10px 0 2px; letter-spacing: -.02em; }
.stat-sub { font-size: 12.5px; color: var(--muted); }
.trend-up { color: var(--green); font-weight: 600; }
.trend-down { color: var(--red); font-weight: 600; }

/* welcome banner */
.hero-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 28px 30px; color: #f6efe2;
  background: linear-gradient(120deg, #1d1913 0%, #2c251c 60%, #3b3123 100%); border: 1px solid #3a3226;
  box-shadow: var(--shadow-lg);
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 100% 0%, rgba(201,164,106,.35), transparent 60%),
              repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 12px);
}
.hero-card > * { position: relative; }
.hero-card h2 { font-size: 28px; color: #fff; }
.hero-card h2 em { font-style: italic; color: var(--gold-2); }
.hero-card p { color: #cfc4b1; margin-top: 6px; max-width: 560px; }
.hero-card .ornament { position: absolute; right: 26px; bottom: -18px; font-family: var(--serif); font-size: 140px; line-height: 1; color: rgba(201,164,106,.12); pointer-events: none; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quick-actions a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fbf6ec; font-weight: 500; font-size: 13px; transition: all .25s var(--ease); }
.quick-actions a:hover { background: var(--gold-2); color: var(--ink); border-color: var(--gold-2); transform: translateY(-2px); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbf8f2; white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .2s; animation: fade .5s var(--ease) both; }
.table tbody tr:hover { background: #fbf7ef; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions-cell { text-align: right; white-space: nowrap; }
.cell-main { font-weight: 600; }
.cell-main a:hover { color: var(--gold); }
.cell-sub { display: block; color: var(--muted); font-size: 12.5px; }
.thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--paper-2); border: 1px solid var(--line); display: block; }
.thumb-lg { width: 120px; height: 68px; }
.row-link { cursor: pointer; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-grey { background: var(--paper-2); color: var(--muted); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--paper-2); font-size: 11.5px; color: var(--muted); }

/* filter bar */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.filters .search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.filters .search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filters .search input { padding-left: 34px; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: all .2s var(--ease); }
.seg a:hover { color: var(--text); }
.seg a.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg a em { font-style: normal; color: var(--muted); margin-left: 4px; }

/* ---------- forms ---------- */
label { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: 400 14px/1.4 var(--sans); color: var(--text);
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176,138,79,.15); }
textarea { resize: vertical; min-height: 80px; }
.input-sm { padding: 7px 10px !important; font-size: 13px !important; }
.filters input, .filters select { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid h3 { font-size: 16px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.form-grid h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.span-2 { grid-column: 1 / -1; }
.form-stack > * + * { margin-top: 16px; }
.help { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); font-weight: 400; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 38px; height: 22px; border-radius: 22px; background: var(--line-2); position: relative; transition: background .25s var(--ease); flex-shrink: 0; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(16px); }
.counter { float: right; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.counter.warn { color: var(--amber); } .counter.over { color: var(--red); }
.save-bar { position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0; margin-top: 8px; background: linear-gradient(to top, var(--paper) 70%, rgba(246,243,236,0)); }

/* image field */
.image-field .label { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.drop { position: relative; border: 1.5px dashed var(--line-2); border-radius: 12px; background: #fbf8f2; min-height: 130px; display: grid; place-items: center; overflow: hidden; transition: border-color .2s, background .2s; }
.drop:hover, .drop.dragover { border-color: var(--gold); background: var(--gold-soft); }
.drop img { max-height: 220px; width: 100%; object-fit: contain; padding: 8px; animation: fade .4s var(--ease); }
.drop-empty { display: grid; justify-items: center; gap: 4px; color: var(--muted); text-align: center; padding: 16px; }
.drop-empty small { font-size: 11.5px; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.image-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.image-actions input { margin-top: 0; }

/* SERP preview */
.serp { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; margin-bottom: 16px; font-family: arial, sans-serif; }
.serp-url { font-size: 12px; color: #4d5156; }
.serp-title { font-size: 18px; color: #1a0dab; margin: 3px 0; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-desc { font-size: 13px; color: #4d5156; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seo-card label + label { margin-top: 14px; }
.seo-card .image-field { margin-top: 14px; }

/* rich editor */
.editor-wrap { margin-top: 6px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.editor-wrap .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--line); background: #fbf8f2; }
.editor-wrap .ql-container.ql-snow { border: 0; font: 15px/1.7 var(--sans); min-height: 320px; }
.editor-wrap .ql-editor { min-height: 320px; }
.editor-wrap .ql-editor h2, .editor-wrap .ql-editor h3 { font-family: var(--serif); }

/* alerts & toasts */
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px; }
.alert-error { background: var(--red-soft); color: #8d1c29; border: 1px solid #f3c9ce; }
.alert-info { background: var(--blue-soft); color: #1f4a7c; border: 1px solid #c9daef; }
.alert-gold { background: var(--gold-soft); color: #6d5228; border: 1px solid #e7d6b6; }
.toasts { position: fixed; top: 80px; right: 24px; z-index: 90; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fbf6ec; box-shadow: var(--shadow-lg); animation: toastIn .5s var(--ease) both; transition: opacity .4s, transform .4s var(--ease); }
.toast .ico { color: #7fd1a3; }
.toast-error .ico { color: #ff98a3; }
.toast.out { opacity: 0; transform: translateX(30px); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(23,20,15,.45); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-lg); transform: translateY(10px) scale(.97); transition: transform .3s var(--ease); }
.modal.open .modal-card { transform: none; }
.modal-card h3 { font-size: 20px; margin-bottom: 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* pagination & empty */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; }
.pager a { color: var(--gold); font-weight: 600; }
.empty { text-align: center; padding: 56px 20px; }
.empty .ico { color: var(--gold); margin-bottom: 10px; }
.empty h3 { font-size: 20px; margin-bottom: 4px; }
.empty .btn { margin-top: 10px; }

/* charts */
.chart { width: 100%; height: 230px; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .axis-label { font-size: 10.5px; fill: var(--muted); font-family: var(--sans); }
.chart .line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.8s var(--ease) .2s forwards; }
.chart .area { opacity: 0; animation: fade 1s var(--ease) 1s forwards; }
.chart .dot { opacity: 0; animation: fade .4s var(--ease) 1.6s forwards; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 12px; font-size: 13px; }
.bar-track { height: 10px; border-radius: 10px; background: var(--paper-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform-origin: left; animation: barGrow 1.2s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 200ms); }
.feed li:last-child { border-bottom: 0; }
.feed-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--gold-soft); color: var(--gold); }
.feed-icon.red { background: var(--red-soft); color: var(--red); }
.feed-icon.blue { background: var(--blue-soft); color: var(--blue); }
.feed-icon.green { background: var(--green-soft); color: var(--green); }
.feed-body { flex: 1; min-width: 0; }
.feed-body strong { display: block; font-weight: 600; }
.feed-body span { color: var(--muted); font-size: 12.5px; }
.feed time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* details */
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: 12.5px; }
.dl dd { margin: 0; font-weight: 500; word-break: break-word; }
.message-box { background: #fbf8f2; border: 1px solid var(--line); border-radius: 12px; padding: 16px; white-space: pre-wrap; line-height: 1.65; }
.file-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; transition: all .2s var(--ease); }
.file-chip:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow); }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* calculator admin */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.price-tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.price-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.price-tile .nm { font-weight: 600; font-size: 13px; }
.price-tile .dim { color: var(--muted); font-size: 11.5px; }
.price-tile .pr { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.price-tile .pr b { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--text); }
.price-tile.flash { animation: tileFlash .8s var(--ease); }
@keyframes tileFlash { 0% { background: var(--gold-soft); } 100% { background: #fff; } }
.sizes-table input { margin-top: 0; padding: 7px 8px; font-size: 13px; min-width: 64px; }
.sizes-table td { padding: 8px 6px; }
.sizes-table th { padding: 10px 6px; }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: #fbf8f2; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; line-height: 1.7; white-space: pre-wrap; color: var(--ink-3); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a, .tabs button { position: relative; background: none; border: 0; padding: 10px 14px; font: 500 13.5px var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs a::after, .tabs button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .3s var(--ease); }
.tabs .on { color: var(--text); }
.tabs .on::after { transform: scaleX(1); }
.tab-panel { display: none; animation: rise .4s var(--ease); }
.tab-panel.on { display: block; }

/* auth */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--ink); background-image: radial-gradient(80% 60% at 20% 0%, rgba(201,164,106,.25), transparent 60%), radial-gradient(60% 50% at 100% 100%, rgba(200,40,58,.18), transparent 60%); }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-card { background: var(--card); border-radius: 20px; padding: 34px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.4); }
.auth-card h1 { font-size: 28px; margin: 18px 0 4px; }
.auth-card form { margin-top: 20px; }
.auth-card form label + label { margin-top: 14px; }
.auth-card .btn { width: 100%; margin-top: 20px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.auth-brand small { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.auth-foot { text-align: center; margin-top: 18px; color: #a39883; font-size: 12px; }
.req-list { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 4px; font-size: 13px; }
.req-list .ok { color: var(--green); } .req-list .bad { color: var(--red); font-weight: 600; }

/* sortable */
.sortable-item { cursor: grab; }
.sortable-item.dragging { opacity: .5; }
.drag-handle { color: var(--line-2); cursor: grab; }

/* banners grid */
.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.banner-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.banner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.banner-card .img { aspect-ratio: 16 / 9; background: var(--paper-2) center / cover no-repeat; position: relative; }
.banner-card .img .badge { position: absolute; top: 10px; left: 10px; background: rgba(255,253,249,.92); }
.banner-card .body { padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.banner-card .body .t { flex: 1; min-width: 0; }
.banner-card .body .t strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* responsive */
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: 1fr; } .sticky-side { position: static; } }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .35s var(--ease); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .sidebar-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .sidebar-scrim.open { opacity: 1; pointer-events: auto; }
  .mobile-only { display: inline-grid; }
  .topbar { padding: 12px 16px; }
  .topbar-title h1 { font-size: 20px; }
  .today { display: none; }
  .content { padding: 20px 16px 40px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dd { margin-bottom: 10px; }
  .toasts { left: 16px; right: 16px; top: 70px; }
}
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } .price-grid { grid-template-columns: 1fr; } .bar-row { grid-template-columns: 80px 1fr 44px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .chart .line { stroke-dashoffset: 0; }
}

/* product image manager */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.gallery-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fbf8f2; border: 1px solid var(--line); cursor: grab; animation: rise .4s var(--ease) both; transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s; }
.gallery-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery-tile.dragging { opacity: .4; }
.gallery-tile img { width: 100%; height: 100%; object-fit: contain; padding: 6px; pointer-events: none; }
.gallery-main { display: none; position: absolute; left: 8px; top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--gold-2); padding: 3px 8px; border-radius: 999px; }
.gallery-tile:first-child { border: 2px solid var(--gold); }
.gallery-tile:first-child .gallery-main { display: inline-block; }
.gallery-tile .gallery-new { position: absolute; left: 8px; bottom: 8px; font-size: 10.5px; font-weight: 600; background: var(--green-soft); color: var(--green); padding: 2px 7px; border-radius: 999px; }
.gallery-remove { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(23,20,15,.75); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.gallery-tile:hover .gallery-remove { opacity: 1; }
.gallery-remove:hover { background: var(--red); }
@media (hover: none) { .gallery-remove { opacity: 1; } }
.gallery-add { aspect-ratio: 1; border: 1.5px dashed var(--line-2); border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center; color: var(--muted); cursor: pointer; font-weight: 500; transition: all .2s var(--ease); padding: 8px; }
.gallery-add:hover, .gallery-add.dragover { border-color: var(--gold); background: var(--gold-soft); color: var(--ink-3); }
.gallery-add small { font-size: 11px; font-weight: 400; }
.gallery-add input { display: none; }

/* price calculator grid */
.pricing-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.pricing-toolbar [data-pricing-summary] { margin-left: auto; }
.pricing-table th, .pricing-table td { padding: 6px 6px; }
.pricing-table th input { margin-top: 0; font-weight: 600; font-size: 12.5px; text-transform: none; letter-spacing: 0; padding: 7px 8px; background: var(--gold-soft); border-color: #e4d3b1; min-width: 110px; }
.pricing-table td input { margin-top: 0; padding: 7px 8px; font-size: 13.5px; min-width: 90px; }
.pricing-table td.num input { text-align: right; }
.pricing-table .unit { color: var(--muted); font-size: 12.5px; white-space: nowrap; text-align: right; }
.pricing-table .colhead { display: flex; align-items: center; gap: 4px; }
.pricing-empty { text-align: center; color: var(--muted); padding: 22px !important; }

/* media library */
.media-drop { display: grid; justify-items: center; gap: 6px; padding: 30px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: #fbf8f2; cursor: pointer; text-align: center; transition: all .25s var(--ease); }
.media-drop .ico { color: var(--gold); transition: transform .3s var(--ease); }
.media-drop:hover, .media-drop.dragover { border-color: var(--gold); background: var(--gold-soft); }
.media-drop.dragover .ico { transform: translateY(-4px) scale(1.1); }
.media-progress { height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; margin-top: 12px; }
.media-progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--red)); transition: width .2s; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; padding: 20px 22px; }
.media-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); transition: transform .25s var(--ease), box-shadow .25s; }
.media-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.media-thumb { display: block; aspect-ratio: 1; background: repeating-conic-gradient(#f3efe6 0% 25%, #fbf8f2 0% 50%) 50% / 18px 18px; }
.media-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.media-meta { padding: 8px 10px 0; min-width: 0; }
.media-name { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-actions { display: flex; gap: 2px; padding: 4px 6px 8px; }
/* picker modal */
.picker .modal-card { max-width: 860px; max-height: 86vh; display: flex; flex-direction: column; }
.picker-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.picker-head h3 { flex: 1; margin: 0; }
.picker-head input { margin: 0; max-width: 240px; }
.picker-grid { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 2px; min-height: 200px; }
.picker-grid button { position: relative; aspect-ratio: 1; border: 2px solid var(--line); border-radius: 10px; background: #fbf8f2; padding: 6px; cursor: pointer; transition: all .2s var(--ease); }
.picker-grid button:hover { border-color: var(--gold); transform: translateY(-2px); }
.picker-grid button.sel { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,40,58,.15); }
.picker-grid button.sel::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; display: grid; place-items: center; }
.picker-grid img { width: 100%; height: 100%; object-fit: contain; }
.picker-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.picker-foot .muted { flex: 1; }

/* customer file box (enquiries / quotes) */
.file-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; flex-wrap: wrap; }
.file-ext { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: var(--gold-soft); color: var(--gold); flex-shrink: 0; }
.file-info { flex: 1; min-width: 160px; }
.file-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.file-preview { display: block; margin-top: 14px; max-width: 100%; max-height: 420px; border-radius: 12px; border: 1px solid var(--line); background: #fbf8f2; }
.file-pdf { width: 100%; height: 520px; max-height: none; }

/* sidebar logo */
.brand { justify-content: center; padding: 18px 20px; }
.brand-logo { display: flex; align-items: center; justify-content: center; width: 100%; padding: 10px 14px; border-radius: 14px; background: #fffdf9; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 10px 24px -14px rgba(0,0,0,.6); transition: transform .3s var(--ease); }
.brand:hover .brand-logo { transform: translateY(-1px) scale(1.01); }
.brand-logo img { display: block; max-height: 64px; width: auto; max-width: 100%; }

.admin-foot a { color: var(--gold); font-weight: 600; }
.admin-foot a:hover { text-decoration: underline; }
.cell-main:is(a):hover { color: var(--gold); }

/* Calculator: upload / guide */
.calc-io { margin-bottom: 20px; }
.import-result { margin-bottom: 20px; border-left: 3px solid var(--gold, #b8925a); }
.change-list { margin: 0; padding-left: 18px; columns: 2; column-gap: 32px; font-size: 13.5px; line-height: 1.8; }
.change-list li { break-inside: avoid; }
.guide { margin-bottom: 20px; }
.guide summary { cursor: pointer; font-family: var(--serif); font-size: 17px; display: flex; align-items: center; gap: 8px; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "Show"; margin-left: auto; font-family: var(--sans, inherit); font-size: 12px; color: var(--muted, #8a8172); border: 1px solid currentColor; border-radius: 99px; padding: 2px 10px; }
.guide[open] summary::after { content: "Hide"; }
.guide-body ol { margin: 14px 0 6px; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.6; }
.guide-body code { background: #f3efe6; padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }
@media (max-width: 760px) { .change-list { columns: 1; } }

/* ---------- v1.6: payments, orders, menu editor, visiting card rates ---------- */
.seg label { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .2s var(--ease); }
.seg label.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.method-tile { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s; }
.method-tile:hover { border-color: var(--line-2); }
.method-tile strong { display: block; font-size: 14px; }
.method-tile small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.method-tile .switch { margin-top: 2px; }
.gw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gw-tile { position: relative; display: block; cursor: pointer; }
.gw-tile input { position: absolute; opacity: 0; }
.gw-tile span { display: block; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: all .2s var(--ease); }
.gw-tile strong { display: block; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.gw-tile small { color: var(--muted); font-size: 12px; }
.gw-tile input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-soft); }
.gw-tile input:focus-visible + span { outline: 2px solid var(--gold); }
.gw-fields { margin-top: 6px; }
.help-box { background: var(--paper); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; color: var(--muted); line-height: 1.6; }
.help-box code { word-break: break-all; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 8px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.edit-table input { width: 100%; min-width: 70px; padding: 7px 9px; font-size: 13px; }
.edit-table td.num input { text-align: right; }
.edit-table td { padding: 6px 8px; }

.menu-tree, .menu-sub { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.menu-sub { margin: 10px 0 0 34px; padding: 8px; border-left: 2px solid var(--line); border-radius: 0 10px 10px 0; min-height: 38px; }
.menu-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; transition: box-shadow .2s, border-color .2s; }
.menu-item.dragging { opacity: .5; }
.menu-item.is-hidden > .menu-row { opacity: .5; }
.menu-item.drop-on, .menu-sub.drop-on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.menu-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.menu-row input, .menu-row select { flex: 1 1 160px; min-width: 120px; padding: 7px 10px; font-size: 13px; }
.menu-row .tag { min-width: 74px; text-align: center; }
.drag-h { cursor: grab; color: var(--muted); letter-spacing: -2px; padding: 0 4px; user-select: none; }
.menu-actions { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.menu-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.menu-sub-add { margin: 6px 0 0 34px; }
.mega-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin: 10px 0 0 34px; }

/* order / payment page (customer side) */
.pay-wrap { max-width: 1100px; margin: 0 auto; }
.pay-hero { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pay-hero h1 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 0 0 4px; }
.pay-hero p { margin: 0; color: var(--muted); font-size: 15px; }
.pay-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; }
.pay-hero.ok .pay-icon { background: var(--green-soft); color: var(--green); }
.pay-hero.wait .pay-icon { background: var(--gold-soft); color: var(--gold); }
.pay-hero.bad .pay-icon { background: var(--red-soft); color: var(--red); }
.pay-switch { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pay-switch select { max-width: 260px; padding: 7px 10px; font-size: 13px; }
.upi-grid { display: grid; grid-template-columns: 196px 1fr; gap: 22px; align-items: center; }
.upi-qr { width: 196px; height: 196px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; }
.upi-qr img, .upi-qr canvas { max-width: 100%; }
@media (max-width: 640px) {
  .upi-grid { grid-template-columns: 1fr; }
  .upi-qr { margin: 0 auto; }
  .pay-hero { flex-direction: column; text-align: center; }
  .menu-sub, .menu-sub-add, .mega-cats { margin-left: 8px; }
}
.menu-row input[type=checkbox] { flex: none; width: 16px; min-width: 0; padding: 0; }
.menu-actions .check { gap: 6px; padding: 0 6px; }
/* v1.7 Prices (Excel) */
.upload-hero { border: 1.5px solid var(--line-2); }
.upload-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.3fr) auto; gap: 18px; align-items: end; }
.upload-go .btn { white-space: nowrap; }
.table.mini th, .table.mini td { padding: 6px 10px; font-size: 12.5px; }
@media (max-width: 900px) { .upload-grid { grid-template-columns: 1fr; } }
/* v1.8 user access */
.mod-group { margin: 14px 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mod-row { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.mod-row:hover { background: var(--paper); }
.mod-row input { margin-top: 3px; flex: none; width: 16px; height: 16px; }
.mod-row strong { display: block; font-size: 13.5px; font-weight: 600; }
.mod-row small { display: block; color: var(--muted); font-size: 12px; }
#dhTable td.num input { min-width: 64px; max-width: 96px; }
#dhTable th { white-space: normal; font-size: 10.5px; }
