/* ============================================================
   Apple ID Vault — оформление
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  --bg:            #07080c;
  --bg-soft:       #0b0d13;
  --panel:         rgba(255, 255, 255, .045);
  --panel-2:       rgba(255, 255, 255, .075);
  --panel-solid:   #12141c;
  --border:        rgba(255, 255, 255, .09);
  --border-2:      rgba(255, 255, 255, .16);

  --text:          #edeff5;
  --text-2:        #a4abbd;
  --text-3:        #6f778c;

  --accent:        #6d8bff;
  --accent-2:      #a274ff;
  --accent-soft:   rgba(109, 139, 255, .16);
  --grad:          linear-gradient(135deg, #6d8bff 0%, #a274ff 100%);

  --green:  #35d08a;  --green-soft:  rgba(53, 208, 138, .14);
  --amber:  #fdb022;  --amber-soft:  rgba(253, 176, 34, .14);
  --red:    #fb7185;  --red-soft:    rgba(251, 113, 133, .14);
  --cyan:   #38bdf8;  --cyan-soft:   rgba(56, 189, 248, .14);

  --r-sm: 10px;  --r: 14px;  --r-lg: 20px;  --r-xl: 26px;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 70px rgba(0,0,0,.55);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --sidebar-w: 268px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg:            #eef0f6;
  --bg-soft:       #f7f8fc;
  --panel:         rgba(255, 255, 255, .8);
  --panel-2:       rgba(255, 255, 255, .95);
  --panel-solid:   #ffffff;
  --border:        rgba(16, 20, 40, .1);
  --border-2:      rgba(16, 20, 40, .2);

  --text:          #171a24;
  --text-2:        #545c72;
  --text-3:        #838ba3;

  --accent:        #4f6ef7;
  --accent-2:      #8b5cf6;
  --accent-soft:   rgba(79, 110, 247, .12);

  --green: #12a06a;  --green-soft: rgba(18, 160, 106, .12);
  --amber: #c77b06;  --amber-soft: rgba(199, 123, 6, .13);
  --red:   #e0435f;  --red-soft:   rgba(224, 67, 95, .12);
  --cyan:  #0d8fc4;  --cyan-soft:  rgba(13, 143, 196, .12);

  --shadow:    0 1px 2px rgba(20,26,54,.06), 0 8px 24px rgba(20,26,54,.09);
  --shadow-lg: 0 24px 64px rgba(20,26,54,.18);
  color-scheme: light;
}

/* ---------- База ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",
        Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, p { margin: 0; }
/* Классы вроде .field ставят display:flex и перебивают браузерное [hidden] — возвращаем приоритет. */
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }

