/* ===== Студия: дизайн-система ===== */
:root {
  --bg: #F4F4F6;
  --panel: #FFFFFF;
  --line: #E7E7EB;
  --line-2: #EFEFF2;
  --text: #18181B;
  --muted: #71717A;
  --faint: #A1A1AA;
  --accent: #5B4BF5;
  --accent-2: #4C3CEB;
  --accent-soft: #EEECFF;
  --danger: #E5484D;
  --ok: #12A150;
  --warn: #C27803;
  --r: 12px;
  --shadow: 0 1px 2px rgba(16, 16, 28, .06), 0 8px 24px -12px rgba(16, 16, 28, .18);
  --top: 56px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3, h4, p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.center { text-align: center; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-s { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; gap: 8px; align-items: center; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.ico-w { display: inline-flex; }
.i { flex: none; }
kbd { font: 600 11px Inter, sans-serif; background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }

/* ----- Кнопки ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s; }
.btn:hover { border-color: #D4D4D8; background: #FAFAFA; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(91, 75, 245, .35), inset 0 1px 0 rgba(255,255,255,.15); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: #ECECEF; border-color: transparent; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #D13B40; border-color: #D13B40; }
.btn.is-danger { color: var(--danger); }
.btn.is-danger:hover { background: #FEF0F0; border-color: #F9C9CA; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-dashed { border-style: dashed; background: transparent; color: var(--muted); align-self: flex-start; }
.btn-dashed:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.btn-col { display: flex; flex-direction: column; gap: 8px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none; transition: background-color .15s, color .15s; }
.btn-icon:hover { background: #ECECEF; color: var(--text); }
.btn-icon:disabled { opacity: .35; pointer-events: none; }
.btn-icon.btn-xs { width: 26px; height: 26px; border-radius: 7px; }
.btn-icon.is-danger:hover { background: #FEF0F0; color: var(--danger); }

/* ----- Поля ----- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-l { font-weight: 600; font-size: 12.5px; color: #3F3F46; }
.input { width: 100%; min-width: 0; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 13.5px; }
.input:hover { border-color: #D4D4D8; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 75, 245, .16); }
.input-lg { height: 46px; font-size: 15px; padding: 0 14px; border-radius: 11px; }
.textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.45; min-height: 64px; }
.textarea.code { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; min-height: 100px; }
.select { appearance: none; padding-right: 30px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2371717A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center; }
.input-num { height: 30px; padding: 0 8px; font-size: 13px; }
.input-hex { width: 110px; font-family: ui-monospace, monospace; font-size: 12.5px; text-transform: uppercase; }
.prefix-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.prefix-in span { padding: 0 4px 0 11px; color: var(--muted); }
.prefix-in .input { border: 0; box-shadow: none; padding-left: 2px; }
.prefix-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 75, 245, .16); }
.link-in { position: relative; }
.link-in .link-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); display: flex; pointer-events: none; }
.link-in .input { padding-left: 32px; }
.form-error { color: var(--danger); font-weight: 600; font-size: 13px; margin: 0; }

.seg { display: inline-flex; background: #ECECEF; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; height: 28px; padding: 0 10px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16, 16, 28, .12); }
.seg-full { display: flex; }
.seg-full button { flex: 1; padding: 0 4px; min-width: 0; }
.seg-ico button { width: 36px; padding: 0; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 500; font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-t { width: 34px; height: 20px; border-radius: 999px; background: #D4D4D8; position: relative; flex: none; transition: background-color .15s; }
.switch-t::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .switch-t { background: var(--accent); }
.switch input:checked + .switch-t::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-t { box-shadow: 0 0 0 3px rgba(91, 75, 245, .25); }

.range-row { display: flex; align-items: center; gap: 10px; }
.range { flex: 1; accent-color: var(--accent); }
.range-v { min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.color-row { display: flex; gap: 8px; align-items: center; }
.swatch-in { width: 36px; height: 36px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); flex: none; position: relative; cursor: pointer; }
.swatch-in input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); border: 0; padding: 0; cursor: pointer; }

.box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #FBFBFC; }
.box-t { font-weight: 700; font-size: 12.5px; }

.rich-wrap { border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.rich-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 75, 245, .16); }
.rich-bar { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line-2); background: #FAFAFB; }
.rich-bar button { border: 0; background: none; width: 28px; height: 26px; border-radius: 6px; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.rich-bar button:hover { background: #ECECEF; color: var(--text); }
.rich { border: 0 !important; box-shadow: none !important; height: auto; min-height: 72px; max-height: 280px; overflow: auto; padding: 9px 11px; line-height: 1.5; border-radius: 0; }

/* картинка в поле */
.img-field { display: flex; gap: 10px; align-items: center; }
.img-prev { width: 76px; height: 56px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); padding: 0; cursor: pointer; background: repeating-conic-gradient(#F1F1F3 0% 25%, #fff 0% 50%) 0 0 / 12px 12px; flex: none; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-prev-sm { width: 100%; height: 120px; }
.img-acts { display: flex; gap: 4px; align-items: center; }
.img-empty { flex: 1; height: 56px; border: 1px dashed #D4D4D8; border-radius: 10px; background: #FAFAFB; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 13px; }
.img-empty:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.icon-pick { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 12px 6px 8px; cursor: pointer; align-self: flex-start; color: var(--accent); font-weight: 600; }
.icon-pick span { color: var(--text); font-size: 13px; }
.icon-pick:hover { border-color: var(--accent); }

/* списки */
.list { display: flex; flex-direction: column; gap: 6px; }
.list-h { display: flex; justify-content: space-between; align-items: baseline; }
.item { border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.item-h { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; cursor: pointer; user-select: none; min-height: 40px; }
.item-chev { display: flex; color: var(--faint); transition: transform .15s; }
.item.is-open .item-chev { transform: rotate(90deg); }
.item-t { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-t i { font-style: normal; color: var(--faint); font-weight: 500; }
.item-acts { display: flex; gap: 0; opacity: .5; transition: opacity .15s; }
.item-h:hover .item-acts, .item.is-open .item-acts { opacity: 1; }
.item-b { display: none; flex-direction: column; gap: 12px; padding: 12px; border-top: 1px solid var(--line-2); }
.item.is-open .item-b { display: flex; }

.gal-field { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gal-t { position: relative; }
.gal-img { width: 100%; aspect-ratio: 1; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); padding: 0; cursor: pointer; background: #F4F4F6; display: block; }
.gal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-acts { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; justify-content: center; gap: 2px; opacity: 0; transition: opacity .15s; }
.gal-t:hover .gal-acts { opacity: 1; }
.gal-acts button { border: 0; width: 24px; height: 24px; border-radius: 6px; background: rgba(24, 24, 27, .82); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gal-acts button:disabled { opacity: .35; }
.gal-add { aspect-ratio: 1; border: 1px dashed #D4D4D8; border-radius: 9px; background: #FAFAFB; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-size: 12px; font-weight: 600; }
.gal-add:hover { border-color: var(--accent); color: var(--accent); }

.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill-ok { background: #E3F7EA; color: #0E7A3D; }
.pill-warn { background: #FFF2DB; color: #9A5B00; }
.pill-muted { background: #EFEFF2; color: var(--muted); }
.pill-err { background: #FEF0F0; color: var(--danger); }

/* ----- Тосты ----- */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3000; pointer-events: none; }
.toast { background: #18181B; color: #fff; padding: 10px 16px; border-radius: 11px; font-weight: 500; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; max-width: min(520px, 90vw); }
.toast.is-on { opacity: 1; transform: none; }
.toast-error { background: var(--danger); }

/* ----- Модалки и меню ----- */
.overlay { position: fixed; inset: 0; background: rgba(16, 16, 28, .38); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 2000; opacity: 0; transition: opacity .18s; }
.overlay.is-on { opacity: 1; }
.modal { background: #fff; border-radius: 18px; width: min(520px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; box-shadow: 0 30px 80px -20px rgba(16, 16, 28, .45); transform: translateY(8px) scale(.985); transition: transform .18s; }
.overlay.is-on .modal { transform: none; }
.modal-wide { width: min(1080px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.modal-h h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.modal-b { padding: 4px 20px 20px; overflow: auto; }
.modal-f { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.confirm-text { color: #3F3F46; }
.menu { position: fixed; z-index: 2500; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 5px; min-width: 210px; box-shadow: 0 16px 40px -12px rgba(16, 16, 28, .3); animation: pop .12s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.menu-i { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; font-weight: 500; }
.menu-i:hover { background: #F4F4F6; }
.menu-i .ico-w { color: var(--muted); }
.menu-i.is-danger { color: var(--danger); }
.menu-i.is-danger .ico-w { color: var(--danger); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.menu-hint { margin-left: auto; color: var(--faint); font-size: 12px; }
.url-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 6px 6px 6px 14px; background: #FAFAFB; }
.url-box a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.url-box-sm { padding: 4px 4px 4px 10px; font-size: 12.5px; }

/* ----- Вход ----- */
.login { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(1200px 600px at 20% 0%, #ECEAFF, transparent 60%), radial-gradient(900px 500px at 100% 100%, #FDEBF3, transparent 60%), var(--bg); }
.login-card { width: min(400px, 100%); background: #fff; border-radius: 22px; padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px -30px rgba(16, 16, 28, .35), 0 0 0 1px rgba(16,16,28,.04); }
.login-card h1 { font-size: 26px; letter-spacing: -.02em; margin-top: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, #7B6CFF, #5B4BF5 55%, #3F31D6); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); position: relative; }
.brand-mark::after { content: ''; position: absolute; inset: 8px 7px; border-top: 2.5px solid #fff; border-bottom: 2.5px solid #fff; border-radius: 1px; }
.brand-lg { font-size: 20px; }

/* ----- Список сайтов ----- */
.dash { min-height: 100%; }
.dash-top { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.dash-top-r { display: flex; gap: 4px; }
.dash-main { max-width: 1280px; margin: 0 auto; padding: 36px 28px 80px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-head h1 { font-size: 30px; letter-spacing: -.025em; margin-bottom: 4px; }
.sites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.site-card { background: #fff; border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .18s, transform .18s; outline: none; }
.site-card:hover, .site-card:focus-visible { box-shadow: 0 0 0 1px #D4D4D8, 0 18px 40px -20px rgba(16, 16, 28, .35); transform: translateY(-2px); }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #F4F4F6; border-bottom: 1px solid var(--line-2); --s: .25; }
.thumb iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; }
.site-meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.site-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.site-row h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-sub { justify-content: flex-start; font-size: 12.5px; }
.site-new { border: 2px dashed #D4D4D8; border-radius: 16px; background: transparent; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; transition: all .15s; }
.site-new:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.empty-big { text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px var(--line); }
.empty-big h2 { font-size: 22px; letter-spacing: -.02em; }
.empty-big .btn { margin-top: 8px; }
.empty-art { width: 76px; height: 76px; border-radius: 22px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }

.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tpl { border: 0; background: #fff; padding: 0; text-align: left; border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s; }
.tpl:hover { box-shadow: 0 0 0 1px #C4C4CC, 0 10px 24px -14px rgba(16,16,28,.3); }
.tpl.is-on { box-shadow: 0 0 0 2.5px var(--accent), 0 10px 24px -14px rgba(91, 75, 245, .5); }
.thumb-tpl { aspect-ratio: 16 / 11; }
.thumb-tpl iframe { height: 880px; }
.tpl-meta { padding: 10px 12px 12px; }
.tpl-name { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tpl-dot { width: 10px; height: 10px; border-radius: 50%; }
.tpl-desc { font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.modal-f .muted.grow { font-size: 12.5px; }

/* ----- Редактор ----- */
.ed { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.ed-top { height: var(--top); flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 10px; background: #fff; border-bottom: 1px solid var(--line); z-index: 5; }
.ed-top-l, .ed-top-c, .ed-top-r { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ed-top-r { justify-content: flex-end; }
.ed-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; padding-left: 2px; }
.ed-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; flex: none; }
.page-switch { padding: 0 10px; max-width: 220px; }
.page-switch span { overflow: hidden; text-overflow: ellipsis; }
.ed-status { font-size: 12.5px; color: var(--muted); margin-right: 6px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ed-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ed-status.is-saving::before, .ed-status.is-dirty::before { background: var(--warn); }
.ed-status.is-error { color: var(--danger); }
.ed-status.is-error::before { background: var(--danger); }
.ed-body { flex: 1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) 340px; }

.ed-left { display: flex; background: #fff; border-right: 1px solid var(--line); min-height: 0; }
.rail { width: 64px; flex: none; border-right: 1px solid var(--line-2); padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; }
.rail button { border: 0; background: none; border-radius: 10px; padding: 8px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; color: var(--muted); }
.rail button small { font-size: 10.5px; font-weight: 600; }
.rail button:hover { background: #F4F4F6; color: var(--text); }
.rail button.is-on { background: var(--accent-soft); color: var(--accent); }
.panel { width: 276px; overflow-y: auto; padding: 14px 14px 40px; display: flex; flex-direction: column; gap: 14px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.panel-h h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }

.blist { display: flex; flex-direction: column; gap: 4px; }
.brow { display: flex; align-items: center; gap: 8px; padding: 7px 6px 7px 6px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; background: #fff; position: relative; }
.brow:hover { background: #F7F7F9; }
.brow.is-on { background: var(--accent-soft); border-color: #D9D4FF; }
.brow.is-hidden .brow-t { opacity: .45; }
.brow.is-global { background: #FAFAFB; }
.brow.is-drag { opacity: .4; }
.brow.drop-before::before, .brow.drop-after::after { content: ''; position: absolute; left: 6px; right: 6px; height: 2px; background: var(--accent); border-radius: 2px; }
.brow.drop-before::before { top: -3px; }
.brow.drop-after::after { bottom: -3px; }
.brow-drag { color: var(--faint); display: flex; cursor: grab; }
.brow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.brow-t b { font-size: 13px; font-weight: 600; }
.brow-t span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blist-empty { text-align: center; padding: 16px; font-size: 13px; }

.plist { display: flex; flex-direction: column; gap: 4px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border-radius: 10px; cursor: pointer; }
.prow:hover { background: #F7F7F9; }
.prow.is-on { background: var(--accent-soft); }
.prow-ico { color: var(--muted); display: flex; }
.prow.is-on .prow-ico { color: var(--accent); }
.prow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.prow-t b { font-weight: 600; font-size: 13.5px; }
.prow-t span { color: var(--muted); font-size: 12px; }

.sect { display: flex; flex-direction: column; gap: 10px; }
.sect-t { font-weight: 700; font-size: 13px; }
details.sect { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; gap: 12px; }
details.sect > summary { cursor: pointer; font-weight: 600; font-size: 13px; list-style: none; display: flex; justify-content: space-between; }
details.sect > summary::after { content: '+'; color: var(--muted); font-size: 16px; line-height: 1; }
details.sect[open] > summary::after { content: '−'; }
details.sect[open] > summary { margin-bottom: 4px; }
.palettes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pal { border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.pal:hover { border-color: #C4C4CC; }
.pal.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pal-sw { height: 34px; border-radius: 7px; display: flex; align-items: flex-end; gap: 3px; padding: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.pal-sw i { width: 10px; height: 10px; border-radius: 50%; }
.pal-n { font-size: 11.5px; font-weight: 600; text-align: center; }
.colors { display: flex; flex-direction: column; gap: 6px; }
.color-i { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.color-i .swatch-in { width: 28px; height: 28px; border-radius: 8px; }
.color-n { flex: 1; font-size: 13px; }
.hex { font: 11.5px ui-monospace, monospace; color: var(--muted); text-transform: uppercase; }
.fpairs { display: flex; flex-direction: column; gap: 6px; }
.fpair { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 8px 10px; cursor: pointer; text-align: left; }
.fpair:hover { border-color: #C4C4CC; }
.fpair.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.fpair-h { font-size: 26px; line-height: 1; width: 44px; flex: none; }
.fpair-t { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.fpair-t b { font-size: 13px; }
.fpair-t small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dom-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.dom-row .grow { color: var(--text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dom-item { display: flex; flex-direction: column; gap: 4px; }
.dom-msg { padding: 0 4px; overflow-wrap: anywhere; white-space: pre-line; max-height: 120px; overflow: auto; }
.dom-msg.is-err { color: var(--danger); }
.hist-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.leads { display: flex; flex-direction: column; gap: 8px; }
.lead { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.lead-h { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.lead-f span { font-size: 11.5px; color: var(--muted); }
.lead-f div { font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lead-err { font-size: 12px; color: var(--danger); }
.leads-empty { text-align: center; padding: 30px 10px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }

.ed-stage { background: #E9E9EE; min-width: 0; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.frame-wrap { flex: none; position: relative; }
.frame { position: absolute; left: 0; top: 0; border: 0; background: #fff; transform-origin: 0 0; }
.frame-wrap.is-tablet, .frame-wrap.is-mobile { margin-top: 24px; }
.frame-wrap.is-tablet .frame { border-radius: 18px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 20px 50px -20px rgba(16,16,28,.35); }
.frame-wrap.is-mobile .frame { border-radius: 26px; box-shadow: 0 0 0 8px #18181B, 0 30px 60px -20px rgba(16,16,28,.5); }

.ed-right { background: #fff; border-left: 1px solid var(--line); min-height: 0; display: flex; flex-direction: column; }
.insp { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.insp-h { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line-2); }
.insp-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.insp-title h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 3px; }
.variants { display: flex; flex-wrap: wrap; gap: 6px; }
.variant { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 6px 10px; font-weight: 600; font-size: 12.5px; cursor: pointer; color: #3F3F46; }
.variant:hover { border-color: #C4C4CC; }
.variant.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tabs { display: flex; gap: 16px; margin-top: 2px; }
.tabs button { border: 0; background: none; padding: 8px 0 10px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button.is-on { color: var(--text); border-bottom-color: var(--accent); }
.insp-body { flex: 1; overflow-y: auto; padding: 16px 14px 30px; display: flex; flex-direction: column; gap: 16px; }
.insp-f { display: flex; gap: 4px; padding: 8px 10px; border-top: 1px solid var(--line-2); }
.insp-f .btn.is-danger { margin-left: auto; }
.insp-empty { padding: 34px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.insp-empty h3 { font-size: 17px; }
.insp-empty-art { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.shortcuts { margin-top: 18px; width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--muted); font-size: 12.5px; }
.shortcuts > div { display: flex; align-items: center; gap: 4px; }
.shortcuts span { margin-left: 8px; }
.zero-cta { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; padding: 10px 4px; }
.zero-cta-art { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }

/* медиатека и иконки */
.dropzone { border: 2px dashed #D4D4D8; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; background: #FAFAFB; transition: all .15s; outline: none; }
.dropzone:hover, .dropzone.is-over, .dropzone:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.is-busy { opacity: .6; pointer-events: none; }
.dz-ico { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); margin-bottom: 6px; }
.dz-t b { color: var(--accent); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.media-grid-sm { grid-template-columns: repeat(8, 1fr); }
.media-tile { position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); padding: 0; cursor: pointer; background: repeating-conic-gradient(#F1F1F3 0% 25%, #fff 0% 50%) 0 0 / 14px 14px; }
.media-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tile:hover { box-shadow: 0 0 0 2px var(--accent); }
.media-tile.is-current { box-shadow: 0 0 0 2px var(--accent); }
.media-tile.is-picked::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.media-tile.is-picked { box-shadow: 0 0 0 2.5px var(--accent); }
.media-file { font-size: 12px; padding: 8px; word-break: break-all; background: #FAFAFB; }
.media-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 7px; background: rgba(24, 24, 27, .8); color: #fff; display: none; align-items: center; justify-content: center; }
.media-tile:hover .media-del { display: flex; }
.media-del:hover { background: var(--danger); }
.media-empty { grid-column: 1 / -1; padding: 16px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: 60vh; overflow: auto; }
.icon-cell { border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 12px 4px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); }
.icon-cell span { font-size: 11px; color: var(--muted); }
.icon-cell:hover { border-color: var(--accent); color: var(--accent); }
.icon-cell.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* библиотека блоков */
.modal-lib { width: min(1240px, 100%); height: calc(100vh - 48px); }
.modal-lib .modal-b { flex: 1; padding: 0; overflow: hidden; display: flex; }
.lib { flex: 1; display: flex; min-height: 0; border-top: 1px solid var(--line); }
.lib-cats { width: 220px; flex: none; padding: 12px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); overflow-y: auto; }
.lib-cats button { border: 0; background: none; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; text-align: left; color: #3F3F46; }
.lib-cats button small { color: var(--faint); font-weight: 600; }
.lib-cats button:hover { background: #F4F4F6; }
.lib-cats button.is-on { background: var(--accent-soft); color: var(--accent); }
.lib-main { flex: 1; min-width: 0; display: flex; }
.lib-frame { flex: 1; border: 0; width: 100%; height: 100%; background: #F4F4F6; border-bottom-right-radius: 18px; }

/* ----- Свободный блок ----- */
.zed { position: fixed; inset: 0; z-index: 1500; background: #1C1C21; color: #E4E4E7; display: flex; flex-direction: column; opacity: 0; transition: opacity .2s; }
.zed.is-on { opacity: 1; }
.zed-top { height: 56px; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 12px; background: #131316; border-bottom: 1px solid #2A2A31; }
.zed-top-l, .zed-top-c, .zed-top-r { display: flex; align-items: center; gap: 8px; }
.zed-top-l b { color: #fff; margin-right: 6px; }
.zed-top-r { justify-content: flex-end; }
.seg-dark { background: #26262D; }
.seg-dark button { color: #A1A1AA; width: auto; padding: 0 10px; }
.seg-dark button:hover { color: #fff; }
.seg-dark button.is-on { background: #3A3A44; color: #fff; box-shadow: none; }
.zbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: #26262D; color: #E4E4E7; cursor: pointer; font-weight: 600; font-size: 13px; }
.zbtn:hover { background: #33333C; color: #fff; }
.zbtn-i { width: 36px; padding: 0; justify-content: center; }
.zed-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; }
.zed-left, .zed-right { background: #17171B; overflow-y: auto; min-height: 0; }
.zed-left { border-right: 1px solid #2A2A31; padding: 12px 8px; }
.zed-right { border-left: 1px solid #2A2A31; }
.zed-h { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8B8B95; padding: 4px 8px 10px; }
.zed-layers { display: flex; flex-direction: column; gap: 2px; }
.zed-layers .hint { color: #8B8B95; padding: 8px; }
.zl { display: flex; align-items: center; gap: 8px; padding: 6px 4px 6px 8px; border-radius: 8px; cursor: pointer; color: #C4C4CC; }
.zl:hover { background: #24242A; }
.zl.is-on { background: rgba(91, 75, 245, .25); color: #fff; }
.zl.is-hidden { opacity: .45; }
.zl-ico { display: flex; color: #8B8B95; }
.zl-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.zl .btn-icon { color: #8B8B95; }
.zl .btn-icon:hover { background: #33333C; color: #fff; }
.zed-ws { overflow: auto; padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; background: #1C1C21; background-image: radial-gradient(#2A2A31 1px, transparent 1px); background-size: 18px 18px; }
.zed-band { display: flex; justify-content: center; padding: 0; min-width: 100%; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.zed.is-mobile .zed-band { min-width: 0; }
.zed-artbox { position: relative; flex: none; }
.zed-art { position: absolute; left: 0; top: 0; transform-origin: 0 0; outline: 1px dashed rgba(91, 75, 245, .55); color: var(--c-text); font-family: var(--f-body); }
.zed.is-locked .zed-art { position: relative; outline-style: solid; }
.zed-el { position: absolute; cursor: move; user-select: none; box-sizing: border-box; }
.zed-el:hover { outline: 1px solid rgba(91, 75, 245, .7); }
.zed-el.is-sel { outline: 2px solid #5B4BF5; z-index: auto; }
.zed-el.is-hidden { opacity: .25; }
.zed-el.is-editing { cursor: text; user-select: text; outline: 2px solid #5B4BF5; }
.zed-el [contenteditable] { outline: none; }
.zed-el.zed-button { display: flex; align-items: center; justify-content: center; padding: 0 1em; }
.zed-el.zed-image { overflow: hidden; }
.zed-el.zed-image img { width: 100%; height: 100%; display: block; pointer-events: none; }
.zed-el .zt p, .zed-el .zt { margin: 0; }
.zed-el .zimg-ph { width: 100%; height: 100%; background: linear-gradient(135deg, #3A3A44, #5B4BF5); }
.zed-handles { position: absolute; inset: 0; pointer-events: none; }
.zh { position: absolute; width: 10px; height: 10px; background: #fff; border: 2px solid #5B4BF5; border-radius: 3px; pointer-events: auto; transform-origin: center; }
.zh-nw { left: -6px; top: -6px; cursor: nwse-resize; } .zh-n { left: calc(50% - 5px); top: -6px; cursor: ns-resize; } .zh-ne { right: -6px; top: -6px; cursor: nesw-resize; }
.zh-e { right: -6px; top: calc(50% - 5px); cursor: ew-resize; } .zh-se { right: -6px; bottom: -6px; cursor: nwse-resize; } .zh-s { left: calc(50% - 5px); bottom: -6px; cursor: ns-resize; }
.zh-sw { left: -6px; bottom: -6px; cursor: nesw-resize; } .zh-w { left: -6px; top: calc(50% - 5px); cursor: ew-resize; }
.zed-guides { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.zg { position: absolute; background: #FF3D7F; }
.zg-v { top: -2000px; bottom: -2000px; width: 1px; }
.zg-h { left: -2000px; right: -2000px; height: 1px; }
.zed-hh { position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; cursor: ns-resize; display: flex; justify-content: center; z-index: 4; }
.zed-hh span { background: #5B4BF5; color: #fff; font: 600 11px Inter, sans-serif; padding: 1px 8px; border-radius: 0 0 6px 6px; }
.zed.is-locked .zed-hh { display: none; }
.zed-auto { display: flex; flex-direction: column; gap: 16px; padding: 48px 20px; }
.zed-auto-el { position: relative; }
.zed-auto-el.zed-button { height: 52px; align-self: flex-start; padding: 0 28px; display: flex; align-items: center; }
.zed-auto-el.zed-image { overflow: hidden; }
.zed-auto-el img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zed-notice { width: 100%; max-width: 760px; }
.zed-note { display: flex; align-items: center; gap: 14px; background: #26262D; border: 1px solid #33333C; border-radius: 14px; padding: 12px 14px; font-size: 13px; color: #C4C4CC; }
.zed-note b { color: #fff; display: block; }
.zed-note > span:first-child { color: #A99FFF; display: flex; }
.zed-note .btn { margin-left: auto; flex: none; }
.zed-note-sm { justify-content: space-between; padding: 8px 10px 8px 14px; }
.zed-note-sm .btn-ghost { color: #C4C4CC; }
.zed-note-sm .btn-ghost:hover { background: #33333C; color: #fff; }
.zed-props { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.zprops-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; color: #fff; }
.zprops-h .btn-icon { color: #A1A1AA; width: 30px; height: 30px; }
.zprops-h .btn-icon:hover { background: #2A2A31; color: #fff; }
.zprops-h .btn-icon.is-danger:hover { background: rgba(229,72,77,.2); color: #FF8B8E; }
.zrow { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.zsect { border-top: 1px solid #2A2A31; padding: 12px 2px; display: flex; flex-direction: column; gap: 10px; }
.zsect-t { font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: #8B8B95; }
.zgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.znum { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: #8B8B95; position: relative; }
.znum em { position: absolute; right: 8px; bottom: 7px; font-style: normal; font-size: 11px; color: #71717A; pointer-events: none; }
.zed .input { background: #23232A; border-color: #33333C; color: #F4F4F5; }
.zed .input:hover { border-color: #45454F; }
.zed .input:focus { border-color: #5B4BF5; }
.zed .field-l { color: #A1A1AA; }
.zed .hint { color: #8B8B95; }
.zed .seg { background: #26262D; }
.zed .seg button { color: #A1A1AA; }
.zed .seg button.is-on { background: #3A3A44; color: #fff; box-shadow: none; }
.zed .switch { color: #D4D4D8; font-size: 13px; }
.zed .switch-t { background: #3A3A44; }
.zed .btn { background: #26262D; border-color: #33333C; color: #E4E4E7; }
.zed .btn:hover { background: #33333C; }
.zed .btn-primary { background: #5B4BF5; border-color: #5B4BF5; color: #fff; }
.zed .btn-primary:hover { background: #4C3CEB; }
.zed .btn.is-danger { color: #FF8B8E; }
.zed .img-prev { border-color: #33333C; background: #23232A; color: #8B8B95; }
.zed .link-in .input { padding-left: 32px; }
.zcolors { display: flex; flex-wrap: wrap; gap: 6px; }
.zsw { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.zsw.is-on { box-shadow: 0 0 0 2px #1C1C21, 0 0 0 4px #5B4BF5; }
.zsw-tr { background: repeating-conic-gradient(#555 0% 25%, #999 0% 50%) 0 0 / 8px 8px !important; }
.zsw-custom { background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); }
.zsw-custom input { position: absolute; inset: -6px; opacity: 0; cursor: pointer; }
.zhelp { margin: 0; padding-left: 18px; color: #A1A1AA; font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.zed-tbar { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); display: none; gap: 2px; background: #131316; border: 1px solid #33333C; border-radius: 11px; padding: 4px; z-index: 1600; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); }
.zed-tbar button { border: 0; background: none; color: #E4E4E7; height: 30px; min-width: 30px; border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.zed-tbar button:hover { background: #2A2A31; }
.zed-tbar .zed-tbar-ok { background: #5B4BF5; padding: 0 12px; font-weight: 600; margin-left: 4px; }

/* ----- Адаптив студии ----- */
@media (max-width: 1280px) {
  .ed-body { grid-template-columns: auto minmax(0, 1fr) 300px; }
  .panel { width: 250px; }
  .ed-status { display: none; }
}
@media (max-width: 1000px) {
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-top-c .ed-sep, .ed-name { display: none; }
  .zed-body { grid-template-columns: 0 minmax(0, 1fr) 270px; }
}
@media (max-width: 760px) {
  .tpl-grid { grid-template-columns: 1fr; }
  .dash-main { padding: 24px 16px 60px; }
  .dash-top { padding: 0 16px; }
}

/* ----- Подключение ИИ ----- */
.code-box { position: relative; background: #18181B; color: #E4E4E7; border-radius: 12px; padding: 14px 16px; }
.code-box pre { margin: 0; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-all; padding-right: 110px; }
.code-box .btn { position: absolute; top: 10px; right: 10px; background: #2A2A31; border-color: #3A3A44; color: #E4E4E7; }
.code-box .btn:hover { background: #3A3A44; }
.key-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.key-fresh { display: flex; flex-direction: column; gap: 8px; background: var(--accent-soft); border-radius: 14px; padding: 14px; }
