/* aigusha.fashion — дизайн по design_handoff_aigusha_fashion (hi-fi). Мобильная раскладка — до 720px. */

:root {
  --stage: #F3EDEA;
  --surface: #FFFCFA;
  --white: #FFFFFF;
  --text: #2B2224;
  --text-2: #94807F;
  --text-2b: #A08D8C;
  --text-3: #B09E9D;
  --text-3b: #B9A7A6;
  --text-3c: #C0AEAD;
  --text-3d: #C4B2B1;
  --line: #EFE1DE;
  --line-2: #E7D8D5;
  --line-3: #F2E6E3;
  --line-4: #F1E2DF;
  --accent: #B26A76;
  --accent-hover: #96545F;
  --accent-light: #C79AA0;
  --pink-1: #F6E7E4;
  --pink-2: #F8EBE9;
  --pink-3: #FBF4F2;
  --pink-4: #FBF2F0;
  --pink-5: #FAEFEC;
  --placeholder: linear-gradient(150deg, #F7E9E6, #E6CBC9);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--text); background: var(--surface); -webkit-font-smoothing: antialiased; }
input, button, textarea, select { font-family: var(--sans); color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::placeholder { color: #C4B4B3; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes riseIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.wordmark { font-family: var(--serif); letter-spacing: 0.28em; text-transform: lowercase; color: var(--text); }
.wordmark span { color: var(--accent-light); }

.label { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.label--lg { font-size: 10.5px; letter-spacing: 0.18em; }

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

/* ================= Публичная главная ================= */

.home-desktop { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 100vh; }
.home-left { padding: 60px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.home-left .wordmark { font-size: 19px; }
.home-content { max-width: 520px; }
.home-title { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 72px; line-height: 1.05; margin: 0 0 22px; }
.home-lead { font-size: 14.5px; line-height: 1.7; color: var(--text-2); margin: 0 0 44px; max-width: 380px; text-wrap: pretty; }
.home-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.home-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 2px;
  border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 26px; color: var(--text); letter-spacing: 0.01em;
  transition: color .25s ease, padding-left .25s ease;
}
.home-link:hover { color: var(--accent); padding-left: 10px; }
.home-host { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3c); white-space: nowrap; }
.home-foot { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #C9B9B8; }
.home-art { background: linear-gradient(150deg, #F7E9E6 0%, #EED9D6 45%, #E2C3C2 100%); position: relative; }
.home-frame {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 62%; aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.28); overflow: hidden;
}
.home-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.home-mobile {
  min-height: 100vh; background: linear-gradient(180deg, var(--pink-5) 0%, var(--surface) 48%);
  padding: 38px 22px 44px; flex-direction: column; align-items: center; text-align: center;
}
.lt-avatar {
  width: 112px; height: 112px; border-radius: 50%; background: linear-gradient(150deg, #F7E9E6, #E2C3C2);
  border: 1px solid rgba(255, 255, 255, 0.8); margin-bottom: 22px; overflow: hidden;
}
.lt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-mobile .wordmark { font-size: 17px; letter-spacing: 0.26em; }
.lt-title { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 30px; line-height: 1.15; margin: 14px 0 10px; }
.lt-lead { font-size: 13.5px; line-height: 1.65; color: var(--text-2); margin: 0 0 30px; max-width: 300px; text-wrap: pretty; }
.lt-links { display: flex; flex-direction: column; gap: 11px; width: 100%; max-width: 340px; }
.lt-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; min-height: 62px;
  padding: 13px 18px; border: 1px solid var(--line-2); border-radius: 100px; background: var(--white);
  box-shadow: 0 8px 20px -16px rgba(90, 60, 62, 0.5); transition: background .25s ease, border-color .25s ease;
}
.lt-link-text { font-family: var(--serif); font-size: 21px; line-height: 1.15; color: var(--text); transition: color .25s ease; }
.lt-link-host { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3c); }
.lt-link:hover, .lt-link:active { background: var(--text); border-color: var(--text); }
.lt-link:hover .lt-link-text, .lt-link:active .lt-link-text { color: var(--surface); }
.lt-foot { margin-top: auto; padding-top: 36px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #C9B9B8; }

/* ================= Вход ================= */

.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px;
  background: linear-gradient(170deg, var(--surface) 0%, var(--pink-5) 100%);
}
.login-box { width: 100%; max-width: 380px; animation: riseIn .5s ease both; }
.login-head { text-align: center; margin-bottom: 38px; }
.login-head .wordmark { font-size: 17px; }
.login-title { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 34px; margin: 18px 0 6px; }
.login-sub { font-size: 13px; color: var(--text-2b); margin: 0; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form .label { font-size: 10.5px; letter-spacing: 0.18em; margin-bottom: 7px; }
.input {
  width: 100%; border: 1px solid var(--line-2); background: var(--white); border-radius: 2px; padding: 13px 15px;
  font-size: 14.5px; color: var(--text); outline: none; transition: border-color .2s ease;
}
.input:focus { border-color: var(--accent-light); }
.alert { background: #FBEDEC; border: 1px solid #F0D3D2; border-radius: 2px; padding: 11px 13px; font-size: 13px; color: #9E5A5A; line-height: 1.5; }
.btn-dark {
  margin-top: 6px; border: none; background: var(--text); color: var(--surface); padding: 15px; border-radius: 2px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; transition: background .2s ease;
}
.btn-dark:hover { background: var(--accent); }
.login-hint { text-align: center; font-size: 12px; color: var(--text-3c); margin: 10px 0 0; }

/* ================= Админка: каркас ================= */

.admin { min-height: 100vh; display: flex; flex-direction: column; max-width: 1400px; margin: 0 auto; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 34px; border-bottom: 1px solid var(--line); }
.admin-head .wordmark { font-size: 15px; letter-spacing: 0.26em; }
.admin-head .wordmark:hover { color: var(--text); }
.link-btn { border: none; background: none; padding: 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3b); transition: color .2s ease; }
.link-btn:hover { color: var(--accent); }
.tabs { display: flex; gap: 30px; padding: 20px 34px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  border-bottom: 1px solid transparent; padding: 0 0 10px; font-family: var(--serif); font-size: 23px; color: var(--text-2b); white-space: nowrap;
  transition: color .2s ease;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.tab-count { font-family: var(--sans); font-size: 11px; color: var(--text-3d); margin-left: 8px; }
.admin-body { padding: 30px 34px 48px; flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 70; background: var(--text); color: var(--surface);
  padding: 12px 22px; border-radius: 100px; font-size: 12.5px; letter-spacing: 0.06em; animation: riseIn .25s ease both;
  max-width: calc(100vw - 32px); text-align: center;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--text-2b); font-size: 12px; letter-spacing: 0.04em;
  padding: 7px 15px; border-radius: 100px; transition: border-color .2s ease, color .2s ease;
}
.chip:hover { color: var(--accent-hover); border-color: #E3C9C6; }
.chip.is-active { background: var(--pink-1); border-color: #E3C9C6; color: var(--accent-hover); }
.chip-count { color: var(--text-3d); margin-left: 7px; }

.badge { display: inline-block; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; white-space: nowrap; }
.badge-new { color: #9C7079; background: var(--pink-2); }
.badge-published { color: #6F7F63; background: #EEF2E9; }
.badge-rejected { color: #A38E8D; background: #F4EEED; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.pager-info { font-size: 12.5px; color: var(--text-2b); }
.pager-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--text-2b); font-size: 13px; transition: border-color .2s ease, color .2s ease;
}
a.pg:hover { border-color: var(--accent-light); color: var(--accent); }
.pg.is-active { background: var(--text); border-color: var(--text); color: var(--surface); }
.pg.is-disabled { opacity: .45; }
.pg-gap { color: var(--text-3c); padding: 0 4px; }

/* ================= Лента ================= */

.feed-status { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.queue-note { font-size: 13px; color: var(--text-2b); margin: 0; }
.scrape-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 11.5px; color: var(--text-3b); }
.scrape-line form { margin: 0; }
.scrape-btn {
  border: 1px solid var(--line); background: none; color: var(--accent); font-size: 11.5px; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 100px;
  transition: border-color .2s ease, background .2s ease;
}
.scrape-btn:hover { border-color: var(--accent-light); background: var(--pink-4); }
.scrape-btn:disabled { color: var(--text-3b); cursor: default; background: none; border-color: var(--line); }
.scrape-line a { color: var(--text-3b); border-bottom: 1px solid var(--line); }
.scrape-line a:hover { color: var(--accent); }
.rate { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.rate-line { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-2b); }
.rate-box { border: 1px solid var(--line); border-radius: 2px; background: var(--pink-3); padding: 7px 12px; font-size: 14px; color: var(--text); }
.rate-note { font-size: 11.5px; color: var(--text-3b); text-align: right; max-width: 360px; line-height: 1.5; }

.empty { text-align: center; padding: 80px 20px; animation: riseIn .4s ease both; }
.empty-dot { width: 74px; height: 74px; margin: 0 auto 24px; border-radius: 50%; background: linear-gradient(150deg, #F7E9E6, #E9CFCD); }
.empty-title { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 30px; margin: 0 0 10px; }
.empty-text { font-size: 14px; color: var(--text-2b); margin: 0 auto; max-width: 300px; line-height: 1.6; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 22px; align-items: start; }
.sheet, .sheet-panel { display: contents; }
.sheet-head { display: none; }

.card { border: 1px solid var(--line); border-radius: 3px; background: var(--white); padding: 20px; transition: opacity .25s ease; }
.card.is-busy { opacity: .6; pointer-events: none; }
.card-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-pill {
  display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 64%; border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 14px; font-size: 12px; color: var(--accent); transition: border-color .2s ease, background .2s ease;
}
.site-pill:hover { border-color: var(--accent-light); background: var(--pink-4); }
.site-pill-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3c); }

.photos-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.photos-hint { font-size: 11px; color: var(--text-3d); }
.photo-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.photo { position: relative; flex: 0 0 auto; width: 168px; aspect-ratio: 3 / 4; cursor: pointer; scroll-snap-align: start; background: var(--placeholder); display: block; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-mark {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.4); color: #fff; font-size: 13px; line-height: 26px; text-align: center;
}
.photo:has(input:checked)::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--accent); pointer-events: none; }
.photo:has(input:checked) .photo-mark { background: var(--accent); border-color: var(--accent); }
.photo:has(input:checked) .photo-mark::after { content: '✓'; }
.photo:has(input:focus-visible) { outline: 2px solid var(--accent-light); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.fields .field--wide { grid-column: span 2; }
.fields .label { margin-bottom: 5px; }
.line-input {
  width: 100%; border: none; border-bottom: 1px solid var(--line); background: none; padding: 5px 0; font-size: 14.5px; color: var(--text);
  outline: none; border-radius: 0; transition: border-color .2s ease;
}
.line-input:focus { border-bottom-color: var(--accent-light); }
.line-input--title { font-family: var(--serif); font-size: 21px; }
.size-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.in-post { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0.02em; font-size: 11.5px; color: var(--text-2b); cursor: pointer; }
.in-post input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); cursor: pointer; }

.price-panel { background: var(--pink-3); border: 1px solid var(--line-4); border-radius: 3px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pp-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pp-row--top { align-items: flex-start; }
.pp-row--sep { border-top: 1px solid var(--line-4); padding-top: 10px; }
.pp-row--final { align-items: baseline; }
.pp-k { display: block; font-size: 13px; color: var(--text-2); }
.pp-sub { display: block; font-size: 11px; color: var(--text-3b); margin-top: 2px; }
.pp-box { border: 1px solid var(--line); border-radius: 2px; background: var(--white); padding: 7px 12px; font-size: 17px; color: var(--text); white-space: nowrap; }
.pp-v { font-size: 15px; color: var(--text); white-space: nowrap; }
.pp-markup { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.markup-input {
  width: 54px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; padding: 5px 8px; font-size: 13px; color: var(--text);
  text-align: center; outline: none;
}
.markup-input:focus { border-color: var(--accent-light); }
.markup-input:invalid { border-color: #F0D3D2; }
.pp-delta { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.pp-final-k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-hover); }
.pp-final { font-family: var(--serif); font-size: 26px; color: var(--text); white-space: nowrap; }
.pp-rate { display: none; }

.textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 2px; background: #fff; padding: 12px 14px; font-size: 14px; line-height: 1.55;
  color: var(--text); outline: none; resize: vertical; display: block;
}
.textarea:focus { border-color: var(--accent-light); }
.card .label + .textarea { margin-top: 6px; }

.tg-wrap { background: #F4EFED; border-radius: 3px; padding: 14px; margin-top: 8px; }
.tg-bubble { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px -14px rgba(90, 60, 62, 0.6); max-width: 330px; }
.tg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.tg-grid > div { aspect-ratio: 3 / 4; background: var(--placeholder); position: relative; overflow: hidden; }
.tg-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tg-body { padding: 12px 14px 14px; }
.tg-text { font-size: 13.5px; line-height: 1.55; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.tg-price { font-size: 13.5px; color: var(--text); margin-top: 8px; }
.tg-foot { font-size: 11px; color: var(--text-3b); margin-top: 10px; }

.card-actions { display: flex; gap: 10px; padding-top: 2px; }
.btn-primary {
  flex: 1; border: none; background: var(--accent); color: var(--surface); padding: 13px; border-radius: 2px; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; transition: background .2s ease;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  flex: 0 0 auto; border: 1px solid var(--line-2); background: none; color: var(--text-2); padding: 13px 22px; border-radius: 2px; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; transition: border-color .2s ease, color .2s ease;
}
.btn-outline:hover { border-color: var(--accent-light); color: var(--accent); }
.btn-primary:disabled, .btn-outline:disabled { opacity: .6; cursor: default; }

.mlist { display: none; }

/* ================= Архив ================= */

.arch-list { display: flex; flex-direction: column; }
.arch-row {
  display: flex; gap: 16px; align-items: center; text-align: left; width: 100%; border: none; border-bottom: 1px solid var(--line-3);
  background: none; padding: 15px 4px; transition: background .2s ease;
}
.arch-row:hover { background: #FDF6F4; }
.thumb { flex: 0 0 auto; aspect-ratio: 3 / 4; background: var(--placeholder); display: block; position: relative; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch-row .thumb { width: 48px; }
.arch-main { flex: 1; min-width: 0; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.arch-text { flex: 1; min-width: 0; display: block; }
.arch-title { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.25; color: var(--text); }
.arch-sub { display: block; font-size: 12.5px; color: var(--text-2b); margin-top: 2px; }
.arch-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.arch-date { font-size: 11.5px; color: var(--text-3c); white-space: nowrap; }
.arch-empty { text-align: center; padding: 60px 20px; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--text-3); margin: 0; }

/* Шторка: у архива — всегда поверх страницы; у карточек ленты — только на мобильном. */
.sheet.sheet--overlay { display: none; }
.sheet.sheet--overlay.is-open {
  display: flex; position: fixed; inset: 0; z-index: 40; background: rgba(43, 34, 36, 0.32); align-items: flex-end; justify-content: center;
}
.sheet--overlay .sheet-panel {
  display: block; width: 100%; max-width: 560px; max-height: 96%; overflow-y: auto; background: var(--surface); border-radius: 6px 6px 0 0;
  animation: sheetUp .28s ease both;
}
.sheet--overlay .sheet-head {
  position: sticky; top: 0; z-index: 2; background: var(--surface); display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.sheet-close { border: none; background: none; font-size: 20px; line-height: 1; color: var(--text-3b); padding: 4px; min-width: 44px; min-height: 44px; margin: -12px -12px -12px 0; }
.sheet-close:hover { color: var(--accent); }
.sheet-body { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.sheet-title { font-family: var(--serif); font-size: 30px; font-weight: 300; margin: 0; line-height: 1.15; }
.sheet-body .tg-bubble { max-width: none; }
.sheet-body .tg-wrap { padding: 12px; }
.sheet-body .tg-text, .sheet-body .tg-price { font-size: 14px; }
.photo-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid-3 .thumb { width: 100%; }
.facts { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.fact { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-3); padding-bottom: 9px; }
.fact-k { color: var(--text-2b); font-size: 12.5px; letter-spacing: 0.04em; }
.fact-v { text-align: right; overflow-wrap: anywhere; }
.sheet-actions { display: flex; gap: 10px; }
body.has-sheet { overflow: hidden; }

/* ================= Редактор главной ================= */

.editor { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 34px; align-items: start; }
.editor-note { font-size: 13px; color: var(--text-2b); margin: 0 0 20px; max-width: 440px; line-height: 1.6; }
.link-rows { display: flex; flex-direction: column; gap: 10px; }
.link-row { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 3px; background: var(--white); padding: 12px 14px; }
.link-arrows { display: flex; flex-direction: column; gap: 2px; }
.icon-btn { border: none; background: none; color: var(--text-3c); font-size: 12px; line-height: 1; padding: 2px; transition: color .2s ease; }
.icon-btn:hover { color: var(--accent); }
.icon-btn:disabled { opacity: .35; cursor: default; color: var(--text-3c); }
.link-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.link-text { width: 100%; border: none; background: none; padding: 2px 0; font-family: var(--serif); font-size: 21px; color: var(--text); outline: none; }
.link-url { width: 100%; border: none; border-top: 1px solid var(--line-3); background: none; padding: 6px 0 0; font-size: 12.5px; color: var(--text-2b); outline: none; }
.link-remove { font-size: 16px; color: #CDBBBA; padding: 6px; }
.add-link {
  margin-top: 14px; border: 1px dashed #DCC8C6; background: none; color: var(--accent); width: 100%; padding: 13px; border-radius: 2px;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; transition: background .2s ease;
}
.add-link:hover { background: var(--pink-4); }
.save-state { min-height: 18px; margin-top: 10px; font-size: 11.5px; color: var(--text-3b); }
.save-state.is-error { color: #9E5A5A; }
.preview { border: 1px solid var(--line); border-radius: 3px; background: linear-gradient(170deg, var(--surface), var(--pink-5)); padding: 26px; }
.preview .wordmark { font-size: 12px; letter-spacing: 0.26em; margin-bottom: 18px; }
.preview-title { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 26px; margin: 0 0 18px; }
.preview-links { border-top: 1px solid var(--line); }
.preview-link { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.preview-link-text { font-family: var(--serif); font-size: 18px; color: var(--text); overflow-wrap: anywhere; }
.preview-link-host { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3c); white-space: nowrap; }

/* ================= Служебные страницы (журнал, источники) ================= */

.page-title { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 30px; margin: 0 0 8px; }
.page-note { font-size: 13px; color: var(--text-2b); margin: 0 0 22px; line-height: 1.6; }
.plain-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.plain-table th { text-align: left; font-weight: 400; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); padding: 0 10px 10px 0; }
.plain-table td { border-top: 1px solid var(--line-3); padding: 12px 10px 12px 0; vertical-align: top; overflow-wrap: anywhere; }
.plain-table form { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.log { white-space: pre-wrap; background: var(--pink-3); border: 1px solid var(--line-4); border-radius: 3px; padding: 14px 16px; font-size: 12.5px; line-height: 1.6; overflow-x: auto; }
.form-stack { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.form-stack .label { margin-bottom: 7px; }
.btn-small {
  border: 1px solid var(--line-2); background: none; color: var(--text-2); padding: 6px 12px; border-radius: 100px; font-size: 11.5px;
  transition: border-color .2s ease, color .2s ease;
}
.btn-small:hover { border-color: var(--accent-light); color: var(--accent); }

/* ================= Мобильная раскладка ================= */

@media (max-width: 720px) {
  .mobile-only { display: revert !important; }
  .desktop-only { display: none !important; }

  .home-desktop { display: none; }
  .home-mobile { display: flex; }

  .admin-head { padding: 16px 18px; }
  .tabs { gap: 20px; padding: 16px 18px 0; }
  .tab { font-size: 20px; }
  .admin-body { padding: 20px 18px 40px; }

  .rate { align-items: flex-start; }
  .rate-note { text-align: left; }

  .chip { min-height: 36px; }

  .pager { flex-direction: column; justify-content: center; }
  .pager-nav { justify-content: center; }
  .pg { min-width: 44px; height: 44px; font-size: 14px; }

  /* Лента: компактный список + карточка в шторке */
  .mlist { display: flex; flex-direction: column; gap: 12px; }
  .mrow { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; border: 1px solid var(--line); border-radius: 3px; background: var(--white); padding: 12px; }
  .mrow .thumb { width: 64px; }
  .mrow-text { flex: 1; min-width: 0; display: block; }
  .mrow-title { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.2; color: var(--text); }
  .mrow-sub { display: block; font-size: 12.5px; color: var(--text-2b); margin-top: 3px; }
  .mrow-price { display: block; font-size: 13.5px; color: var(--text); margin-top: 6px; }
  .mrow-chev { flex: 0 0 auto; font-size: 18px; color: #CDBBBA; }

  .cards { display: block; }
  .cards > .sheet { display: none; }
  .cards > .sheet.is-open {
    display: flex; position: fixed; inset: 0; z-index: 40; background: rgba(43, 34, 36, 0.32); align-items: flex-end; justify-content: center;
  }
  .cards > .sheet .sheet-panel {
    display: block; width: 100%; max-width: 560px; max-height: 96%; overflow-y: auto; background: var(--surface); border-radius: 6px 6px 0 0;
    animation: sheetUp .28s ease both;
  }
  .cards > .sheet .sheet-head {
    display: flex; position: sticky; top: 0; z-index: 2; background: var(--surface); align-items: center; justify-content: space-between;
    gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line);
  }
  .card { border: none; border-radius: 0; background: none; padding: 0; }
  .card-form { gap: 22px; padding: 18px 18px 0; }
  .card-top { display: none; }
  .photos-head { margin-bottom: 9px; }
  .photo-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; overflow: visible; padding: 0; }
  .photo { width: 100%; }
  .photo-mark { top: 7px; right: 7px; width: 24px; height: 24px; line-height: 24px; font-size: 12px; }
  .fields { gap: 16px 12px; }
  .fields .label { margin-bottom: 6px; }
  .line-input { border: 1px solid var(--line); border-radius: 2px; background: #fff; padding: 13px 14px; font-size: 15px; }
  .line-input:focus { border-color: var(--accent-light); }
  .line-input--title { font-size: 21px; }
  .in-post { font-size: 11px; gap: 5px; }
  .in-post input { width: 16px; height: 16px; }
  .price-panel { gap: 12px; }
  .pp-row--sep { padding-top: 12px; }
  .pp-row--top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pp-k { font-size: 13.5px; }
  .pp-row--top .pp-sub { display: inline; margin: 0 0 0 6px; }
  .pp-box { padding: 9px 12px; }
  .pp-rate { display: flex; }
  .pp-delta { display: none; }
  .markup-input { width: 76px; padding: 10px; font-size: 15px; }
  .pp-markup .pp-k-inline { font-size: 13.5px; }
  .pp-final { font-size: 28px; }
  .textarea { font-size: 15px; padding: 13px 14px; }
  .tg-wrap { padding: 12px; }
  .tg-bubble { max-width: none; }
  .tg-text, .tg-price { font-size: 14px; }
  .card-link { font-size: 12.5px; word-break: break-all; }
  .card-actions {
    position: sticky; bottom: 0; margin: 0 -18px; padding: 14px 18px; background: var(--surface); border-top: 1px solid var(--line);
  }
  .btn-primary, .btn-outline { padding: 16px; }
  .btn-outline { padding: 16px 20px; }

  .arch-main { flex-direction: column; gap: 8px; align-items: flex-start; }

  .editor { grid-template-columns: 1fr; }
  .icon-btn { padding: 8px 10px; font-size: 13px; }
  .link-remove { padding: 10px; }

  .plain-table th:nth-child(n+4), .plain-table td:nth-child(n+4) { display: none; }
}
