/* Obrys — Spotlight & «Design with Claude» (Claude's warm paper look), account, template gallery (Canva + Pinterest),
   timeline layer bars, export hub logos, small fixes */
:root {
  --cl-paper: #FAF9F5; --cl-paper-2: #F0EEE6; --cl-line: #E3DFD3; --cl-ink: #141413; --cl-ink-2: #5E5D59; --cl-ink-3: #8F8D86;
  --cl-clay: #D97757; --cl-clay-2: #C6613F; --cl-clay-soft: rgba(217, 119, 87, .14);
  --cl-serif: 'Newsreader', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --pin: #E60023;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --cl-paper: #262624; --cl-paper-2: #30302E; --cl-line: #3E3E3A; --cl-ink: #F5F4EE; --cl-ink-2: #B7B5AC; --cl-ink-3: #85837C; --cl-clay-soft: rgba(217, 119, 87, .2); }
}
:root[data-theme="dark"] { --cl-paper: #262624; --cl-paper-2: #30302E; --cl-line: #3E3E3A; --cl-ink: #F5F4EE; --cl-ink-2: #B7B5AC; --cl-ink-3: #85837C; --cl-clay-soft: rgba(217, 119, 87, .2); }

/* ---------- small fixes ---------- */
.hexin.bad { border-color: var(--danger) !important; animation: hex-shake .25s; }
@keyframes hex-shake { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.exp-sep { margin: 6px 0 2px; color: var(--fg-2); }
.xh-app .xh-logo { flex: none; display: block; line-height: 0; margin-bottom: 4px; }
.xh-app .xh-logo svg { display: block; border-radius: 9px; }

/* ---------- Spotlight ---------- */
.spot-back { background: rgba(20, 20, 19, .28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); align-items: start; }
.spot { width: min(760px, 100%); margin-top: 11vh; background: var(--cl-paper); color: var(--cl-ink); border: 1px solid var(--cl-line); border-radius: 18px; box-shadow: 0 24px 60px rgba(20, 20, 19, .22), 0 2px 8px rgba(20, 20, 19, .08); overflow: hidden; display: flex; flex-direction: column; max-height: 76vh; }
.spot-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.spot-mark { color: var(--cl-clay); display: grid; place-items: center; flex: none; }
.spot-in input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--cl-ink); font: 400 21px/1.3 var(--cl-serif); letter-spacing: -.005em; }
.spot-in input::placeholder { color: var(--cl-ink-3); }
.spot-in, .spot-cats, .spot-foot { flex: none; }
.spot-esc { font: 11px var(--mono); color: var(--cl-ink-3); border: 1px solid var(--cl-line); border-radius: 5px; padding: 2px 6px; }
.spot-cats { display: flex; gap: 4px; padding: 0 14px 10px; border-bottom: 1px solid var(--cl-line); overflow-x: auto; scrollbar-width: none; }
.spot-cats button { border: 1px solid transparent; background: transparent; color: var(--cl-ink-2); padding: 4px 11px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.spot-cats button:hover { background: var(--cl-paper-2); }
.spot-cats button.on { background: var(--cl-ink); color: var(--cl-paper); }
.spot-main { display: grid; grid-template-columns: minmax(0, 1fr) 236px; min-height: 0; flex: 1; }
.spot-list { max-height: none; overflow: auto; padding: 6px 8px 10px; }
.spot-h { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cl-ink-3); padding: 10px 10px 4px; }
.spot-it { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: default; }
.spot-it.on { background: var(--cl-clay-soft); }
.spot-it.on .spot-ic { background: var(--cl-clay); color: #fff; border-color: transparent; }
.spot-it.dis { opacity: .45; }
.spot-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--cl-paper-2); border: 1px solid var(--cl-line); color: var(--cl-ink-2); flex: none; overflow: hidden; }
.spot-ic.claude { background: var(--cl-clay); color: #fff; border-color: transparent; }
.spot-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.spot-t b { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-t em { font-style: normal; font-size: 11px; color: var(--cl-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-it kbd { color: var(--cl-ink-3); }
.spot-prev { border-left: 1px solid var(--cl-line); padding: 14px; overflow: auto; background: var(--cl-paper-2); }
.spot-prev h4 { margin: 10px 0 4px; font: 500 16px/1.25 var(--cl-serif); }
.spot-prev p { margin: 0 0 6px; color: var(--cl-ink-2); font-size: 12px; line-height: 1.5; }
.spot-pv-img { border-radius: 10px; overflow: hidden; background: var(--cl-paper); border: 1px solid var(--cl-line); display: grid; place-items: center; min-height: 120px; color: var(--cl-ink-3); }
.spot-pv-img.chk { background: var(--checker); }
.spot-pv-img img, .spot-pv-img svg { display: block; max-width: 100%; max-height: 260px; }
.spot-pal { display: flex; gap: 4px; margin: 8px 0; } .spot-pal i { flex: 1; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.spot-meta { font-size: 11px !important; color: var(--cl-ink-3) !important; }
.spot-font { font-size: 40px; line-height: 1.1; padding: 12px 4px; } .spot-font small { font-size: 13px; color: var(--cl-ink-2); }
.spot-color { height: 110px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.spot-claude { height: 110px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 30%, #E9A385, var(--cl-clay) 60%, var(--cl-clay-2)); }
.spot-claude.cmd { background: var(--cl-paper); color: var(--cl-ink-2); border: 1px solid var(--cl-line); }
.spot-foot { display: flex; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--cl-line); font-size: 11px; color: var(--cl-ink-3); }
.gl-mini { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; } .gl-mini i { display: block; }
@media (max-width: 760px) { .spot { margin-top: 4vh; max-height: 88vh; } .spot-main { grid-template-columns: 1fr; } .spot-prev { display: none; } .spot-foot span:last-child { display: none; } }

/* ---------- Spotlight tour & «Show where» (guide.js) ---------- */
.gd-spot { position: fixed; inset: 0; z-index: 1050; }
.gd-spot.pass { pointer-events: none; }
.gd-sh { position: fixed; display: block; background: rgba(12, 12, 16, .6); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); }
.gd-spot.pass .gd-sh { background: rgba(12, 12, 16, .45); }
.gd-hole { position: fixed; border-radius: 6px; pointer-events: none; box-shadow: 0 0 0 2px var(--cl-clay), 0 0 0 7px rgba(217, 119, 87, .28); }
.gd-spot.free .gd-hole { display: none; }
.gd-spot.pass .gd-hole { animation: gd-pulse 1.6s ease-in-out infinite; }
@keyframes gd-pulse { 50% { box-shadow: 0 0 0 2px var(--cl-clay), 0 0 0 11px rgba(217, 119, 87, .14); } }
.gd-card { position: fixed; width: min(340px, calc(100vw - 16px)); pointer-events: auto; background: var(--cl-paper); color: var(--cl-ink); border: 1px solid var(--cl-line); border-radius: 14px; padding: 12px 14px 12px; box-shadow: 0 18px 50px rgba(20, 20, 19, .3); }
.gd-card.ready { transition: left .28s ease, top .28s ease; }
.gd-c-h { display: flex; align-items: center; gap: 8px; }
.gd-step { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--cl-clay); font-variant-numeric: tabular-nums; }
.gd-x { margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--cl-ink-3); display: grid; place-items: center; cursor: pointer; }
.gd-x:hover { background: var(--cl-paper-2); color: var(--cl-ink); }
.gd-card h3 { margin: 4px 0 4px; font: 500 19px/1.25 var(--cl-serif); }
.gd-card p { margin: 0 0 6px; color: var(--cl-ink-2); font-size: 12.5px; line-height: 1.5; }
.gd-card p.gd-note { color: var(--cl-ink-3); font-size: 11.5px; }
.gd-c-f { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.gd-c-f .sp { flex: 1; }
.gd-card .btn.primary, .gd .btn.primary, .gd-invite .btn.primary { background: var(--cl-clay); border-color: var(--cl-clay); color: #fff; }
.gd-card .btn.primary:hover, .gd .btn.primary:hover, .gd-invite .btn.primary:hover { background: var(--cl-clay-2); }
.gd-dots { display: flex; gap: 3px; align-items: center; min-width: 0; overflow: hidden; }
.gd-dots i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--cl-line); transition: width .2s; }
.gd-dots i.on { background: var(--cl-clay); width: 14px; border-radius: 3px; }

/* ---------- feature guide (F1) ---------- */
.gd-back { background: rgba(20, 20, 19, .32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.gd { width: min(1060px, 100%); height: min(780px, calc(100vh - 32px)); display: flex; flex-direction: column; background: var(--cl-paper); color: var(--cl-ink); border: 1px solid var(--cl-line); border-radius: 18px; box-shadow: 0 24px 60px rgba(20, 20, 19, .24); overflow: hidden; }
.gd-h { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--cl-line); }
.gd-h .ib { color: var(--cl-ink-2); }
.gd-mark { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 30%, #E9A385, var(--cl-clay) 60%, var(--cl-clay-2)); }
.gd-ttl { display: flex; flex-direction: column; min-width: 0; }
.gd-ttl b { font: 500 20px/1.15 var(--cl-serif); white-space: nowrap; }
.gd-ttl em { font-style: normal; font-size: 11.5px; color: var(--cl-ink-3); }
.gd-q { flex: 1; min-width: 120px; max-width: 420px; margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 36px; border: 1px solid var(--cl-line); border-radius: 999px; background: var(--cl-paper-2); color: var(--cl-ink-3); }
.gd-q:focus-within { border-color: var(--cl-clay); box-shadow: 0 0 0 3px var(--cl-clay-soft); }
.gd-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--cl-ink); font: 14px var(--font); }
.gd-tour { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: var(--cl-clay-soft); color: var(--cl-clay-2); border-color: transparent; }
.gd-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.gd-nav { overflow: auto; padding: 10px 8px; border-right: 1px solid var(--cl-line); background: var(--cl-paper-2); display: flex; flex-direction: column; gap: 1px; }
.gd-nav button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--cl-ink-2); font: 13px var(--font); text-align: left; cursor: pointer; }
.gd-nav button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-nav button i { font-style: normal; font-size: 11px; color: var(--cl-ink-3); }
.gd-nav button:hover { background: var(--cl-paper); color: var(--cl-ink); }
.gd-nav button.on { background: var(--cl-clay-soft); color: var(--cl-ink); font-weight: 600; }
.gd-nav button.on .ic { color: var(--cl-clay); }
.gd-main { overflow: auto; padding: 6px 22px 28px; outline: 0; }
.gd-sec { margin: 18px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cl-ink-3); }
.gd-sec.big { margin: 16px 0 6px; font: 500 26px/1.2 var(--cl-serif); letter-spacing: 0; text-transform: none; color: var(--cl-ink); }
.gd-intro { margin: 0 0 12px; max-width: 66ch; color: var(--cl-ink-2); font-size: 13.5px; line-height: 1.55; }
.gd-sub { margin: 18px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--cl-line); font-size: 12px; font-weight: 600; color: var(--cl-ink-2); }
.gd-it { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 11px; }
.gd-it:hover { background: var(--cl-paper-2); }
.gd-it.dis .gd-tx b { color: var(--cl-ink-2); }
.gd-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--cl-paper-2); border: 1px solid var(--cl-line); color: var(--cl-ink-2); }
.gd-it:hover .gd-ic { background: var(--cl-paper); color: var(--cl-clay); }
.gd-tx { flex: 1; min-width: 0; }
.gd-l { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gd-l b { font-weight: 500; font-size: 13.5px; }
.gd-l kbd { font: 11px var(--mono); color: var(--cl-ink-2); border: 1px solid var(--cl-line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--cl-paper); }
.gd-tx em { display: block; font-style: normal; font-size: 11.5px; color: var(--cl-ink-3); }
.gd-tx p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--cl-ink-2); max-width: 70ch; }
.gd-acts { flex: none; display: flex; gap: 6px; opacity: .55; transition: opacity .15s; }
.gd-it:hover .gd-acts, .gd-it:focus-within .gd-acts { opacity: 1; }
.gd-acts .btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; font-size: 12px; }
.gd-empty { padding: 40px 0; text-align: center; color: var(--cl-ink-3); }
@media (max-width: 760px) {
  .gd { height: calc(100vh - 16px); border-radius: 14px; }
  .gd-h { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .gd-q { order: 5; flex-basis: 100%; max-width: none; margin-left: 0; }
  .gd-tour span { display: none; }
  .gd-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .gd-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--cl-line); padding: 6px 8px; }
  .gd-nav button { width: auto; flex: none; }
  .gd-nav button i { display: none; }
  .gd-main { padding: 4px 12px 20px; }
  .gd-it { flex-wrap: wrap; }
  .gd-acts { opacity: 1; width: 100%; padding-left: 44px; }
}

