/* The Great Marton Conspiracy — dark, one colour theme per page, each taken from an album cover:
   home = Reincarnation of a Moment (indigo night, moss, crystal green), Music & Merch = Gathering Axis (black, amber, sand gold),
   concerts = Obsidian (navy, slate, sage), About and the rest = a blend of all three.
   --bg and --accent must stay plain #rrggbb: the Bandcamp player takes its colours from them (site.js, bcSrc). */
:root, .theme-about {
  --bg: #121120; --surface: #1d1a2e; --surface-2: #2a2540; --line: #3d3657;
  --text: #ece6d6; --muted: #a7a0b8; --accent: #d9a441; --accent-2: #a2af71; --on-accent: #141414;
  --glow: radial-gradient(1200px 600px at 85% -10%, rgba(217, 164, 65, .14), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(162, 175, 113, .12), transparent 60%);
  --radius: 14px;
  color-scheme: dark;
}
.theme-reincarnation {
  --bg: #0e0d19; --surface: #1f1b34; --surface-2: #322c50; --line: #45406a;
  --text: #eef0e2; --muted: #a9a7c4; --accent: #b8e07a; --accent-2: #a2af71; --on-accent: #0e0d19;
  --glow: radial-gradient(1100px 600px at 80% -10%, rgba(184, 224, 122, .16), transparent 60%), radial-gradient(800px 500px at 0% 40%, rgba(110, 96, 180, .25), transparent 60%);
}
.theme-axis {
  --bg: #141414; --surface: #1f1b18; --surface-2: #2e2620; --line: #4a3a2c;
  --text: #f1e6d2; --muted: #b9a68c; --accent: #d9a441; --accent-2: #c0703a; --on-accent: #141414;
  --glow: radial-gradient(1100px 600px at 50% -20%, rgba(217, 164, 65, .18), transparent 60%), radial-gradient(700px 500px at 100% 80%, rgba(112, 59, 25, .35), transparent 60%);
}
.theme-obsidian {
  --bg: #0e1123; --surface: #181c33; --surface-2: #262a42; --line: #3a3c4c;
  --text: #e6eee0; --muted: #9eaab0; --accent: #c1d3b7; --accent-2: #86988a; --on-accent: #0e1123;
  --glow: radial-gradient(1000px 600px at 20% -10%, rgba(134, 152, 138, .22), transparent 60%), radial-gradient(800px 500px at 100% 60%, rgba(58, 60, 76, .5), transparent 60%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--glow), var(--bg); background-attachment: fixed; color: var(--text); font: 400 17px/1.65 'DM Sans', system-ui, sans-serif; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, .footer-brand, .brand span { font-family: 'Cinzel', Georgia, serif; font-weight: 700; line-height: 1.15; letter-spacing: .04em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); border-radius: 999px; padding: 10px 22px;
  font: 700 15px/1.2 'DM Sans', sans-serif; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px -8px var(--accent); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.big { font-size: 17px; padding: 14px 30px; }
.small-btn { padding: 4px 14px; font-size: 13px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); user-select: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); }
.brand span { font-size: 15px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2; }
.brand small { display: block; font-size: 15px; color: var(--accent); }
#nav { display: flex; gap: 4px; margin-left: auto; }
#nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 8px 16px; border-radius: 999px; letter-spacing: .03em; }
#nav a:hover { color: var(--accent); }
#nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 13px; padding: 6px 12px; }
.lang-switch a[aria-current] { background: var(--accent); color: var(--on-accent); }
.menu-toggle { display: none; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 700 15px 'DM Sans', sans-serif; cursor: pointer; }
@media (max-width: 760px) {
  .site-header { padding: 10px 16px; gap: 8px; }
  .brand img { width: 42px; height: 42px; }
  .brand span, .brand small { font-size: 12px; }
  .menu-toggle { display: block; order: 2; padding: 8px 12px; }
  .lang-switch { margin-left: auto; order: 1; }
  .lang-switch a { padding: 6px 8px; }
  #nav { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; order: 3; }
  #nav.open { display: flex; }
}
.admin-bar { background: var(--accent-2); color: var(--on-accent); text-align: center; padding: 8px 16px; font-weight: 600; }
.admin-bar a { color: inherit; font-weight: 700; margin: 0 8px; }
.admin-bar button { margin-left: 12px; background: var(--bg); color: var(--text); border: 0; border-radius: 999px; padding: 4px 14px; font-weight: 700; cursor: pointer; }

