/* Slide — личный кабинет сбора презентаций. Оформление — как у сайта prostudio.net (раздел «Портфолио»):
   те же цвета, шрифты, скругления и кнопки. Тема одна — тёмная, как на сайте. Шрифты лежат рядом
   (public/fonts): чужие адреса странице запрещены правилами безопасности (CSP). */
@font-face { font-family: "Feature Mono"; src: url("fonts/FeatureMono-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Feature Mono"; src: url("fonts/FeatureMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Feature Mono"; src: url("fonts/FeatureMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Feature Mono"; src: url("fonts/FeatureMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Druk Cyr"; src: url("fonts/DrukCyr-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Druk Cyr"; src: url("fonts/DrukCyr-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* палитра сайта */
  --bg: #0a090a;
  --surface: #161314;
  --surface-2: #211d1f;
  --line: rgba(207, 242, 240, .14);
  --line-2: rgba(207, 242, 240, .3);
  --text: #f5f5f3;
  --muted: #9a9b9d;
  --mint: #cff2f0;
  --pink: #e11394;
  --pink-2: #ee2860;
  --blue: #3d45d7;
  --purple: #8832b6;
  /* смысловые цвета кабинета: всё в порядке, замечание, опасное действие */
  --ok: #8eecc8;
  --miss: #ffb648;
  --danger: #ff6b57;
  --display: "Druk Cyr", "Arial Narrow", Impact, sans-serif;
  --mono: "Feature Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* Состояния компьютеров залов — как цвета значка в трее программы */
  --st-ok: #22c55e;
  --st-syncing: #eab308;
  --st-incomplete: #f97316;
  --st-offline: #ef4444;
  --st-none: #6b6d70;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #3a3436 transparent; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  /* розовое свечение сверху — как в финале страницы портфолио, только тише */
  background: radial-gradient(90% 460px at 50% -150px, rgba(225, 19, 148, .2) 0%, rgba(136, 50, 182, .09) 48%, transparent 100%) no-repeat var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--mono);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--pink); color: #fff; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
b, strong { font-weight: 500; }
code { font: 13px var(--mono); color: var(--mint); }

/* Заголовок страницы — крупный, как на сайте; розовая точка в конце — круг из логотипа. */
h1 {
  margin: 0 0 8px;
  font: 700 clamp(38px, 6vw, 68px)/.9 var(--display);
  text-transform: uppercase; overflow-wrap: anywhere;
}
h1::after { content: ""; display: inline-block; width: .2em; height: .2em; margin-left: .09em; border-radius: 50%; background: var(--pink); }
h1 + .grid, h1 + .card, h1 + .cards { margin-top: 22px; }
/* Заголовок блока — мятная подпись вразрядку. */
h2 { margin: 0 0 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--mint);
}
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(225, 19, 148, .7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(225, 19, 148, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 19, 148, 0); } }
@media (prefers-reduced-motion: reduce) { .eyebrow::before { animation: none; } * { transition: none !important; } }

/* ---------- шапка и подвал ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px;
  min-height: 60px; padding: 8px var(--gutter);
  background: rgba(10, 9, 10, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { display: block; height: 18px; width: auto; }
.brand span { padding-left: 12px; border-left: 1px solid var(--line-2); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--mint); }
.nav { flex: 1; display: flex; gap: 22px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { color: var(--text); opacity: .75; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: var(--mint); text-decoration: none; }
.who { display: flex; align-items: center; gap: 12px; margin: 0 0 0 auto; color: var(--muted); font-size: 12px; }
.wrap { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(22px, 4vw, 44px) var(--gutter) 48px; }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .06em;
}
.foot a { color: inherit; }
.foot a:hover { color: var(--mint); text-decoration: none; }

/* ---------- мелочи текста ---------- */
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.lead { font-size: 16px; margin: 8px 0 18px; max-width: 900px; }
.crumbs { margin: 0 0 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--mint); text-decoration: none; }
.nowrap { white-space: nowrap; }
.num { text-align: right; white-space: nowrap; }
.ok { color: var(--ok); font-weight: 500; }
.miss { color: var(--miss); }
.danger { color: var(--danger) !important; }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head p { margin: 0; }
/* На широком экране заголовок слева, кнопки справа в одну строку — окошко со ссылкой открывается под кнопкой и не уезжает за край. */
@media (min-width: 641px) {
  .head { flex-wrap: nowrap; }
  .head > :first-child { flex: 1; min-width: 0; }
  .head > :last-child { flex: none; }
}
.head .muted b { color: var(--mint); }
.head .muted b.miss { color: var(--miss); }
.head .muted b.ok { color: var(--ok); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.cards .card { margin-bottom: 0; }
.card.narrow { max-width: 440px; margin: clamp(16px, 7vh, 72px) auto; padding: 30px; }
.card > :last-child { margin-bottom: 0; }

/* ---------- кнопки: таблетки, как на сайте ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 50px;
  background: rgba(255, 255, 255, .04); color: #fff;
  font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .35s, transform .2s var(--ease);
}
.btn:hover { border-color: var(--mint); color: var(--mint); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-primary { border-color: transparent; background: var(--pink); color: #fff; box-shadow: 0 10px 34px -12px rgba(225, 19, 148, .85); }
.btn-primary:hover { border-color: transparent; background: var(--pink-2); color: #fff; box-shadow: 0 14px 44px -10px rgba(238, 40, 96, .9); }
.btn-link { border: 0; background: none; padding: 0; color: var(--mint); font: inherit; cursor: pointer; }
.btn-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- поля ---------- */
input, select {
  font: inherit; color: var(--text); background-color: var(--bg);
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 0;
  transition: border-color .2s, box-shadow .2s;
}
input:hover, select:hover { border-color: var(--line-2); }
input:focus, select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(207, 242, 240, .14); }
input::placeholder { color: #7d7e81; }
input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--pink); }
input[type="file"] { padding: 6px; min-height: 0; color: var(--muted); }
input[type="file"]::file-selector-button {
  margin-right: 12px; min-height: 30px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 50px; background: rgba(255, 255, 255, .04); color: #fff;
  font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
label input, label select { color: var(--text); font-size: 14px; letter-spacing: 0; text-transform: none; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 13px; letter-spacing: 0; text-transform: none; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack > .btn { align-self: flex-start; }
.card.narrow .stack > .btn { align-self: stretch; min-height: 48px; }
.row-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.grow { flex: 1 1 220px; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.actions-cell { text-align: right; white-space: nowrap; }
.actions-cell form { display: inline; margin-left: 14px; }

/* ---------- сообщения ---------- */
.alert { background: rgba(255, 107, 87, .09); border: 1px solid rgba(255, 107, 87, .4); border-radius: var(--radius-sm); padding: 10px 14px; }
.notice { background: rgba(207, 242, 240, .07); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.notice-soft { background: rgba(61, 69, 215, .14); border-color: rgba(61, 69, 215, .55); }
.notice ul, .alert ul { margin: 6px 0 0; padding-left: 18px; }
.errors { max-height: 260px; overflow: auto; }
.creds { display: flex; gap: 24px; margin-top: 8px; flex-wrap: wrap; }
.creds code { font-size: 16px; padding: 3px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }

/* Числа блока — шрифтом заголовков и мятным, как счётчики на сайте. */
.stats {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; list-style: none;
  padding: 0 0 14px; margin: 0 0 16px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.stats b { margin: 0 4px; font: 500 30px/1 var(--display); letter-spacing: 0; color: var(--mint); }
.stats li > b:first-child { margin-left: 0; }
.badge { display: inline-flex; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 50px; color: var(--mint); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.badge-finished { border-color: var(--line); color: var(--muted); }

.link-row { display: flex; gap: 10px; align-items: center; margin: 6px 0 12px; flex-wrap: wrap; }
.link { padding: 9px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); word-break: break-all; }
.qr { display: block; background: #fff; border-radius: 12px; padding: 8px; }

.share { position: relative; }
.share summary { list-style: none; }
.share summary::-webkit-details-marker { display: none; }
.share-body {
  position: absolute; right: 0; z-index: 5; margin-top: 8px; width: 340px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
}

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filters input[type="search"], .filters select { min-height: 38px; border-radius: 50px; background-color: var(--surface); }

/* ---------- таблицы ---------- */
table.grid {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.grid th, .grid td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.grid th { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .025); white-space: nowrap; }
.grid .num { text-align: right; }
.grid tr:last-child td { border-bottom: 0; }
.grid tbody tr:hover td { background: rgba(207, 242, 240, .04); }
.grid td > a { color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line-2); }
.grid td > a:hover { color: var(--mint); border-color: var(--mint); text-decoration: none; }
/* Есть файл — зелёная полоса слева и лёгкий зелёный фон, нет — красные. Видно с одного взгляда. */
.grid tr.is-done td { background: rgba(142, 236, 200, .06); }
.grid tr.is-done td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.grid tr.is-waiting td { background: rgba(255, 107, 87, .09); }
.grid tr.is-waiting td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.grid tbody tr.is-done:hover td { background: rgba(142, 236, 200, .11); }
.grid tbody tr.is-waiting:hover td { background: rgba(255, 107, 87, .15); }
.grid.compact { margin-bottom: 14px; background: var(--bg); border-radius: var(--radius-sm); }
.grid tr.is-warn td { background: rgba(255, 182, 72, .07); }
.grid tr.is-warn td:first-child { box-shadow: inset 3px 0 0 var(--miss); }

/* ---------- загрузка ---------- */
.drop {
  border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted);
  transition: border-color .2s, background-color .2s;
}
.drop.is-over { border-color: var(--pink); background: rgba(225, 19, 148, .08); color: var(--text); }

.ups { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.up { display: grid; grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1.2fr); gap: 12px; align-items: center; font-size: 13px; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.up-fill { display: block; height: 100%; width: 0; background: var(--pink); transition: width .2s; }
.up.is-done .up-fill { background: var(--ok); }
.up.is-done .up-status { color: var(--ok); }
.up.is-error .up-fill { background: var(--danger); }
.up.is-error .up-status { color: var(--danger); }
.up.is-warn .up-fill { background: var(--miss); }
.up.is-warn .up-status { color: var(--miss); }

/* Файлы доклада: имя, версия, итог проверки и замечания — у докладчика и у оператора. */
.files { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.file { background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: var(--radius-sm); padding: 10px 14px; }
.file.has-warn { border-left-color: var(--miss); }
.file-none { color: var(--muted); font-size: 13px; }
.file-head { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; }
.file-head form { display: inline; margin: 0; }
.file-actions { display: inline-flex; gap: 14px; white-space: nowrap; }
.file-name { font-weight: 500; overflow-wrap: anywhere; }
a.file-name { color: var(--text); border-bottom: 1px solid var(--line-2); }
a.file-name:hover { color: var(--mint); border-color: var(--mint); text-decoration: none; }
.file-meta { color: var(--muted); font-size: 12.5px; flex: 1 1 auto; }
.file-sum { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.file-warn, .file-note { font-size: 13px; margin-top: 5px; padding-left: 22px; position: relative; }
.file-warn { color: var(--miss); }
.file-warn::before { content: "⚠"; position: absolute; left: 0; }
.file-note { color: var(--muted); }
.file-note::before { content: "·"; position: absolute; left: 7px; }
.cloud { white-space: nowrap; font-weight: 400; }
h2.next { margin-top: 22px; }
.share-file { margin-bottom: 4px; }
.file-meta.fresh { color: var(--ok); font-weight: 500; }
.more { margin-top: 12px; }
.more summary { cursor: pointer; color: var(--mint); margin-bottom: 10px; }
.history { margin-top: 8px; font-size: 13px; }
.history summary { cursor: pointer; color: var(--mint); }
.history ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.history li { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; }
.history form { display: inline; margin: 0; }

/* Докладчик: чаще всего с телефона. */
.speaker { max-width: 680px; margin: 0 auto; }
.speaker > .muted { margin: 0 0 22px; }
.steps { padding-left: 20px; color: var(--muted); }
.search { width: 100%; min-height: 56px; padding: 0 24px; border-radius: 50px; background: var(--surface); font-size: 17px; }
.results { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 16px; }
.talk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.talk-who { font-weight: 500; font-size: 16px; }
.talk-title { margin: 3px 0; }
.talk-meta, .talk-files { color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.talk .btn { min-height: 44px; padding: 0 22px; }

/* Ссылка на проверку техники — внизу страницы загрузки */
.check-teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 16px 20px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(207, 242, 240, .05); color: var(--text);
  transition: border-color .2s, background-color .2s;
}
.check-teaser:hover { border-color: var(--mint); background: rgba(207, 242, 240, .09); color: var(--text); text-decoration: none; }
.check-teaser b { color: var(--mint); font-weight: 500; }
.check-teaser .ico-arrow { color: var(--mint); }

/* Дашборд залов */
.installers { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 440px; text-align: right; }
.dash-sum { margin: 0 0 12px; color: var(--muted); }
.dash-sum b { color: var(--mint); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 0; background: var(--st-none); }
.st-ok { background: var(--st-ok); }
.st-syncing { background: var(--st-syncing); }
.st-incomplete { background: var(--st-incomplete); }
.st-offline { background: var(--st-offline); }
.chip { display: inline-block; white-space: nowrap; font-size: 12.5px; padding: 2px 10px; margin: 0 6px 4px 0; border: 1px solid var(--line); border-radius: 50px; }
.grid tr.is-off td { color: var(--muted); }

/* ---------- строка состояния мероприятия ---------- */
.state-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -8px 0 22px; }
.state {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 50px; background: var(--surface);
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.state b { font: 500 15px/1 var(--display); letter-spacing: 0; color: var(--mint); }
.state i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--st-none); }
.state.is-ok i { background: var(--ok); animation: live-ok 1.8s infinite; }
.state.is-ok-still i { background: var(--ok); }
.state.is-warn i { background: var(--miss); }
.state.is-bad { border-color: rgba(255, 107, 87, .45); }
.state.is-bad i { background: var(--danger); }
.state--quiet { color: var(--muted); background: transparent; }
@keyframes live-ok { 70% { box-shadow: 0 0 0 8px rgba(142, 236, 200, 0); } 0% { box-shadow: 0 0 0 0 rgba(142, 236, 200, .55); } 100% { box-shadow: 0 0 0 0 rgba(142, 236, 200, 0); } }
@media (prefers-reduced-motion: reduce) { .state.is-ok i { animation: none; } }
.state-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.state-actions form { display: inline; margin: 0; }
.state-actions .btn { min-height: 34px; padding: 0 14px; font-size: 11px; }
@media (max-width: 640px) { .state-actions { margin-left: 0; } }

/* ---------- стрелки ---------- */
/* Знаков «→» и «←» в шрифте сайта нет — браузер подставлял их из чужого шрифта, и они выходили кривыми.
   Поэтому стрелки рисуем сами, одной линией, цветом окружающего текста. */
.ico-arrow {
  display: inline-block; flex: none; width: 1.3em; height: .86em; vertical-align: -.06em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h19M15 2l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h19M15 2l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ico-arrow.left { transform: scaleX(-1); }
a:hover > .ico-arrow, .btn:hover > .ico-arrow { transition: transform .3s var(--ease); transform: translateX(3px); }
a:hover > .ico-arrow.left { transform: scaleX(-1) translateX(3px); }
/* Выпадающий список: своя галочка вместо системной, с ровным отступом от края. */
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23cff2f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px 14px;
}
.filters select { padding-right: 40px; }
/* Раскрывающиеся блоки: та же галочка, поворачивается при раскрытии. */
.more summary, .history summary { display: flex; align-items: center; gap: 8px; list-style: none; }
.more summary::-webkit-details-marker, .history summary::-webkit-details-marker { display: none; }
.more summary::before, .history summary::before {
  content: ""; flex: none; width: 14px; height: 14px; background: currentColor; transform: rotate(-90deg); transition: transform .25s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.more[open] > summary::before, .history[open] > summary::before { transform: none; }

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .card.narrow { padding: 22px; }
  table.grid { display: block; overflow-x: auto; }
  .up { grid-template-columns: 1fr; gap: 4px; }
  .file-name { flex: 1 1 100%; } /* имя — своей строкой, «Заменить» всегда справа под ним */
  .share-body { position: static; width: auto; }
  .who span { display: none; }
  .nav { gap: 16px; }
  /* вошедшему на телефоне шапка — в одну строку: логотип чуть меньше, подпись «Slide» уступает место меню */
  .top { gap: 6px 14px; }
  .brand img { height: 16px; }
  .top:has(.nav) .brand span { display: none; }
}
/* Палец крупнее мыши: кнопки и поля не мельче 44 px. */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  input, select { min-height: 44px; }
  input[type="checkbox"] { min-height: 0; width: 20px; height: 20px; }
  input[type="file"] { min-height: 0; }
}
