/* Parichay – app styles (home, editor, dialogs, shared-link viewer).
   Rendered documents have their own stylesheet in js/render/css.js. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f4eff3;
  --ink: #1f1a2b;
  --muted: #6f687c;
  --line: #e6dfe9;
  --brand: #4a2360;
  --brand-2: #b4476a;
  --gold: #d9a441;
  --danger: #b3261e;
  --stage: #e9e5ea;
  --shadow: 0 1px 2px rgba(31, 26, 43, .06), 0 8px 28px rgba(31, 26, 43, .08);
  --radius: 16px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131017;
    --surface: #1d1824;
    --surface-2: #272031;
    --ink: #f2edf6;
    --muted: #a79fb3;
    --line: #342c40;
    --brand: #c79be6;
    --brand-2: #ee86a6;
    --danger: #ff8a80;
    --stage: #0c0a0f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
small.muted { display: block; font-size: 12.5px; margin-top: 6px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 15px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .12s, box-shadow .12s, border-color .12s; }
.btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, #4a2360, #b4476a); box-shadow: 0 6px 18px rgba(124, 53, 100, .32); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; padding: 13px; margin-top: 16px; font-size: 15px; }
.btn.danger, .icon-btn.danger { color: var(--danger); }
.btn.dashed { border-style: dashed; width: 100%; color: var(--muted); background: transparent; }
.btn:disabled { opacity: .65; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
.icon-btn.sm { width: 32px; height: 32px; font-size: 13px; }
.icon-btn:hover { border-color: var(--brand); }

/* ── Inputs ── */
input:not([type=range]):not([type=checkbox]):not([type=color]), textarea, select { width: 100%; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; outline: none; transition: border-color .12s, box-shadow .12s; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
textarea { resize: vertical; line-height: 1.5; }
input[type=range] { width: 100%; accent-color: var(--brand); }
input[type=color] { width: 100%; height: 40px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.f { display: block; margin-top: 10px; }
.f > span, .lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.lbl { margin-top: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row, .inline { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.inline { flex-wrap: wrap; }
.inline > input { flex: 1 1 160px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin-top: 12px; color: var(--muted); }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.seg button { flex: 1; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ── Home ── */
.home { max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #f1c77e; background: linear-gradient(135deg, #4a2360, #b4476a); font-size: 18px; }
.nav-note { font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.hero-home { text-align: center; padding: clamp(28px, 6vw, 72px) 0 clamp(24px, 4vw, 44px); }
.hero-home h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 6.2vw, 64px); line-height: 1.06; letter-spacing: -.02em; }
.hero-home em { font-style: italic; font-weight: 500; background: linear-gradient(100deg, #7b3fa0, #d0527e 55%, #d9a441); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-home p { max-width: 640px; margin: 18px auto 0; font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.hero-chips span { padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
.block { margin-top: 40px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.block-head h2 { font-family: var(--display); font-size: 26px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.tile { display: block; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform .16s, box-shadow .16s, border-color .16s; }
.tile:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 16px 40px rgba(74, 35, 96, .18); }
.tile-link { display: block; }
.thumb { position: relative; aspect-ratio: 794 / 1000; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.thumb iframe { position: absolute; inset: 0 auto auto 0; width: 794px; height: 1123px; border: 0; transform: scale(var(--s, .28)); transform-origin: 0 0; pointer-events: none; }
.tile-info { padding: 12px 14px 14px; display: grid; gap: 3px; }
.tile-info b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-info span { font-size: 12.5px; color: var(--muted); }
.tile-acts { display: flex; gap: 6px; padding: 0 14px 14px; }
.tile-acts .btn { flex: 1; }
.block > .center { margin-top: 16px; font-size: 13px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.features > div { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.features p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0 8px; }

/* ── Editor shell ── */
.editor { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.ed-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ed-title { flex: 1; font-weight: 700; font-size: 16px !important; border-color: transparent !important; background: transparent !important; }
.ed-title:hover { border-color: var(--line) !important; }
.saved { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ed-body { display: grid; grid-template-columns: minmax(340px, 430px) 1fr; min-height: 0; }
.ed-panel { display: grid; grid-template-rows: auto 1fr; min-height: 0; background: var(--bg); border-right: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; padding: 10px 14px 0; }
.tabs button { flex: 1; padding: 10px; border: 0; background: transparent; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; }
.tabs button.on { color: var(--brand); border-color: var(--brand); }
.ed-form { overflow-y: auto; padding: 14px 14px 40px; overscroll-behavior: contain; }
.ed-preview { min-height: 0; background: var(--stage); }
.ed-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.ed-nav { display: none; }

/* ── Editor cards ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.card.is-hidden { opacity: .6; }
.card summary { display: flex; align-items: center; gap: 10px; padding: 13px 14px; cursor: pointer; list-style: none; user-select: none; }
.card summary::-webkit-details-marker { display: none; }
.card-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); color: var(--brand); font-size: 14px; flex: none; }
.sum-title, .card summary > b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.card[open] .chev { transform: rotate(-135deg); }
.pill { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.card-b { padding: 2px 14px 14px; }
.sec-bar { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.sub { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 16px; text-transform: uppercase; letter-spacing: .08em; }
.card-b .btn.dashed { margin-top: 10px; }
.entry-ed { padding: 10px; margin-top: 10px; border-radius: 12px; background: var(--surface-2); }
.entry-ed .row:first-child { margin-top: 0; }
.entry-ed .two, .entry-ed textarea { margin-top: 6px; }
.photo-ed { display: flex; gap: 14px; align-items: center; }
.photo-pick { width: 84px; height: 104px; flex: none; padding: 0; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--surface-2); overflow: hidden; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.3; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tools { flex: 1; min-width: 0; }
.photo-tools .inline { margin-top: 0; }
.gal-ed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.gal-ed figure { margin: 0; position: relative; }
.gal-ed img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; display: block; }
.gal-ed .icon-btn { position: absolute; top: 4px; right: 4px; }
.gal-ed input { margin-top: 4px; padding: 6px 8px !important; font-size: 12.5px !important; }
.add-sec { padding: 16px; border-radius: 14px; border: 1.5px dashed var(--line); text-align: center; }
.add-sec b { font-size: 13.5px; color: var(--muted); }
.add-sec > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.chip { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; }
.chip:hover { border-color: var(--brand); color: var(--brand); }

/* ── Design tab ── */
.ed-form h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 22px 0 9px; }
.shuffle { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; border: 0; border-radius: 16px; text-align: left; color: #fff; background: linear-gradient(120deg, #4a2360, #b4476a 60%, #d9a441); box-shadow: 0 10px 26px rgba(124, 53, 100, .32); transition: transform .12s; }
.shuffle:hover { transform: translateY(-2px); }
.shuffle span { font-size: 30px; }
.shuffle b { display: block; font-size: 16px; }
.shuffle small { opacity: .9; font-size: 12.5px; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opts.fonts { grid-template-columns: repeat(2, 1fr); }
.opt { display: grid; justify-items: center; gap: 2px; padding: 11px 6px 9px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); text-align: center; }
.opt b { font-size: 13px; }
.opt small { font-size: 11px; color: var(--muted); line-height: 1.25; }
.opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sw { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--surface); outline: 1.5px solid var(--line); background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%); }
.sw.on { outline: 2.5px solid var(--brand); }
.colors { margin-top: 4px; }

/* Layout glyphs */
.mini { width: 34px; height: 44px; border-radius: 4px; margin-bottom: 5px; border: 1px solid var(--line); background-color: #fff; background-repeat: no-repeat; --m: #7c5a94; --l: #d9cfe0; }
.mini-sidebar { background-image: linear-gradient(var(--m), var(--m)); background-size: 36% 100%; }
.mini-split { background-image: linear-gradient(var(--l), var(--l)); background-size: 40% 100%; }
.mini-band { background-image: linear-gradient(var(--m), var(--m)); background-size: 100% 30%; }
.mini-classic { background-image: linear-gradient(var(--m), var(--m)), linear-gradient(var(--l), var(--l)); background-size: 50% 3px, 76% 1px; background-position: 50% 16%, 50% 30%; }
.mini-minimal { background-image: linear-gradient(var(--m), var(--m)), linear-gradient(var(--l), var(--l)); background-size: 40% 3px, 84% 1px; background-position: 14% 16%, 50% 30%; }
.mini-framed { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--m); }
.mini-royal { background-image: radial-gradient(circle at 50% 36%, #fff 5px, transparent 6px), linear-gradient(var(--m), var(--m)); background-size: 100% 100%, 100% 36%; }
.mini-hero { background-image: linear-gradient(135deg, var(--m), #c98aa0); background-size: 100% 46%; }
.mini-linkcard { background-color: var(--m); box-shadow: inset 0 0 0 6px var(--m), inset 0 0 0 30px #fff; }

/* ── Dialogs ── */
.modal { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 26px; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .35); overflow-y: auto; }
.modal::backdrop { background: rgba(20, 12, 28, .55); backdrop-filter: blur(4px); }
.modal h2 { font-family: var(--display); font-size: 26px; margin-bottom: 6px; padding-right: 36px; }
.modal h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 8px; }
.modal > p { font-size: 14px; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); }
.export-list { display: grid; gap: 8px; margin-top: 16px; }
.export-list button { display: flex; align-items: center; gap: 14px; padding: 13px 14px; text-align: left; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .12s, transform .12s; }
.export-list button:hover { border-color: var(--brand); transform: translateX(3px); }
.export-list button > span { font-size: 24px; }
.export-list b { display: block; font-size: 15px; }
.export-list small { color: var(--muted); font-size: 12.5px; }
.export-list .busy { opacity: .6; pointer-events: none; }
.protect { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.share-ok { margin-top: 18px; padding: 16px; border-radius: 14px; background: color-mix(in srgb, #2e9e6b 12%, var(--surface)); border: 1px solid color-mix(in srgb, #2e9e6b 40%, transparent); }
.share-ok p { font-size: 13px; margin-top: 8px; }
.share-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.share-history li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.share-history span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-history em { font-style: normal; color: var(--muted); white-space: nowrap; }

/* ── Toasts ── */
#toasts { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 1000; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 11px 18px; border-radius: 12px; background: #221a2c; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: toast-in .2s ease-out; transition: opacity .3s; }
.toast.err { background: #8c1d18; }
.toast.out { opacity: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ── Shared-link viewer ── */
body.viewer { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--stage); }
.view-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.view-bar .brand { font-size: 19px; }
.expiry { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
#stage { min-height: 0; grid-row: -2 / -1; }
#stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.gate { min-height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.gate h1 { font-family: var(--display); font-size: 28px; }
.gate p { color: var(--muted); max-width: 380px; }
.gate-ico { font-size: 52px; }
.gate form { width: min(340px, 86vw); margin-top: 8px; }
.gate input { text-align: center; font-size: 16px !important; padding: 13px !important; }
.gate-err { color: var(--danger) !important; min-height: 1.5em; font-size: 14px; margin-top: 8px; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3.5px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Mobile ── */
@media (max-width: 860px) {
  .nav-note { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .wide { display: none; }
  .saved { display: none; }
  .ed-top { padding: 8px 10px; gap: 6px; }
  .ed-top .btn { padding: 9px 12px; }
  .ed-body { grid-template-columns: 1fr; }
  .tabs { display: none; }
  .ed-panel { border: 0; grid-template-rows: 1fr; }
  .editor[data-pane=preview] .ed-panel, .editor:not([data-pane=preview]) .ed-preview { display: none; }
  .ed-nav { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .ed-nav button { display: grid; justify-items: center; gap: 1px; padding: 8px 0 7px; border: 0; background: transparent; font-size: 18px; color: var(--muted); }
  .ed-nav span { font-size: 11.5px; font-weight: 700; }
  .ed-nav button.on { color: var(--brand); }
  input:not([type=range]):not([type=checkbox]):not([type=color]), textarea, select { font-size: 16px; } /* prevents iOS zoom */
  .modal { padding: 22px 18px; }
}

/* ── v2: templates gallery, sync, page counter, link manager ── */
.nav-right { display: flex; align-items: center; gap: 8px; }
.pill-btn { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; }
.pill-btn:hover { border-color: var(--brand); }
.pill-btn.on { color: #1f8a5b; border-color: color-mix(in srgb, #2e9e6b 45%, transparent); }
.pill-btn.bad { color: var(--danger); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.btn.big { padding: 13px 24px; font-size: 16px; border-radius: 14px; }
.block-head .muted { font-size: 13.5px; }
.filters { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { white-space: nowrap; flex: none; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--bg); }
.surprise { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding: 18px 20px; border-radius: var(--radius); border: 1.5px dashed var(--line); }
.surprise b { display: block; }
.surprise span { font-size: 13.5px; color: var(--muted); }
.surprise .inline { margin: 0; }
.small { font-size: 12.5px !important; margin-top: 8px; }
input.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; text-align: center; }

.ed-preview { position: relative; }
.page-info { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 99px; background: rgba(28, 22, 36, .86); color: #fff; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); white-space: nowrap; }
.page-info:not(.warn) { padding-right: 14px; opacity: .8; }
.page-info button { border: 0; border-radius: 99px; padding: 5px 12px; background: #f1c77e; color: #2a1a05; font-weight: 700; font-size: 12.5px; }
.icon-btn:disabled { opacity: .35; cursor: default; }

.styles { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.style { display: grid; gap: 2px; padding: 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; }
.style:hover { border-color: var(--brand); }
.style i { height: 46px; border-radius: 7px; margin-bottom: 4px; background: linear-gradient(var(--c1), var(--c1)) top / 100% 38% no-repeat, linear-gradient(var(--c2), var(--c2)) 0 38% / 100% 3px no-repeat, var(--c3); border: 1px solid var(--line); }
.style b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.style small { font-size: 11px; color: var(--muted); }
.row input[type=range] { flex: 1; min-width: 60px; }

.share-row { display: flex; gap: 14px; align-items: flex-start; margin-top: 10px; }
.share-main { flex: 1; min-width: 0; }
.share-main .inline:first-child { margin-top: 0; }
.qr { width: 104px; flex: none; padding: 6px; border-radius: 10px; background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }
.share-history li > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.share-history li > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-history small { color: var(--muted); font-size: 12px; }
.share-history li.dead { opacity: .55; }
.gate .btn { margin-top: 14px; }

@media (max-width: 860px) {
  .ed-top .icon-btn { width: 34px; height: 34px; }
  .page-info { bottom: 10px; }
  .share-row { flex-direction: column; align-items: center; }
  .share-main { width: 100%; }
}