/* ---------- first-visit invitation ---------- */
.gd-invite { position: fixed; left: 16px; bottom: 16px; z-index: 950; width: min(340px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--cl-paper); color: var(--cl-ink); border: 1px solid var(--cl-line); border-radius: 14px; box-shadow: 0 18px 50px rgba(20, 20, 19, .22); animation: gd-in .35s ease; }
.gd-invite b { font: 500 17px/1.25 var(--cl-serif); }
.gd-invite p { margin: 4px 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--cl-ink-2); }
.gd-inv-b { display: flex; gap: 6px; }
.gd-invite .gd-x { margin: -4px -4px 0 auto; flex: none; }
@keyframes gd-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .gd-card, .gd-dots i { transition: none; } .gd-spot.pass .gd-hole, .gd-invite { animation: none; } }

/* ---------- Design with Claude ---------- */
.dlg.cl-dlg { width: min(560px, 100%); background: var(--cl-paper); color: var(--cl-ink); }
.cl-dlg .dlg-h { font: 500 18px var(--cl-serif); }
.cl-hero { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--cl-clay-soft); color: var(--cl-ink); }
.cl-hero > .ic { color: var(--cl-clay); margin-top: 2px; }
.cl-hero b { display: block; font: 500 15px var(--cl-serif); margin-bottom: 2px; } .cl-hero span { color: var(--cl-ink-2); font-size: 12px; line-height: 1.5; }
.cl-prompt { width: 100%; resize: vertical; min-height: 96px; border: 1px solid var(--cl-line); border-radius: 12px; padding: 10px 12px; background: var(--panel); color: var(--cl-ink); font: 15px/1.5 var(--cl-serif); outline: none; }
.cl-prompt:focus { border-color: var(--cl-clay); box-shadow: 0 0 0 3px var(--cl-clay-soft); }
.cl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cl-row label { display: flex; flex-direction: column; gap: 4px; color: var(--cl-ink-2); font-size: 11.5px; }
.cl-row select, .cl-key input[type="password"] { height: 32px; border: 1px solid var(--cl-line); border-radius: 8px; background: var(--panel); color: var(--cl-ink); padding: 0 8px; }
.cl-key summary { cursor: pointer; color: var(--cl-ink-2); font-weight: 600; padding: 4px 0; }
.cl-key[open] { display: flex; flex-direction: column; gap: 6px; } .cl-key input[type="password"] { width: 100%; font-family: var(--mono); }
.cl-status { min-height: 18px; color: var(--cl-ink-2); font-size: 12px; } .cl-status.err { color: var(--danger); }
.cl-dlg .btn.primary { background: var(--cl-clay); border-color: var(--cl-clay); } .cl-dlg .btn.primary:hover { background: var(--cl-clay-2); }
.cl-dlg .btn.primary:disabled { opacity: .55; cursor: progress; }
@media (max-width: 560px) { .cl-row { grid-template-columns: 1fr; } }

