/* Guloxy Cloud — интерфейс диска. Токены и примитивы живут в base.css. */

/* ---------------------------------------------------------------- auth */

/* Сплит: слева тёмная колонка-витрина, справа форма на фоне интерфейса.
   Форма не по центру пустого экрана — у неё есть контекст. */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; min-height: 100dvh; }

.auth-aside {
  position: relative; overflow: hidden;
  display: grid; align-items: center;
  padding: clamp(30px, 5vw, 66px);
  background: #06070a; color: #e9ebf2;
  border-right: 1px solid rgba(255, 255, 255, .07);
}
.auth-aside::before {
  content: ''; position: absolute; inset: -30% -20% auto -30%; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  pointer-events: none;
}
.auth-aside-in { position: relative; display: grid; gap: 30px; align-content: center; max-width: 42ch; }
.auth-aside .ds-3 { white-space: pre-line; }

.auth-points { display: grid; gap: 15px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #969cb0; }
.auth-points svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--accent-1); }

.auth-by { font-size: 13px; color: #626879; }
.auth-by b { color: #969cb0; font-weight: 550; }

.auth-wrap { position: relative; display: grid; place-items: center; padding: clamp(24px, 5vw, 54px) 20px; }
.auth-card {
  width: min(392px, 100%);
  display: grid; gap: 20px;
  animation: authIn .5s var(--ease-out) both;
}
@keyframes authIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.auth-card .head { display: grid; gap: 6px; margin-bottom: 4px; }
.auth-card .head p { font-size: 14.5px; color: var(--text-2); }
.auth-form { display: grid; gap: 14px; }
.auth-alt { font-size: 14px; color: var(--text-2); }
.auth-alt a { color: var(--accent-1); font-weight: 500; }
.auth-alt a:hover { text-decoration: underline; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-back { position: absolute; top: 20px; left: 20px; z-index: 5; }

@media (max-width: 880px) {
  /* Витрина не исчезает, а переезжает над формой — набор блоков один и тот
     же на любом экране. */
  .auth { grid-template-columns: 1fr; }
  .auth-aside { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); padding: 26px 22px; }
  .auth-aside-in { gap: 20px; max-width: none; }
  .auth-aside .ds-3 { font-size: 22px; }
  .auth-points { gap: 11px; }
  .auth-points li { font-size: 13.5px; }
  .auth-back { position: fixed; top: 14px; right: 14px; left: auto; }
}

/* ---------------------------------------------------------------- app shell */

.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; min-height: 100dvh; }

.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: grid; grid-template-rows: auto auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  gap: 16px; padding: 20px 15px;
  background: var(--bg-2); border-right: 1px solid var(--border-strong);
  z-index: 30;
}
/* На светлой теме панель и полотно почти одного тона, поэтому границу
   поддерживаем мягкой тенью — иначе шов между ними пропадает. */
[data-theme="light"] .side { box-shadow: 1px 0 0 rgba(12, 15, 32, .04), 4px 0 18px rgba(12, 15, 32, .035); }
[data-theme="light"] .nav-item.on { background: var(--panel-solid); box-shadow: var(--shadow-sm); }
.side-brand { padding: 0 7px; }

.nav { display: grid; gap: 3px; align-content: start; overflow-y: auto; min-width: 0; }
.nav-item span:not(.count) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item {
  display: flex; align-items: center; gap: 13px;
  height: 46px; padding: 0 14px; border-radius: var(--r-md);
  font-size: 14.5px; font-weight: 600; color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
  position: relative; width: 100%; text-align: left;
}
.nav-item svg { width: 20px; height: 20px; flex: 0 0 auto; }
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item:active { transform: scale(.98); }
.nav-item.on { color: var(--text); background: var(--active); }
.nav-item.on::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 3px 3px 0;
  background: var(--accent-1);
}
.nav-item .count { margin-left: auto; font-size: 12px; font-weight: 550; color: var(--text-3); }

.storage { display: grid; gap: 10px; padding: 15px; border-radius: var(--r-md); background: var(--panel-2); border: 1px solid var(--border); }
.storage-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; }
.storage-top b { font-size: 13.5px; font-weight: 550; }
.storage-top span { color: var(--text-3); }
.meter { height: 7px; border-radius: 99px; background: var(--border); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent-1); transition: width var(--t-slow) var(--ease); }
.meter.warn i { background: var(--signal); }
.storage small { font-size: 11.5px; color: var(--text-3); }

