/* ОСТРО Студия — editor layout. */
.ed { position: fixed; inset: 0; display: grid; grid-template-rows: 56px minmax(0, 1fr); background: var(--bg); overflow: hidden; }
.ed-main { display: grid; grid-template-columns: 76px 320px minmax(0, 1fr) 300px; min-height: 0; }
.ed.no-drawer .ed-main { grid-template-columns: 76px minmax(0, 1fr) 300px; }
.ed-center { display: grid; grid-template-rows: minmax(0, 1fr) 136px; min-width: 0; min-height: 0; background: #0a0809; }

/* top bar */
.ed-top { display: flex; align-items: center; gap: 14px; padding: 0 12px 0 0; border-bottom: 1px solid var(--line); background: var(--panel); min-width: 0; }
.ed-back { display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 16px; color: var(--text-2); border-right: 1px solid var(--line); text-decoration: none !important; flex: none; }
.ed-back:hover { color: var(--text); background: var(--hover); }
.ed-back .logo-box { width: 52px; height: 19px; color: var(--text); display: block; }
.ed-back .logo-box svg { width: 100%; height: 100%; display: block; }
.ed-titlebox { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 260px; }
.ed-title { min-width: 120px; width: 100%; max-width: 420px; height: 34px; padding: 0 8px; border: 1px solid transparent; background: transparent; font-weight: 700; font-size: 15px; color: var(--text); outline: none; text-overflow: ellipsis; }
.ed-title:hover { border-color: var(--line-2); }
.ed-title:focus { border-color: var(--gold); background: var(--raised); }
.ed-status { border: 0; background: none; padding: 0; cursor: pointer; }
.ed-top-mid { display: flex; align-items: center; gap: 4px; flex: none; }
.ed-top-right { display: flex; align-items: center; gap: 6px; flex: none; }
.ed-sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.ed-save { display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; font-size: 12px; color: var(--text-3); cursor: default; white-space: nowrap; }
.ed-save i { width: 7px; height: 7px; background: var(--ok); display: inline-block; }
.ed-save.is-dirty i, .ed-save.is-saving i { background: var(--gold); }
.ed-save.is-saving i { animation: breathe 1s infinite; }
.ed-save.is-offline, .ed-save.is-error, .ed-save.is-conflict { color: #ffb3ab; cursor: pointer; }
.ed-save.is-offline i, .ed-save.is-error i, .ed-save.is-conflict i { background: var(--danger); }
.ed-others { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; color: var(--text-3); font-size: 11px; }
.avatar-sm { width: 22px; height: 22px; font-size: 10px; }
.badge-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 4px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; }
.has-issues { border-color: rgba(224, 106, 95, .55); }

/* rail */
.ed-rail { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; scrollbar-width: none; }
.ed-tool {
  display: grid; justify-items: center; gap: 5px; padding: 10px 2px 9px; border: 0; background: transparent; color: var(--text-2); cursor: pointer;
  font-size: 10.5px; letter-spacing: .04em; position: relative;
}
.ed-tool:hover { color: var(--text); background: var(--hover); }
.ed-tool.is-on { color: var(--gold-hi); background: rgba(162, 132, 94, .12); }
.ed-tool.is-on::before { content: ""; position: absolute; left: -6px; top: 6px; bottom: 6px; width: 2px; background: var(--gold); }

/* drawer */
.ed-drawer { display: grid; grid-template-rows: auto minmax(0, 1fr); border-right: 1px solid var(--line); background: var(--panel); min-height: 0; }
.ed-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px 18px; }
.ed-drawer-head h3 { font-size: 18px; text-transform: uppercase; letter-spacing: -.01em; }
.ed-drawer-body { padding: 4px 18px 28px; overflow-y: auto; min-height: 0; }
.drawer-hint { color: var(--text-3); font-size: 12px; line-height: 1.5; margin: 0 0 12px; }
.drawer-hint b { color: var(--text-2); font-weight: 600; }
.drawer-empty { color: var(--text-3); font-size: 12px; border: 1px dashed var(--line-2); padding: 14px; margin: 0 0 10px; }
.drawer-sec { margin-top: 18px; }
.drawer-sec h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin: 0 0 10px; }
.drawer-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 0; border: 0; background: none; color: var(--gold-hi); cursor: pointer; font-size: 12px; }
.drawer-link:hover { text-decoration: underline; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.tpl { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--text-2); display: grid; gap: 6px; font-size: 11px; line-height: 1.25; }
.tpl .thumb { outline: 1px solid var(--line); transition: outline-color .12s; }
.tpl:hover .thumb { outline: 2px solid var(--gold); }
.tpl:hover { color: var(--text); }
.text-styles { display: grid; gap: 6px; }
.text-style { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line); background: var(--raised); cursor: pointer; color: var(--text); text-align: left; }
.text-style:hover { border-color: var(--gold); }
.ts-sample { font-weight: 500; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.ts-display { font-weight: 900; }
.ts-accent { font-family: "Gunny Rewritten", var(--ui); color: var(--gold-hi); }
.ts-name { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.logo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.logo-card { padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; color: var(--text-2); text-align: left; display: grid; }
.logo-card:hover { border-color: var(--gold); color: var(--text); }
.logo-art { height: 74px; display: grid; place-items: center; padding: 14px; }
.logo-art svg { width: 100%; height: 100%; }
.logo-art.on-dark { background: #390517; }
.logo-art.on-light { background: #f3eeeb; }
.logo-art.on-split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.logo-art .half { display: grid; place-items: center; padding: 10px 8px; height: 100%; }
.logo-art .half.dark { background: #390517; } .logo-art .half.light { background: #f3eeeb; }
.logo-name { padding: 7px 10px; font-size: 11px; }
.item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.item { padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; color: var(--text-3); display: grid; text-align: left; min-width: 0; }
.item:hover { border-color: var(--gold); color: var(--text); }
.item-art { height: 78px; display: grid; place-items: center; padding: 8px; overflow: hidden; }
.item-art.on-light { background: #f3eeeb; } .item-art.on-dark { background: #390517; }
.item-art.on-check { background: repeating-conic-gradient(#2b2326 0 25%, #221b1d 0 50%) 0 0 / 14px 14px; }
.item-art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.item-svg { width: 100%; height: 100%; display: grid; place-items: center; }
.item-svg svg { max-width: 100%; max-height: 100%; width: 100%; height: 100%; }
.item-name { padding: 5px 7px; font-size: 10.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shape-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shape-btn { display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border: 1px solid var(--line); background: var(--raised); color: var(--gold); cursor: pointer; font-size: 10.5px; line-height: 1.2; text-align: center; }
.shape-btn span { color: var(--text-3); }
.shape-btn svg { width: 56px; height: 34px; }
.shape-btn:hover { border-color: var(--gold); }
.shape-btn:hover span { color: var(--text); }
.shape-btn.is-frame { color: #6a1534; }
.pattern-list { display: grid; gap: 12px; }
.pattern-card { border: 1px solid var(--line); background: var(--raised); }
.pattern-art { display: block; width: 100%; height: 96px; padding: 0; border: 0; cursor: pointer; background: none; }
.pattern-tile { display: block; width: 100%; height: 100%; }
.pattern-tile svg { display: block; }
.pattern-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; font-size: 12px; }
.block-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.block { padding: 0; border: 0; background: none; cursor: pointer; color: var(--text-2); display: grid; gap: 6px; text-align: left; font-size: 11px; }
.block .thumb { outline: 1px solid var(--line); }
.block:hover .thumb { outline: 2px solid var(--gold); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.photo { padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; outline: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.photo:hover { outline: 2px solid var(--gold); }
.photo:hover img { transform: scale(1.04); }
.table-opts { display: grid; gap: 8px; }
.table-opt { display: grid; grid-template-columns: 74px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); background: var(--raised); cursor: pointer; text-align: left; color: var(--text); }
.table-opt:hover { border-color: var(--gold); }
.table-opt b { font-size: 13px; } .table-opt small { color: var(--text-3); grid-column: 2; }
.tbl-prev { grid-row: 1 / 3; width: 74px; height: 46px; display: grid; gap: 4px; padding: 6px; background: #f3eeeb; }
.tbl-prev i { display: block; height: 4px; background: #c9bdb9; }
.tbl-prev i:first-child { background: #000; height: 5px; }
.tbl-block i:first-child { background: #390517; height: 8px; }
.tbl-grid { outline: 1px solid #c9bdb9; outline-offset: -6px; }
.tbl-zebra i:nth-child(odd) { background: #e2d9d5; }
.tbl-gantt { gap: 6px; } .tbl-gantt i { height: 6px; width: 50%; background: #390517; }
.tbl-gantt i:nth-child(2) { margin-left: 30%; background: #a2845e; } .tbl-gantt i:nth-child(3) { margin-left: 55%; width: 40%; background: #162f2c; }

/* stage & canvas */
.ed-stage { position: relative; overflow: auto; display: flex; outline: none; min-height: 0; min-width: 0; padding: 36px;
  background: radial-gradient(ellipse at center, #141011 0%, #0a0809 70%); }
.ed-stage.is-drop { box-shadow: inset 0 0 0 2px var(--gold); }
.ed-frame { position: relative; margin: auto; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.ed-host { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; }
.ed-host > .os-slide { position: absolute; left: 0; top: 0; }
.ed-host .os-tx.is-editing { outline: none; cursor: text; caret-color: currentColor; user-select: text; -webkit-user-select: text; }
.ed-host .os-el.is-editing { outline: 2px solid rgba(195, 162, 122, .9); outline-offset: 4px; }
.ed-host .os-el.is-editing td, .ed-host .os-el.is-editing th { outline: 1px dashed rgba(195, 162, 122, .55); outline-offset: -1px; cursor: text; }
.ed-host .os-el.is-editing td:focus, .ed-host .os-el.is-editing th:focus { outline: 2px solid #c3a27a; background: rgba(195, 162, 122, .1); }
.ed-host .os-el { user-select: none; -webkit-user-select: none; }
.ed-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.ed-box { position: absolute; box-sizing: border-box; transform-origin: 50% 50%; }
.ed-box.is-hover { outline: 1px solid rgba(195, 162, 122, .7); }
.ed-box.is-sel { outline: 1.5px solid #c3a27a; }
.ed-box.is-locked { outline: 1.5px dashed #85797c; }
.ed-lock { position: absolute; right: -1px; top: -18px; width: 18px; height: 18px; display: grid; place-items: center; background: #85797c; color: #0d0a0b; }
.ed-handles { position: absolute; transform-origin: 50% 50%; }
.ed-h { position: absolute; width: 10px; height: 10px; background: #f1ebe8; border: 1.5px solid #a2845e; pointer-events: auto; box-sizing: border-box; }
.ed-h-nw { left: -5px; top: -5px; cursor: nwse-resize; } .ed-h-n { left: calc(50% - 5px); top: -5px; cursor: ns-resize; }
.ed-h-ne { right: -5px; top: -5px; cursor: nesw-resize; } .ed-h-e { right: -5px; top: calc(50% - 5px); cursor: ew-resize; }
.ed-h-se { right: -5px; bottom: -5px; cursor: nwse-resize; } .ed-h-s { left: calc(50% - 5px); bottom: -5px; cursor: ns-resize; }
.ed-h-sw { left: -5px; bottom: -5px; cursor: nesw-resize; } .ed-h-w { left: -5px; top: calc(50% - 5px); cursor: ew-resize; }
.ed-rot { position: absolute; left: calc(50% - 6px); top: -34px; width: 12px; height: 12px; border: 1.5px solid #a2845e; background: #0d0a0b; pointer-events: auto; cursor: grab; transform: rotate(45deg); }
.ed-rot::after { content: ""; position: absolute; left: 4px; top: 11px; width: 1px; height: 18px; background: #a2845e; transform: rotate(-45deg); transform-origin: 0 0; }
.ed-multibox { position: absolute; outline: 1px dashed #c3a27a; }
.ed-guide { position: absolute; background: #e2547e; pointer-events: none; }
.ed-guide-v { top: 0; bottom: 0; width: 1px; }
.ed-guide-h { left: 0; right: 0; height: 1px; }
.ed-marquee { position: absolute; border: 1px solid #c3a27a; background: rgba(162, 132, 94, .12); }
.ed-size, .ed-crophint { position: absolute; transform: translateX(-50%); padding: 3px 8px; font-size: 11px; background: #a2845e; color: #120d0e; font-weight: 700; white-space: nowrap; }
.ed-crophint { transform: none; background: var(--raised); color: var(--text); font-weight: 500; border: 1px solid var(--line-2); }
.ed-over { position: absolute; transform: translate(-100%, -100%); padding: 2px 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; background: var(--danger); color: #fff; white-space: nowrap; }
.ed-grid { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.ed-col { position: absolute; top: 0; bottom: 0; background: rgba(226, 84, 126, .07); border-left: 1px solid rgba(226, 84, 126, .18); border-right: 1px solid rgba(226, 84, 126, .18); }
.ed-margin { position: absolute; outline: 1px dashed rgba(226, 84, 126, .4); }
.ed-center-v { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(226, 84, 126, .25); }
.ed-center-h { position: absolute; left: 0; right: 0; height: 1px; background: rgba(226, 84, 126, .25); }
.ed-texttools {
  position: absolute; z-index: 8; display: flex; align-items: center; gap: 2px; padding: 4px; background: var(--raised); border: 1px solid var(--line-2);
  transform: translateY(-4px); pointer-events: auto; white-space: nowrap;
}
.ed-texttools button { height: 30px; min-width: 30px; padding: 0 7px; display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 700; }
.ed-texttools button:hover { background: var(--hover); }
.ed-texttools .sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 3px; }
.ed-texttools .done { color: var(--gold-hi); }

/* filmstrip */
.ed-film { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--line); background: var(--panel); min-width: 0; }
.film-list { display: flex; gap: 12px; align-items: center; padding: 0 16px; overflow-x: auto; overflow-y: hidden; }
.film-item { position: relative; flex: none; cursor: pointer; outline: 1px solid var(--line); transition: outline-color .12s; }
.film-item:hover { outline-color: var(--text-3); }
.film-item.is-cur { outline: 2px solid var(--gold); }
.film-item.is-hidden .thumb { opacity: .35; }
.film-item.drop-before::before, .film-item.drop-after::after { content: ""; position: absolute; top: -6px; bottom: -6px; width: 3px; background: var(--gold-hi); }
.film-item.drop-before::before { left: -8px; } .film-item.drop-after::after { right: -8px; }
.film-num { position: absolute; left: 0; bottom: 0; padding: 2px 6px; font-size: 10px; font-weight: 800; background: rgba(13, 10, 11, .86); color: var(--text); display: flex; align-items: center; }
.film-warn { position: absolute; right: 0; top: 0; width: 18px; height: 18px; display: grid; place-items: center; background: var(--danger); color: #fff; font-weight: 900; font-size: 11px; }
.film-add { flex: none; width: 90px; height: 84px; border: 1px dashed var(--line-2); background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.film-add:hover { border-color: var(--gold); color: var(--gold-hi); }
.film-side { display: flex; flex-direction: column; justify-content: center; padding: 0 10px; border-left: 1px solid var(--line); }
.ed-sorter { padding: 24px 28px 60px; overflow: auto; }
.sorter-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; gap: 16px; }
.sorter-head h3 { font-size: 22px; text-transform: uppercase; margin-top: 6px; }
.sorter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 16px; }
.sorter-item { position: relative; cursor: pointer; }
.sorter-item .thumb { outline: 1px solid var(--line); }
.sorter-item.is-cur .thumb { outline: 2px solid var(--gold); }
.sorter-item.is-hidden .thumb { opacity: .35; }
.sorter-item.drop-before::before { content: ""; position: absolute; left: -10px; top: 0; bottom: 24px; width: 3px; background: var(--gold-hi); }
.sorter-cap { display: flex; gap: 8px; margin-top: 7px; font-size: 12px; color: var(--text-2); }
.sorter-cap b { color: var(--text); }

/* inspector */
.ed-insp { border-left: 1px solid var(--line); background: var(--panel); overflow-y: auto; min-height: 0; }
.insp-title { padding: 16px 18px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.insp-title h3 { font-size: 16px; text-transform: uppercase; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.insp-name { border: 1px solid transparent; background: transparent; font-weight: 800; font-size: 15px; padding: 3px 4px; margin-left: -5px; outline: none; color: var(--text); width: 100%; }
.insp-name:hover { border-color: var(--line-2); } .insp-name:focus { border-color: var(--gold); background: var(--raised); }
.insp-name::placeholder { color: var(--text-3); }
.insp-sec { padding: 14px 18px 16px; border-bottom: 1px solid var(--line); }
.insp-sec > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.insp-sec h4 { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.insp-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 8px; }
.insp-label { font-size: 12px; color: var(--text-2); }
.insp-ctl { min-width: 0; }
.insp-ctl .select, .insp-ctl .input { height: 30px; }
.insp-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.insp-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 8px; }
.insp-grid3 .num-label { padding-left: 6px; }
.insp-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.insp-checks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.insp-checks input { accent-color: var(--gold); }
.insp-gap { height: 10px; }
.insp-sub { margin: 12px 0 7px; font-size: 11px; color: var(--text-3); }
.insp-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--text-3); }
.insp-warn { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: #f3c8a0; }
.insp-warn .ic { flex: none; margin-top: 1px; color: var(--warn); }
.insp-sec .seg { flex-wrap: wrap; }
.mask-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mask-btn { padding: 4px; border: 1px solid var(--line); background: var(--raised); color: var(--text-3); cursor: pointer; }
.mask-btn svg { width: 100%; height: 26px; display: block; }
.mask-btn:hover { color: var(--text-2); border-color: var(--line-2); }
.mask-btn.is-on { color: var(--gold-hi); border-color: var(--gold); }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.filter-btn { display: grid; gap: 4px; padding: 5px; border: 1px solid var(--line); background: var(--raised); color: var(--text-2); cursor: pointer; font-size: 10.5px; text-align: center; }
.filter-btn.is-on { border-color: var(--gold); color: var(--gold-hi); }
.fprev { display: block; height: 26px; background: linear-gradient(90deg, #1b1a17, #8a7a6a 50%, #f1e8dc); }
.f-bw { filter: grayscale(1); } .f-wine { background: linear-gradient(90deg, #0e0209, #6e1333 50%, #f6e8e3); }
.f-green { background: linear-gradient(90deg, #061110, #2b5a52 50%, #edf2ef); } .f-gold { background: linear-gradient(90deg, #17110a, #a2845e 50%, #fbf5ec); }
.f-dim { filter: brightness(.5); }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.layers li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
.layers li.is-sel { background: rgba(162, 132, 94, .14); }
.layers li.is-hidden .layer-name { opacity: .45; }
.layer-name { border: 0; background: none; color: var(--text-2); text-align: left; padding: 6px 4px; cursor: pointer; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer-name:hover { color: var(--text); }
.layer-ic { width: 26px; height: 26px; border: 0; background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.layer-ic:hover { color: var(--text); }
.gantt-list { display: grid; gap: 6px; margin-bottom: 10px; }
.gantt-row { display: grid; grid-template-columns: minmax(0, 1fr) 58px 58px 22px 30px; gap: 4px; align-items: center; }
.gantt-row .input { height: 30px; padding: 0 6px; }
.gantt-color { width: 22px; height: 22px; border: 1px solid rgba(255, 255, 255, .2); cursor: pointer; padding: 0; }

/* dialogs content */
.pf-summary { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pf-badge { padding: 4px 9px; font-size: 12px; border: 1px solid var(--line-2); }
.pf-error { color: #ffb3ab; } .pf-warn { color: #f3c8a0; } .pf-info { color: var(--text-2); }
.pf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 56vh; overflow: auto; }
.pf-item { width: 100%; display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start; padding: 9px 10px; border: 1px solid var(--line); background: var(--raised); cursor: pointer; text-align: left; line-height: 1.4; }
.pf-item:hover { border-color: var(--line-2); background: var(--hover); }
.pf-item.pf-error .ic { color: var(--danger); } .pf-item.pf-warn .ic { color: var(--warn); } .pf-item.pf-info .ic { color: var(--text-3); }
.pf-item .ic { margin-top: 1px; }
.pf-text { color: var(--text); }
.pf-slide { color: var(--text-3); font-size: 11px; white-space: nowrap; }
.pf-ok { text-align: center; padding: 30px 10px; color: var(--ok); }
.pf-ok h3 { color: var(--text); text-transform: uppercase; margin: 12px 0 6px; }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.share-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 6px; align-items: center; }
.share-meta { grid-column: 1 / -1; font-size: 11.5px; }
.hist { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; min-height: 360px; }
.hist-list { list-style: none; margin: 0; padding: 0; max-height: 58vh; overflow: auto; border-right: 1px solid var(--line); padding-right: 12px; }
.hist-item { width: 100%; display: grid; gap: 2px; padding: 9px 10px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--text-2); }
.hist-item b { color: var(--text); font-weight: 600; }
.hist-item span { font-size: 11.5px; }
.hist-item:hover { background: var(--hover); }
.hist-item.is-on { background: rgba(162, 132, 94, .14); }
.hist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.ed-present { position: fixed; inset: 0; z-index: 400; }

@media (max-width: 1360px) {
  .ed-main { grid-template-columns: 70px 280px minmax(0, 1fr) 272px; }
  .ed.no-drawer .ed-main { grid-template-columns: 70px minmax(0, 1fr) 272px; }
  .ed-top-right .btn span { display: none; }
  .ed-top-right .btn.btn-gold span, .ed-top-right .btn-ghost span { display: inline; }
}
@media (max-width: 1100px) {
  .ed-main, .ed.no-drawer .ed-main { grid-template-columns: 64px minmax(0, 1fr) 260px; }
  .ed-drawer { position: absolute; left: 64px; top: 56px; bottom: 0; width: 300px; z-index: 40; }
  .ed-save { display: none; }
}
@media (max-width: 760px) {
  .ed-main, .ed.no-drawer .ed-main { grid-template-columns: 56px minmax(0, 1fr); }
  .ed-insp { display: none; }
  .ed-top-mid, .ed-top-right .ibtn { display: none; }
}