/* Hero carousel */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.slides { position: relative; height: min(72vh, 600px, 42vw); }
.slide { position: absolute; inset: 0; display: flex; color: var(--text); text-decoration: none; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.active { opacity: 1; visibility: visible; }
.slide img { flex: none; height: 100%; width: auto; max-width: 40%; object-fit: cover; }
.slide-text { flex: 1; align-self: center; padding: 32px 40px 88px; text-align: center; }
.slide-text h2 { font-size: clamp(32px, 4.6vw, 60px); margin: 0 0 14px; color: var(--text); text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent); }
.slide-text p { font-size: 18px; margin: 0 auto 24px; color: var(--muted); max-width: 34ch; }
.kicker { display: inline-block; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; margin: 0 0 12px; }
@media (prefers-reduced-motion: no-preference) {
  .slide.active img { animation: drift 10s ease-out both; }
  @keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
}
.slide-controls { position: absolute; left: 50%; transform: translateX(-50%); bottom: 20px; display: flex; gap: 10px; align-items: center; z-index: 2; }
.slide-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); font-size: 20px; cursor: pointer; line-height: 1; }
.slide-btn.pause { font-size: 12px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); padding: 0; cursor: pointer; }
.dots button[aria-selected="true"] { background: var(--accent); width: 28px; border-radius: 999px; }
@media (max-width: 800px) {
  .slides { height: auto; display: grid; }
  .slide { position: relative; grid-area: 1 / 1; flex-direction: column; }
  .slide img { width: 100%; height: auto; max-width: none; max-height: 60vh; object-fit: contain; background: var(--bg); }
  .slide img.second { display: none; }
  .slide-text { text-align: left; padding: 20px 16px 84px; }
  .slide-text p { margin-left: 0; }
  .slide-controls { left: 16px; right: 16px; transform: none; justify-content: center; }
}

/* Home */
.intro { text-align: center; padding-top: 56px; padding-bottom: 16px; }
.intro h1 { font-size: clamp(30px, 5vw, 54px); margin: 0 0 14px; letter-spacing: .08em; }
.intro > p { max-width: 62ch; margin: 0 auto 28px; font-size: 18px; color: var(--muted); }
.intro .social { display: flex; justify-content: center; gap: 18px; margin: 0 auto 22px; }
.intro .social a { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; transition: transform .15s; }
.intro .social a:hover { transform: scale(1.08); }
.intro .social .ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.intro .social .bc { background: #1da0c3; }
.intro .social svg { width: 28px; height: 28px; }
.section-title { font-size: clamp(24px, 3vw, 32px); margin: 56px 0 18px; }
.latest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; margin-top: 56px; }
.latest > img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 50%, transparent); }
.latest h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; }
.latest p { color: var(--muted); }
@media (max-width: 760px) { .latest { grid-template-columns: 1fr; gap: 20px; } }
.player { margin: 18px 0; }
.bc-large { width: 100%; max-width: 480px; height: 472px; border: 0; border-radius: var(--radius); }
.upcoming { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.upcoming li:not(.empty) > a { display: flex; gap: 16px; align-items: center; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--text); text-decoration: none; transition: border-color .15s; }
.upcoming li:not(.empty) > a:hover { border-color: var(--accent); }
.upcoming .date { flex: none; width: 64px; height: 64px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-content: center; text-align: center; font-weight: 700; line-height: 1; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.upcoming .date b { font-family: 'Cinzel', serif; font-size: 26px; letter-spacing: 0; }
.upcoming small { color: var(--muted); } .upcoming .tix { color: var(--accent); font-weight: 700; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; list-style: none; color: var(--muted); }
.cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 24px; margin: 64px auto; text-align: center; }
.wrap.cta-band { max-width: 1088px; }
.cta-band h2 { font-size: 30px; margin: 0 0 8px; color: var(--accent); }
.cta-band p { max-width: 56ch; margin: 0 auto 18px; color: var(--muted); }

/* Page basics */
.page-title { font-size: clamp(34px, 6vw, 58px); margin: 44px 0 10px; letter-spacing: .06em; }
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.small { font-size: 14px; color: var(--muted); }
.crumbs { margin: 24px 0 0; font-size: 15px; color: var(--muted); }
.pre { white-space: pre-line; }

/* Product (record / merch) page */
.workshop-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 16px; align-items: start; }
.gallery-main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--surface); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 45%, transparent); }
.thumbs { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; width: 72px; height: 72px; background: none; opacity: .6; }
.thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--accent); outline-offset: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.details h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 0 0 12px; }
.design-title { font-weight: 600; color: var(--muted); margin: -4px 0 8px; }
.price-tag { font-family: 'Cinzel', serif; font-size: 26px; color: var(--accent); margin: 8px 0 0; min-height: 1em; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 20px 0; }
.options label { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.options select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: 600 16px 'DM Sans', sans-serif; color: var(--text); background: var(--surface); text-transform: none; letter-spacing: 0; cursor: pointer; }
.shop-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.shop-links.left { justify-content: flex-start; }
.design-text { max-width: 70ch; margin: 40px 0 24px; color: var(--muted); }
.design-text h2 { color: var(--text); }
@media (max-width: 820px) { .workshop-top { grid-template-columns: 1fr; gap: 24px; } }

/* Product grids */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin: 28px 0; }
.product-cell { display: flex; flex-direction: column; }
.product { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
a.product { display: flex; flex-direction: column; flex: 1; color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s; }
a.product:hover { transform: translateY(-4px); border-color: var(--accent); }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 14px 18px 18px; }
.product h2 { margin: 0 0 4px; font-size: 19px; }
.product p { margin: 0; color: var(--muted); }
.product p:not(.price) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.product .price { font-weight: 700; color: var(--accent); margin: 4px 0 0; }
.product .count { align-self: flex-start; margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--accent); }
.designs { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
@media (max-width: 520px) { .designs { grid-template-columns: 1fr 1fr; gap: 12px; } .designs .product-body { padding: 10px 12px 12px; } .designs .product h2 { font-size: 15px; } }
.card-admin { display: flex; gap: 8px; margin: 12px 0 0; }

/* Calendar */
.calendar-section { margin: 24px 0 64px; }
.calendar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-head h3 { font-size: 26px; margin: 0; text-align: center; text-transform: capitalize; }
.cal-nav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 22px; cursor: pointer; line-height: 1; }
.cal-nav:hover { border-color: var(--accent); color: var(--accent); }
.cal-admin-hint { display: none; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; font-weight: 600; margin: 0 0 12px; }
.is-admin .cal-admin-hint { display: block; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 4px 0; }
.cal-day { min-height: 86px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: left; background: transparent; font: inherit; color: inherit; }
.cal-day b { font-size: 14px; font-weight: 600; color: var(--muted); }
.cal-day.has { background: var(--surface-2); border-color: var(--accent-2); }
.cal-day.has b { color: var(--text); }
.cal-day.today { outline: 2px solid var(--accent); outline-offset: -1px; }
.cal-day.past { opacity: .45; }
button.cal-day { cursor: pointer; } button.cal-day:hover { border-color: var(--accent); }
.chip { background: var(--accent); color: var(--on-accent); border-radius: 6px; padding: 2px 6px; font-size: 12px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
a.chip { text-decoration: none; }
.cal-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 4px; }
.cal-list li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 10px 0; }
.cal-list li.past { opacity: .5; }
.cal-list .what { font-weight: 600; } .cal-list .where { color: var(--muted); }
@media (max-width: 640px) {
  .calendar { padding: 12px; }
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 46px; padding: 4px; align-items: center; }
  .cal-day b { font-size: 13px; }
  .chip { font-size: 0; width: 8px; height: 8px; padding: 0; border-radius: 50%; } /* a dot on phones; the list below has the details */
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; margin: 20px 0 24px; }
.about-grid img { border-radius: var(--radius); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 45%, transparent); }
.about-text .par { color: var(--muted); }
.about .sign { font-family: 'Cinzel', serif; font-size: 20px; color: var(--accent); }
.members { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.members li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.members strong { display: block; color: var(--text); font-family: 'Cinzel', serif; font-size: 18px; letter-spacing: .03em; text-transform: none; margin: 6px 0 2px; }
.members .glyph { font-size: 26px; color: var(--accent); letter-spacing: 0; }
.records { display: grid; gap: 18px; }
.record { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--muted); text-decoration: none; transition: border-color .15s; }
.record:hover { border-color: var(--accent); }
.record img { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; }
.record strong { display: block; color: var(--text); font-family: 'Cinzel', serif; font-size: 22px; }
.record small { display: block; color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin: 2px 0 8px; }
.gallery-grid { columns: 3 240px; column-gap: 12px; margin-bottom: 8px; }
.gallery-grid img { width: 100%; margin: 0 0 12px; border-radius: 10px; break-inside: avoid; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .record { grid-template-columns: 90px 1fr; gap: 14px; } .record img { width: 90px; height: 90px; } }

/* Footer, admin login (triple-tap the M) */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); text-align: center; padding: 40px 16px 96px; margin-top: 40px; }
.site-footer a { color: var(--accent); }
.site-footer p { margin: 4px 0; }
.footer-brand { font-size: 22px; color: var(--text); letter-spacing: .14em; text-transform: uppercase; }
#fb { touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; } /* no double-tap zoom or text selection while tapping */

