/* LUXPEPTIDES.LT admin — calm, functional UI. Same type family as the storefront. */
:root {
  --ink: #0B0D12;
  --ink-2: #2A2E37;
  --muted: #60666F;
  --bg: #EEF0EC;
  --panel: #FFFFFF;
  --line: #E1E3DE;
  --line-2: #CDD0CA;
  --primary: #2337FF;
  --primary-deep: #1622C9;
  --primary-tint: #E8EAFF;
  --danger: #B42318;
  --ok: #1E7F52;
  --warn: #8A5A00;
  --radius: 14px;
  --side-w: 248px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 "Archivo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
code { font-size: .85em; background: #F1F2EF; padding: 1px 6px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* Shell */
.shell { min-height: 100vh; }
.side { background: var(--ink); color: rgba(255, 255, 255, .75); position: sticky; top: 0; z-index: 20; }
.side__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.side__brand { color: #fff; text-decoration: none; font-weight: 800; font-stretch: 125%; letter-spacing: .12em; font-size: 1.05rem; display: grid; line-height: 1.2; }
.side__brand small { font-weight: 400; letter-spacing: 0; font-stretch: 100%; font-size: .78rem; color: rgba(255, 255, 255, .55); }
.side__toggle { background: rgba(255, 255, 255, .1); border: 0; color: #fff; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.side__nav, .side__foot { display: none; }
.side.is-open .side__nav, .side.is-open .side__foot { display: grid; }
.side__nav { padding: 6px 10px; gap: 2px; }
.side__nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 520; }
.side__nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side__nav a[aria-current] { background: #fff; color: var(--ink); }
.side__count { background: var(--primary); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; line-height: 20px; }
.side__foot { padding: 16px 22px 22px; gap: 8px; font-size: .875rem; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 12px; }
.side__foot a { text-decoration: none; }
.side__foot a:hover, .linklike:hover { color: #fff; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-size: inherit; }

.main { padding: 20px 16px 120px; max-width: 1280px; }

@media (min-width: 1000px) {
  .shell { display: grid; grid-template-columns: var(--side-w) 1fr; }
  .side { height: 100vh; display: flex; flex-direction: column; overflow-y: auto; }
  .side__top { padding: 26px 22px 18px; }
  .side__toggle { display: none; }
  .side__nav, .side__foot { display: grid; }
  .side__foot { margin-top: auto; }
  .main { padding: 32px 40px 140px; }
}

/* Header row */
.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.top h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-stretch: 112%; font-weight: 760; letter-spacing: -.02em; line-height: 1.1; }
.sub { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.sub a { color: var(--primary); }
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 8px; font-size: .875rem; }
.back:hover { color: var(--ink); }
.section-title { font-size: 1.15rem; font-weight: 700; margin: 28px 0 8px; }

/* Cards */
.card { background: var(--panel); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 22px; }
.card > h2, .card__head h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.card__head a { color: var(--primary); text-decoration: none; font-weight: 600; }
.card__head .hint { margin: 0 0 16px; }
.card--flush { padding: 0; overflow: hidden; }
.card--muted { background: #F6F7F4; }
.card + .card, .stack > * + * { margin-top: 16px; }
.stack { display: grid; align-content: start; }
.stack > * + * { margin-top: 0; }
.stack { gap: 16px; }
.stack-sm { display: grid; gap: 12px; }
.cols { display: grid; gap: 16px; }
@media (min-width: 1100px) {
  .cols { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .cols--edit .stack--side { position: sticky; top: 24px; }
}
.narrow { max-width: 520px; }
.grid2 { display: grid; gap: 12px; }
.grid3 { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.split { display: grid; gap: 20px; }
@media (min-width: 760px) { .split { grid-template-columns: 220px 1fr; } .split--hero { grid-template-columns: 1.6fr 1fr; } }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.hint { color: var(--muted); font-size: .8125rem; margin-top: 6px; }
.empty { padding: 32px 22px; color: var(--muted); }

/* Fields */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
input[type="color"] { width: 100%; height: 42px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; }
.search { width: min(320px, 100%); }

/* Language fields */
.lf { margin-bottom: 16px; }
.lf--compact { margin-bottom: 10px; }
.lf__head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.lf__label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.lf__hint { font-size: .78rem; color: var(--muted); }
.lf__langs { display: grid; gap: 8px; }
@media (min-width: 1200px) { .lf__langs { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); } }
.lf__item { position: relative; display: block; }
.lf__item input, .lf__item textarea { padding-left: 44px; }
.lf__tag {
  position: absolute; left: 8px; top: 10px; z-index: 1; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 6px; background: var(--ink); color: #fff; pointer-events: none;
}
.lf__item.is-empty .lf__tag { background: #F4E4BF; color: var(--warn); }
.lf__item.is-empty input, .lf__item.is-empty textarea { border-style: dashed; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 0; border-radius: 999px; font-weight: 620; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s, box-shadow .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: none; }
.btn--primary:hover { background: var(--primary-deep); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.btn--danger-ghost { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px #F0C7C2; }
.btn--danger-ghost:hover { background: #FDECEA; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: .875rem; }
.btn--block { width: 100%; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: #F1F2EF; cursor: pointer; font-size: 1rem; line-height: 1; display: inline-grid; place-items: center; }
.icon-btn:hover { background: #E4E6E1; }
.icon-btn--danger:hover { background: #FDECEA; color: var(--danger); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Save bar */
.savebar {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: rgba(255, 255, 255, .8);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
}
.savebar.is-dirty { background: var(--primary-deep); color: #fff; }
.savebar .btn--primary { background: #fff; color: var(--ink); }
.savebar.is-dirty .btn--primary { background: #fff; color: var(--primary-deep); }
.savebar--inline { position: sticky; margin: 0; border-radius: 0 0 var(--radius) var(--radius); left: auto; right: auto; bottom: 0; }
@media (min-width: 1000px) { .savebar:not(.savebar--inline) { left: calc(var(--side-w) + 40px); right: 40px; bottom: 20px; max-width: 1200px; } }

/* Flash */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 520; }
.flash--ok { background: #E3F4EA; color: var(--ok); }
.flash--error { background: #FDECEA; color: var(--danger); }
.flash--warn { background: #FBF1DA; color: var(--warn); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { background: var(--panel); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 18px; display: grid; gap: 4px; text-decoration: none; }
.stat__n { font-size: 1.9rem; font-weight: 700; font-stretch: 80%; line-height: 1.1; }
.stat__l { color: var(--muted); font-size: .875rem; }
.stat--hot { background: var(--primary); color: #fff; box-shadow: none; }
.stat--hot .stat__l { color: rgba(255, 255, 255, .8); }
.quick { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 900px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.quick__item { display: grid; gap: 2px; padding: 18px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 0 0 1px var(--line); text-decoration: none; }
.quick__item:hover { box-shadow: 0 0 0 1px var(--ink); }
.quick__item span { color: var(--muted); font-size: .875rem; }

/* Lists & tables */
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; text-decoration: none; }
.card:not(.card--flush) .list__row { padding-inline: 0; }
.list__row:hover { background: #FAFBF9; }
.list__main { display: grid; min-width: 0; }
.list__main small { color: var(--muted); }
.list__side { display: flex; align-items: center; gap: 10px; flex: none; font-weight: 600; font-stretch: 85%; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .78rem; color: var(--muted); font-weight: 600; background: #FAFBF9; }
.table td small { color: var(--muted); }
.table .num { text-align: right; white-space: nowrap; font-stretch: 85%; }
.table--plain td { padding-inline: 0; }
.table__total td { font-weight: 700; border-bottom: 0; font-size: 1.05rem; }
.strong-link { font-weight: 700; color: var(--primary); text-decoration: none; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a, .chips a { padding: 7px 14px; border-radius: 999px; text-decoration: none; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: .875rem; font-weight: 560; }
.tabs a[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
.tabs small { opacity: .6; margin-left: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; position: sticky; top: 0; z-index: 5; padding: 8px 0; background: var(--bg); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
.dl a { color: var(--primary); }
.pre { white-space: pre-wrap; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 650; font-stretch: 100%; background: #EEF0EC; color: var(--ink-2); white-space: nowrap; }
.badge--new { background: #FFF0D6; color: #8A5A00; }
.badge--confirmed { background: var(--primary-tint); color: var(--primary-deep); }
.badge--paid { background: #E0F2FE; color: #075985; }
.badge--shipped { background: #EDE9FE; color: #5B21B6; }
.badge--done { background: #E3F4EA; color: var(--ok); }
.badge--cancelled { background: #F1F2EF; color: var(--muted); }

/* Product rows */
.prows { list-style: none; margin: 0; padding: 0; }
.prow { display: grid; grid-template-columns: 20px 56px 1fr auto; align-items: center; gap: 8px 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.prow.is-dragging { opacity: .5; }
.prow__grip { color: var(--muted); cursor: grab; letter-spacing: -2px; }
.prow__swatch { width: 56px; height: 56px; border-radius: 12px; background: color-mix(in oklab, var(--pc) 30%, #F1F2EE); display: grid; place-items: center; overflow: hidden; }
.prow__swatch img { width: 100%; height: 100%; object-fit: contain; }
.prow__main { display: grid; text-decoration: none; min-width: 0; }
.prow__main strong { font-size: 1rem; }
.prow__main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow__price { font-weight: 650; font-stretch: 85%; text-align: right; }
.prow__price s { color: var(--muted); font-weight: 400; }
.prow__flags { grid-column: 3 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.prow__move { display: none; }
@media (min-width: 900px) {
  .prow { grid-template-columns: 20px 56px 1fr auto auto 80px; }
  .prow__flags { grid-column: auto; justify-content: flex-end; }
  .prow__move { display: flex; gap: 4px; }
}

/* Repeaters */
.rep__rows { display: grid; gap: 10px; margin-bottom: 12px; }
.rep__row { position: relative; padding: 12px 12px 12px 12px; border-radius: 12px; background: #F7F8F5; padding-right: 116px; }
.rep__row--card { background: var(--panel); padding: 22px; padding-top: 56px; }
.rep__ctrl { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; }
.rep__row--ing { display: grid; gap: 10px; }
@media (min-width: 760px) { .rep__row--ing { grid-template-columns: 1fr 140px; align-items: end; } }
.field--amount { margin-bottom: 10px; }
.langrow { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; padding-right: 12px; padding-top: 52px; }
.langrow .field { margin: 0; }
@media (min-width: 640px) { .langrow { grid-template-columns: 80px 1fr 80px auto auto; align-items: end; } }
.mini-check { display: inline-flex; gap: 6px; align-items: center; font-size: .875rem; white-space: nowrap; min-height: 42px; }

/* Switch */
.switch { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; font-weight: 520; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Image field */
.imgf { display: grid; gap: 8px; margin-bottom: 8px; }
.imgf__label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.imgf__box { position: relative; border-radius: 12px; overflow: hidden; background: #F1F2EF; box-shadow: inset 0 0 0 1px var(--line); max-height: 360px; width: 100%; }
.imgf__box img { width: 100%; height: 100%; object-fit: cover; }
.imgf__empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .875rem; border: 1.5px dashed var(--line-2); border-radius: 12px; }
.imgf__actions { display: flex; gap: 6px; }

/* Gallery */
.gallery__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 10px; }
.gallery__item { position: relative; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: #F1F2EF; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item:first-child::after { content: "Pagrindinė"; position: absolute; left: 8px; top: 8px; font-size: .7rem; font-weight: 700; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 999px; }
.gallery__ctrl { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: center; gap: 4px; }
.gallery__ctrl .icon-btn { background: rgba(255, 255, 255, .92); }
.gallery__add { width: 100%; min-height: 64px; border-radius: 12px; border: 1.5px dashed var(--line-2); background: transparent; cursor: pointer; font-weight: 600; color: var(--muted); }
.gallery__add:hover { border-color: var(--primary); color: var(--primary); }

.pack-preview { border-radius: 12px; background: color-mix(in oklab, var(--pc) 32%, #F1F2EE); padding: 18px 0; margin: 10px 0 14px; display: grid; place-items: center; }
.pack-preview img { width: 46%; max-width: 180px; }

/* Texts */
.trow { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.trow:first-of-type { border-top: 0; }
.trow__key { justify-self: start; color: var(--muted); }
@media (min-width: 1200px) { .trow { grid-template-columns: 200px 1fr; align-items: start; } .trow__key { margin-top: 10px; } }
.help { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.help summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.help ul { margin: 8px 0 0; padding-left: 18px; }

/* Media */
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); background: #fff; margin-bottom: 18px; transition: border-color .2s, background-color .2s; }
.drop.is-over { border-color: var(--primary); background: var(--primary-tint); }
.drop__label { display: grid; gap: 4px; place-items: center; text-align: center; padding: 40px 16px; cursor: pointer; }
.drop__label span { color: var(--muted); font-size: .875rem; }
.drop__status { text-align: center; padding: 0 0 16px; font-weight: 600; color: var(--primary); }
.media-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.media-item { position: relative; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.media-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-item__meta { display: grid; padding: 8px 10px; font-size: .8125rem; }
.media-item__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item__meta small { color: var(--muted); }
.media-item__del { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, .92); }

/* Picker dialog */
.picker { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 48px); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .5); }
.picker::backdrop { background: rgba(11, 13, 18, .55); }
.picker__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.picker__head h2 { font-size: 1.05rem; margin-right: auto; }
.picker__upload { cursor: pointer; }
.picker__status { padding: 10px 18px 0; color: var(--primary); font-weight: 600; }
.picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 18px; }
.picker__item { border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: #F1F2EF; aspect-ratio: 4/3; box-shadow: inset 0 0 0 1px var(--line); }
.picker__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.picker__item:hover img { transform: scale(1.05); }
.picker__item:focus-visible { outline: 3px solid var(--primary); }

/* Login */
.is-login { background: var(--ink); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login__card { width: min(400px, 100%); background: #fff; border-radius: 22px; padding: 32px; display: grid; gap: 4px; }
.login__brand { font-weight: 800; font-stretch: 125%; letter-spacing: .14em; }
.login__card h1 { font-size: 1.6rem; font-stretch: 110%; letter-spacing: -.02em; margin-bottom: 18px; }
.login__card .btn { margin-top: 6px; min-height: 48px; }

/* Link-preview card */
.share { display: grid; gap: 10px; }
.share__langs { display: flex; gap: 4px; }
.share__lang { border: 0; background: #F1F2EF; border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; cursor: pointer; }
.share__lang.is-active { background: var(--ink); color: #fff; }
.share__chat { background: #E9EDF2; border-radius: 16px; padding: 18px; }
.share__bubble { max-width: 360px; margin-left: auto; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.share__img { position: relative; aspect-ratio: 1200 / 630; background: #D9DDE3; }
.share__img img { width: 100%; height: 100%; object-fit: cover; }
.share__noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.share__body { display: grid; gap: 2px; padding: 10px 12px 12px; }
.share__domain { font-size: .72rem; color: #65676B; text-transform: lowercase; }
.share__title { font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share__desc { font-size: .82rem; color: #65676B; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1100px) { .split--share { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--ink-2); }
.plain-list a { color: var(--primary); }

/* Phone refinements */
@media (max-width: 759px) {
  .rep__row { padding: 52px 12px 12px; }
  .rep__row--card { padding: 56px 16px 16px; }
  .langrow { padding-top: 52px; }
}
@media (max-width: 899px) {
  .prow { grid-template-columns: 20px 48px 1fr auto; }
  .prow__swatch { width: 48px; height: 48px; }
  .prow__flags { grid-column: 3 / 4; }
  .prow__move { display: flex; gap: 4px; grid-column: 4; justify-self: end; }
  .prow__move .icon-btn { width: 36px; height: 36px; }
}
/* Mobile navigation as a drawer over the page */
@media (max-width: 999px) {
  .side { position: sticky; }
  .side__nav, .side__foot { display: grid; position: fixed; left: 0; right: 0; z-index: 40; background: var(--ink); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
  .side__nav { top: 64px; bottom: 150px; overflow-y: auto; padding: 8px 12px; align-content: start; }
  .side__foot { bottom: 0; height: 150px; margin: 0; align-content: start; }
  .side.is-open .side__nav, .side.is-open .side__foot { opacity: 1; transform: none; pointer-events: auto; }
  .side.is-open::after { content: ""; position: fixed; inset: 64px 0 0; background: var(--ink); z-index: 39; }
}
.search-form { width: min(340px, 100%); }
.search-form .search { width: 100%; }
.media-item__meta em { font-style: normal; font-size: .72rem; font-weight: 650; }
.media-item__meta .used { color: var(--ok); }
.media-item__meta .unused { color: var(--muted); }

/* Inquiry table becomes stacked cards on phones */
@media (max-width: 699px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .card--flush .table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
  .card--flush .table td { padding: 0; border: 0; }
  .card--flush .table td:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .card--flush .table td.num { text-align: left; }
  .table--plain tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table--plain td { border: 0; padding: 0; }
  .table--plain td:empty { display: none; }
}

/* Accounts, 2FA, users */
.codes { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.codes code, .secret { font-size: .95rem; letter-spacing: .06em; background: #fff; padding: 4px 8px; border-radius: 6px; user-select: all; }
.qr { width: 200px; margin: 6px 0 10px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.steps-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.inline-form select, .inline-form input { width: auto; min-width: 150px; }
.code-input { letter-spacing: .3em; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.linklike.muted { color: var(--muted); font-size: .875rem; }
.users { list-style: none; margin: 0; padding: 0; }
.user { display: grid; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.user__main { display: grid; gap: 2px; }
.user__main small { color: var(--muted); }
.user__actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.user__actions .inline-form { margin: 0; }
.user__actions select { min-width: 140px; min-height: 34px; padding: 4px 10px; }
.warn-dot { color: #F0C674; }
.user__name { display: flex; align-items: center; gap: 8px; }
html, a, button, label, summary { -webkit-tap-highlight-color: transparent; }
.doc-tile { display: grid; place-items: center; aspect-ratio: 4/3; background: #2A2620; color: #EBD3A0; font-weight: 800; letter-spacing: .1em; text-decoration: none; }
.coa-file { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.coa-file a { color: var(--primary); font-weight: 600; }
.coa-file small { color: var(--muted); }

/* Appearance */
.themes { display: grid; gap: 12px; }
@media (min-width: 760px) { .themes { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.theme-card { position: relative; cursor: pointer; }
.theme-card input { position: absolute; opacity: 0; }
.theme-card__box { display: grid; gap: 4px; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line-2); height: 100%; }
.theme-card input:checked + .theme-card__box { box-shadow: inset 0 0 0 2.5px var(--primary); background: var(--primary-tint); }
.theme-card input:focus-visible + .theme-card__box { outline: 2px solid var(--primary); outline-offset: 2px; }
.theme-card__swatch { position: relative; display: block; height: 96px; border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.theme-card__swatch i { position: absolute; bottom: 12px; height: 40px; border-radius: 8px; }
.theme-card__swatch i:first-of-type { left: 12px; width: 46%; }
.theme-card__swatch i:last-of-type { right: 12px; width: 30%; height: 22px; bottom: 21px; border-radius: 999px; }
.theme-card__swatch b { position: absolute; left: 14px; top: 8px; font-size: 1.6rem; font-weight: 800; }
.theme-card strong small { color: var(--muted); font-weight: 500; }
.theme-card__box > span:last-child { color: var(--muted); font-size: .875rem; }
.color-field__row { display: flex; align-items: center; gap: 10px; }
.color-field__row input[type=color] { width: 64px; flex: none; }
.color-field__row code { font-size: .8rem; }

/* Mail */
.mails { list-style: none; margin: 0; padding: 0; }
.mail-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); }
.mail-row:hover { background: #FAFBF9; }
.mail-row.is-unread { color: var(--ink); font-weight: 700; }
.mail-row.is-unread .mail-row__who::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-right: 8px; vertical-align: middle; }
.mail-row__who, .mail-row__subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row__date { color: var(--muted); font-size: .8125rem; font-weight: 400; white-space: nowrap; }
.mails--compact .mail-row { padding-inline: 0; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) auto; }
@media (max-width: 699px) { .mail-row { grid-template-columns: 1fr auto; gap: 2px 12px; } .mail-row__subj { grid-column: 1 / -1; grid-row: 2; font-weight: inherit; } }
.mail-frame { display: block; width: 100%; height: 62vh; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); margin-top: 14px; resize: vertical; }
.mail-text { white-space: pre-wrap; word-wrap: break-word; font: 15px/1.6 Arial, sans-serif; margin: 14px 0 0; }
.mail-head { margin-bottom: 4px; }
.mail-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mail-subject { word-break: break-word; }
@media (min-width: 1100px) { .cols--mail { grid-template-columns: 1.5fr 1fr; } }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.empty-state { display: grid; gap: 10px; justify-items: start; }
.narrow-wide { max-width: 820px; }

/* ---------- QR generator ---------- */
.qrgen { display: grid; gap: 16px; }
.qrgen__form { display: grid; gap: 16px; align-content: start; min-width: 0; }
.qrgen__form .card + .card { margin-top: 0; }
.qrgen__side { order: -1; }
.qrgen__preview-card { display: grid; gap: 12px; }
.qrgen__preview { display: grid; place-items: center; min-height: 316px; padding: 8px; border-radius: 12px; background: #F1F2EE; }
.qrgen__preview.is-transparent { background-color: #fff; background-image: linear-gradient(45deg, #E3E5E0 25%, transparent 25%), linear-gradient(-45deg, #E3E5E0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #E3E5E0 75%), linear-gradient(-45deg, transparent 75%, #E3E5E0 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.qrgen__preview svg, .qrgen__preview canvas { display: block; max-width: 100%; height: auto; }
.qrgen__data { font-size: .78rem; color: var(--muted); word-break: break-all; }
.qrgen__warn { padding: 10px 12px; border-radius: 10px; background: #FFF4DB; color: #7A5300; font-size: .82rem; }
.qrgen__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qrgen__actions .btn { flex: 1; justify-content: center; }
.qrgen__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qrgen__presets [data-saved-presets] { display: contents; }
.qr-chip { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border: 0; border-radius: 999px; background: #EEF0EA; color: inherit; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.qr-chip:hover { background: #E2E5DC; }
.qr-chip--saved { padding: 0 4px 0 0; background: #E9EEF8; }
.qr-chip--saved button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 7px 4px 7px 12px; }
.qr-chip--saved button + button { padding: 4px 8px; border-radius: 50%; color: var(--muted); }
.qrgen__save { display: flex; flex-wrap: wrap; gap: 8px; }
.qrgen__save input { flex: 1; min-width: 180px; }
.qrgen__seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.qrgen__seg label { cursor: pointer; }
.qrgen__seg input { position: absolute; opacity: 0; pointer-events: none; }
.qrgen__seg span { display: inline-block; padding: 8px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font-size: .85rem; font-weight: 600; }
.qrgen__seg input:checked + span { background: var(--primary); color: #fff; box-shadow: none; }
.qrgen__seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.qrgen__media { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; max-height: 220px; overflow: auto; margin-bottom: 12px; }
.qrgen__thumb { padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 1; cursor: pointer; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.qrgen__thumb img { width: 100%; height: 100%; object-fit: cover; }
.qrgen__thumb.is-on { box-shadow: 0 0 0 3px var(--primary); }
[data-status].is-error { color: #B42318; }
input[type="range"] { width: 100%; accent-color: var(--primary); }
@media (min-width: 1100px) {
  .qrgen { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .qrgen__side { order: 0; position: sticky; top: 16px; }
}
.hex-input { width: 112px; min-width: 0; padding: 8px 10px; font: 600 .9rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.hex-input.is-bad { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }

/* ---------- Statistics ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { display: grid; gap: 2px; padding: 18px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.kpi span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.kpi strong { font-size: 2rem; font-weight: 760; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi small { font-size: .78rem; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.legend__all { background: #C9CEC4; }
.legend__camp { background: var(--primary); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 8px; }
.bars--dense { gap: 1px; }
.bars__col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.bars__all { position: relative; display: flex; align-items: flex-end; width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: #C9CEC4; }
.bars__camp { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--primary); }
.bars__col:hover .bars__all { background: #AEB5A8; }
.bars__axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: .75rem; color: var(--muted); }
.meter { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.meter li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; overflow: hidden; font-size: .9rem; }
.meter i { position: absolute; inset: 0 auto 0 0; z-index: 0; background: var(--primary-tint); border-radius: 8px; }
.meter span, .meter b { position: relative; z-index: 1; }
.stats-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
.legend__mob { background: #7C8BFF; }
.bars__all { flex-direction: column; justify-content: flex-end; }
.bars__mob { display: block; width: 100%; border-radius: 3px 3px 0 0; background: #7C8BFF; }
.bars__dot { position: absolute; left: 50%; top: -9px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--primary); }
.funnel { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.funnel li { display: grid; gap: 6px; }
@media (min-width: 900px) { .funnel li { grid-template-columns: 280px 1fr; align-items: center; gap: 16px; } }
.funnel__label { display: grid; }
.funnel__label span { font-weight: 600; }
.funnel__label small { color: var(--muted); font-size: .78rem; }
.funnel__bar { position: relative; display: flex; align-items: center; height: 34px; border-radius: 8px; background: #F1F2EE; overflow: hidden; }
.funnel__bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--primary), #7C8BFF); border-radius: 8px; }
.funnel__bar b { position: absolute; right: 12px; z-index: 1; font-variant-numeric: tabular-nums; font-size: 1rem; }
.table tr.is-current td { background: var(--primary-tint); }
