/* Admin panel — 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[type="tel"], input[type="date"], input[type="time"], 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; }
/* desktop: a compact pill in the bottom-right corner instead of a full-width bar over the content */
@media (min-width: 1000px) { .savebar:not(.savebar--inline) { left: auto; right: 40px; bottom: 20px; justify-content: flex-end; max-width: calc(100vw - var(--side-w) - 80px); } }

/* 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); }

/* ---------- Mail: no horizontal overflow on phones, chat view, signature ---------- */
.min0, .cols > *, .stack > * { min-width: 0; }
.mail-text, .mail-head dd, .mail-subject, .chat__text { overflow-wrap: anywhere; word-break: break-word; }
.mail-text { max-width: 100%; overflow-x: auto; font-size: 14px; }
.mail-original > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.mail-original > summary::-webkit-details-marker { display: none; }
.mail-original > summary h2 { margin: 0; }
.mail-original > summary::after { content: "▾"; color: var(--muted); }
.mail-original[open] > summary::after { content: "▴"; }
.mail-original[open] > summary { margin-bottom: 12px; }
.mail-frame { height: 55vh; min-height: 320px; }

.chat-card { padding-bottom: 12px; }
.chat { display: flex; flex-direction: column; gap: 4px; max-height: 70vh; overflow-y: auto; margin: 0 -8px; padding: 4px 8px 8px; list-style: none; scroll-behavior: smooth; }
.chat__day { align-self: center; margin: 12px 0 6px; padding: 3px 10px; border-radius: 999px; background: #F1F2EE; color: var(--muted); font-size: .75rem; font-weight: 600; }
.chat__msg { display: flex; flex-direction: column; max-width: min(86%, 620px); }
.chat__msg--them { align-self: flex-start; align-items: flex-start; }
.chat__msg--mine { align-self: flex-end; align-items: flex-end; }
.chat__bubble { display: grid; gap: 4px; padding: 10px 14px; border-radius: 18px; text-decoration: none; color: inherit; font-size: .92rem; line-height: 1.5; transition: filter .15s; }
.chat__bubble:hover { filter: brightness(.97); }
.chat__msg--them .chat__bubble { background: #F1F2EE; border-bottom-left-radius: 6px; }
.chat__msg--mine .chat__bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.chat__msg.is-current .chat__bubble { box-shadow: 0 0 0 3px var(--primary-tint), 0 0 0 4px var(--primary); }
.chat__msg--mine.is-current .chat__bubble { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary); }
.chat__subject { font-size: .75rem; font-weight: 700; opacity: .75; }
.chat__text { white-space: pre-wrap; }
.chat__meta { margin: 3px 6px 6px; color: var(--muted); font-size: .72rem; }

.sig-preview { position: relative; margin: 2px 0 12px; padding: 10px 12px; border-left: 3px solid #C9A25E; border-radius: 0 10px 10px 0; background: #FAFAF7; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.sig-preview strong { color: var(--ink); letter-spacing: .04em; }
.sig-preview__edit { position: absolute; top: 8px; right: 10px; font-size: .78rem; }
.sig-preview.is-off { opacity: .35; text-decoration: line-through; }
@media (max-width: 700px) { .chat__msg { max-width: 92%; } .mail-frame { height: 60vh; } }
.mail-original > summary h2 { font-size: 1.05rem; font-weight: 700; }
.mini-check { display: flex !important; align-items: flex-start; gap: 8px; white-space: normal; line-height: 1.4; margin-bottom: 10px; }
.mini-check input { flex: none; margin-top: 2px; }

/* ---------- Sidebar badges ---------- */
.side__count { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.side__count--new { background: var(--primary); color: #fff; }
.side__count--warn { background: #F5A524; color: #2A1A00; }
.side__nav a[aria-current] .side__count--new { background: var(--primary); }
.table tr.is-unseen td { font-weight: 650; background: #F7F8FF; }
.dot-new { display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--primary); vertical-align: middle; }

/* Mobile menu: one scrolling drawer (links + account), nothing hidden below the fold */
@media (max-width: 999px) {
  .side.is-open { position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain; }
  .side.is-open::after { content: none; }
  .side.is-open .side__nav, .side.is-open .side__foot { position: static; height: auto; inset: auto; overflow: visible; }
  .side.is-open .side__foot { padding: 12px 22px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 999px) { .side.is-open .side__top { position: sticky; top: 0; z-index: 1; background: var(--ink); } }

/* ==========================================================================
   Salon: bookings calendar, staff schedules, services, albums
   ========================================================================== */
.badge--b-pending { background: #FFF0D6; color: #8A5A00; }
.badge--b-confirmed { background: var(--primary-tint); color: var(--primary-deep); }
.badge--b-done { background: #E3F4EA; color: var(--ok); }
.badge--b-noshow { background: #FDE8E7; color: var(--danger); }
.badge--b-cancelled { background: #F1F2EF; color: var(--muted); text-decoration: line-through; }

.cal-day { padding: 18px; }
.cal-day__bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-day__pick { display: flex; gap: 8px; align-items: center; }
.cal-day__pick input { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; }
.cal-day__title { font-size: 1.15rem; margin: 14px 0 12px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.cal-week a { position: relative; display: grid; justify-items: center; padding: 8px 4px; border-radius: 12px; text-decoration: none; background: #F7F8F5; box-shadow: inset 0 0 0 1px var(--line); }
.cal-week span { font-size: .75rem; color: var(--muted); }
.cal-week strong { font-size: 1.1rem; }
.cal-week b { position: absolute; top: 4px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .7rem; }
.cal-week a.is-today strong { color: var(--primary); }
.cal-week a.is-closed { opacity: .55; }
.cal-week a[aria-current] { background: var(--ink); box-shadow: none; }
.cal-week a[aria-current] span, .cal-week a[aria-current] strong { color: #fff; }

/* day timeline: one column per specialist, rows of 15 minutes */
.tl { --row: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tl__head, .tl__body { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(180px, 1fr)); min-width: calc(56px + var(--cols) * 180px); }
.tl__head { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.tl__name { padding: 10px 12px; font-weight: 700; border-left: 1px solid var(--line); }
.tl__name small { font-weight: 500; color: var(--muted); }
.tl__hours, .tl__col { display: grid; grid-template-rows: repeat(var(--rows), var(--row)); }
.tl__hours span { padding: 0 8px; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); text-align: right; }
.tl__col { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(135deg, #F3F4F1 0 6px, #ECEDEA 6px 7px); }
.tl__open { grid-column: 1; background: #fff; }
.tl__slot { grid-column: 1; border-top: 1px dashed #EEF0EC; }
.tl__slot:nth-of-type(4n+1) { border-top-style: solid; border-top-color: var(--line); }
.tl__slot:hover { background: var(--primary-tint); }
.tl__b {
  grid-column: 1; position: relative; z-index: 1; margin: 1px 6px 1px 4px; padding: 4px 8px; overflow: hidden;
  border-radius: 8px; text-decoration: none; display: grid; align-content: start; line-height: 1.25;
  background: var(--primary-tint); box-shadow: inset 3px 0 0 var(--primary); font-size: .8125rem;
}
.tl__b strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl__b span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl__b em { font-style: normal; font-weight: 700; color: #8A5A00; }
.tl__b--pending { background: #FFF6E6; box-shadow: inset 3px 0 0 #E7A33E; }
.tl__b--done { background: #EAF6EF; box-shadow: inset 3px 0 0 var(--ok); }
.tl__b--noshow { background: #FDECEB; box-shadow: inset 3px 0 0 var(--danger); }
.tl__b:hover { filter: brightness(.97); }
.bk-filter { display: flex; gap: 8px; width: 100%; max-width: 560px; margin-bottom: 14px; }
.bk-filter select { height: 40px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 10px; background: #fff; }

.bf-slots { margin: 6px 0 10px; }
.bf-slots .chips { position: static; padding: 6px 0 0; background: none; margin: 0; }
.chip-btn { height: 36px; min-width: 64px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.chip-btn:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.bstatus { display: grid; gap: 6px; margin-bottom: 8px; }
.bstatus__opt { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; padding: 8px 10px; border-radius: 10px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.bstatus__opt input { margin: 3px 0 0; accent-color: var(--primary); }
.bstatus__opt span { display: grid; line-height: 1.3; }
.bstatus__opt small { color: var(--muted); }
.bstatus__opt:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--primary); background: var(--primary-tint); }

.week { display: grid; gap: 4px; }
.week__head, .week__row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 8px; align-items: center; }
.week--simple .week__row { grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.week input[type=time] { min-width: 0; }
.week__head { font-size: .75rem; color: var(--muted); padding: 0 8px; }
.week__row { padding: 6px 8px; border-radius: 10px; background: #F7F8F5; }
.week__row input[type=time] { width: 100%; height: 38px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-variant-numeric: tabular-nums; }
.week__break { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px; align-items: center; }
.week__row.is-off input[type=time] { opacity: .35; }
.week__day { font-weight: 600; }
@media (max-width: 640px) {
  .week__head { display: none; }
  .week__row, .week--simple .week__row { grid-template-columns: 1fr 1fr; }
  .week__day, .week__break { grid-column: 1 / -1; }
}
.rep__row--off { display: grid; gap: 10px; }
@media (min-width: 760px) { .rep__row--off { grid-template-columns: 160px 160px 1fr; align-items: end; } }
.rep__row.is-past { opacity: .55; }
.checks { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 0 18px; }
.checks legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.checks small { color: var(--muted); }

.svc-row__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .svc-row__grid { grid-template-columns: 1.5fr 1fr 150px; align-items: start; } }
.svc-row__side { display: grid; gap: 4px; }
.svc-row.is-off { opacity: .7; }

.album-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.album-tile { display: grid; gap: 4px; padding: 10px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 0 0 1px var(--line); text-decoration: none; }
.album-tile:hover { box-shadow: 0 0 0 1.5px var(--primary); }
.album-tile__img { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #F1F2EF; }
.album-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.album-tile small { color: var(--muted); }
.aphotos { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.aphoto { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.aphoto img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; background: #EEF0EC; }
.aphoto__body { display: grid; gap: 4px; min-width: 0; }
.aphoto__ctrl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.aphoto + .aphoto { padding-top: 10px; border-top: 1px solid var(--line); }

.picker.is-multi .picker__item[aria-pressed="true"] { box-shadow: inset 0 0 0 4px var(--primary); }
.picker.is-multi .picker__item[aria-pressed="true"] img { transform: scale(.9); border-radius: 6px; }
.picker__done[disabled] { opacity: .5; }

.prow--static { grid-template-columns: 56px 1fr auto; }
@media (min-width: 900px) { .prow--static { grid-template-columns: 56px 1fr auto auto; } }
.prow__swatch--round { border-radius: 50%; background: #EEF0EC; }
.prow__swatch--round img { object-fit: cover; }
@media (max-width: 600px) {
  .cal-week { gap: 4px; }
  .cal-week b { position: static; min-width: 6px; width: 6px; height: 6px; padding: 0; font-size: 0; margin-top: 3px; }
}

/* weekly schedule with a place column; date exceptions */
.week__head.week--loc, .week__row.week--loc { grid-template-columns: minmax(110px, .8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.4fr); }
.week__row select { min-height: 38px; padding: 0 8px; }
.rep__row--ov { display: grid; gap: 10px; align-items: end; }
@media (min-width: 760px) { .rep__row--ov { grid-template-columns: 150px 80px minmax(0, 1fr) 110px 110px minmax(0, 1fr); } }
@media (max-width: 640px) { .week__row.week--loc { grid-template-columns: 1fr 1fr; } .week__row.week--loc select { grid-column: 1 / -1; } }
.trow__meta { display: grid; gap: 2px; margin-bottom: 8px; }
.trow__note { font-weight: 650; color: var(--ink); }
.trow__where { font-size: .8125rem; color: var(--muted); }
.trow__where strong { color: var(--ink-2); font-weight: 600; }
.trow__meta .trow__key { justify-self: start; font-size: .72rem; opacity: .6; }

/* ==========================================================================
   Work calendar (/schedule): month grid, select days, mark where / when
   ========================================================================== */
.sched-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sched-staff select { min-width: 180px; }
.sched { padding-bottom: 220px; }
.sched__card { padding: 16px; }
.sched__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.sched__month { text-align: center; font-size: 1.25rem; text-transform: capitalize; }
.sched__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; padding: 0; font-size: .8125rem; color: var(--ink-2); }
.sched__legend li { display: inline-flex; align-items: center; gap: 6px; }
.sched__legend i { width: 14px; height: 14px; border-radius: 4px; }
.sched__legend i.is-off { background: #E6E8E3; }
.sched__legend i.is-weekly { border: 1.5px dashed var(--muted); }
.sched__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sched__wd { border: 0; background: none; padding: 6px 0; font-size: .75rem; font-weight: 700; color: var(--muted); border-radius: 8px; cursor: pointer; }
.sched__wd:hover { background: var(--primary-tint); color: var(--primary-deep); }
.sched__day {
  --pc: #9AA0A6;
  position: relative; display: grid; align-content: start; gap: 1px; min-height: 76px; padding: 6px 6px 8px;
  border-radius: 10px; background: #F1F2EF; cursor: pointer; overflow: hidden; user-select: none;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s;
}
.sched__day input { position: absolute; opacity: 0; pointer-events: none; }
.sched__day.is-on { background: color-mix(in oklab, var(--pc) 16%, #fff); box-shadow: inset 4px 0 0 var(--pc), inset 0 0 0 1px color-mix(in oklab, var(--pc) 35%, transparent); }
.sched__day.src-weekly { background-image: none; box-shadow: inset 0 0 0 1.5px var(--line-2); outline: 1.5px dashed var(--muted); outline-offset: -4px; }
.sched__day.is-on.src-weekly { box-shadow: inset 4px 0 0 var(--pc); }
.sched__day.src-vacation { background: #FFF3E0; }
.sched__day.is-past { opacity: .45; cursor: default; }
.sched__day.is-today .sched__n { background: var(--ink); color: #fff; border-radius: 999px; padding: 0 6px; justify-self: start; }
.sched__day:has(input:checked) { box-shadow: inset 0 0 0 3px var(--primary); transform: scale(.97); }
.sched__day:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.sched__n { font-weight: 800; font-size: .95rem; line-height: 1.3; }
.sched__place { font-size: .72rem; font-weight: 700; color: color-mix(in oklab, var(--pc) 80%, #000); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched__time { font-size: .72rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched__dot { position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; }
.sched__legend .sched__dot { position: static; }
@media (max-width: 480px) {
  .sched__card { padding: 10px; }
  .sched__grid { gap: 3px; }
  .sched__day { min-height: 64px; padding: 4px 4px 6px; border-radius: 8px; }
  .sched__place { font-size: .62rem; }
  .sched__time { font-size: .62rem; }
  .sched__dot { top: 3px; right: 3px; min-width: 15px; height: 15px; font-size: .6rem; padding: 0 3px; }
}

/* action panel: slides up when days are selected */
.sched-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; gap: 10px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--panel);
  box-shadow: 0 -1px 0 var(--line), 0 -18px 40px -20px rgba(0, 0, 0, .35);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sched.has-selection .sched-panel, .sched:has(.sched__day input:checked) .sched-panel { transform: none; }
@media (min-width: 900px) { .sched-panel { left: var(--side-w); padding-inline: 28px; } }
.sched-panel__count { font-size: .9375rem; }
.sched-panel__places { display: flex; flex-wrap: wrap; gap: 8px; }
.sched-pill { position: relative; cursor: pointer; }
.sched-pill input { position: absolute; opacity: 0; }
.sched-pill span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 650; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--pc) 55%, transparent); color: color-mix(in oklab, var(--pc) 85%, #000); }
.sched-pill input:checked + span { background: var(--pc); color: #fff; box-shadow: none; }
.sched-pill input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.sched-panel__times { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sched-panel__times label { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; }
.sched-panel__times input[type=time] { width: 112px; min-height: 40px; }
.sched-panel__break summary { cursor: pointer; font-size: .875rem; color: var(--primary-deep); }
.sched-panel__break[open] { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sched-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sched-panel__actions .btn { flex: 1 1 auto; }
.sched-hint p { margin-top: 6px; }
.shop-toggle { margin-bottom: 16px; }
.shop-toggle .hint { margin-top: 4px; }

/* Business cards (admin → Vizitinės kortelės) */
.bc { display: grid; gap: 16px; padding-bottom: 80px; }
@media (min-width: 1100px) { .bc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .bc__main { position: sticky; top: 24px; } }
.bc__main { display: grid; gap: 16px; min-width: 0; order: -1; }
@media (min-width: 1100px) { .bc__main { order: 0; } }
.bc__main .card + .card { margin-top: 0; }
.bc__h { margin-top: 22px; }
.bc-tpl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .bc-tpl { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bc__side .bc-tpl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .bc__side .bc-tpl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bc-tpl__item { position: relative; cursor: pointer; }
.bc-tpl__item input, .bc-backs input { position: absolute; opacity: 0; pointer-events: none; }
.bc-tpl__thumb { display: block; aspect-ratio: 91 / 61; border-radius: 8px; overflow: hidden; background: #E4E6E1; box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.bc-tpl__thumb svg, .bc-face__art svg { display: block; width: 100%; height: auto; }
.bc-tpl__item:hover .bc-tpl__thumb { transform: translateY(-1px); }
.bc-tpl__item input:checked + .bc-tpl__thumb { box-shadow: 0 0 0 2px var(--primary), 0 0 0 5px var(--primary-tint); }
.bc-tpl__item input:focus-visible + .bc-tpl__thumb, .bc-backs input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 3px; }
.bc-backs { display: grid; gap: 8px; }
.bc-backs label { position: relative; cursor: pointer; }
.bc-backs span { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.bc-backs small { color: var(--muted); font-size: .8125rem; }
.bc-backs input:checked + span { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-tint); }
.bc-preview__head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bc-preview__head h2 { margin: 0; }
.bc-face { margin: 0 0 18px; }
.bc-face figcaption { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.bc-face__art { border-radius: 10px; overflow: hidden; background: #1A1D22; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); }
.bc-export { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.bc-export .btn[disabled] { opacity: .55; cursor: progress; }

/* Album: videos among photos */
.aphoto__media { position: relative; display: block; width: 96px; }
.aphoto__video { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(11, 13, 18, .82); color: #fff; font-size: .75rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.album-adds { display: grid; gap: 8px; }
@media (min-width: 640px) { .album-adds { grid-template-columns: 1fr 1fr; } }
.field__label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: 6px; }

/* Video studio: list page */
.vs-tag { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(11, 13, 18, .82); color: #fff; font-size: .75rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.vs-drop { display: grid; gap: 12px 20px; align-items: center; transition: box-shadow .2s var(--ease); }
@media (min-width: 760px) { .vs-drop { grid-template-columns: 1fr auto; } }
.vs-drop.is-over { box-shadow: 0 0 0 2px var(--primary), 0 0 0 6px var(--primary-tint); }
.vs-drop h2 { margin: 0; }
.vs-drop .hint { margin: 4px 0 0; }
.vs-drop__btn { cursor: pointer; }
.vs-uploads { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-column: 1 / -1; }
.vs-uploads:empty { display: none; }
.vs-uploads--picker { padding: 12px 18px 0; }
.vs-up { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .875rem; }
.vs-up__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vs-up__state { color: var(--muted); font-variant-numeric: tabular-nums; }
.vs-up__bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: #E4E6E1; overflow: hidden; }
.vs-up__bar span { display: block; height: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.vs-up.is-done .vs-up__bar span { background: var(--ok); }
.vs-up.is-done .vs-up__state { color: var(--ok); }
.vs-up.is-error .vs-up__state { color: var(--danger); }
.vs-projects, .vs-lib { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.vs-project a { display: grid; gap: 3px; text-decoration: none; color: inherit; }
.vs-project__img, .vs-lib__img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #1A1D22; margin-bottom: 6px; }
.vs-project__img img, .vs-lib__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.vs-project a:hover img { transform: scale(1.04); }
.vs-project .vs-tag { right: auto; left: 6px; bottom: auto; top: 6px; }
.vs-project strong, .vs-lib__body strong { font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-project small, .vs-lib__body small { color: var(--muted); font-size: .8125rem; }
.vs-lib__pick { position: relative; display: block; cursor: pointer; }
.vs-lib__pick input { position: absolute; z-index: 1; top: 8px; left: 8px; width: 22px; height: 22px; min-height: 0; accent-color: var(--primary); }
.vs-lib__pick input:checked + .vs-lib__img { box-shadow: 0 0 0 3px var(--primary); }
.vs-lib__wait { display: grid; place-items: center; height: 100%; color: #9AA0A8; font-size: .8125rem; }
.vs-lib__body { display: grid; gap: 2px; min-width: 0; }
.vs-lib__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vs-lib__bar { position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; }
.vs-lib__bar .btn--primary { background: #fff; color: var(--ink); }
.vs-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.vs-pick { position: relative; aspect-ratio: 4 / 5; }
.vs-pick img { width: 100%; height: 100%; object-fit: cover; }
.vs-pick__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(11, 13, 18, .8)); color: #fff; font-size: .75rem; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-pick .vs-tag { top: 6px; bottom: auto; }
.vs-pick.is-picked { box-shadow: 0 0 0 3px var(--primary); }
.vs-pick.is-picked::after { content: "✓"; position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; }
.vs-use { width: min(720px, calc(100vw - 24px)); }
.vs-use__body { display: grid; gap: 18px; padding: 18px; }
@media (min-width: 640px) { .vs-use__body { grid-template-columns: 220px 1fr; } }
.vs-use__body video { width: 100%; max-height: 380px; border-radius: 10px; background: #0B0D12; }
.vs-use__rule { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.vs-use__msg { margin: 0; font-weight: 600; color: var(--muted); }
.vs-use__msg.is-ok { color: var(--ok); }

/* Video studio: editor */
.ve { padding-bottom: 40px; }
.ve-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.ve-top .back { flex-basis: 100%; }
.ve-top__name { flex: 1 1 220px; min-width: 0; font-size: 1.35rem; font-weight: 700; border-color: transparent; background: transparent; padding-left: 4px; }
.ve-top__name:hover, .ve-top__name:focus { border-color: var(--line-2); background: #fff; }
.ve-top__state { color: var(--muted); font-size: .8125rem; transition: color .2s; }
.ve-top__state.is-note { color: var(--primary-deep); font-weight: 600; }
.ve-top__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ve-grid { display: grid; gap: 16px; }
@media (min-width: 1100px) { .ve-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .ve-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; } }
.ve-main { min-width: 0; }
.ve-stage { display: grid; place-items: center; padding: 16px; border-radius: var(--radius); background: #0B0D12; min-height: 260px; }
.ve-frame { position: relative; width: 240px; height: 400px; overflow: hidden; border-radius: 6px; background: #000; cursor: grab; touch-action: none; user-select: none; }
.ve-frame.is-dragging { cursor: grabbing; }
.ve-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ve-frame.has-vignette::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .45) 100%); }
.ve-frame__overlay { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.ve-frame__exact { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.ve-frame__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; margin: 0; color: #9AA0A8; text-align: center; font-size: .875rem; }
.ve-frame__hint { position: absolute; z-index: 4; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(11, 13, 18, .7); color: #fff; font-size: .75rem; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ve-frame:hover .ve-frame__hint { opacity: 1; }
@media (hover: none) { .ve-frame__hint { display: none; } }
.ve-transport { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 14px; }
.ve-transport__time { font-variant-numeric: tabular-nums; font-weight: 650; min-width: 64px; }
.ve-timeline { display: flex; gap: 8px; align-items: stretch; padding: 10px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 0 0 1px var(--line); overflow-x: auto; }
.ve-clips { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; list-style: none; margin: 0; padding: 0; }
.ve-clip { flex: 1 1 0; min-width: 76px; }
.ve-clip button { position: relative; display: block; width: 100%; height: 72px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #1A1D22; box-shadow: inset 0 0 0 1px var(--line); }
.ve-clip img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.ve-clip.is-sel button { box-shadow: 0 0 0 3px var(--primary); }
.ve-clip.is-sel img { opacity: 1; }
.ve-clip__n { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 13, 18, .8); color: #fff; font-size: .7rem; font-weight: 700; }
.ve-clip__len { position: absolute; left: 4px; right: 4px; bottom: 4px; color: #fff; font-size: .7rem; font-weight: 650; text-align: left; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.ve-clip--end button { background: linear-gradient(135deg, #0A0E13, #2A2112); }
.ve-clip--end .ve-clip__len { color: #F1D594; }
.ve-add { flex: none; width: 92px; border: 1px dashed var(--line-2); border-radius: 8px; background: #fff; color: var(--primary-deep); font-weight: 650; font-size: .8125rem; cursor: pointer; }
.ve-add:hover { border-color: var(--primary); background: var(--primary-tint); }
.ve-total { margin: 8px 2px 0; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.ve-side { display: grid; gap: 14px; align-content: start; }
.ve-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #E4E6E1; overflow-x: auto; }
.ve-tabs button { flex: 1 0 auto; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: .8125rem; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.ve-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ve-panel, .ve-result, .ve-renders { padding: 18px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.ve-panel > :first-child, .ve-panel > div > :first-child { margin-top: 0; }
.ve-h { font-size: .875rem; font-weight: 700; margin: 20px 0 8px; }
.ve-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ve-seg button { padding: 7px 12px; border: 0; border-radius: 8px; background: #F1F2EF; font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.ve-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.ve-range { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 6px 0; font-size: .8125rem; font-weight: 600; }
.ve-range input { min-height: 0; padding: 0; border: 0; accent-color: var(--primary); }
.ve-range output { min-width: 36px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.ve-sw { display: grid; gap: 1px; }
.ve-sw small { color: var(--muted); font-weight: 450; font-size: .78rem; }
.ve-trim { position: relative; height: 36px; }
.ve-trim__track { position: absolute; inset: 12px 0; border-radius: 6px; background: #E4E6E1; }
.ve-trim__sel { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--primary); opacity: .85; }
.ve-trim__head { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--ink); }
.ve-trim input { position: absolute; inset: 0; width: 100%; height: 36px; min-height: 0; margin: 0; padding: 0; border: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none; }
.ve-trim input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 34px; border-radius: 6px; background: #fff; border: 2px solid var(--primary-deep); cursor: ew-resize; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.ve-trim input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 30px; border-radius: 6px; background: #fff; border: 2px solid var(--primary-deep); cursor: ew-resize; }
.ve-trim input::-webkit-slider-runnable-track { background: none; }
.ve-trim__labels { display: flex; justify-content: space-between; margin: 4px 0 10px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ve-clip-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ve-formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ve-format { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 12px 6px; border: 0; border-radius: 10px; background: #F1F2EF; font: inherit; font-size: .75rem; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.ve-format__shape { border: 2px solid currentColor; border-radius: 3px; }
.ve-format[aria-pressed="true"] { background: var(--primary-tint); color: var(--primary-deep); box-shadow: inset 0 0 0 2px var(--primary); }
.ve-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ve-look { display: grid; gap: 6px; padding: 0 0 8px; border: 0; border-radius: 10px; background: #F1F2EF; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.ve-look__img { position: relative; display: block; aspect-ratio: 1; background: #1A1D22; overflow: hidden; }
.ve-look__img img { width: 100%; height: 100%; object-fit: cover; }
.ve-look.has-vignette .ve-look__img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .5) 100%); }
.ve-look[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--primary); }
.ve-progress { height: 8px; border-radius: 999px; background: #E4E6E1; overflow: hidden; }
.ve-progress span { display: block; height: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.ve-result__video { width: 100%; max-height: 420px; margin: 12px 0; border-radius: 10px; background: #0B0D12; }
.ve-renders__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ve-render { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px 12px; align-items: center; }
.ve-render img { width: 52px; height: 66px; object-fit: cover; border-radius: 6px; background: #1A1D22; grid-row: span 2; }
.ve-render strong { display: block; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-render small { color: var(--muted); font-size: .78rem; }
.ve-render__actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) {
  .ve-stage { padding: 10px; min-height: 0; }
  .ve-range { grid-template-columns: 96px minmax(0, 1fr) auto; }
}

/* Storage bar */
.vs-storage { display: grid; gap: 6px; margin-bottom: 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.ve-side .vs-storage { margin: 0; }
.vs-storage__top { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.vs-storage__top span { font-variant-numeric: tabular-nums; font-weight: 650; }
.vs-storage__bar { height: 8px; border-radius: 999px; background: #E4E6E1; overflow: hidden; }
.vs-storage__bar span { display: block; height: 100%; background: var(--ok); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.vs-storage.is-warn .vs-storage__bar span { background: #C98A12; }
.vs-storage.is-full .vs-storage__bar span { background: var(--danger); }
.vs-storage small { color: var(--muted); font-size: .78rem; }
.vs-used { color: var(--primary-deep) !important; }
.vs-music-up { cursor: pointer; margin-bottom: 12px; }
.vs-tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vs-track { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.vs-track audio { grid-column: 1 / -1; width: 100%; height: 36px; }
.vs-track__info { display: grid; min-width: 0; }
.vs-track__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-track__info small { color: var(--muted); font-size: .8rem; }
@media (min-width: 760px) { .vs-track { grid-template-columns: 280px minmax(0, 1fr) auto; } .vs-track audio { grid-column: auto; } }

/* Editor: tip + multi-track timeline */
.ve-tip { margin: -6px 0 12px; color: var(--muted); font-size: .78rem; }
@media (hover: none) { .ve-tip { font-size: .75rem; } }
.ve-tl { padding: 10px 12px 14px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.ve-tl__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; }
.ve-tl__tools .ve-total { margin: 0 0 0 auto; }
.ve-tl__body { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; }
.ve-tl__labels { display: grid; grid-template-rows: 18px 58px minmax(30px, auto) 34px; row-gap: 6px; font-size: .7rem; font-weight: 650; color: var(--muted); }
.ve-tl__labels span { display: flex; align-items: center; }
.ve-tl__tracks { position: relative; display: grid; grid-template-rows: 18px 58px minmax(30px, auto) 34px; row-gap: 6px; touch-action: none; user-select: none; }
.ve-tl__ruler { position: relative; border-bottom: 1px solid var(--line); cursor: ew-resize; }
.ve-tl__ruler span { position: absolute; top: 0; transform: translateX(-50%); font-size: .65rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ve-tl__ruler span:first-child { transform: none; }
.ve-tl__row { position: relative; border-radius: 6px; background: #F1F2EF; }
.ve-tl__lane { position: relative; height: 100%; min-height: 30px; }
.ve-tl__empty { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: .72rem; color: #9AA0A8; pointer-events: none; }
.ve-tclip { position: absolute; top: 0; bottom: 0; padding: 0; border: 0; border-radius: 6px; background: #1A1D22 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); cursor: pointer; overflow: hidden; }
.ve-tclip span { position: absolute; left: 4px; top: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: rgba(11, 13, 18, .8); color: #fff; font-size: .68rem; font-weight: 700; }
.ve-tclip.is-sel { box-shadow: inset 0 0 0 3px var(--primary); z-index: 1; }
.ve-tclip--end { background: linear-gradient(135deg, #0A0E13, #2A2112); }
.ve-tclip--end span { color: #F1D594; background: none; }
.ve-tbar { position: absolute; height: 22px; display: flex; align-items: center; border-radius: 5px; background: #FDF3DC; box-shadow: inset 0 0 0 1px #E6C87F; color: #5A3E0E; font-size: .7rem; font-weight: 650; cursor: grab; overflow: hidden; }
.ve-tbar.is-sel { background: var(--primary-tint); box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary-deep); z-index: 2; }
.ve-tbar__t { flex: 1; min-width: 0; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.ve-tbar__h { flex: none; width: 8px; align-self: stretch; cursor: ew-resize; background: rgba(0, 0, 0, .08); }
.ve-tbar.is-sel .ve-tbar__h { background: var(--primary); }
.ve-mbar { position: absolute; inset: 2px 0; border-radius: 5px; background: #2A2112 0 50% / 100% 100% no-repeat; box-shadow: inset 0 0 0 1px #8C6224; cursor: grab; overflow: hidden; }
.ve-mbar span { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); padding: 1px 6px; border-radius: 4px; background: rgba(10, 14, 19, .75); color: #F1D594; font-size: .7rem; font-weight: 650; white-space: nowrap; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ve-tl__head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #E5484D; pointer-events: none; z-index: 3; }
.ve-tl__head::before { content: ""; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top-color: #E5484D; }

/* Editor: texts */
.ve-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ve-style { min-height: 52px; padding: 6px; border: 0; border-radius: 8px; background: #0F1318; color: #fff; cursor: pointer; font-size: 1rem; line-height: 1.05; }
.ve-style:hover { outline: 2px solid var(--primary); }
.ve-style--gilt b { font: 900 1.15rem/1 'Big Shoulders', sans-serif; text-transform: uppercase; color: #D2A24C; text-shadow: .04em .05em 0 #6E1F22; }
.ve-style--bold b { font: 800 1.15rem/1 'Big Shoulders', sans-serif; text-transform: uppercase; }
.ve-style--elegant b { font: 700 1rem/1.1 'Playfair Display', serif; }
.ve-style--box b { display: inline-block; padding: 3px 8px; border-radius: 5px; background: rgba(255, 255, 255, .14); font: 700 .8rem/1.2 Archivo, sans-serif; }
.ve-style--plain b { font: 600 .85rem/1.2 Archivo, sans-serif; }
.ve-style--outline b { font: 900 1.15rem/1 'Big Shoulders', sans-serif; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px #F1D594; }
.ve-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.ve-chip { padding: 6px 10px; border: 0; border-radius: 999px; background: #F1F2EF; box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-chip.is-sel { background: var(--ink); color: #fff; box-shadow: none; }
.ve-textedit { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ve-textedit .field { margin: 0; }
.ve-textedit textarea { min-height: 64px; font-size: 1rem; }
.ve-field .field__label strong { font-variant-numeric: tabular-nums; color: var(--primary-deep); }
.ve-colors { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ve-colors button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); cursor: pointer; }
.ve-colors button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
.ve-colors input[type="color"] { width: 38px; height: 30px; padding: 2px; }

/* Editor: music */
.ve-mcard { display: grid; gap: 2px; margin-bottom: 10px; }
.ve-mcard small { color: var(--muted); font-size: .8rem; }
.ve-wave { position: relative; height: 64px; border-radius: 8px; background: #14181E center / 100% 100% no-repeat; cursor: pointer; touch-action: none; overflow: hidden; }
.ve-wave__win { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: rgba(76, 107, 255, .22); box-shadow: inset 0 0 0 2px #4C6BFF; pointer-events: none; }
.ve-note { margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: #FFF7E6; color: #6B4A00; }
.ve-mp { width: min(760px, calc(100vw - 24px)); }
.ve-mp .picker__head { flex-wrap: wrap; }
.ve-mp__tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: #E4E6E1; margin-right: auto; }
.ve-mp__tabs button { padding: 7px 12px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: .8125rem; font-weight: 650; cursor: pointer; }
.ve-mp__tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ve-mp__pane { padding: 14px 18px 18px; }
.ve-mp__search { display: flex; gap: 8px; }
.ve-mp__search input { flex: 1; min-width: 0; }
.ve-mp__moods { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.ve-mp__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.ve-mp__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ve-mp__play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: .85rem; }
.ve-mp__info { display: grid; min-width: 0; }
.ve-mp__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-mp__info small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-mp__lic { color: var(--ok) !important; }
.ve-mp__acts { display: flex; gap: 6px; align-items: center; }
.ve-mp__more { margin-top: 10px; width: 100%; }
.ve-mp__up { cursor: pointer; }
@media (max-width: 640px) {
  .ve-tl__body { grid-template-columns: minmax(0, 1fr); }
  .ve-tl__labels { display: none; }
  .ve-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ve-mp__row { grid-template-columns: 40px minmax(0, 1fr); }
  .ve-mp__row > .btn, .ve-mp__acts { grid-column: 2; justify-self: start; }
}
.switch .ve-sw { position: static; width: auto; height: auto; flex: 1 1 auto; border-radius: 0; background: none; transition: none; }
.switch .ve-sw::after { content: none; }
.switch .ve-sw strong, .switch .ve-sw small { display: block; }

/* Yes / No modal (window.adminConfirm) */
.confirm { width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 18px; padding: 24px; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .5); }
.confirm::backdrop { background: rgba(11, 13, 18, .55); }
.confirm__title { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; }
.confirm__text { margin: 0 0 10px; color: var(--ink-2); }
.confirm__list { margin: 0 0 6px; padding: 10px 14px 10px 30px; border-radius: 10px; background: #FFF7E6; color: #6B4A00; font-size: .9rem; font-weight: 600; }
.confirm__list li + li { margin-top: 4px; }
.confirm__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.confirm__actions .btn { min-width: 110px; }
.btn--danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn--danger:hover { background: #8F1C13; }

/* Mail: long attachment names stay inside the card */
.mail-atts { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.mail-atts a { max-width: 100%; min-width: 0; display: inline-flex; align-items: center; gap: 6px; }
.mail-atts__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-atts small { flex: none; }

/* Page loading bar (admin.js) */
.loadbar { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.loadbar::before { content: ""; position: absolute; inset: 0; background: var(--primary); transform-origin: left; transform: scaleX(0); }
.is-loading .loadbar { opacity: 1; }
.is-loading .loadbar::before { animation: loadbar 8s cubic-bezier(.1, .7, .2, 1) forwards; }
.loadbar[data-label]::after { content: attr(data-label); position: fixed; top: 12px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.is-loading body { cursor: progress; }
@keyframes loadbar { 0% { transform: scaleX(0); } 30% { transform: scaleX(.5); } 100% { transform: scaleX(.92); } }
@media (prefers-reduced-motion: reduce) { .is-loading .loadbar::before { animation: none; transform: scaleX(.6); } }

/* Business cards: background picker */
.bc-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bc-opt { position: relative; cursor: pointer; }
.bc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bc-seg .bc-opt span { display: block; padding: 7px 12px; border-radius: 8px; background: #F1F2EF; box-shadow: inset 0 0 0 1px var(--line); font-size: .8125rem; font-weight: 600; }
.bc-seg .bc-opt input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.bc-opt input:focus-visible ~ span, .bc-opt input:focus-visible + i { outline: 2px solid var(--primary); outline-offset: 2px; }
.bc-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-swatches button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); cursor: pointer; }
.bc-swatches input[type="color"] { width: 44px; height: 34px; padding: 2px; }
.bc-grads, .bc-pats { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bc-grads .bc-opt, .bc-pats .bc-opt { display: grid; gap: 4px; font-size: .75rem; font-weight: 600; text-align: center; }
.bc-grads i, .bc-pats i { display: block; aspect-ratio: 3 / 2; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); overflow: hidden; }
.bc-pats i svg { display: block; width: 100%; height: 100%; }
.bc-grads__custom { background: conic-gradient(from 0deg, #E5484D, #D2A24C, #2E7D62, #2F6F7E, #8E7CC3, #E5484D); }
.bc-grads .bc-opt input:checked + i, .bc-pats .bc-opt input:checked + i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
.bc-custom { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 10px; margin-top: 12px; align-items: end; }
.bc-bgcommon { display: grid; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Font picker (cards + video texts): every name written in its own font */
.fontpick { margin: 0 0 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.fontpick summary { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: .875rem; font-weight: 600; }
.fontpick summary b { font-weight: 700; color: var(--primary-deep); }
.fontgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; padding: 4px 10px 12px; max-height: 340px; overflow: auto; }
.fontgrid__cat { grid-column: 1 / -1; margin-top: 6px; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fontgrid__item { position: relative; display: grid; gap: 2px; padding: 8px 8px 6px; border-radius: 8px; background: #F1F2EF; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; text-align: center; }
.fontgrid__item input { position: absolute; opacity: 0; pointer-events: none; }
.fontgrid__item span { font-size: 1.3rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fontgrid__item small { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fontgrid__item:has(input:checked) { background: var(--primary-tint); box-shadow: inset 0 0 0 2px var(--primary); }
.fontgrid__item:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.fontgrid__item--wide { grid-column: 1 / -1; }
.fontgrid__item--wide span { font: 600 .9rem/1.2 Archivo, sans-serif; }

/* 24-hour time fields (admin.js → time24) */
input.t24 { font-variant-numeric: tabular-nums; min-width: 92px; letter-spacing: .02em; }
input.t24:invalid:not(:placeholder-shown) { border-color: var(--danger); }
.lt-date { display: block; margin-top: 4px; color: var(--primary-deep); font-size: .78rem; font-weight: 600; }
.lt-date:empty { display: none; }
.grid2, .grid3 { align-items: start; }

/* ===== Video editor v2 ===== */
.ve-mt { margin-top: 12px; }
.ve-frame__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; will-change: transform; }
.ve-frame video { transform-origin: 50% 50%; }

/* timeline: zoomable, scrolls sideways */
.ve-tl__scroll { min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; padding-bottom: 4px; }
.ve-tl__scroll .ve-tl__tracks { min-width: 100%; }
.ve-tl__zoom { display: inline-flex; gap: 4px; }
.ve-tl__zoom .icon-btn { width: 30px; height: 30px; font-weight: 700; }
.ve-tl__zoom .icon-btn:disabled { opacity: .4; }
.ve-tclip--img i { position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px; background: rgba(11, 13, 18, .75); color: #F1D594; font-style: normal; font-size: .62rem; font-weight: 700; }
.ve-cut { position: absolute; z-index: 3; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border: 0; border-radius: 6px; background: #fff; color: var(--primary-deep); font-size: .7rem; line-height: 22px; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.ve-cut.is-cut { color: var(--muted); font-weight: 700; }
.ve-cut.is-own { background: var(--primary); color: #fff; }
.ve-cut:hover { transform: scale(1.12); }
.ve-mbar i { position: absolute; bottom: 3px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: #F1D594; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }

/* templates */
.ve-tpls { display: grid; gap: 8px; }
.ve-tpl { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; padding: 10px; border: 0; border-radius: 12px; background: #F1F2EF; box-shadow: inset 0 0 0 1px var(--line); text-align: left; font: inherit; cursor: pointer; }
.ve-tpl:hover { box-shadow: inset 0 0 0 2px var(--primary); }
.ve-tpl:disabled { opacity: .55; cursor: progress; }
.ve-tpl strong { font-size: .9rem; }
.ve-tpl small { grid-column: 2; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.ve-tpl__art { grid-row: span 2; width: 54px; height: 72px; border-radius: 8px; background: #0A0E13; position: relative; overflow: hidden; }
.ve-tpl__art--ba { background: linear-gradient(90deg, #6B5A4A 50%, #D9B98A 50%); }
.ve-tpl__art--ba::after { content: "PRIEŠ   PO"; white-space: pre; position: absolute; top: 6px; left: 0; right: 0; text-align: center; font: 800 .5rem/1 Archivo, sans-serif; color: #fff; }
.ve-tpl__art--invite { background: linear-gradient(180deg, #2A2112, #0A0E13); }
.ve-tpl__art--invite::before { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 7px; border-radius: 2px; background: #D2A24C; }
.ve-tpl__art--invite::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 12px; height: 9px; border-radius: 3px; background: rgba(255, 255, 255, .85); }
.ve-tpl__art--dyn { background: repeating-linear-gradient(100deg, #E8953A 0 10px, #6E1F22 10px 20px, #0A0E13 20px 30px); }
.ve-tpl__art--elegant { background: linear-gradient(160deg, #F7E6E4, #C9A8A0); }
.ve-tpl__art--elegant::after { content: "Monika"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 .9rem/1 'Great Vibes', cursive; color: #fff; }
.ve-tpl__art--slides { background: linear-gradient(135deg, #D2A24C 0 33%, #6E1F22 33% 66%, #2F6F7E 66%); }

/* transition picker with animated previews */
.ve-trp { width: min(720px, calc(100vw - 24px)); }
.ve-trp__body { display: grid; gap: 14px; padding: 16px 18px 20px; }
.ve-trs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ve-tr { display: grid; gap: 5px; padding: 6px 6px 8px; border: 0; border-radius: 10px; background: #F1F2EF; box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; }
.ve-tr.is-sel { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-tint); }
.ve-tr__demo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #000; }
.ve-tr__demo b { position: absolute; inset: 0; }
.ve-tr__demo b:first-child { background: linear-gradient(135deg, #D2A24C, #8C6224); }
.ve-tr__demo b:last-child { background: linear-gradient(135deg, #2F6F7E, #0A0E13); animation: 2.4s ease-in-out infinite both; }
.ve-tr__demo--default b:last-child { animation-name: tr-fade; }
[data-demo="cut"] b:last-child { animation-name: tr-cut; animation-timing-function: steps(1); }
[data-demo="fade"] b:last-child, [data-demo="dissolve"] b:last-child { animation-name: tr-fade; }
[data-demo="fadeblack"] { background: #000; }
[data-demo="fadeblack"] b:first-child { animation: tr-out 2.4s ease-in-out infinite; }
[data-demo="fadeblack"] b:last-child { animation-name: tr-late; }
[data-demo="fadewhite"] { background: #fff; }
[data-demo="fadewhite"] b:first-child { animation: tr-out 2.4s ease-in-out infinite; }
[data-demo="fadewhite"] b:last-child { animation-name: tr-late; }
[data-demo="fadegrays"] b:last-child { animation-name: tr-gray; }
[data-demo="smoothleft"] b:last-child, [data-demo="coverleft"] b:last-child { animation-name: tr-left; }
[data-demo="slideleft"] b:first-child { animation: tr-left-out 2.4s ease-in-out infinite; }
[data-demo="slideleft"] b:last-child { animation-name: tr-left; }
[data-demo="revealright"] b:first-child { z-index: 1; animation: tr-left-out 2.4s ease-in-out infinite; }
[data-demo="revealright"] b:last-child { animation: none; }
[data-demo="slideup"] b:last-child { animation-name: tr-up; }
[data-demo="wipeleft"] b:last-child { animation-name: tr-wipe; }
[data-demo="circleopen"] b:last-child, [data-demo="radial"] b:last-child { animation-name: tr-circle; }
[data-demo="diagtl"] b:last-child { animation-name: tr-diag; }
[data-demo="zoomin"] b:last-child { animation-name: tr-zoom; }
[data-demo="pixelize"] b:last-child, [data-demo="hblur"] b:last-child { animation-name: tr-blur; }
@keyframes tr-cut { 0%, 50% { opacity: 0; } 50.01%, 100% { opacity: 1; } }
@keyframes tr-fade { 0%, 25% { opacity: 0; } 60%, 100% { opacity: 1; } }
@keyframes tr-out { 0%, 20% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes tr-late { 0%, 50% { opacity: 0; } 75%, 100% { opacity: 1; } }
@keyframes tr-gray { 0%, 25% { opacity: 0; filter: grayscale(1); } 60% { opacity: 1; filter: grayscale(1); } 85%, 100% { opacity: 1; filter: none; } }
@keyframes tr-left { 0%, 25% { transform: translateX(100%); } 65%, 100% { transform: none; } }
@keyframes tr-left-out { 0%, 25% { transform: none; } 65%, 100% { transform: translateX(-100%); } }
@keyframes tr-up { 0%, 25% { transform: translateY(100%); } 65%, 100% { transform: none; } }
@keyframes tr-wipe { 0%, 25% { clip-path: inset(0 0 0 100%); } 65%, 100% { clip-path: inset(0); } }
@keyframes tr-circle { 0%, 25% { clip-path: circle(0 at 50% 50%); } 65%, 100% { clip-path: circle(75% at 50% 50%); } }
@keyframes tr-diag { 0%, 25% { clip-path: polygon(0 0, 0 0, 0 0); } 65%, 100% { clip-path: polygon(0 0, 220% 0, 0 220%); } }
@keyframes tr-zoom { 0%, 25% { opacity: 0; transform: scale(.4); } 65%, 100% { opacity: 1; transform: none; } }
@keyframes tr-blur { 0%, 25% { opacity: 0; filter: blur(8px); } 65%, 100% { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .ve-tr__demo b { animation: none !important; } }

/* text style buttons */
.ve-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ve-style--neon b { font: 800 1.1rem/1 'Big Shoulders', sans-serif; text-transform: uppercase; color: #fff; text-shadow: 0 0 6px #F1D594, 0 0 14px #D2A24C; }
.ve-style--marker b { padding: 0 4px; background: rgba(210, 162, 76, .92); color: #0A0E13; font: 800 .82rem/1.3 Archivo, sans-serif; }
.ve-style--pop3d b { font: 900 1.15rem/1 'Big Shoulders', sans-serif; text-transform: uppercase; color: #fff; text-shadow: 1px 1px 0 #6E1F22, 2px 2px 0 #6E1F22, 3px 3px 0 #6E1F22; }
.ve-style--pill b { padding: 3px 10px; border-radius: 999px; background: #6E1F22; color: #fff; font: 700 .7rem/1.3 Archivo, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.ve-style--caption b { display: block; padding: 4px 6px; background: rgba(0, 0, 0, .62); color: #fff; font: 700 .76rem/1.25 Archivo, sans-serif; }
.ve-style--gradient b { font: 900 1.15rem/1 'Big Shoulders', sans-serif; text-transform: uppercase; background: linear-gradient(90deg, #D2A24C, #E3B2B8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* music picker: close button always top-right, tabs below on phones */
.ve-mp__head { position: relative; flex-wrap: wrap; padding-right: 58px; }
.ve-mp__x { position: absolute; top: 12px; right: 14px; }
.ve-mp__head .ve-mp__tabs { margin-right: 0; }
@media (max-width: 560px) { .ve-mp__head .ve-mp__tabs { flex-basis: 100%; } .ve-mp__head .ve-mp__tabs button { flex: 1; } }
.ve-mp__empty { display: grid; gap: 4px; margin-top: 12px; padding: 18px; border-radius: 12px; background: #F6F7F4; box-shadow: inset 0 0 0 1px dashed var(--line); border: 1px dashed var(--line-2); text-align: center; }
.ve-mp__empty span { color: var(--muted); font-size: .85rem; }

/* ===== Video editor v3 ===== */
/* timeline rows stack; every row names itself on the left */
.ve-tl > .ve-tl__scroll { margin-top: 2px; }
.ve-tl__scroll .ve-tl__tracks { display: flex; flex-direction: column; gap: 6px; }
.ve-tl__tracks > .ve-tl__ruler { height: 18px; flex: none; }
.ve-tl__row--clips { height: 58px; flex: none; }
.ve-tl__row--texts { min-height: 30px; }
.ve-tl__row--subs { height: 22px; flex: none; }
.ve-tl__row--music { height: 34px; flex: none; }
.ve-tl__row--voice { height: 30px; flex: none; }
.ve-tl__row[data-label]::before { content: attr(data-label); position: absolute; z-index: 4; left: 4px; top: -1px; padding: 0 4px; border-radius: 3px; background: rgba(255, 255, 255, .82); color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .02em; pointer-events: none; }
.ve-tl__row--clips[data-label]::before { top: auto; bottom: 2px; left: auto; right: 4px; }
.ve-tl__row--subs i { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: #4C6BFF; opacity: .75; cursor: pointer; }
.ve-tl__row--subs i:hover { opacity: 1; }
.ve-vbar { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; background: #1F2A44 0 50% / 100% 100% no-repeat; box-shadow: inset 0 0 0 1px #4C6BFF; cursor: grab; overflow: hidden; }
.ve-vbar span { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); padding: 0 5px; border-radius: 3px; background: rgba(10, 14, 19, .75); color: #fff; font-size: .66rem; font-weight: 700; }
.ve-tclip--cmp { background-size: 50% 100% !important; background-repeat: repeat-x !important; }
.ve-tclip.is-lifted { transform: translateY(-6px) scale(1.04); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5), inset 0 0 0 3px var(--primary); z-index: 5; }
.ve-tclip.is-drop { box-shadow: inset 4px 0 0 #FF4FA3; }
.ve-tbar--sticker { background: #EAF0FF; box-shadow: inset 0 0 0 1px #9DB0FF; color: var(--primary-deep); }

/* preview layers: before/after canvas, blur zones */
.ve-frame__cmp { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ve-frame__blurs { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ve-blur { position: absolute; border-radius: 6px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgba(255, 255, 255, .02); }
.ve-blur.is-edit { pointer-events: auto; outline: 2px dashed #4C6BFF; cursor: move; touch-action: none; }
.ve-blur__h { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 2px #4C6BFF; cursor: nwse-resize; }
.ve-blur:not(.is-edit) .ve-blur__h { display: none; }
.ve-frame__overlay { z-index: 3; }
.ve-frame__exact { z-index: 2; }

/* panels: titles with a help link */
.ve-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ve-panel__head .ve-h { margin-bottom: 8px; }
.ve-panel > .ve-panel__head:first-child .ve-h { margin-top: 0; }
.ve-help { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-tint); color: var(--primary-deep); font-size: .8rem; font-weight: 800; text-decoration: none; }
.ve-help:hover { background: var(--primary); color: #fff; }
.ve-subs { display: grid; gap: 8px; }
@media (min-width: 560px) { .ve-subs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ve-subs .field { margin: 0; }
.ve-stickers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ve-stickers button { display: grid; place-items: center; aspect-ratio: 1; padding: 4px; border: 0; border-radius: 10px; background: #0F1318; cursor: pointer; }
.ve-stickers button:hover { outline: 2px solid var(--primary); }
.ve-stickers canvas { width: 100%; height: auto; }
.ve-stickers__logo { grid-column: 1 / -1; aspect-ratio: auto !important; padding: 10px !important; background: #F1F2EF !important; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 650; }
.ve-chip__x { margin-left: 4px; padding: 0 2px; border: 0; background: none; color: var(--danger); font-weight: 800; cursor: pointer; }
.ve-voices { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.ve-voice { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #F1F2EF; font-size: .82rem; }
.ve-voice .ve-range--mini { grid-column: 1; margin: 0; grid-template-columns: 70px minmax(0, 1fr); }
.ve-voice .icon-btn { grid-column: 2; grid-row: 1 / span 2; }
.ve-rec.is-rec { background: var(--danger); color: #fff; animation: rec-pulse 1.2s ease-in-out infinite; }
@keyframes rec-pulse { 50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, .25); } }
@media (prefers-reduced-motion: reduce) { .ve-rec.is-rec { animation: none; } }
.ve-mytpls { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ve-mytpl { display: inline-flex; align-items: center; gap: 2px; }
.ve-tpl__art--split { background: linear-gradient(180deg, #6B5A4A 0 49%, #fff 49% 51%, #D9B98A 51%); }
.ve-look--lut .ve-look__img i { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 4px; background: #0A0E13; color: #F1D594; font-style: normal; font-size: .62rem; font-weight: 800; }
.ve-lutup { cursor: pointer; }

/* dialogs: render (formats), quick preview, cover */
.ve-fmtchecks { display: grid; gap: 4px; margin: 6px 0 10px; }
.ve-fmtchecks .mini-check { white-space: normal; min-height: 34px; }
.ve-draft { width: min(560px, calc(100vw - 24px)); }
.ve-draft__body { display: grid; gap: 10px; padding: 16px 18px 20px; }
.ve-draft__body video { width: 100%; max-height: 70vh; border-radius: 10px; background: #0B0D12; }
.ve-coverdlg { width: min(760px, calc(100vw - 24px)); }
.ve-cover { display: grid; gap: 16px; padding: 16px 18px 20px; }
@media (min-width: 640px) { .ve-cover { grid-template-columns: 220px 1fr; } }
.ve-cover canvas { width: 100%; height: auto; max-height: 60vh; object-fit: contain; border-radius: 10px; background: #0B0D12; }

/* Help & FAQ pages */
.help { display: grid; gap: 16px; }
@media (min-width: 1000px) { .help { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } .help__toc { position: sticky; top: 16px; } }
.help__toc { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.help__search { margin: 0; }
.help__toc nav { display: grid; gap: 2px; }
.help__toc nav a { padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: .875rem; font-weight: 600; text-decoration: none; }
.help__toc nav a:hover { background: var(--primary-tint); color: var(--primary-deep); }
@media (max-width: 999px) { .help__toc nav { display: flex; flex-wrap: wrap; gap: 4px; } .help__toc nav a { background: #F1F2EF; font-size: .8rem; } }
.help__body { display: grid; gap: 14px; min-width: 0; }
.help__body .card + .card { margin-top: 0; }
.help__sec { scroll-margin-top: 16px; }
.help__sec h2 { margin: 0 0 10px; }
.help__sec ul, .help__sec ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; line-height: 1.55; }
.help__sec details { border-top: 1px solid var(--line); padding: 10px 0; }
.help__sec details summary { cursor: pointer; font-weight: 650; }
.help__sec details p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.55; }
.help__sec:target { box-shadow: 0 0 0 2px var(--primary); }
.help__none { padding: 18px; border-radius: var(--radius); background: #FFF7E6; color: #6B4A00; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* row names sit at the right edge, faint, so they never hide a bar */
.ve-tl__row[data-label]::before { left: auto; right: 4px; top: 2px; background: none; color: rgba(96, 102, 111, .55); font-size: .56rem; }
.ve-tl__row--clips[data-label]::before { display: none; }

/* subtitle look */
.ve-subslook { display: grid; gap: 10px; margin: 12px 0 4px; padding: 12px; border-radius: 12px; background: #F6F7F4; box-shadow: inset 0 0 0 1px var(--line); }
.ve-subslook .field { margin: 0; }
.ve-subpresets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .ve-subpresets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ve-subpresets button { display: grid; gap: 4px; padding: 4px 4px 6px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: .72rem; font-weight: 650; cursor: pointer; }
.ve-subpresets canvas { width: 100%; height: auto; border-radius: 6px; }
.ve-subpresets button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--primary); }

/* client reviews */
.rv-list { display: grid; gap: 12px; }
@media (min-width: 1100px) { .rv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-card { display: grid; gap: 10px; align-content: start; }
.rv-card form:first-child { display: grid; gap: 10px; }
.rv-card--pending { box-shadow: inset 4px 0 0 #E8A33D, 0 0 0 1px var(--line); }
.rv-card__meta { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px; }
@media (max-width: 480px) { .rv-card__meta { grid-template-columns: 1fr; } }
.rv-card .field { margin: 0; }
.rv-card__who { margin: 0; }
.rv-card__text { margin: 0; padding: 12px 14px; border-radius: 10px; background: #F6F7F4; white-space: pre-line; line-height: 1.5; }
.rv-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-card__actions form { margin: 0; }
.rv-card__meta { align-items: start; }

/* dashboard: attention + income */
.attn { padding-bottom: 8px; }
.attn__list { list-style: none; margin: 8px -22px 0; padding: 0; }
.attn__list li + li { border-top: 1px solid var(--line); }
.attn__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 22px; text-decoration: none; color: inherit; }
.attn__row:hover { background: #FAFBF9; }
.attn__n { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 12px; font-size: 1.05rem; font-weight: 750; }
.attn__row--warn .attn__n { background: #FFF0D6; color: #8A5A00; }
.attn__row--new .attn__n { background: var(--primary-tint); color: var(--primary-deep); }
.attn__main { display: grid; gap: 2px; min-width: 0; }
.attn__main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attn__go { color: var(--primary); font-weight: 700; }
.attn-ok { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #E8F5EC; color: #1F6B3A; font-weight: 600; }

.money { display: grid; gap: 8px; text-decoration: none; color: inherit; margin-bottom: 16px; }
.money:hover { box-shadow: 0 0 0 2px var(--primary); }
.money__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.money__label { color: var(--muted); font-weight: 600; }
.money__n { font-size: clamp(2.2rem, 7vw, 3rem); font-weight: 750; font-stretch: 80%; line-height: 1; }
.money__vs { margin: 0; color: var(--ink-2); font-size: .9rem; }
.money__bar { position: relative; display: flex; height: 12px; border-radius: 99px; background: #EEF0EC; overflow: visible; margin: 6px 0 4px; }
.money__bar i { display: block; height: 100%; }
.money__done { background: var(--primary); border-radius: 99px 0 0 99px; }
.money__exp { background: repeating-linear-gradient(135deg, #A9B4FF 0 6px, #C9D0FF 6px 12px); border-radius: 0 99px 99px 0; }
.money__mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink, #111); border-radius: 2px; }
.money__facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: .875rem; color: var(--muted); }
@media (min-width: 900px) { .money__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.money__facts b { display: block; color: var(--ink, #111); font-size: 1.05rem; }
.money__more { color: var(--primary); font-weight: 650; }
.trend { padding: 3px 10px; border-radius: 99px; font-weight: 750; font-size: .85rem; white-space: nowrap; }
.trend--up { background: #E3F4E8; color: #1F6B3A; }
.trend--down { background: #FDECEA; color: #A23A2F; }

.did { margin: 0 -22px; }
.did__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 22px; }
.did__who { display: grid; min-width: 0; text-decoration: none; color: inherit; }
.did__who small { color: var(--muted); }
.did__form { display: flex; align-items: center; gap: 6px; margin: 0; }
.did__price { display: flex; align-items: center; gap: 4px; }
.did__price input { width: 76px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; font: inherit; text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* income page */
.inc-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; }
.inc-nav__now { font-size: 1.2rem; padding: 0 6px; }
.inc-nav__today { color: var(--primary); font-weight: 650; }
@media (min-width: 900px) { .inc-stats { grid-template-columns: repeat(3, 1fr); } }
.stat__s { color: var(--muted); font-size: .8rem; }
.stat--money .stat__n { color: var(--primary-deep); }
.stat__l .trend { margin-left: 4px; font-size: .75rem; padding: 2px 8px; }
.inc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--muted); margin: 6px 0 10px; }
.inc-legend span::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.inc-legend__cur::before { background: var(--primary); }
.inc-legend__prev::before { background: #A0A6AE; }
.inc-legend__fc::before { background: repeating-linear-gradient(90deg, #E8A33D 0 5px, transparent 5px 9px); }
.inc-chart { position: relative; height: 220px; padding-left: 56px; }
.inc-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.inc-chart__grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.inc-chart__fc { stroke: #E8A33D; stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.inc-chart__prev { fill: none; stroke: #A0A6AE; stroke-width: 2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.inc-chart__cur { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.inc-chart__y { position: absolute; left: 0; top: 0; bottom: 0; width: 52px; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0 50px; font-size: .72rem; color: var(--muted); text-align: right; }
.inc-chart + .bars__axis { padding-left: 56px; }
.inc-year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 190px; }
.inc-year__col { display: grid; grid-template-rows: auto 1fr auto; gap: 4px; text-decoration: none; color: var(--muted); text-align: center; font-size: .72rem; border-radius: 8px; padding: 2px; }
.inc-year__col:hover { background: #F4F5F2; }
.inc-year__bar { display: flex; align-items: flex-end; justify-content: center; }
.inc-year__bar i { display: block; width: min(30px, 70%); min-height: 2px; background: #C9CEFF; border-radius: 6px 6px 2px 2px; }
.inc-year__col.is-now .inc-year__bar i { background: var(--primary); }
.inc-year__col.is-now { color: var(--ink); font-weight: 700; }
.inc-year__v { min-height: 1em; font-weight: 650; color: var(--ink-2); }
.inc-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inc-rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .92rem; }
.inc-rank__name small { color: var(--muted); }
.inc-rank li i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 99px; background: var(--primary); opacity: .8; }
.inc-rank--sub { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.inc-rank--sub li i { background: #A0A6AE; }
.inc-visits summary { cursor: pointer; list-style: none; }
.inc-visits summary h2 { display: inline; }
.inc-visits summary::after { content: " ▾"; color: var(--muted); }
.inc-visits[open] .list { margin: 12px -22px -22px; }
@media (max-width: 600px) { .inc-year__v { font-size: .6rem; writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; min-height: 2.4em; } }

/* client suggestions (booking form) */
.ac__list { position: absolute; z-index: 60; margin: 0; padding: 6px; list-style: none; background: var(--panel); border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -12px rgba(11, 13, 18, .28); max-height: 340px; overflow: auto; }
.ac__item { display: grid; gap: 1px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.ac__item span { font-size: .875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.ac__item small { font-size: .78rem; color: var(--muted); }
.ac__item:hover, .ac__item.is-active { background: var(--primary-tint); }
.ac__known { color: var(--ok); font-weight: 600; margin: 4px 0 0; }
.ac > label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }

/* clients */
.cl-search { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cl-search input[type=search] { flex: 1 1 260px; min-height: 48px; font-size: 1rem; }
.cl-search select { flex: 0 1 220px; width: auto; }
.cl-new { margin-bottom: 16px; }
@media (min-width: 900px) { .cl-new .grid3 { grid-template-columns: repeat(3, 1fr); } }
.cl-count { margin: 0 0 8px; }
.cl-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.cl-list li + li { border-top: 1px solid var(--line); }
.cl-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 18px; text-decoration: none; color: inherit; }
.cl-row:hover { background: #FAFBF9; }
.cl-ava { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary-deep); font-weight: 750; font-size: 1.2rem; }
.cl-ava img { width: 100%; height: 100%; object-fit: cover; }
.cl-main { display: grid; gap: 1px; min-width: 0; }
.cl-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-last b { color: var(--primary-deep); font-weight: 650; }
.cl-side { display: grid; justify-items: end; gap: 0; font-size: .8rem; color: var(--muted); }
.cl-side b { font-size: 1.15rem; color: var(--ink); line-height: 1; }
.cl-spent { font-weight: 650; color: var(--ink-2); }
.cl-ph { color: var(--primary); }
@media (max-width: 560px) { .cl-row { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 10px 14px; gap: 10px; } .cl-ava { width: 44px; height: 44px; } .cl-spent { display: none; } }
@media (min-width: 900px) { .cl-stats { grid-template-columns: repeat(4, 1fr); } }
.ac__card { margin: 0 0 10px; font-size: .9rem; }
.ac__card a { color: var(--primary); font-weight: 650; }

/* client media */
.cm-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cm-grid--small { grid-template-columns: repeat(auto-fill, minmax(64px, 84px)); gap: 6px; margin-top: 8px; }
.cm-item { display: grid; gap: 4px; min-width: 0; }
.cm-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #E9EBE6; color: var(--muted); font: inherit; font-size: .78rem; cursor: zoom-in; }
.cm-grid--small .cm-thumb { border-radius: 9px; }
.cm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-thumb:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.cm-thumb--wait { cursor: progress; animation: cm-pulse 1.4s ease-in-out infinite; }
.cm-thumb--err { background: #FDECEA; color: var(--danger); cursor: default; }
@keyframes cm-pulse { 50% { opacity: .55; } }
.cm-play { position: absolute; inset: auto auto 6px 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(11, 13, 18, .7); color: #fff; font-size: .7rem; }
.cm-cap { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-up { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.cm-up__btn { cursor: pointer; }
.cm-up__cap { flex: 1 1 220px; }
.cm-up__prog { flex: 1 1 100%; display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.cm-up__prog .is-error { color: var(--danger); }
.upbar { height: 8px; border-radius: 99px; background: #E4E6E1; overflow: hidden; }
.upbar i { display: block; height: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.cm-visit { max-width: 420px; margin-bottom: 0; }
.cm-view { width: min(1100px, 100vw); height: min(92dvh, 100dvh); max-width: 100vw; max-height: 100dvh; padding: 0; border: 0; border-radius: 16px; background: #0B0D12; color: #fff; overflow: hidden; }
.cm-view[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.cm-view::backdrop { background: rgba(11, 13, 18, .82); }
.cm-view__stage { display: grid; place-items: center; min-height: 0; padding: 8px; }
.cm-view__stage img, .cm-view__stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.cm-view__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: #151821; }
.cm-view__bar input[type=text] { flex: 1 1 180px; }
.cm-view__bar input[type=date] { width: auto; }
.cm-view__bar .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.cm-view__x { margin-left: auto; color: #fff; background: rgba(255, 255, 255, .12); }
.cm-view__nav { position: absolute; top: 40%; width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; cursor: pointer; }
.cm-view__nav--prev { left: 10px; }
.cm-view__nav--next { right: 10px; }
@media (max-width: 600px) { .cm-view { border-radius: 0; height: 100dvh; } .cm-view__nav { display: none; } }

/* client history on the booking page */
.ch__note { margin: 6px 0 12px; padding: 12px 14px; border-radius: 12px; background: #FFF6E5; }
.ch__note p { margin: 4px 0 0; white-space: pre-line; }
.ch__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ch__visit { padding: 12px 0; }
.ch__visit + .ch__visit { border-top: 1px solid var(--line); }
.ch__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.ch__meta { color: var(--muted); display: block; margin-top: 2px; }
.ch__loose { margin: 14px 0 0; font-weight: 650; font-size: .9rem; }
.cm-view__bar input { color: var(--ink); background: #fff; }

/* "Kas naujo" */
.news { display: grid; gap: 6px; margin-bottom: 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); box-shadow: none; }
.news:hover { filter: brightness(1.06); }
.news__tag { justify-self: start; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); font-size: .8rem; font-weight: 700; }
.news__title { font-size: 1.3rem; line-height: 1.2; }
.news__sum { color: rgba(255, 255, 255, .88); }
.news__more { color: rgba(255, 255, 255, .72); font-size: .875rem; }
.news__go { font-weight: 700; margin-top: 4px; }
.upd { display: grid; gap: 16px; }
.upd-item { scroll-margin-top: 80px; }
.upd-item__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.upd-item__head h2 { margin: 0; }
.upd-item__date { color: var(--muted); font-size: .85rem; }
.upd-item__sum { font-size: 1.02rem; color: var(--ink-2); margin: 8px 0 4px; }
.upd-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; }
.upd-steps li { padding: 14px 16px; border-radius: 12px; background: #F6F7F4; }
.upd-steps h3 { margin: 0 0 4px; font-size: 1rem; }
.upd-steps p { margin: 6px 0 0; line-height: 1.55; }
.upd-steps a { display: inline-block; margin-top: 8px; color: var(--primary); font-weight: 650; }
.upd-item.is-new { box-shadow: 0 0 0 2px var(--primary); }

/* ---------- Foto studija: editor ---------- */
.pe-page .main { max-width: none; padding: 10px 10px 0; }
.pe { display: grid; grid-template-rows: auto minmax(0, 52dvh) auto auto; gap: 8px; }
@media (min-width: 1000px) {
  .pe { height: calc(100dvh - 10px); grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto auto minmax(0, 1fr); }
  .pe-bar { grid-column: 1 / -1; }
  .pe-stage { grid-column: 1; grid-row: 2 / 4; }
  .pe-tabs { grid-column: 2; grid-row: 2; }
  .pe-panels { grid-column: 2; grid-row: 3; overflow: auto; }
}
.pe-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pe-bar__back { color: var(--muted); text-decoration: none; font-weight: 600; }
.pe-bar__name { flex: 1 1 140px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-bar__tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pe-before { touch-action: none; user-select: none; -webkit-user-select: none; }
.pe-stage { position: relative; overflow: hidden; border-radius: 14px; background: #10141B; display: grid; place-items: center; touch-action: none; min-height: 280px; }
.pe-stage.is-brush { cursor: none; }
.pe-view { position: relative; transform-origin: center center; }
.pe-gl, .pe-ov { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pe-ov { pointer-events: none; }
.pe-brush { position: absolute; left: 0; top: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .4); pointer-events: none; z-index: 5; }
.pe-busy { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(11, 13, 18, .82); color: #fff; font-size: .85rem; z-index: 6; }
.pe-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: pe-spin .8s linear infinite; }
@keyframes pe-spin { to { transform: rotate(360deg); } }
.pe-err { color: #fff; padding: 24px; text-align: center; }
.pe-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(11, 13, 18, .7); z-index: 6; }
.pe-zoom .icon-btn, .pe-zoom__v { color: #fff; background: transparent; border: 0; min-width: 34px; height: 34px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.pe-zoom .icon-btn:hover, .pe-zoom__v:hover { background: rgba(255, 255, 255, .14); }
.pe-crop { position: absolute; inset: 0; z-index: 4; }
.pe-crop__box { position: absolute; box-shadow: 0 0 0 9999px rgba(8, 10, 14, .62); outline: 2px solid #fff; cursor: move; touch-action: none; }
.pe-crop__grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, transparent 33.2%, rgba(255, 255, 255, .45) 33.2% 33.5%, transparent 33.5% 66.5%, rgba(255, 255, 255, .45) 66.5% 66.8%, transparent 66.8%), linear-gradient(180deg, transparent 33.2%, rgba(255, 255, 255, .45) 33.2% 33.5%, transparent 33.5% 66.5%, rgba(255, 255, 255, .45) 66.5% 66.8%, transparent 66.8%); }
.pe-crop__box b { position: absolute; width: 22px; height: 22px; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.pe-crop__box b[data-h="nw"] { left: -11px; top: -11px; cursor: nwse-resize; }
.pe-crop__box b[data-h="ne"] { right: -11px; top: -11px; cursor: nesw-resize; }
.pe-crop__box b[data-h="sw"] { left: -11px; bottom: -11px; cursor: nesw-resize; }
.pe-crop__box b[data-h="se"] { right: -11px; bottom: -11px; cursor: nwse-resize; }
.pe-crop__box b[data-h="n"], .pe-crop__box b[data-h="s"] { left: calc(50% - 16px); width: 32px; height: 8px; cursor: ns-resize; }
.pe-crop__box b[data-h="n"] { top: -4px; }
.pe-crop__box b[data-h="s"] { bottom: -4px; }
.pe-crop__box b[data-h="w"], .pe-crop__box b[data-h="e"] { top: calc(50% - 16px); width: 8px; height: 32px; cursor: ew-resize; }
.pe-crop__box b[data-h="w"] { left: -4px; }
.pe-crop__box b[data-h="e"] { right: -4px; }
.pe-splitline { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .6); pointer-events: none; z-index: 3; }
.pe-splitline span { position: absolute; top: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(11, 13, 18, .75); color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pe-splitline span:first-child { right: 8px; }
.pe-splitline span:last-child { left: 8px; }
.pe-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pe-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .pe-tabs { flex-wrap: wrap; overflow: visible; } }
.pe-tabs button { flex: none; padding: 9px 13px; border: 0; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-weight: 650; font-size: .875rem; cursor: pointer; }
.pe-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.pe-panels { background: var(--panel); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 14px; padding-bottom: 90px; }
@media (min-width: 1000px) { .pe-panels { padding-bottom: 14px; } }
.pe-panel { display: grid; gap: 12px; align-content: start; }
.pe-h { margin: 6px 0 0; font-size: .95rem; }
.pe-sl { display: grid; gap: 4px; margin: 0; }
.pe-sl__top { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.pe-sl output { color: var(--muted); font-variant-numeric: tabular-nums; }
.pe-sl input[type=range] { width: 100%; accent-color: var(--primary); height: 28px; }
.pe-sl .hint { margin: 0; }
.pe-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pe-row--fill .pe-sl { flex: 1 1 180px; }
.pe-row--fill input[type=color] { width: 46px; height: 38px; padding: 2px; }
.pe-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-chips button { padding: 7px 12px; border: 0; border-radius: 99px; background: #F1F2EE; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.pe-chips button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.pe-auto { justify-self: start; }
.pe-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) and (max-width: 999px) { .pe-presets { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pe-presets button { display: grid; gap: 4px; padding: 3px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: .75rem; font-weight: 650; cursor: pointer; text-align: center; }
.pe-presets img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: #E9EBE6; }
.pe-presets button[aria-pressed="true"] img { outline: 3px solid var(--primary); outline-offset: 1px; }
.pe-hsl { display: flex; gap: 8px; flex-wrap: wrap; }
.pe-hsl button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; }
.pe-hsl button[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.pe-hsl__name { margin: 0; font-weight: 650; }
.pe-ai { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: .85rem; font-weight: 600; background: #EEF0FF; color: var(--primary-deep); }
.pe-ai[data-state="ready"] { background: #E8F5EC; color: #1F6B3A; }
.pe-ai[data-state="error"], .pe-ai[data-state="none"] { background: #FFF0D6; color: #8A5A00; }
.pe-layer { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: #F6F7F4; }
.pe-layer .field { margin: 0; }
.pe-collage { width: 100%; height: auto; border-radius: 10px; background: #0A0E13; }
.pe-dlg { width: min(520px, calc(100vw - 24px)); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.pe-dlg::backdrop { background: rgba(11, 13, 18, .55); }
.pe-dlg__in { display: grid; gap: 14px; padding: 20px; }
.pe-dlg__in h2 { margin: 0; }
.pe-dlg__opts { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.pe-opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.pe-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-tint); }
.pe-opt span { display: grid; gap: 2px; }
.pe-opt small { color: var(--muted); }
.pe-dlg__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-dlg__prog { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.pe-dlg__prog .is-error { color: var(--danger); }
.pe-pick { width: min(900px, calc(100vw - 24px)); }
.pe-pick__head { display: flex; justify-content: space-between; align-items: center; }
.pe-pick__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 65dvh; overflow: auto; }
.pe-pick__grid button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; display: block; width: 100%; aspect-ratio: 1; background: #E9EBE6; }
.pe-pick__grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; margin: 0; padding: 12px 18px; border-radius: 12px; background: #1F6B3A; color: #fff; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); }

/* ---------- Foto studija: library ---------- */
.ph-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.ph-tools input[type=search] { flex: 1 1 220px; }
.ph-albums { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ph-albums a { padding: 7px 12px; border-radius: 99px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; font-weight: 600; font-size: .85rem; }
.ph-albums a[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
.ph-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph-item a { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: #E9EBE6; }
.ph-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.ph-item a:hover img { transform: scale(1.04); }
.ph-item__edit { position: absolute; left: 8px; bottom: 8px; padding: 5px 10px; border-radius: 8px; background: rgba(11, 13, 18, .75); color: #fff; font-size: .78rem; font-weight: 700; }
.ph-item__tag { position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 99px; background: #E3F4E8; color: #1F6B3A; font-size: .7rem; font-weight: 700; }
.ph-item__name { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item__edit { color: var(--primary); font-weight: 650; font-size: .8rem; }
@media (max-width: 999px) {
  .pe { grid-template-rows: auto 44dvh auto auto; }
  .pe-stage { position: sticky; top: 64px; z-index: 8; min-height: 0; height: 44dvh; box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .45); }
  .pe-tabs { position: sticky; top: calc(64px + 44dvh); z-index: 7; background: var(--bg); padding: 6px 2px; margin: -2px 0 0; }
}
@media (max-width: 599px) {
  .pe-bar__name { display: none; }
  .pe-bar { flex-wrap: nowrap; }
  .pe-bar__tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
  .pe-bar__tools a[href="/photos/help"] { display: none; }
}

/* video editor: tidy transport and spacing (phones) */
.ve-transport { display: grid; gap: 8px; margin: 10px 0 14px; }
.ve-transport__main { display: flex; align-items: center; gap: 8px; }
.ve-transport__main .btn { min-height: 44px; }
.ve-transport__play { min-width: 112px; justify-content: center; }
.ve-transport__time { margin-left: auto; font-size: 1rem; }
.ve-transport__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ve-sound { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-size: .875rem; cursor: pointer; }
.ve-sound input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; }
@media (max-width: 480px) {
  .ve-transport__main .btn--ghost { padding-inline: 12px; }
  .ve-transport__more .btn { flex: 1 1 auto; }
}
.ve-subs__lead { margin: 0 0 10px; }
.ve-subs { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.ve-subs__make { min-height: 44px; }
@media (max-width: 480px) { .ve-subs { grid-template-columns: 1fr; } .ve-subs__make { width: 100%; justify-content: center; } }
.ve-panel__head { margin-top: 22px; }
.ve-panel > .ve-panel__head:first-child { margin-top: 0; }
.ve-panel .row-actions { margin: 10px 0; }
.ve-panel .ve-field + .ve-field, .ve-panel .ve-field + .field, .ve-panel .field + .ve-field { margin-top: 12px; }
.ve-transport__time { white-space: nowrap; }
.ve-textedit__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: var(--primary-tint); }
.ve-textedit__title { font-weight: 700; font-size: .875rem; color: var(--primary-deep); }
.ve-textedit__acts { margin: 0 !important; }
.ve-textedit { scroll-margin-top: 84px; }

/* Klipas pagal dainą */
.ve-mc { display: grid; gap: 10px; padding: 14px; margin-bottom: 18px; border-radius: 14px; background: linear-gradient(160deg, #EEF0FF 0%, #F7F7FB 70%); box-shadow: inset 0 0 0 1px #D9DDFF; }
.ve-mc .ve-panel__head { margin-top: 0; }
.ve-mc .hint { margin: 0; }
.ve-mc .field { margin: 0; }
.ve-mc__title { color: var(--primary-deep); }
.ve-mc__song { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
@media (max-width: 480px) { .ve-mc__song { grid-template-columns: 1fr; } }
.ve-mc__run { min-height: 48px; font-size: 1rem; }
.ve-mc__map { display: grid; gap: 6px; }
.ve-mc__bar { position: relative; height: 22px; border-radius: 6px; background: #E4E6E1; overflow: hidden; }
.ve-mc__bar i { position: absolute; top: 0; bottom: 0; border-right: 1px solid rgba(255, 255, 255, .7); }
.ve-mc__bar b { position: absolute; top: -2px; bottom: -2px; border: 2px solid var(--ink); border-radius: 5px; box-shadow: 0 0 0 9999px rgba(255, 255, 255, .35); }
.ve-mc__legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .75rem; color: var(--muted); }
.ve-mc__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: currentColor; }
.is-chorus { color: #E5484D; } .ve-mc__bar .is-chorus { background: #E5484D; }
.is-verse { color: #6C7BFF; } .ve-mc__bar .is-verse { background: #8E9AFF; }
.is-build { color: #F28A2E; } .ve-mc__bar .is-build { background: #F2A55E; }
.is-intro, .is-outro { color: #A0A6AE; } .ve-mc__bar .is-intro, .ve-mc__bar .is-outro { background: #C3C7CC; }
.ve-mc__legend .is-used::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.ve-mc__legend .is-used { color: var(--ink-2); }
.ve-mc__song { grid-template-columns: 1fr !important; }

/* ---------------------------------------------------------------- Tapmories: albums, codes */
.tm-new { display: grid; gap: 12px; align-items: end; }
@media (min-width: 900px) { .tm-new { grid-template-columns: 2fr 1fr 1fr auto; } }
.tm-albums { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 18px; }
.tm-album { display: grid; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .2s var(--ease); }
.tm-album:hover { border-color: var(--line-2); }
.tm-album__img { aspect-ratio: 4 / 3; background: #E4E6E1; }
.tm-album__img img { width: 100%; height: 100%; object-fit: cover; }
.tm-album__body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.tm-album__body small { color: var(--muted); }
.tm-album__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.tm-code { letter-spacing: .12em; font-size: .95rem; }

.tm-drop { display: grid; gap: 4px; place-items: center; text-align: center; padding: 28px 18px; border: 2px dashed var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.tm-drop span { color: var(--muted); font-size: .9rem; max-width: 52ch; }
.tm-drop:hover, .tm-drop.is-over { border-color: var(--primary); background: var(--primary-tint); }
.tm-upbar { display: grid; gap: 6px; margin-top: 12px; font-size: .9rem; }
.tm-upbar .btn { justify-self: start; }
.tm-meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tm-meter i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .3s var(--ease); }
.tm-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 6px; }
.tm-tools > span { margin-right: auto; color: var(--muted); font-size: .9rem; }
.tm-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.tm-ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #E4E6E1; cursor: pointer; user-select: none; }
.tm-ph img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.tm-ph.is-hidden img { opacity: .3; filter: grayscale(1); }
.tm-ph.is-picked { box-shadow: 0 0 0 3px var(--primary); }
.tm-ph.is-picked img { transform: scale(.92); }
.tm-ph.is-drag { opacity: .4; }
.tm-ph__star { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(11, 13, 18, .5); color: rgba(255, 255, 255, .75); font-size: 15px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.tm-ph:hover .tm-ph__star, .tm-ph.is-cover .tm-ph__star { opacity: 1; }
.tm-ph.is-cover .tm-ph__star { background: #F5B301; color: #fff; }
.tm-ph__check { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: rgba(11, 13, 18, .25); }
.tm-ph.is-picked .tm-ph__check { background: var(--primary); }
.tm-ph.is-picked .tm-ph__check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (hover: none) { .tm-ph__star { opacity: 1; } }
.tm-video { display: grid; gap: 10px; margin-bottom: 18px; justify-items: start; }
.tm-video video { width: min(100%, 640px); border-radius: 10px; background: #000; }
.tm-addcode { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 14px; }