/* ---------- account ---------- */
.acct-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: transparent; color: var(--topbar-fg); font-size: 12px; }
.acct-btn:hover { background: var(--topbar-2); }
.acct-btn.in { padding: 0; width: 28px; justify-content: center; overflow: hidden; border-color: transparent; background: var(--cl-clay); }
.acct-btn img { width: 100%; height: 100%; object-fit: cover; }
.acct-ini { font-weight: 700; font-size: 11px; color: #fff; }
.dlg.acct-dlg { width: min(420px, 100%); }
.acct { display: flex; flex-direction: column; gap: 10px; }
.acct-lead { margin: 0; color: var(--fg-2); line-height: 1.5; }
.acct-prov { display: flex; align-items: center; justify-content: center; gap: 10px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font-weight: 600; font-size: 13.5px; }
.acct-prov:hover { background: var(--panel-2); }
.acct-prov.apple { background: #000; color: #fff; border-color: #000; } .acct-prov.apple:hover { background: #1d1d1f; }
.acct-g-slot { display: flex; justify-content: center; min-height: 44px; }
.acct-or { display: flex; align-items: center; gap: 10px; color: var(--fg-3); font-size: 11.5px; } .acct-or::before, .acct-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.acct-f { display: flex; flex-direction: column; gap: 4px; color: var(--fg-2); font-size: 11.5px; }
.acct-f input { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--panel-2); outline: none; font-size: 13px; }
.acct-f input:focus { border-color: var(--acc); background: var(--panel); }
.acct-kind { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--fg-2); min-height: 0; } .acct-kind:empty { display: none; }
.acct-msg { font-size: 12px; color: var(--fg-2); line-height: 1.45; } .acct-msg:empty { display: none; } .acct-msg.err { color: var(--danger); }
.acct-small { margin: 0; font-size: 11px; color: var(--fg-3); line-height: 1.5; }
@media (max-width: 760px) { .acct-btn .lbl { display: none; } .acct-btn { width: 28px; padding: 0; justify-content: center; } }

/* ---------- template gallery ---------- */
.gl-back { position: fixed; inset: 0; z-index: 880; background: rgba(15, 15, 20, .45); display: grid; place-items: center; padding: 16px; }
.gl-back.drop .gl { box-shadow: 0 0 0 3px var(--pin), var(--shadow); }
.gl { width: min(1360px, 100%); height: min(900px, calc(100vh - 32px)); background: var(--panel); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.gl-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; flex-wrap: wrap; }
.gl-h h2 { margin: 0 8px 0 4px; font-size: 20px; }
.gl-search { flex: 1 1 320px; max-width: 560px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--panel-2); color: var(--fg-3); }
.gl-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--fg); }
.gl-search:focus-within { box-shadow: 0 0 0 2px var(--acc); }
.gl-fmts { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.gl-fmts button, .gl-dfmt button { border: 1px solid var(--line); background: var(--panel); color: var(--fg-2); padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-size: 12px; }
.gl-fmts button:hover, .gl-dfmt button:hover { background: var(--panel-2); color: var(--fg); }
.gl-fmts button.on, .gl-dfmt button.on { background: var(--fg); color: var(--panel); border-color: var(--fg); }
.gl-dfmt button em { font-style: normal; opacity: .6; font-size: 11px; }
.gl-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.gl-side { border-right: 1px solid var(--line); padding: 10px 8px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.gl-s { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--fg-2); text-align: left; padding: 7px 10px; border-radius: 8px; font-size: 13px; }
.gl-s span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-s em { font-style: normal; color: var(--fg-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.gl-s:hover { background: var(--panel-2); color: var(--fg); }
.gl-s.on { background: var(--acc-soft); color: var(--fg); font-weight: 600; }
.gl-sh { display: flex; align-items: center; justify-content: space-between; margin: 12px 10px 2px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.gl-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.gl-dot.g-hist { background: #B08D57; } .gl-dot.g-modern { background: #0D99FF; } .gl-dot.g-ethnic { background: #C1121F; } .gl-dot.g-mixed { background: #9747FF; }
.gl-main { overflow: auto; padding: 14px 18px 30px; }
.gl-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; } .gl-top h3 { margin: 0; font-size: 17px; } .gl-top > span { color: var(--fg-3); }
.gl-tip { font-size: 11.5px; color: var(--fg-3); }
.gl-wall { columns: 5 210px; column-gap: 16px; }
.gl-wall.small { columns: 4 180px; }
.gl-card { break-inside: avoid; margin: 0 0 18px; position: relative; display: block; }
.gl-th { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--panel-2); cursor: zoom-in; line-height: 0; transition: filter .15s; }
.gl-th svg, .gl-th img { display: block; width: 100% !important; height: auto; }
.gl-card:hover .gl-th { filter: brightness(.86); }
.gl-noth { display: grid; place-items: center; height: 160px; color: var(--fg-3); width: 100%; }
.gl-save, .gl-use { position: absolute; opacity: 0; transition: opacity .12s; border: 0; border-radius: 999px; font-weight: 700; font-size: 13px; padding: 9px 14px; }
.gl-save { top: 10px; right: 10px; background: var(--pin); color: #fff; }
.gl-save.on { background: #111; opacity: 1; }
.gl-use { bottom: 58px; left: 10px; background: rgba(255, 255, 255, .94); color: #111; }
.gl-card:hover .gl-save, .gl-card:hover .gl-use, .gl-card:focus-within .gl-save, .gl-card:focus-within .gl-use { opacity: 1; }
.gl-meta { display: flex; flex-direction: column; gap: 2px; padding: 7px 4px 0; position: relative; }
.gl-meta b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 40px; }
.gl-meta > span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--fg-3); }
.gl-meta > .gl-mini { display: grid; gap: 0; position: absolute; right: 4px; top: 9px; width: 30px; height: 14px; border-radius: 4px; overflow: hidden; grid-template-columns: repeat(4, 1fr); }
.gl-card.user .gl-meta .ib { position: absolute; right: 0; top: 4px; }
.gl-empty { color: var(--fg-3); padding: 40px 10px; text-align: center; line-height: 1.6; max-width: 520px; margin: 0 auto; }
.gl-backlink { margin-bottom: 10px; display: inline-block; text-decoration: none; font-weight: 600; }
.gl-d { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.gl-d-img { border-radius: 20px; overflow: hidden; background: var(--panel-2); line-height: 0; box-shadow: var(--shadow-sm); }
.gl-d-img svg { width: 100% !important; height: auto; max-height: 72vh; }
.gl-d-info h3 { margin: 6px 0 6px; font-size: 30px; line-height: 1.1; }
.gl-d-info p { color: var(--fg-2); line-height: 1.55; margin: 0 0 10px; font-size: 13.5px; }
.gl-d-info h5 { margin: 16px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.gl-kick { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); font-size: 12px; }
.gl-pal { display: flex; gap: 6px; flex-wrap: wrap; }
.gl-sw { display: flex; flex-direction: column; align-items: stretch; gap: 3px; border: 0; background: transparent; padding: 0; width: 64px; font: 10.5px var(--mono); color: var(--fg-2); }
.gl-sw i { height: 40px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.gl-fonts { display: flex; flex-direction: column; gap: 4px; font-size: 20px; }
.gl-fonts span:last-child { font-size: 15px; color: var(--fg-2); }
.gl-dfmt { display: flex; flex-wrap: wrap; gap: 6px; }
/* the 10 000 new styles: filters, and the colourways of one style */
.gl-xf { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; } .gl-xf select { max-width: 190px; }
.gl-xcols { display: flex; flex-wrap: wrap; gap: 6px; }
.gl-xcols button { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 0; background: radial-gradient(circle, var(--c) 0 54%, var(--b) 56%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.gl-xcols button.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--fg); }
.gl-note { display: flex; gap: 6px; align-items: flex-start; background: rgba(20, 174, 92, .1); color: var(--fg); padding: 8px 10px; border-radius: 8px; margin-top: 10px !important; font-size: 12px !important; }
.gl-note .ic { color: #14AE5C; flex: none; margin-top: 2px; }
.gl-dbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gl-dbtns .btn { min-height: 36px; border-radius: 999px; padding: 6px 14px; }
.gl-dbtns .btn.on { background: #111; color: #fff; border-color: #111; }
.gl-simh { margin: 28px 0 12px; font-size: 16px; }
@media (max-width: 900px) { .gl-body { grid-template-columns: 1fr; } .gl-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px; } .gl-sh { display: none; } .gl-s { flex: none; } .gl-s em { display: none; } .gl-d { grid-template-columns: 1fr; } .gl-h .btn { font-size: 0; gap: 0; padding: 5px 8px; } .gl-h .btn .ic { margin: 0; } }
@media (max-width: 760px) { .gl-back { padding: 0; } .gl { height: 100%; border-radius: 0; } .gl-wall { columns: 2 150px; column-gap: 10px; } .gl-save, .gl-use { opacity: 1; padding: 6px 10px; font-size: 11.5px; } }

/* ---------- timeline: every layer is a row with a layer bar ---------- */
.tl-names { flex: 0 0 210px; }
.tl-name { display: flex; align-items: center; gap: 4px; padding: 0 8px 0 calc(4px + var(--d, 0) * 13px); height: 26px; border-bottom: 1px solid transparent; }
.tl-name:hover { background: var(--panel-2); }
.tl-name.is-sel, .tl-row.is-sel { background: var(--acc-soft); }
.tl-name.hid, .tl-row.hid .tl-clip { opacity: .45; }
.tl-car { width: 14px; height: 14px; border: 0; background: none; padding: 0; color: var(--fg-3); display: grid; place-items: center; flex: none; }
.tl-car.none { visibility: hidden; }
.tl-ic { color: var(--fg-3); display: grid; place-items: center; flex: none; }
.tl-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-name.anim .tl-nm { font-weight: 600; }
.tl-kc { font-size: 10px; color: var(--acc); flex: none; }
.tl-clip { position: absolute; top: 4px; height: 18px; border-radius: 4px; background: var(--clip, #8A8FA3); opacity: .9; display: flex; align-items: center; overflow: hidden; cursor: grab; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.tl-clip:active { cursor: grabbing; }
.tl-clip b { flex: 1; min-width: 0; font-size: 10px; font-weight: 600; color: #fff; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.tl-clip.sub { top: 6px; height: 14px; opacity: .7; } .tl-clip.sub b { font-size: 9px; }
.tl-clip.cut { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), 0 0 0 1px var(--clip, #8A8FA3); }
.tl-h { width: 6px; align-self: stretch; flex: none; cursor: ew-resize; background: rgba(255, 255, 255, .35); }
.tl-h.l { border-radius: 4px 0 0 4px; } .tl-h.r { border-radius: 0 4px 4px 0; }
.tl-clip.t-frame { --clip: #5B6CFF; } .tl-clip.t-group { --clip: #7A7F96; } .tl-clip.t-text { --clip: #E8702A; }
.tl-clip.t-rect, .tl-clip.t-ellipse, .tl-clip.t-polygon, .tl-clip.t-star { --clip: #14AE5C; } .tl-clip.t-path, .tl-clip.t-bool { --clip: #0FA5A5; }
.tl-clip.t-instance { --clip: #9747FF; } .tl-clip.t-raster { --clip: #D14A8B; }
.tl-row .tl-bar { z-index: 1; top: 12px; background: #fff; opacity: .55; }
.tl-row .tl-key { z-index: 2; }