/* Floating "Listen" button and docked player */
.listen-btn { position: fixed; right: 16px; bottom: 16px; z-index: 30; border: 1px solid var(--accent); background: var(--bg); color: var(--accent); border-radius: 999px;
  padding: 10px 18px; font: 700 15px 'DM Sans', sans-serif; cursor: pointer; box-shadow: 0 8px 30px -10px var(--accent); }
.listen-btn:hover { background: var(--accent); color: var(--on-accent); }
.listen { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 560px; margin: 0 auto; display: flex; gap: 8px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 10px 40px -10px #000; }
.listen[hidden], .listen-btn[hidden] { display: none; }
.listen iframe { flex: 1; height: 42px; border: 0; }
.listen-x { background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; padding: 0 8px; }

/* Dialogs (admin editors) */
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
dialog.wide { width: min(640px, calc(100vw - 32px)); }
dialog h2 { margin: 0 0 16px; font-size: 24px; }
dialog h3 { margin: 8px 0 10px; color: var(--accent); }
dialog label { display: block; font-weight: 600; margin-bottom: 12px; }
dialog label small { font-weight: 400; color: var(--muted); }
dialog input:not([type=checkbox]), dialog textarea, dialog select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg); color: var(--text); resize: vertical; }
dialog .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
dialog .actions .delete { margin-right: auto; color: #ff7a7a; }
dialog .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { dialog .two { grid-template-columns: 1fr; } }
.form-error { color: #ff7a7a; font-weight: 600; min-height: 1.2em; margin: 8px 0 0; }
.day-editor .row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0 0 12px; }
.remove { background: none; border: 0; color: #ff7a7a; font-weight: 700; cursor: pointer; padding: 0; }
.move { background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; padding: 0; margin-right: 12px; }
body:not(.is-admin) .admin-only { display: none !important; }
.details .admin-only { margin-top: 16px; }
.slide-admin { margin-top: 16px; }
.design-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.design-row[open] { border-color: var(--accent); }
.design-row summary { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; }
.design-row summary img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.design-row summary img[src=""] { visibility: hidden; }
.design-row[open] summary { margin-bottom: 12px; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.photo { position: relative; cursor: grab; }
.photo img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.photo .x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: #ff7a7a; font-weight: 700; cursor: pointer; line-height: 1; padding: 0; }
.photos .file { display: grid; place-items: center; width: 64px; height: 64px; margin: 0; border: 1px dashed var(--line); border-radius: 8px; font-size: 12px; text-align: center; cursor: pointer; }
.photos .file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photos .file:focus-within { outline: 2px solid var(--accent); }

/* Translations (admin) */
.tr-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tr-row p { margin: 0; }
.tr-row textarea { width: 100%; font: inherit; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
@media (max-width: 720px) { .tr-row { grid-template-columns: 1fr; gap: 6px; } }

/* Visitor stats (admin) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.stats-range { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stats-range.countries .btn { padding: 6px 14px; font-size: 14px; }
.stats-total small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.stats section { margin-bottom: 40px; }
.stats-chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px; margin: 0 0 32px; }
.chart-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; }
.chart-head span { color: var(--muted); font-size: 14px; }
.stats-daily { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 160px; border-top: 1px dashed var(--line); border-bottom: 1px solid var(--muted); }
.stats-daily::before { content: var(--max); position: absolute; top: -9px; left: 0; background: var(--surface); padding-right: 6px; font-size: 12px; color: var(--muted); line-height: 1; }
.stats-daily span { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; outline: none; }
.stats-daily b { width: 100%; height: var(--h); background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.stats-daily span.zero b { background: var(--line); }
.stats-daily span:hover b, .stats-daily span:focus b { background: var(--accent-2); }
.stats-daily i { display: none; position: absolute; bottom: calc(var(--h) + 8px); left: 50%; transform: translateX(-50%); z-index: 2; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  font-style: normal; font-size: 13px; white-space: nowrap; padding: 6px 10px; border-radius: 8px; text-align: center; pointer-events: none; }
.stats-daily span:hover i, .stats-daily span:focus i { display: block; }
.stats-daily span:first-child i { left: 0; transform: none; } .stats-daily span:last-child i { left: auto; right: 0; transform: none; }
.chart-axis { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.stats-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats-table th, .stats-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; white-space: normal; }
.stats-table td.by { text-align: left; font-size: 14px; }
.stats-table .who { display: flex; gap: 12px; align-items: center; }
.stats-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stats-table img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.stats-table small { display: block; color: var(--muted); }
@media (max-width: 560px) { .stats-table th, .stats-table td { padding: 8px 6px; font-size: 14px; } .stats-table td:nth-child(4), .stats-table th:nth-child(4), .stats-table th:nth-child(5), .stats-table td.by { display: none; } }