/* ---------- Иконки (SVG-спрайт) ---------- */
.ic {
  width: 16px; height: 16px; flex: none; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-fill  { fill: currentColor; stroke: none; }
.ic-sm    { width: 13px; height: 13px; }
.ic-lg    { width: 22px; height: 22px; }
.ic-xl    { width: 30px; height: 30px; stroke-width: 1.5; }
.ic-accent { color: var(--accent); }
.ic-violet { color: var(--accent-2); }
.ic-cyan   { color: var(--cyan); }
.ic-green  { color: var(--green); }
.ic-amber  { color: var(--amber); }
.ic-red    { color: var(--red); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: content-box; }

/* ---------- Фон ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* Приглушающая вуаль поверх пятен — чтобы карточки читались одинаково по всему экрану. */
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg) 72%, transparent),
    color-mix(in srgb, var(--bg) 88%, transparent));
}
.blob { position: absolute; border-radius: 50%; filter: blur(130px); opacity: .42; }
.b1 { width: 620px; height: 620px; top: -260px; left: -180px; background: #4c5ffb; animation: drift 26s var(--ease) infinite alternate; }
.b2 { width: 540px; height: 540px; bottom: -280px; right: -140px; background: #9333ea; animation: drift 32s var(--ease) infinite alternate-reverse; }
.b3 { width: 420px; height: 420px; top: 34%; right: 26%; background: #0ea5e9; opacity: .22; animation: drift 40s var(--ease) infinite alternate; }
[data-theme="light"] .blob { opacity: .28; }
[data-theme="light"] .b3 { opacity: .14; }
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(70px, 50px, 0) scale(1.18); }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ---------- Каркас ---------- */
.layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
}

/* ---------- Сайдбар ---------- */
.sidebar {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px 14px;
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  backdrop-filter: blur(28px) saturate(150%);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 10.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); padding: 16px 10px 7px;
}
.nav > .nav-label:first-child { padding-top: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 13.5px; text-align: left;
  transition: background .16s, color .16s, transform .16s var(--ease);
}
.nav-item:hover { background: var(--panel); color: var(--text); }
.nav-item:active { transform: scale(.985); }
.nav-item.is-active { background: var(--accent-soft); color: var(--text); font-weight: 550; }
.nav-item > .ic { opacity: .85; transition: opacity .16s, transform .16s var(--ease); }
.nav-item:hover > .ic { opacity: 1; transform: scale(1.08); }
.nav-item.is-active > .ic { opacity: 1; }
.nav-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-count {
  font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-3);
  background: var(--panel); padding: 1px 7px; border-radius: 99px; min-width: 22px; text-align: center;
}
.nav-item.is-active .nav-count { background: rgba(255,255,255,.14); color: var(--text); }

.side-filters { padding: 0 2px; }
.side-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.side-foot .logout-btn:hover { background: var(--red-soft); color: var(--red); border-color: transparent; }

/* ---------- Кнопки ---------- */
.primary-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--r-sm);
  background: var(--grad); color: #fff; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(109,139,255,.36);
  transition: transform .16s var(--ease), box-shadow .2s, filter .2s;
  white-space: nowrap;
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(109,139,255,.5); filter: brightness(1.06); }
.primary-btn:active { transform: translateY(0) scale(.98); }
.pb-plus { font-size: 15px; line-height: 1; }

.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--r-sm);
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text-2); font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s, transform .16s var(--ease);
}
.ghost-btn:hover { background: var(--panel-2); color: var(--text); border-color: var(--border-2); }
.ghost-btn:active { transform: scale(.97); }
.ghost-btn .ic { opacity: .8; }
.ghost-btn:hover .ic { opacity: 1; }

.soft-btn {
  padding: 0 14px; border-radius: var(--r-sm);
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 550; white-space: nowrap;
  transition: background .16s, border-color .16s, transform .12s;
}
.soft-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.soft-btn:active { transform: scale(.97); }
.soft-btn[disabled] { opacity: .55; pointer-events: none; }

.danger-btn {
  padding: 9px 16px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(244,63,94,.34);
  transition: transform .16s var(--ease), filter .2s;
}
.danger-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.danger-btn:active { transform: scale(.98); }

.icon-btn {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center; border-radius: 9px;
  color: var(--text-3); font-size: 14px;
  transition: background .16s, color .16s;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }

/* Сегментированный переключатель */
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--panel); border: 1px solid var(--border); }
.seg-btn {
  padding: 6px 12px; border-radius: 8px;
  color: var(--text-3); font-size: 12.5px; font-weight: 550; white-space: nowrap;
  transition: background .18s var(--ease), color .18s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active { background: var(--panel-2); color: var(--text); box-shadow: var(--shadow); }
/* minmax(0,…) — иначе длинная подпись распирает колонку и переключатель вылезает за модалку. */
.seg-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg-wide .seg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; padding: 6px 8px;
}
.seg-4 .seg-btn { font-size: 12px; padding: 6px 6px; gap: 5px; }
.seg-4 .seg-btn > .ic { width: 14px; height: 14px; }
/* В тесноте подписи важнее иконок. */
@media (max-width: 820px) {
  .seg-4 .seg-btn > .ic { display: none; }
  .seg-4 .seg-btn { font-size: 11.5px; padding: 6px 4px; }
}
.seg-btn > .ic { opacity: .85; }
.seg-btn.is-active > .ic { opacity: 1; color: var(--accent); }

/* ---------- Поля ---------- */
input[type="text"], input[type="url"], input[type="tel"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; padding: 9px 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text); font-size: 13.5px; outline: none;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); background: var(--panel-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 60px; line-height: 1.55; }
select {
  appearance: none; cursor: pointer; padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%236f778c'><path d='M6 8.5 1.8 4.3l.9-.9L6 6.7l3.3-3.3.9.9z'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}
select option { background: var(--panel-solid); color: var(--text); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.req { color: var(--red); }
.hint { font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
.hint.is-error { color: var(--red); }
.hint.is-ok { color: var(--green); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.with-btn { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.field-inline { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; }
.field-inline > span { font-size: 12.5px; color: var(--text-2); }
.mini-select { width: auto; min-width: 104px; padding: 6px 28px 6px 10px; font-size: 12.5px; border-radius: 9px; }

/* Тумблер */
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer;
  transition: background .16s;
}
.switch-row:hover { background: var(--panel); }
.switch-row > span { font-size: 12.5px; color: var(--text-2); }
.switch-row-lg {
  padding: 13px 14px; background: var(--panel); border: 1px solid var(--border);
}
.switch-row-lg > span { display: flex; flex-direction: column; gap: 3px; }
.switch-row-lg strong { font-size: 13.5px; font-weight: 600; color: var(--text); }
.switch-row-lg em { font-size: 11.5px; font-style: normal; color: var(--text-3); }
.switch { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui {
  position: relative; flex: none; width: 40px; height: 23px; border-radius: 99px;
  background: var(--panel-2); border: 1px solid var(--border-2);
  transition: background .22s var(--ease), border-color .22s;
}
.switch-ui::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--text-3);
  transition: transform .24s var(--ease), background .22s;
}
.switch:checked + .switch-ui { background: var(--grad); border-color: transparent; }
.switch:checked + .switch-ui::after { transform: translateX(17px); background: #fff; }
.switch:focus-visible + .switch-ui { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Топбар ---------- */
.main { display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 26px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(22px);
}
.search { position: relative; flex: 1; max-width: 520px; }
.search input { padding: 10px 42px 10px 38px; border-radius: 12px; }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-family: inherit; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; pointer-events: none;
}
.search input:focus ~ .search-kbd { opacity: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ---------- Статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 18px 26px 4px; }
.stat {
  position: relative; overflow: hidden;
  padding: 14px 16px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--border);
  transition: transform .2s var(--ease), border-color .2s;
}
.stat:hover { transform: translateY(-2px); border-color: var(--border-2); }
.stat-top { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.stat-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.stat-ico .ic { width: 15px; height: 15px; }
.stat-label { font-size: 11.5px; color: var(--text-3); font-weight: 550; }
.stat-value { font-size: 25px; font-weight: 680; letter-spacing: -.8px; font-variant-numeric: tabular-nums; line-height: 1; }
.stat-sub { font-size: 11px; color: var(--text-3); margin-top: 5px; }

/* ---------- Контент ---------- */
.content { flex: 1; overflow-y: auto; padding: 18px 26px 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.section-head {
  display: flex; align-items: baseline; gap: 10px;
  margin: 6px 2px 14px;
}
.section-head h3 { font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.section-head span { font-size: 12px; color: var(--text-3); }

/* ---------- Карточка ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--panel); border: 1px solid var(--border);
  overflow: hidden;
  animation: pop .32s var(--ease) both;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s, background .22s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.16), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .22s; pointer-events: none;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-lg); background: var(--panel-2); }
.card:hover::before { opacity: 1; }
.card.is-banned { border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.card.is-banned::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, var(--red-soft), transparent 45%);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

.card-head { display: flex; gap: 13px; padding: 15px 15px 12px; align-items: flex-start; }
.app-icon {
  position: relative; width: 56px; height: 56px; flex: none;
  border-radius: 14px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 21px; font-weight: 650; color: var(--text-3);
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
}
.app-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ico-letter { line-height: 1; }
.card-head-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card-title {
  font-size: 15px; font-weight: 640; letter-spacing: -.2px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word;
}
.card-dev {
  font-size: 11.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-dev .dot { opacity: .4; margin: 0 5px; }
.card-menu { display: flex; gap: 2px; flex: none; }
.star-btn { font-size: 14px; opacity: .35; transition: opacity .16s, transform .16s var(--ease); }
.star-btn:hover { opacity: 1; transform: scale(1.15); }
.star-btn.is-on { opacity: 1; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 15px 13px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 600; letter-spacing: .01em;
  background: var(--panel-2); color: var(--text-2); border: 1px solid var(--border);
  white-space: nowrap;
}
.badge.b-apps   { background: var(--cyan-soft);   color: var(--cyan);    border-color: transparent; }
.badge.b-games  { background: color-mix(in srgb, var(--accent-2) 15%, transparent); color: var(--accent-2); border-color: transparent; }
.badge.b-subs   { background: var(--green-soft);  color: var(--green);   border-color: transparent; }
.badge.b-iap    { background: var(--amber-soft);  color: var(--amber);   border-color: transparent; }
.badge.b-2fa    { background: var(--green-soft);  color: var(--green);   border-color: transparent; }
.badge.b-no2fa  { background: var(--panel-2);     color: var(--text-3); }
.badge .ic { width: 12.5px; height: 12.5px; stroke-width: 2; }
.badge.b-banned { background: var(--red-soft);    color: var(--red);     border-color: transparent; }
.badge.b-arch   { background: var(--amber-soft);  color: var(--amber);   border-color: transparent; }

/* Строки с данными */
.creds { display: flex; flex-direction: column; gap: 1px; padding: 0 9px; }
.cred {
  display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 8px;
  padding: 7px 6px; border-radius: 9px;
  transition: background .16s;
}
.cred:hover { background: var(--panel-2); }
.cred-key { font-size: 11px; color: var(--text-3); font-weight: 550; }
.cred-val {
  font-family: "SF Mono", ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px; letter-spacing: -.1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer; user-select: all;
}
.cred-val.is-pass { color: var(--amber); }
.cred-val.is-empty { color: var(--text-3); font-style: italic; letter-spacing: normal; cursor: default; user-select: none; font-family: inherit; }
.cred-actions { display: flex; gap: 1px; opacity: 0; transition: opacity .16s; }
.cred:hover .cred-actions, .cred:focus-within .cred-actions { opacity: 1; }
.mini-btn {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 7px; font-size: 12px; color: var(--text-3);
  transition: background .14s, color .14s, transform .14s;
}
.mini-btn:hover { background: var(--panel-2); color: var(--text); }
.mini-btn:active { transform: scale(.9); }
.mini-btn.did-copy { background: var(--green-soft); color: var(--green); }
.mini-btn .ic { width: 15px; height: 15px; }
.mini-btn.is-red:hover   { background: var(--red-soft);   color: var(--red); }
.mini-btn.is-green:hover { background: var(--green-soft); color: var(--green); }
.star-btn.is-on { opacity: 1; color: var(--amber); }
.mini-btn.is-revealed { background: var(--accent-soft); color: var(--accent); }

.card-notes {
  margin: 4px 15px 0; padding: 9px 11px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-2); line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
  max-height: 76px; overflow: hidden;
}

.card-foot {
  display: flex; align-items: center; gap: 6px;
  margin-top: auto; padding: 12px 13px;
}
.card-foot .ghost-btn { padding: 7px 11px; font-size: 12px; }
.card-foot .spacer { flex: 1; }
.chip-link {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  font-size: 12px; color: var(--text-3); text-decoration: none;
  border: 1px solid var(--border); border-radius: 8px;
  transition: background .16s, color .16s, border-color .16s;
}
.chip-link:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* ---------- Компактный список ---------- */
.content.is-list .grid { grid-template-columns: 1fr; gap: 7px; }
.content.is-list .card {
  display: grid;
  grid-template-columns: minmax(175px, 1fr) auto minmax(290px, 1.75fr) auto;
  align-items: center; gap: 14px;
  padding: 9px 14px; border-radius: var(--r);
}
.content.is-list .card:hover { transform: none; }

.content.is-list .card-head { padding: 0; gap: 10px; align-items: center; min-width: 0; }
.content.is-list .app-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
.content.is-list .card-title { -webkit-line-clamp: 1; font-size: 13.5px; }
.content.is-list .card-dev { font-size: 11px; }

.content.is-list .badges { padding: 0; flex-wrap: nowrap; }

.content.is-list .creds { flex-direction: row; padding: 0; gap: 4px; min-width: 0; }
.content.is-list .cred { grid-template-columns: 1fr auto; flex: 1 1 0; min-width: 0; padding: 5px 6px; }
.content.is-list .cred:nth-child(n+3) { display: none; }          /* только логин и пароль */
.content.is-list .cred-key { display: none; }
.content.is-list .cred-actions { opacity: 1; }

.content.is-list .card-notes { display: none; }
.content.is-list .card-foot { margin: 0; padding: 0; gap: 2px; }
.content.is-list .card-foot .spacer { display: none; }
.content.is-list .card-foot .ghost-btn { padding: 6px 8px; }
.content.is-list .card-foot .btn-label { display: none; }

@media (max-width: 1250px) {
  .content.is-list .card { grid-template-columns: minmax(170px, 1.2fr) minmax(230px, 1.3fr) auto; }
  .content.is-list .badges { display: none; }
}

/* ---------- Пустое состояние ---------- */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 80px 20px; text-align: center;
  animation: pop .35s var(--ease) both;
}
.empty-ico {
  width: 78px; height: 78px; border-radius: 24px; display: grid; place-items: center;
  color: var(--text-3); background: var(--panel); border: 1px solid var(--border);
}
.empty h3 { font-size: 17px; font-weight: 650; }
.empty p { font-size: 13px; color: var(--text-3); max-width: 380px; line-height: 1.6; }

/* ---------- Архивные записи ---------- */
.arch-list { display: flex; flex-direction: column; gap: 10px; }
.arch-item {
  padding: 13px 15px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--border);
  transition: border-color .18s;
}
.arch-item:hover { border-color: var(--border-2); }
.arch-top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; flex-wrap: wrap; }
.arch-date { font-size: 11.5px; color: var(--text-3); margin-left: auto; }
.arch-comment {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 12px; color: var(--text-2); margin-top: 9px; padding-top: 9px;
  border-top: 1px dashed var(--border);
}
.arch-comment .ic { margin-top: 1px; color: var(--text-3); }
.arch-group-head { display: flex; align-items: center; gap: 10px; margin: 22px 2px 10px; }
.arch-group-head:first-child { margin-top: 4px; }
.arch-group-head .app-icon { width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }
.arch-group-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.arch-group-head strong { font-size: 14px; font-weight: 620; }
.arch-group-head span { font-size: 11.5px; color: var(--text-3); }

.old-creds {
  padding: 12px 14px; border-radius: var(--r);
  background: var(--red-soft); border: 1px solid color-mix(in srgb, var(--red) 26%, transparent);
}
.old-creds .oc-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 650; color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.old-creds .oc-row { display: flex; gap: 8px; font-size: 12.5px; padding: 2px 0; }
.old-creds .oc-row b { color: var(--text-3); font-weight: 550; min-width: 62px; font-size: 11.5px; }
.old-creds .oc-row span { font-family: "SF Mono", ui-monospace, Consolas, monospace; word-break: break-all; }

/* ---------- Модалки ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 24px;
  background: rgba(4, 5, 9, .62);
  backdrop-filter: blur(7px);
  animation: fade .18s ease both;
}
[data-theme="light"] .overlay { background: rgba(30, 35, 60, .4); }
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: min(560px, 100%); max-height: min(88vh, 900px);
  display: flex; flex-direction: column;
  background: var(--panel-solid); border: 1px solid var(--border-2);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  animation: rise .3s var(--ease) both;
  overflow: hidden;
}
.modal-lg { width: min(700px, 100%); }
.modal-sm { width: min(420px, 100%); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

.modal-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px 16px; border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-size: 17px; font-weight: 660; letter-spacing: -.3px; }
.modal-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; line-height: 1.45; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 20px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 15px 22px; border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel-solid) 60%, transparent);
}

.form-block { display: flex; flex-direction: column; gap: 14px; }
.block-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 680; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-3); padding-bottom: 2px;
}
.form-block + .form-block { padding-top: 18px; border-top: 1px solid var(--border); }

.app-preview {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: var(--r);
  background: var(--panel); border: 1px dashed var(--border-2);
  transition: border-style .2s, border-color .2s, background .2s;
}
.app-preview.is-loaded { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.app-preview-icon {
  width: 58px; height: 58px; flex: none; border-radius: 14px; overflow: hidden;
  background: var(--panel-2); display: grid; place-items: center;
  font-size: 22px; color: var(--text-3); border: 1px solid var(--border);
}
.app-preview-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-preview-icon .ic { color: var(--text-3); }
.app-preview-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.app-preview-meta strong { font-size: 14.5px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-preview-meta span { font-size: 12px; color: var(--text-3); }

.collapse { animation: slide .24s var(--ease) both; }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.spin { display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Тосты ---------- */
.toasts {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 90; display: flex; flex-direction: column-reverse; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 99px;
  background: var(--panel-solid); border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 500;
  animation: toastIn .3s var(--ease) both;
}
.toast.is-out { animation: toastOut .22s ease forwards; }
.toast .t-ico { width: 16px; height: 16px; }
.toast.t-ok .t-ico { color: var(--green); }
.toast.t-error .t-ico { color: var(--red); }
.toast.t-ok    { border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.toast.t-error { border-color: color-mix(in srgb, var(--red) 50%, transparent); }
@keyframes toastIn  { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.96); } }

input.is-invalid, input.is-invalid:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

/* ---------- Контрольные вопросы ---------- */
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tiny-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11.5px; font-weight: 600;
  transition: filter .16s, transform .14s;
}
.tiny-btn:hover { filter: brightness(1.15); }
.tiny-btn:active { transform: scale(.95); }
.tiny-btn .ic { width: 13px; height: 13px; }

.qa { display: flex; flex-direction: column; gap: 7px; }
.qa-row { display: grid; grid-template-columns: 215px 1fr; align-items: center; gap: 12px; }
.qa-row > span { font-size: 12px; color: var(--text-3); line-height: 1.35; }
@media (max-width: 620px) {
  .qa-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Выпадающий список ---------- */
.xsel { position: relative; }
.xsel select {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.xsel-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text); font-size: 13.5px; text-align: left;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.xsel-btn:hover { background: var(--panel-2); border-color: var(--border-2); }
.xsel.is-open .xsel-btn {
  border-color: var(--accent); background: var(--panel-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.xsel-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xsel-caret { color: var(--text-3); transition: transform .2s var(--ease); }
.xsel.is-open .xsel-caret { transform: rotate(180deg); color: var(--accent); }

.xsel-sm .xsel-btn { padding: 6px 10px; font-size: 12.5px; border-radius: 9px; }
.xsel-sm .xsel-caret { width: 14px; height: 14px; }

.xsel-pop {
  position: fixed; z-index: 120;
  max-height: 300px; overflow-y: auto;
  padding: 5px; border-radius: 13px;
  background: var(--panel-solid); border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  animation: popIn .16s var(--ease) both;
}
.xsel-pop[hidden] { display: none !important; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

.xsel-opt {
  display: block; width: 100%;
  padding: 8px 11px; border-radius: 8px;
  color: var(--text-2); font-size: 13px; text-align: left; white-space: nowrap;
  transition: background .12s, color .12s;
}
.xsel-opt:hover { background: var(--panel-2); color: var(--text); }
.xsel-opt.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ---------- Страница входа ---------- */
.auth-body {
  --auth-line: rgba(255, 255, 255, .05);
  --auth-glow-1: rgba(109, 139, 255, .32);
  --auth-glow-2: rgba(162, 116, 255, .24);
  --auth-card: rgba(15, 17, 24, .72);
  --auth-edge: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03) 42%, rgba(162, 116, 255, .3));
  --auth-shadow: 0 40px 100px -30px rgba(0, 0, 0, .75), 0 0 80px -20px rgba(109, 139, 255, .18);
  --auth-input-bg: rgba(255, 255, 255, .035);
  --auth-input-bg-focus: rgba(255, 255, 255, .06);
  --auth-input-border: rgba(255, 255, 255, .09);
  --auth-autofill: #171a24;
  overflow: auto;
}
[data-theme="light"] .auth-body {
  --auth-line: rgba(16, 20, 40, .06);
  --auth-glow-1: rgba(79, 110, 247, .22);
  --auth-glow-2: rgba(139, 92, 246, .16);
  --auth-card: rgba(255, 255, 255, .82);
  --auth-edge: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(16, 20, 40, .06) 45%, rgba(139, 92, 246, .28));
  --auth-shadow: 0 40px 90px -30px rgba(30, 36, 70, .28), 0 0 70px -20px rgba(79, 110, 247, .15);
  --auth-input-bg: #f3f5fb;
  --auth-input-bg-focus: #fff;
  --auth-input-border: rgba(16, 20, 40, .1);
  --auth-autofill: #eef1fb;
}

/* Фон: сетка, растворяющаяся к краям, и два медленно плывущих пятна света */
.auth-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.auth-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--auth-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--auth-line) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 25%, transparent 78%);
}
.auth-glow { position: absolute; left: 50%; top: 50%; border-radius: 50%; filter: blur(100px); }
.auth-glow-1 { width: 560px; height: 560px; margin: -420px 0 0 -460px; background: var(--auth-glow-1); animation: authDrift 16s ease-in-out infinite alternate; }
.auth-glow-2 { width: 500px; height: 500px; margin: -120px 0 0 -40px; background: var(--auth-glow-2); animation: authDrift 21s ease-in-out infinite alternate-reverse; }
@keyframes authDrift { from { translate: 0 0; } to { translate: 60px 40px; } }

.auth-wrap {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 40px 20px;
}
.auth-shell { width: min(430px, 100%); animation: authIn .7s var(--ease) both; }
@keyframes authIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

.auth-card {
  position: relative;
  padding: 46px 40px 40px;
  border-radius: 26px;
  background: var(--auth-card);
  box-shadow: var(--auth-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
          backdrop-filter: blur(24px) saturate(150%);
}
/* Градиентная кромка карточки */
.auth-card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: var(--auth-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.auth-card.is-shaking { animation: authShake .45s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes authShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

.auth-title {
  margin: 0 0 34px;
  text-align: center;
  font-size: 31px; font-weight: 700; line-height: 1.12; letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--text) 35%, color-mix(in srgb, var(--text) 55%, var(--accent-2)));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-field { display: flex; flex-direction: column; gap: 9px; }
.auth-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.auth-input { position: relative; }
.auth-ico {
  position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  color: var(--text-3); pointer-events: none; transition: color .2s;
}
.auth-input input {
  width: 100%; height: 54px; padding: 0 16px 0 48px;
  border-radius: 15px; border: 1px solid var(--auth-input-border);
  background: var(--auth-input-bg); color: var(--text);
  font-size: 15.5px;
  box-shadow: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.auth-input input.has-toggle { padding-right: 56px; }
.auth-input input:hover { border-color: var(--border-2); }
.auth-input input:focus {
  outline: none; border-color: var(--accent);
  background: var(--auth-input-bg-focus);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.auth-input:focus-within .auth-ico { color: var(--accent); }
/* Автозаполнение браузера не должно красить поле в жёлтый/голубой */
.auth-input input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 100px var(--auth-autofill) inset;
  transition: background-color 100000s;
}
.auth-input input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px var(--auth-autofill) inset, 0 0 0 4px var(--accent-soft);
}

.auth-eye {
  position: absolute; right: 9px; top: 50%; width: 38px; height: 38px; margin-top: -19px;
  display: grid; place-items: center; border-radius: 11px;
  color: var(--text-3);
  transition: color .15s, background .15s;
}
.auth-eye:hover { color: var(--text); background: var(--panel-2); }
.auth-eye:focus-visible { outline: none; color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-eye.is-on { color: var(--accent); }
.auth-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-eye .eye-off,
.auth-eye.is-on .eye-on { display: none; }
.auth-eye.is-on .eye-off { display: block; }

.auth-caps {
  display: flex; align-items: center; gap: 6px; margin: 0;
  font-size: 12.5px; font-weight: 500; color: var(--amber);
  animation: authFade .2s ease both;
}
.auth-caps svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

.auth-error {
  display: flex; align-items: flex-start; gap: 10px; margin: 0;
  padding: 12px 14px; border-radius: 13px;
  background: var(--red-soft); color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 28%, transparent);
  font-size: 13.5px; line-height: 1.45;
  animation: authFade .25s ease both;
}
.auth-error svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
@keyframes authFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.auth-submit {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; margin-top: 6px;
  border-radius: 15px;
  background: linear-gradient(135deg, #6d8bff 0%, #8a7fff 55%, #a274ff 100%);
  color: #fff; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em;
  box-shadow: 0 12px 32px -10px rgba(109, 139, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .15s var(--ease), box-shadow .25s, filter .25s;
}
/* Блик, пробегающий по кнопке при наведении */
.auth-submit::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform .8s var(--ease);
  pointer-events: none;
}
.auth-submit:hover { filter: brightness(1.07); box-shadow: 0 16px 40px -10px rgba(109, 139, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .28); }
.auth-submit:hover::after { transform: translateX(100%); }
.auth-submit:active { transform: scale(.985); }
.auth-submit:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft), 0 12px 32px -10px rgba(109, 139, 255, .7); }
.auth-submit[disabled] { cursor: default; }
.auth-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.auth-submit:hover .auth-arrow { transform: translateX(3px); }
.auth-spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.auth-submit.is-loading { filter: saturate(.9); }
.auth-submit.is-loading .auth-arrow { display: none; }
.auth-submit.is-loading .auth-spinner { display: block; }

.auth-setup { display: flex; flex-direction: column; gap: 12px; }
.auth-setup-lead { margin: 0 0 4px; text-align: center; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.auth-setup-step {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 13px;
  background: var(--auth-input-bg); border: 1px solid var(--auth-input-border);
}
.auth-setup-step span { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.auth-setup-step code {
  font-family: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px; color: var(--accent); text-align: right; overflow-wrap: anywhere; user-select: all;
}
.auth-setup-foot { margin: 4px 0 0; text-align: center; font-size: 12.5px; color: var(--text-3); }

@media (max-width: 480px) {
  .auth-card { padding: 36px 22px 26px; border-radius: 22px; }
  .auth-title { font-size: 26px; margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-glow, .auth-shell, .auth-card.is-shaking, .auth-error, .auth-caps { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  :root { --sidebar-w: 218px; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  .layout { grid-template-columns: 1fr; height: auto; }
  .sidebar {
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
    border-right: 0; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20;
  }
  .nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .nav-label, .side-filters, .nav-count { display: none; }
  .side-foot { margin: 0; padding: 0; border: 0; display: flex; }
  .topbar { flex-wrap: wrap; padding: 12px 16px; }
  .search { max-width: none; flex: 1 1 100%; }
  .topbar-actions { margin-left: 0; flex-wrap: wrap; }
  .stats, .content { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .main { overflow: visible; }
  .content { overflow: visible; }
}
