/* Site identity - colours come from the "Linkify Internal Links" scheme on developry.com */
:root { --brand: #c266ff; --brand-deep: #5a248f; }
.mark .g1 { stop-color: color-mix(in oklab, var(--brand) 75%, var(--brand-deep)); }
.mark .g2 { stop-color: color-mix(in oklab, var(--brand) 30%, var(--brand-deep)); }
.mark .glyph { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
kbd { padding: .1rem .4rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); }

/* ---------- linkifier ---------- */
.io-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 860px) { .io-grid { grid-template-columns: 1fr; } }
.io-grid textarea { min-height: 18rem; }
.opts { display: grid; gap: .75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.opts .group-title { grid-column: 1 / -1; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.preview a { color: var(--accent); }
.mark-link { background: var(--accent-soft); border-radius: 4px; padding: 0 .15rem; }

/* ---------- utm ---------- */
.final { font-family: var(--mono); font-size: .9rem; overflow-wrap: anywhere; padding: 1rem; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent-soft), transparent); border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line)); min-height: 4rem; }
.final .k { color: var(--accent); font-weight: 700; }
.final.empty { color: var(--muted); font-family: var(--font); }
.field-msg { font-size: .8rem; margin: .3rem 0 0; color: var(--bad); }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.hist li { display: flex; gap: .5rem; align-items: center; justify-content: space-between; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-family: var(--mono); font-size: .78rem; }
.hist li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- extractor ---------- */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .75rem; }
.summary div { padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.summary b { display: block; font-size: 1.7rem; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.summary span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: .25rem; }
td .cell-text { max-width: 16rem; overflow-wrap: anywhere; }

/* ---------- browser extension promo ---------- */
.store-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.shots img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ext-cta { margin-top: 2.5rem; }
.ext-cta .card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.ext-cta h2 { margin: 0 0 .2rem; font-size: 1.25rem; }
.ext-cta p { margin: 0; color: var(--muted); }

/* header button for the browser extension */
.nav-ext { display: inline-flex; align-items: center; gap: .4rem; margin-left: .5rem; padding: .45rem .85rem; border-radius: 99px; background: var(--brand); color: var(--accent-ink); font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.nav-ext:hover { filter: brightness(1.08); }
.nav-ext svg { width: 16px; height: 16px; }
.nav-ext + .icon-btn { margin-left: .5rem; }
@media (max-width: 720px) { .nav-ext span { display: none; } .nav-ext { padding: .55rem; } }
