:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #6b6b6b;
  --line: #e6e4df;
  --accent: #ff5a36;
  --accent-ink: #ffffff;
  --ok: #1f8a4c;
  --warn: #b26b00;
  --bad: #c0342b;
  --radius: 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110; --surface: #1b1b1a; --ink: #f1f0ec; --muted: #9b9a95; --line: #2d2d2b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 16px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 22px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 460px; }
main.wrap { padding-top: 40px; padding-bottom: 80px; }

.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.mark { width: 22px; height: 22px; border: 3px solid var(--accent); border-radius: 4px; box-shadow: 4px 4px 0 var(--ink); }
nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
nav a { text-decoration: none; }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 8px;
  padding: 12px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--line); }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }
form.inline { display: inline; }

input[type=text], input[type=email] {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.note { padding: 12px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.note.err { border-color: var(--bad); color: var(--bad); }
.note.ok { border-color: var(--ok); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---- landing ---- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 64px 0 48px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 32em; }
.frame-demo { position: relative; aspect-ratio: 4/5; border: 14px solid var(--ink); background:
  linear-gradient(135deg, #ffd3c4, #ff5a36 45%, #3b1f6e); box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }
.frame-demo .phone { position: absolute; right: -28px; bottom: -36px; width: 46%; aspect-ratio: 9/18;
  border-radius: 22px; border: 6px solid #111; background: #000; overflow: hidden; }
.frame-demo .phone::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 28px; background: linear-gradient(160deg, #ff8a6b, #6b3fb8); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 64px; }
.steps .card { padding: 22px; }
.steps b { display: block; font-size: 13px; color: var(--accent); margin-bottom: 8px; letter-spacing: .06em; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .frame-demo { max-width: 300px; margin: 0 auto 30px; }
  .steps { grid-template-columns: 1fr; }
}

/* ---- dashboard ---- */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ex-card { padding: 18px; text-decoration: none; display: block; }
.ex-card:hover { border-color: var(--ink); }
.ex-card h3 { font-size: 17px; margin-bottom: 4px; }
.new-ex { display: flex; gap: 8px; max-width: 420px; }

/* ---- exhibition ---- */
.ex-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .ex-layout { grid-template-columns: 1fr; } }
.share { padding: 18px; position: sticky; top: 16px; }
.share img.qr { width: 100%; max-width: 220px; margin: 0 auto 12px; background: #fff; padding: 8px; border-radius: 6px; }
.share .url { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; }
.art-list { display: grid; gap: 14px; }
.art { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px; }
.art img { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; background: var(--line); }
.art .meta { min-width: 0; }
.art .title-in { font-weight: 600; border: 1px solid transparent; padding: 4px 6px; margin: -4px -6px 4px; width: 100%; }
.art .title-in:hover, .art .title-in:focus { border-color: var(--line); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; }
.pill.good { color: var(--ok); } .pill.ok { color: var(--warn); } .pill.poor { color: var(--bad); }
.stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin: 6px 0; flex-wrap: wrap; }
.art .row { gap: 8px; margin-top: 8px; font-size: 14px; }
.art select { font: inherit; font-size: 14px; padding: 4px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

.add { padding: 20px; margin-top: 8px; }
.drops { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 560px) { .drops { grid-template-columns: 1fr; } }
.drop { position: relative; display: grid; place-items: center; text-align: center; aspect-ratio: 4/3;
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; overflow: hidden; }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img, .drop video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--bg); }
.drop .hint { font-size: 14px; color: var(--muted); }
.drop .hint b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.hidden { display: none !important; }

/* ---- print ---- */
.print-sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: #fff; color: #111; }
.print-card { border: 1px dashed #bbb; padding: 28px; text-align: center; break-inside: avoid; }
.print-card img { width: 55%; margin: 14px auto; }
.print-card h3 { font-size: 20px; margin: 0; }
.print-card p { font-size: 14px; margin: 0; color: #444; }
@media print {
  .no-print, .top { display: none !important; }
  body, main.wrap { background: #fff; padding: 0; max-width: none; }
}