.side-user {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px; border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.side-user:hover { background: var(--hover); }
.side-user .meta { min-width: 0; text-align: left; flex: 1; }
.side-user .meta b { display: block; font-size: 13.8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .meta span { display: block; font-size: 11.8px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avatar {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-content: center; font-size: 14.5px; font-weight: 550; color: #fff;
  background: var(--accent-1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  text-transform: uppercase; user-select: none;
}
.avatar.lg { width: 62px; height: 62px; font-size: 23px; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }

.main { display: grid; grid-template-rows: auto 1fr; min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 25;
  display: flex; align-items: center; gap: 12px;
  height: var(--topbar-h); padding: 0 clamp(14px, 2.5vw, 26px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.crumbs { display: flex; align-items: center; gap: 3px; min-width: 0; flex: 1; overflow: hidden; }
.crumb {
  padding: 7px 11px; border-radius: var(--r-sm); font-size: 15.5px; font-weight: 600; letter-spacing: -.02em;
  color: var(--text-2); white-space: nowrap; transition: background var(--t-fast), color var(--t-fast);
  max-width: 240px; overflow: hidden; text-overflow: ellipsis;
}
.crumb:hover { background: var(--hover); color: var(--text); }
.crumb.last { color: var(--text); pointer-events: none; }
.crumb-sep { color: var(--text-3); flex: 0 0 auto; font-size: 15px; }

.search {
  position: relative; flex: 0 1 340px; min-width: 0;
}
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.search input {
  height: 42px; width: 100%; padding: 0 14px 0 41px; border-radius: var(--r-pill);
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  font-size: 14px;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 4px var(--accent-glow); background: transparent; }

.content { padding: clamp(16px, 2.6vw, 28px); min-width: 0; position: relative; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--border); }
.seg button { width: 34px; height: 32px; border-radius: 7px; display: grid; place-content: center; color: var(--text-3); transition: background var(--t-fast), color var(--t-fast); }
.seg button svg { width: 17px; height: 17px; }
.seg button.on { background: var(--panel-solid); color: var(--text); box-shadow: var(--shadow-sm); }

.view-title { display: flex; align-items: center; gap: 11px; }
.view-title h2 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }

/* -------- overview strip */

.ovw {
  display: grid; gap: 16px;
  padding: 16px 18px; margin-bottom: 20px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--panel-2);
}

.ovw-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ovw-tile { display: grid; gap: 2px; padding-right: 14px; border-right: 1px solid var(--border); }
.ovw-tile:last-child { border-right: 0; padding-right: 0; }
.ovw-tile b {
  font-family: var(--fd); font-size: 21px; font-weight: 600;
  letter-spacing: -.03em; line-height: 1.1;
}
.ovw-tile span { font-size: 12px; color: var(--text-3); }

.ovw-mix { display: grid; gap: 10px; }
/* Одна полоса вместо диаграммы: состав хранилища читается с одного взгляда. */
.ovw-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--border); }
.ovw-bar i { display: block; height: 100%; min-width: 2px; }
.ovw-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--text-3); }
.ovw-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ovw-legend i { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.ovw-legend b { color: var(--text-2); font-weight: 550; }

@media (max-width: 720px) {
  .ovw-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ovw-tile:nth-child(2n) { border-right: 0; padding-right: 0; }
  .ovw-tile b { font-size: 18px; }
}

/* -------- file grid */

.grid {
  display: grid; gap: 13px;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}
@media (max-width: 520px) { .grid { grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: 11px; } }

.card {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--border);
  cursor: pointer; user-select: none;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  animation: fadeUp .34s var(--ease) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card:hover { border-color: var(--border-strong); background: var(--hover); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card:active { transform: translateY(-1px) scale(.99); }
.card.sel { border-color: var(--accent-1); box-shadow: 0 0 0 2px var(--accent-glow); background: var(--active); }
.card.drag-over { border-color: var(--accent-1); background: var(--active); transform: scale(1.03); }
.card.dragging { opacity: .4; }

/* place-content: center сжимало бы дорожку грида под собственную высоту
   картинки, и вокруг превью появлялись полосы фона. Дорожка тянется,
   центрировать нужно только иконку. */
.card-thumb {
  aspect-ratio: 1 / .74; display: grid; place-content: stretch; position: relative;
  /* Цвет типа вместо нейтральной подложки: ряд плиток читается как
     ряд разных вещей, а не как одинаковые серые прямоугольники. */
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--tint, var(--text-3)) 15%, transparent),
      color-mix(in srgb, var(--tint, var(--text-3)) 4%, transparent));
  overflow: hidden;
}
.card-thumb > svg { place-self: center; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb > svg {
  width: 40px; height: 40px; color: var(--tint-ink, var(--tint, var(--text-3))); stroke-width: 1.4;
  transition: transform var(--t-mid) var(--spring);
}
.card:hover .card-thumb > svg { transform: scale(1.08); }
.card-thumb.folder > svg { fill: color-mix(in srgb, var(--accent-1) 16%, transparent); }

/* Расширение под иконкой. Тем же цветом, но приглушённо: это подпись,
   а не заголовок — имя файла остаётся главным. */
.card-ext {
  position: absolute; left: 0; right: 0; bottom: 9px;
  text-align: center; font-size: 10.5px; font-weight: 650;
  letter-spacing: .07em; color: var(--tint-ink, var(--tint, var(--text-3)));
  opacity: .82; pointer-events: none;
}
.play-badge {
  position: absolute; inset: 0; display: grid; place-content: center;
  background: rgba(0,0,0,.28);
}
.play-badge span { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.play-badge svg { width: 18px; height: 18px; color: #111; fill: #111; stroke: none; margin-left: 2px; }

.card-body { padding: 10px 12px 12px; display: grid; gap: 3px; }
.card-name {
  font-size: 13.4px; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }

.card-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; opacity: 0; transform: translateY(-4px); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease); }
.card:hover .card-actions, .card.sel .card-actions, .card-actions:focus-within { opacity: 1; transform: none; }
.card-actions button {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-content: center;
  background: color-mix(in srgb, var(--panel-solid) 88%, transparent); color: var(--text-2);
  backdrop-filter: blur(8px); border: 1px solid var(--border);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.card-actions button svg { width: 15px; height: 15px; }
.card-actions button:hover { color: var(--text); background: var(--panel-solid); transform: scale(1.08); }

.star-on { color: var(--signal) !important; }
.star-on svg { fill: var(--signal); stroke: var(--signal); }
.row .star-on { flex: 0 0 auto; display: grid; place-content: center; }
.row .star-on svg { width: 14px; height: 14px; }

.card-pick {
  position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 7px;
  border: 1.6px solid rgba(255,255,255,.6); background: rgba(0,0,0,.32); backdrop-filter: blur(6px);
  display: grid; place-content: center; opacity: 0; transform: scale(.8);
  transition: opacity var(--t-fast), transform var(--t-fast) var(--spring), background var(--t-fast);
}
.card:hover .card-pick, .card.sel .card-pick, .picking .card-pick { opacity: 1; transform: none; }
.card-pick svg { width: 14px; height: 14px; color: #fff; stroke-width: 3; opacity: 0; }
.card.sel .card-pick { background: var(--accent-1); border-color: transparent; }
.card.sel .card-pick svg { opacity: 1; }

/* -------- folders in grid */

/* Своя сетка: папке нужна ширина под имя, а не квадрат под превью. */
.grid-dirs {
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 9px; margin-bottom: 6px;
}
.card-dir {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px; border-radius: var(--r-md);
}
.card-dir:hover { transform: none; }
.card-dir:active { transform: scale(.995); }
.dir-ico {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px;
  display: grid; place-content: center;
  background: color-mix(in srgb, var(--accent-1) 14%, transparent);
}
.dir-ico svg { width: 18px; height: 18px; color: var(--accent-1); fill: color-mix(in srgb, var(--accent-1) 18%, transparent); }
.dir-name {
  flex: 1; min-width: 0; font-size: 13.8px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dir-more {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 8px;
  display: grid; place-content: center; color: var(--text-3);
  opacity: 0; transition: opacity var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.dir-more svg { width: 15px; height: 15px; }
.card-dir:hover .dir-more, .dir-more:focus-visible { opacity: 1; }
.dir-more:hover { background: var(--hover); color: var(--text); }

/* Разделитель между папками и файлами: линия с подписью, чтобы переход
   от навигации к содержимому был виден, но не кричал. */
.grid-split {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 2px 12px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.grid-split::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* -------- file list */

.list { display: grid; gap: 2px; }
.list-head {
  display: grid; grid-template-columns: minmax(0, 1fr) 104px 108px 168px 46px; gap: 14px;
  padding: 0 14px 10px; font-size: 12px; font-weight: 550; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border);
}
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) 104px 108px 168px 46px; gap: 14px; align-items: center;
  padding: 11px 14px; border-radius: var(--r-sm); cursor: pointer; user-select: none;
  transition: background var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
  animation: fadeUp .26s var(--ease) both;
}
.row:hover { background: var(--hover); }
.row.sel { background: var(--active); box-shadow: inset 0 0 0 1px var(--accent-1); }
.row.drag-over { background: var(--active); box-shadow: inset 0 0 0 1.5px var(--accent-1); }
.row.dragging { opacity: .4; }
.row-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-ico {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px;
  display: grid; place-content: center; overflow: hidden;
  background: color-mix(in srgb, var(--tint, var(--text-3)) 13%, transparent);
}
.row-ico img { width: 100%; height: 100%; object-fit: cover; }
.row-ico svg { width: 20px; height: 20px; color: var(--tint-ink, var(--tint, var(--text-3))); }
.row-ico.folder svg { fill: color-mix(in srgb, var(--accent-1) 16%, transparent); }
.row-name { font-size: 14.2px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row-sub { font-size: 11.8px; color: var(--text-3); }
.row-cell { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { display: flex; justify-content: flex-end; }

/* Узкому окну столбцы отдаём по одному, начиная с наименее нужного. */
@media (max-width: 1180px) {
  .list-head, .row { grid-template-columns: minmax(0, 1fr) 108px 168px 46px; }
  .list-head span:nth-child(2), .row .row-type { display: none; }
}
@media (max-width: 860px) {
  .list-head, .row { grid-template-columns: minmax(0, 1fr) 92px 46px; }
  .list-head span:nth-child(4), .row .row-cell:nth-child(4) { display: none; }
}
@media (max-width: 560px) {
  .list-head { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) 46px; }
  .row .row-cell { display: none; }
}

.row-type { color: var(--text-3); font-size: 12.4px; letter-spacing: .02em; }

/* -------- empty & skeleton */

.empty {
  display: grid; place-items: center; gap: 15px; text-align: center;
  padding: clamp(48px, 12vh, 100px) 20px; color: var(--text-3);
  animation: fadeUp .4s var(--ease) both;
}
.empty-ico {
  width: 84px; height: 84px; border-radius: var(--r-xl); display: grid; place-content: center;
  background: var(--panel-2); border: 1px solid var(--border);
}
.empty-ico svg { width: 38px; height: 38px; color: var(--text-3); stroke-width: 1.4; }
.empty h3 { font-size: 18px; font-weight: 550; color: var(--text); letter-spacing: -.02em; }
.empty p { font-size: 14px; max-width: 40ch; line-height: 1.6; }

.skel-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
.skel {
  border-radius: var(--r-md); background: var(--panel-2); border: 1px solid var(--border);
  aspect-ratio: 1 / .98; position: relative; overflow: hidden;
}
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--hover), transparent);
  animation: sweep 1.3s var(--ease) infinite;
}
@keyframes sweep { to { transform: translateX(100%); } }

/* ---------------------------------------------------------------- selection bar */

.selbar {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border-radius: var(--r-pill);
  background: var(--panel-solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  animation: barIn .3s var(--spring) both;
  max-width: calc(100vw - 28px); overflow-x: auto;
}
@keyframes barIn { from { opacity: 0; transform: translate(-50%, 22px); } to { opacity: 1; transform: translate(-50%, 0); } }
.selbar b { font-size: 13.5px; padding: 0 8px; white-space: nowrap; }
.selbar .sep { width: 1px; height: 22px; background: var(--border); flex: 0 0 auto; }

/* ---------------------------------------------------------------- upload tray */

/* barIn заканчивается на translate(-50%, 0) — он рассчитан на панель,
   которую центрируют через left: 50%. Лоток стоит у правого края, поэтому
   у него своя анимация: с чужой он уезжал влево на половину своей ширины. */
.tray {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: min(340px, calc(100vw - 32px));
  border-radius: var(--r-md); overflow: hidden;
  background: var(--panel-solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  animation: trayIn .32s var(--spring) both;
}
@keyframes trayIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.tray-head { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--border); font-size: 13.8px; font-weight: 550; }
.tray-head .spacer { flex: 1; }
.tray-head .icon-btn { width: 30px; height: 30px; }
.tray-head .icon-btn svg { width: 16px; height: 16px; }
.tray-list { max-height: 250px; overflow-y: auto; }
.tray-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 15px; font-size: 13px; }
.tray-item + .tray-item { border-top: 1px solid var(--border); }
.tray-item .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-item .st { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tray-item.done .st { color: #3ddc84; }
.tray-item.fail .st { color: #ff6b6b; }
.ring { width: 24px; height: 24px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .bg { stroke: var(--border); }
.ring .fg { stroke: var(--accent-1); stroke-linecap: round; transition: stroke-dashoffset .2s var(--ease); }
/* ------------------------------------------------- облачная синхронизация

   Шапка подноса вместо строки со счётчиком: лист поднимается с полки в
   облако, пока идут байты. Движение здесь не украшение поверх цифр —
   контур облака и полоса тянутся ровно на долю отправленного, поэтому
   картинка всегда совпадает с процентами под ней.

   Цвета берём из токенов: поднос должен слушаться выбранного акцента и
   обеих тем, а не жить со своим синим. */
.tray-hero {
  position: relative;
  display: grid; justify-items: center; gap: 11px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.tray.single .tray-list { display: none; }
.tray.single .tray-hero { border-bottom: 0; }
.tray-x { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; }
.tray-x svg { width: 15px; height: 15px; }

.usync { position: relative; width: 132px; height: 112px; }

.usync-cloud {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 86px; height: 57px;
  fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
}
/* Бледный дубль контура — чтобы облако читалось и на нуле процентов. */
.usync-track { stroke: var(--border-strong); }
.usync-line {
  stroke: var(--accent-1);
  transition: stroke-dashoffset .3s var(--ease), stroke .32s var(--ease);
}
.usync-tick {
  stroke: #3ddc84; stroke-dasharray: 33; stroke-dashoffset: 33;
  transition: stroke-dashoffset .38s var(--ease-out) .14s;
}

/* Лист: заливка идёт сверху вниз вслед за подъёмом, так что к облаку он
   подлетает уже «полным». */
.usync-file {
  position: absolute; left: 50%; bottom: 26px;
  width: 26px; height: 32px; margin-left: -13px;
  border-radius: 4px 9px 4px 4px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-1));
  box-shadow: 0 12px 22px -14px var(--accent-1);
  display: grid; align-content: end; gap: 3px; padding: 5px;
  animation: usyncRise 2.6s cubic-bezier(.4, 0, .4, 1) infinite;
}
.usync-file::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 9px; height: 9px; border-radius: 0 9px 0 0;
  background: rgba(255, 255, 255, .45);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.usync-file i { height: 2px; border-radius: 999px; background: rgba(255, 255, 255, .78); }
.usync-file i:nth-child(3) { width: 62%; }
@keyframes usyncRise {
  0%        { transform: translateY(8px) scale(.92); opacity: 0; }
  14%       { opacity: 1; }
  62%       { transform: translateY(-36px) scale(1); opacity: 1; }
  78%, 100% { transform: translateY(-44px) scale(.86); opacity: 0; }
}

.usync-dot {
  position: absolute; left: 50%; bottom: 40px;
  width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 999px; background: var(--accent-1); opacity: 0;
  animation: usyncDot 1.45s ease-in-out infinite;
  animation-delay: calc(var(--i) * .28s);
}
@keyframes usyncDot {
  0%   { transform: translateY(6px);   opacity: 0; }
  35%  { opacity: .85; }
  100% { transform: translateY(-30px); opacity: 0; }
}

.usync-shelf {
  position: absolute; left: 50%; bottom: 13px;
  width: 54px; height: 4px; margin-left: -27px;
  border-radius: 999px; background: var(--border-strong);
}

.usync-name {
  margin: 0; max-width: 100%;
  font-size: 14px; font-weight: 600; letter-spacing: -.012em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.usync-meta {
  margin: 0; font-family: var(--mono); font-size: 11.5px;
  color: var(--text-2); font-variant-numeric: tabular-nums;
}
.usync-bar {
  width: 100%; height: 4px; margin-top: 2px;
  border-radius: 999px; background: var(--active); overflow: hidden;
}
.usync-fill {
  display: block; width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  transition: width .3s var(--ease), background .32s var(--ease);
}

/* Всё улеглось: лист и точки уходят, облако зеленеет, проявляется галочка. */
.tray.is-ready .usync-file,
.tray.is-ready .usync-dot { animation: none; opacity: 0; }
.tray.is-ready:not(.has-fail) .usync-line { stroke: #3ddc84; stroke-dashoffset: 0; }
.tray.is-ready:not(.has-fail) .usync-tick { stroke-dashoffset: 0; }
.tray.is-ready:not(.has-fail) .usync-fill { background: #3ddc84; }

/* Часть файлов не дошла: цвет честно говорит об этом, но контур
   остаётся на своей доле — дорисовывать его до конца было бы враньём. */
.tray.has-fail .usync-line { stroke: var(--danger); }
.tray.has-fail .usync-fill { background: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .usync-file { animation: none; transform: translateY(-22px); opacity: 1; }
  .usync-dot  { animation: none; opacity: .4; }
  .usync-line, .usync-tick, .usync-fill { transition: none; }
}


/* ---------------------------------------------------------------- dropzone */

/* `display` here would otherwise beat the UA rule for [hidden], pinning the
   overlay on screen forever; pointer-events keeps it harmless either way. */
.dropzone { position: fixed; inset: 0; z-index: 500; display: grid; place-content: center; background: var(--scrim); backdrop-filter: blur(6px); animation: fadeIn .2s var(--ease) both; pointer-events: none; }
.dropzone[hidden] { display: none; }
.dropzone-inner {
  display: grid; gap: 16px; justify-items: center; padding: 54px 62px;
  border-radius: var(--r-xl); border: 2.5px dashed var(--accent-1);
  background: var(--panel-solid); box-shadow: var(--shadow);
  animation: popIn .3s var(--spring) both;
}
.dropzone-inner svg { width: 52px; height: 52px; color: var(--accent-1); animation: bob 1.4s var(--ease) infinite; }
.dropzone-inner p { font-size: 17px; font-weight: 550; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- toasts */

.toasts {
  position: fixed; left: calc(var(--sidebar-w) + 20px); bottom: 20px; z-index: 900;
  display: grid; gap: 9px; justify-items: start; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 17px; border-radius: var(--r-md); max-width: min(390px, calc(100vw - 36px));
  background: var(--panel-solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); font-size: 13.8px; font-weight: 550;
  pointer-events: auto; animation: toastIn .35s var(--spring) both;
}
.toast.out { animation: toastOut .25s var(--ease) forwards; }
.toast svg { width: 19px; height: 19px; flex: 0 0 auto; }
.toast.ok svg { color: #3ddc84; }
.toast.err svg { color: #ff6b6b; }
.toast.info svg { color: var(--accent-1); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-40px) scale(.94); } }

/* ---------------------------------------------------------------- menus */

.menu {
  position: fixed; z-index: 800; min-width: 216px; padding: 6px;
  border-radius: var(--r-md); background: var(--panel-solid);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  animation: menuIn .16s var(--ease) both;
}
@keyframes menuIn { from { opacity: 0; transform: scale(.95) translateY(-6px); } to { opacity: 1; transform: none; } }
.menu button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 550; text-align: left;
  color: var(--text-2); transition: background var(--t-fast), color var(--t-fast);
}
.menu button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.menu button:hover { background: var(--hover); color: var(--text); }
.menu button.danger { color: #ff6b6b; }
.menu button.danger:hover { background: rgba(255,107,107,.12); }
.menu hr { border: none; border-top: 1px solid var(--border); margin: 5px 2px; }
.menu .label { padding: 8px 12px 5px; font-size: 11px; font-weight: 550; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }

/* ---------------------------------------------------------------- modals */

.modals { position: fixed; inset: 0; z-index: 700; pointer-events: none; }
.modal-back {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
  background: var(--scrim); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  pointer-events: auto; animation: fadeIn .22s var(--ease) both;
  overflow-y: auto;
}
.modal-back.out { animation: fadeOut .2s var(--ease) forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.modal {
  width: min(490px, 100%); border-radius: var(--r-xl); padding: 26px;
  background: var(--panel-solid); border: 1px solid var(--border);
  box-shadow: var(--shadow); display: grid; gap: 18px;
  animation: popIn .34s var(--spring) both;
  margin: auto;
}
.modal-back.out .modal { animation: popOut .2s var(--ease) forwards; }
@keyframes popOut { to { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal.wide { width: min(660px, 100%); }
.modal-head { display: flex; align-items: flex-start; gap: 14px; }
.modal-head .tx { flex: 1; display: grid; gap: 5px; }
.modal-head h3 { font-size: 19.5px; font-weight: 600; letter-spacing: -.03em; }
.modal-head p { font-size: 13.8px; color: var(--text-2); line-height: 1.55; }
.modal-body { display: grid; gap: 15px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-foot .spacer { flex: 1; }

.copybox { display: flex; gap: 8px; }
.copybox .input { font-family: var(--mono); font-size: 12.8px; }

/* Две ссылки в одном диалоге — обычная и прямая, — поэтому у каждой своя
   подпись с пояснением: без него их путают. */
.link-row { display: grid; gap: 7px; }
.link-row label { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.link-row label span { font-size: 12px; font-weight: 400; color: var(--text-3); }
/* Текст внутри такой подписи обязан быть одним элементом: во флексе
   каждый вложенный <b> стал бы отдельным элементом строки, и фраза
   рассыпалась бы на куски. Поэтому содержимое всегда в <span>. */
.hint { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.hint svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }

/* Поле своего адреса: неизменяемая часть слева выглядит как продолжение
   строки, а не как отдельная подпись, — так видно, что получится целиком. */
.slugbox {
  display: flex; align-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--panel-2); overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.slugbox:focus-within { border-color: var(--accent-1); box-shadow: 0 0 0 3px var(--accent-glow); }
.slug-pre {
  padding-left: 13px; flex: 0 0 auto;
  font-family: var(--mono); font-size: 12.8px; color: var(--text-3); white-space: nowrap;
}
.slugbox .input {
  border: 0; background: transparent; padding-left: 1px;
  font-family: var(--mono); font-size: 12.8px;
}
.slugbox .input:focus { box-shadow: none; background: transparent; }

.icon-btn.danger:hover { color: var(--danger); background: rgba(255, 122, 122, .10); }

/* ---------------------------------------------------------------- offline */

/* Экран без сети: не витрина и не пустой диск, а понятная причина. */
.offline {
  min-height: 100dvh; display: grid; place-content: center; justify-items: center;
  gap: 16px; padding: 40px 24px; text-align: center;
}
.offline .empty-ico { width: 88px; height: 88px; border-radius: var(--r-xl); }
.offline .empty-ico svg { width: 40px; height: 40px; color: var(--text-3); }
.offline h1 { font-family: var(--fd); font-size: clamp(22px, 3.4vw, 28px); font-weight: 600; letter-spacing: -.035em; }
.offline p { max-width: 42ch; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.offline .btn { margin-top: 6px; }

/* Шаги установки на iOS — там это делается руками через меню Safari. */
/* list-style снимаем явно: базовый сброс гасит маркеры только у <ul>,
   и без этого рядом с нашим кружком встаёт ещё и родная нумерация. */
.steps { display: grid; gap: 12px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
/* Номер — абсолютом, а не ячейкой грида. В гриде каждый <b> внутри
   пункта становится отдельным элементом сетки, и текст шага рассыпается
   по строкам вместо того, чтобы идти сплошняком. */
.steps li {
  position: relative; padding-left: 38px; min-height: 26px;
  font-size: 14.5px; line-height: 1.5; color: var(--text-2);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-content: center;
  background: var(--panel-2); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--text);
}
.steps b { color: var(--text); font-weight: 600; }

.tabs { display: flex; gap: 3px; padding: 4px; border-radius: var(--r-md); background: var(--panel-2); border: 1px solid var(--border); }
.tabs button { flex: 1; height: 36px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: background var(--t-fast), color var(--t-fast); }
.tabs button.on { background: var(--panel-solid); color: var(--text); box-shadow: var(--shadow-sm); }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid transparent; transition: transform var(--t-fast) var(--spring), border-color var(--t-fast); position: relative; }
.swatch:hover { transform: scale(1.12); }
.swatch.on { border-color: var(--text); }
.swatch i { position: absolute; inset: 3px; border-radius: 50%; display: block; }

.stat-rows { display: grid; gap: 10px; }
.stat-row { display: flex; align-items: center; gap: 11px; font-size: 13.5px; }
.stat-row .dot { width: 11px; height: 11px; border-radius: 4px; flex: 0 0 auto; }
.stat-row .nm { flex: 1; color: var(--text-2); }
.stat-row .vl { font-weight: 600; font-variant-numeric: tabular-nums; }

.sess-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.sess-item .tx { flex: 1; min-width: 0; }
.sess-item .tx b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess-item .tx span { font-size: 11.8px; color: var(--text-3); }

.tree { max-height: 320px; overflow-y: auto; display: grid; gap: 2px; }
.tree button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.tree button svg { width: 18px; height: 18px; color: var(--accent-1); flex: 0 0 auto; }
.tree button:hover { background: var(--hover); color: var(--text); }
.tree button.on { background: var(--active); color: var(--text); }

/* ---------------------------------------------------------------- preview */

.viewer { position: fixed; inset: 0; z-index: 850; display: grid; grid-template-rows: auto 1fr; background: color-mix(in srgb, var(--bg) 96%, #000); animation: fadeIn .2s var(--ease) both; }
.viewer.out { animation: fadeOut .18s var(--ease) forwards; }
.viewer-bar { display: flex; align-items: center; gap: 11px; padding: 12px clamp(12px, 2.4vw, 22px); border-bottom: 1px solid var(--border); background: var(--panel); backdrop-filter: blur(16px); }
.viewer-bar .tx { flex: 1; min-width: 0; }
.viewer-bar .tx b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-bar .tx span { font-size: 11.8px; color: var(--text-3); }
.viewer-body { display: grid; place-items: center; padding: clamp(12px, 2.5vw, 30px); overflow: auto; min-height: 0; }
.viewer-body img { max-width: 100%; max-height: calc(100dvh - var(--topbar-h) - 60px); object-fit: contain; border-radius: var(--r-md); box-shadow: var(--shadow); animation: popIn .35s var(--spring) both; }
.viewer-body video, .viewer-body audio { max-width: min(1100px, 100%); border-radius: var(--r-md); box-shadow: var(--shadow); }
.viewer-body audio { width: min(560px, 100%); }
.viewer-body iframe { width: min(1100px, 100%); height: calc(100dvh - var(--topbar-h) - 60px); border: none; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); }
.viewer-body pre {
  width: min(1000px, 100%); max-height: calc(100dvh - var(--topbar-h) - 60px); overflow: auto; margin: 0;
  padding: 22px; border-radius: var(--r-md); background: var(--panel-solid); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 13px; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
}
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center;
  background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
  color: var(--text-2); transition: transform var(--t-fast) var(--ease), color var(--t-fast);
}
.viewer-nav:hover { color: var(--text); transform: translateY(-50%) scale(1.08); }
.viewer-nav.prev { left: 16px; }
.viewer-nav.next { right: 16px; }
.viewer-nav.next svg { transform: rotate(180deg); }
@media (max-width: 620px) { .viewer-nav { width: 40px; height: 40px; } .viewer-nav.prev { left: 8px; } .viewer-nav.next { right: 8px; } }

/* ---------------------------------------------------------------- share page */

.share-page { position: relative; z-index: 1; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }

.share-nav {
  display: flex; align-items: center; gap: 10px;
  height: var(--topbar-h); padding: 0 clamp(16px, 3vw, 30px);
  border-bottom: 1px solid var(--border);
}
.share-nav .spacer { flex: 1; }
.share-main { display: grid; place-items: center; padding: clamp(16px, 5vw, 50px) clamp(12px, 4vw, 18px); width: 100%; }

.share-card {
  position: relative; isolation: isolate;
  width: min(680px, 100%); border-radius: var(--r-xl); overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); backdrop-filter: blur(20px);
  box-shadow: var(--shadow); animation: popIn .45s var(--spring) both;
}
/* Пятно цвета типа файла — источник разнообразия между аудио, видео и
   архивом. Держим слабым и прижатым к верхнему краю: на четверти карточки
   оно спорит с акцентной кнопкой и мутит фон. */
.share-card::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -58% -10% auto -10%; aspect-ratio: 2.6 / 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone, var(--accent-1)) 13%, transparent), transparent 70%);
}
/* Цветная кромка сверху — та же подсказка о типе, но читаемая мгновенно. */
.share-card::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--tone, var(--accent-1)) 22%, var(--tone, var(--accent-1)) 78%, transparent);
}

.share-hero { padding: clamp(24px, 5vw, 40px) clamp(18px, 4vw, 40px); display: grid; gap: 15px; justify-items: center; text-align: center; border-bottom: 1px solid var(--border); }
.share-ico {
  width: clamp(64px, 15vw, 78px); aspect-ratio: 1; border-radius: var(--r-lg);
  /* place-items, а не place-content: у иконки размер в процентах, дорожка
     растягивается на всю плашку, и центрировать надо элемент внутри неё. */
  display: grid; place-items: center; color: #fff;
  background: var(--tone, var(--accent-1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.share-ico svg { width: 46%; height: 46%; stroke-width: 1.5; }
.share-hero h1 { font-family: var(--fd); font-size: clamp(19px, 4.2vw, 26px); font-weight: 600; letter-spacing: -.03em; overflow-wrap: anywhere; }
.share-hero .meta { font-size: 13.5px; color: var(--text-2); }

.share-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.share-acts { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; width: 100%; }

@media (max-width: 560px) {
  /* Кнопки в один столбец во всю ширину: на 375px они иначе жмутся в
     нечитаемые огрызки. */
  .share-acts { flex-direction: column; align-items: stretch; }
  .share-acts .btn { width: 100%; }
  .share-card { border-radius: var(--r-lg); }
}

/* minmax(0, 1fr): по умолчанию дорожка грида растягивается под min-content
   вложенного плеера (у нативного <audio> она около 300px) и вылезает за
   карточку. Явный ноль в минимуме разрешает содержимому сжиматься. */
.share-prev { padding: clamp(12px, 3vw, 26px); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; background: var(--panel-2); }
/* Высота предпросмотра от экрана, а не фиксированная: на телефоне 460px
   выталкивали кнопки далеко за сгиб. */
.share-prev img, .share-prev video { max-height: min(460px, 52vh); border-radius: var(--r-md); }
.share-prev img { box-shadow: var(--shadow-sm); }
/* Аудио: оправа во всю ширину вместо элемента, плавающего в пустоте. */
.share-prev.is-audio { padding: clamp(14px, 3vw, 20px); }
.player {
  width: 100%; max-width: 560px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone, var(--accent-1)) 9%, transparent), transparent), var(--panel-solid);
}
.player-ico {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-content: center; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--tone, var(--accent-1)) 20%, transparent);
  color: var(--tone, var(--accent-1));
}
.player-ico svg { width: 19px; height: 19px; }
.player audio { flex: 1 1 0; min-width: 0; width: 100%; height: 38px; }
.share-prev iframe { height: min(520px, 62vh) !important; }
.share-list { padding: 10px; display: grid; gap: 2px; max-height: min(420px, 56vh); overflow-y: auto; }
.share-foot { padding: 22px 18px; text-align: center; font-size: 13px; color: var(--text-3); }

/* ---------------------------------------------------------------- mobile */

.mobile-only { display: none !important; }
.mnav { display: none; }

/* Всё, что относится к телефону, живёт в mobile.css: он подключён через
   media="(max-width: 900px)" и на настольных экранах не применяется. */

/* ---------------------------------------------------------------- misc */

.view-fade { animation: viewIn .3s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }
