/* Админка Анны Вейт — палитра и шрифты сайта, сначала телефон */
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(fonts/manrope-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(fonts/manrope-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: Cormorant; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Cormorant; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --paper: #F5F1EB; --linen: #EAE2D7; --sand: #CBB8A6; --taupe: #9E8573; --mocha: #4E3B30;
  --ink: #231E1B; --ink-2: #6B5F57; --line: rgba(35, 30, 27, .14); --ok: #3F6B4A; --bad: #9B3B2E;
  --serif: Cormorant, Georgia, serif; --sans: Manrope, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(245, 241, 235, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__logo { font: 500 24px/1 var(--serif); text-decoration: none; margin-right: auto; }
.top__logo em { color: var(--taupe); }
.top a.top__link { font-size: 14px; text-decoration: none; color: var(--ink-2); }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 96px; }
h1 { font: 500 clamp(34px, 7vw, 48px)/1.05 var(--serif); margin: 8px 0 8px; }
h2 { font: 500 28px/1.1 var(--serif); margin: 32px 0 12px; }
.note { color: var(--ink-2); margin: 0 0 20px; }
.muted { color: var(--ink-2); font-size: 14px; }

.flash { padding: 14px 16px; border-radius: 14px; background: #E3EADF; color: var(--ok); margin: 0 0 20px; }
.error { padding: 14px 16px; border-radius: 14px; background: #F3E1DC; color: var(--bad); margin: 0 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 16px/1 var(--sans);
  text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--mocha); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.btn--wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Главная */
.status { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: var(--linen); margin-bottom: 16px; }
.status i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--sand); }
.status--ok i { background: var(--ok); }
.status--run i { background: var(--taupe); animation: pulse 1.2s ease-in-out infinite; }
.status--bad { background: #F3E1DC; }
.status--bad i { background: var(--bad); }
@keyframes pulse { 50% { opacity: .3; } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.tile { display: grid; gap: 4px; padding: 18px 16px; min-height: 96px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px var(--line); text-decoration: none; }
.tile b { font: 500 24px/1.1 var(--serif); }
.tile span { color: var(--ink-2); font-size: 13px; line-height: 1.35; }
.undo { margin-top: 28px; padding: 16px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.undo p { margin: 0 0 12px; }
.warn { padding: 16px; border-radius: 16px; background: #F6EBD8; margin-bottom: 16px; }

/* Список */
.list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px; padding-right: 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.row__img { width: 54px; height: 72px; flex: none; border-radius: 8px; object-fit: cover; background: var(--linen); }
.row__txt { flex: 1; min-width: 0; text-decoration: none; display: grid; gap: 2px; }
.row__txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__txt span { color: var(--ink-2); font-size: 13px; }
.row__grip { width: 40px; height: 48px; flex: none; display: grid; place-items: center; color: var(--taupe); cursor: grab; touch-action: none; }
.row__grip svg { width: 20px; height: 20px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--linen); font-size: 12px; color: var(--mocha); }
.sortable-ghost { opacity: .4; }

/* Форма */
.f { display: grid; gap: 22px; }
.f label, .f .lab { display: block; font-weight: 600; margin-bottom: 6px; }
.f .hint { display: block; color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.f input[type=text], .f input[type=email], .f input[type=password], .f input[type=number], .f input[type=date], .f textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font: 400 16px/1.45 var(--sans); color: var(--ink); }
.f textarea { min-height: 120px; resize: vertical; }
.f textarea.md { min-height: 360px; font-size: 15px; }
.f input:focus, .f textarea:focus { outline: 2px solid var(--taupe); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--mocha); }
.count { float: right; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.count.is-over { color: var(--bad); }

.pic { display: grid; gap: 10px; }
.pic__img { width: 160px; border-radius: 12px; background: var(--linen); box-shadow: 0 0 0 1px var(--line); }
.pic__img--wide { width: 100%; max-width: 360px; }
.pic input[type=file] { font-size: 14px; }
.pic__anchor { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.pic__anchor label { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; }

.rows { display: grid; gap: 12px; }
.lrow { position: relative; display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.lrow__bar { display: flex; justify-content: space-between; align-items: center; }
.lrow__bar .row__grip { width: 32px; height: 32px; }
.lrow input, .lrow textarea { padding: 12px 14px !important; }
.lrow textarea { min-height: 90px !important; }
.lrow .sub { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.link-btn { border: 0; background: none; padding: 6px 0; color: var(--bad); font: 600 14px var(--sans); cursor: pointer; }
.add-btn { border: 1px dashed var(--sand); background: none; border-radius: 14px; min-height: 52px; font: 600 15px var(--sans); color: var(--mocha); cursor: pointer; }

.preview { padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 17px; line-height: 1.65; }
.preview h2 { margin-top: 1.2em; }
.preview img { border-radius: 12px; margin: 1em 0; }
.sticky-actions { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--paper); box-shadow: 0 -1px 0 var(--line); }

/* Вход */
.auth { max-width: 420px; margin: 0 auto; padding: 56px 16px; }
.auth h1 { margin-bottom: 24px; }
.qr { width: 220px; border-radius: 12px; background: #fff; padding: 8px; box-shadow: 0 0 0 1px var(--line); }
.secret { font: 600 18px/1.6 ui-monospace, Menlo, monospace; letter-spacing: .04em; word-spacing: .2em; user-select: all; }
.codes { columns: 2; padding: 16px 16px 16px 36px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line);
  font: 600 17px/2 ui-monospace, Menlo, monospace; }
.steps { padding-left: 20px; } .steps li { margin-bottom: 8px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mt { margin-top: 20px; } .summary { cursor: pointer; }
.pick { position: relative; overflow: hidden; justify-self: start; }
.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.f label.pick { display: inline-flex; margin: 0; }
