:root {
  --ink: #0A0E1A; --ink-soft: #2B3245; --ink-mute: #6B7385;
  --paper: #F4F4F0; --surface: #fff; --line: #DEDED6;
  --accent: #047857; --accent-wash: #E7F3EE; --warn: #B45309; --bad: #B91C1C;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55;
}
h1, h2, h3 { font-family: inherit; letter-spacing: -.02em; margin: 0 0 .4em; }

/* bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: #E7EAEE;
}
.bar__brand { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.bar__brand b { color: #34D399; }
.bar__brand em { font-style: normal; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #7E8896; margin-left: .4rem; }
.bar__right { display: flex; align-items: center; gap: .5rem; }
.dirty { font-family: var(--mono); font-size: .7rem; color: #FBBF24; letter-spacing: .05em; }

.b {
  font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  padding: .5rem .9rem; border-radius: 8px; border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: .4rem;
}
.b--primary { background: var(--accent); color: #fff; }
.b--primary:hover { background: #035C43; }
.b--ghost { background: transparent; color: #C8CFD8; border-color: #39404E; }
.b--ghost:hover { background: #1A2030; color: #fff; }
.b--small { padding: .3rem .6rem; font-size: .78rem; border-color: var(--line); color: var(--ink-soft); background: var(--surface); }
.b--small:hover { border-color: var(--accent); color: var(--accent); }
.b--danger { color: var(--bad); }

/* boot */
.boot { max-width: 640px; margin: 4rem auto; padding: 0 1.2rem; }
.boot code { font-family: var(--mono); font-size: .85em; background: #E4E4DC; padding: .1em .35em; border-radius: 4px; }
.muted { color: var(--ink-mute); font-size: .88rem; }

/* layout */
main.layout { display: grid; grid-template-columns: 240px 1fr; align-items: start; min-height: calc(100vh - 56px); }
@media (max-width: 760px) { main.layout { grid-template-columns: 1fr; } .side { position: static !important; border-right: 0 !important; border-bottom: 1px solid var(--line); } }

.side {
  position: sticky; top: 56px; align-self: start;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 1rem .6rem; max-height: calc(100vh - 56px); overflow-y: auto;
}
.side h4 {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); margin: 1.1rem .6rem .4rem;
}
.side button {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  width: 100%; text-align: left; font: inherit; font-size: .88rem;
  background: none; border: 0; padding: .42rem .6rem; border-radius: 7px; cursor: pointer; color: var(--ink-soft);
}
.side button:hover { background: var(--paper); }
.side button.on { background: var(--accent-wash); color: var(--accent); font-weight: 600; }
.side .off { font-family: var(--mono); font-size: .62rem; color: var(--warn); letter-spacing: .06em; }

.pane { padding: 1.4rem clamp(1rem, 3vw, 2.2rem) 5rem; max-width: 1100px; }
.pane > h1 { font-size: 1.7rem; }
.pane__sub { color: var(--ink-mute); margin: -.2em 0 1.6rem; }

/* fields */
.f { margin-bottom: 1.05rem; }
.f > label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: .28rem; }
.f__hint { color: var(--ink-mute); font-size: .78rem; margin: .25rem 0 0; }
input[type=text], input[type=email], textarea, select {
  font: inherit; width: 100%; padding: .55rem .65rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink);
}
textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.row { display: flex; gap: .6rem; align-items: flex-start; }
.row > * { flex: 1; }
.row .b { flex: none; }

fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; margin: 0 0 1.1rem; background: var(--surface); }
legend { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); padding: 0 .4rem; }

.rep__item { border-left: 2px solid var(--line); padding-left: .8rem; margin-bottom: .8rem; }
.rep__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.rep__n { font-family: var(--mono); font-size: .7rem; color: var(--ink-mute); }

.toggle { display: flex; align-items: center; gap: .55rem; padding: .5rem 0; }
.toggle input { width: 18px; height: 18px; }
.toggle label { font-weight: 600; font-size: .88rem; }

.note {
  border-left: 3px solid var(--accent); background: var(--accent-wash);
  padding: .75rem .9rem; border-radius: 0 8px 8px 0; margin: 0 0 1.3rem; font-size: .88rem;
}
.note--warn { border-color: var(--warn); background: #FEF3E2; }
.note p { margin: 0 0 .5em; }
.note p:last-child { margin: 0; }

.problems { font-family: var(--mono); font-size: .78rem; }
.problems li { margin-bottom: .35rem; color: var(--bad); }

.toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px;
  font-size: .88rem; z-index: 50; max-width: 90vw;
}
.toast--bad { background: var(--bad); }

/* ---- rich HTML editor ---- */
.rte__bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line, #d9dcd6); border-bottom: 0; border-radius: 10px 10px 0 0; background: #f4f6f3; position: sticky; top: 0; z-index: 2; }
.rte__btn { font: 600 13px/1 system-ui, sans-serif; padding: 7px 10px; border: 1px solid #cfd5cf; border-radius: 7px; background: #fff; cursor: pointer; }
.rte__btn:hover { border-color: #0b7a55; color: #0b7a55; }
.rte__btn.on { background: #0b7a55; border-color: #0b7a55; color: #fff; }
.rte__area { min-height: 260px; max-height: 70vh; overflow: auto; padding: 16px 18px; border: 1px solid var(--line, #d9dcd6); border-radius: 0 0 10px 10px; background: #fff; font: 16px/1.65 system-ui, sans-serif; outline: none; }
.rte__area:focus { border-color: #0b7a55; box-shadow: 0 0 0 3px rgba(11,122,85,.12); }
.rte__area h2 { font-size: 22px; margin: 18px 0 8px; }
.rte__area h3 { font-size: 18px; margin: 16px 0 6px; }
.rte__area p { margin: 0 0 12px; }
.rte__area blockquote { margin: 12px 0; padding: 10px 14px; background: #fff8e8; border-left: 4px solid #e2b64a; }
.rte__area img { max-width: 100%; height: auto; }
.rte__area table { border-collapse: collapse; } .rte__area td, .rte__area th { border: 1px solid #d9dcd6; padding: 6px 8px; }
.rte__src { width: 100%; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; padding: 12px; border: 1px solid var(--line, #d9dcd6); border-radius: 0 0 10px 10px; }
.side__new { margin: 8px 0 0; width: 100%; text-align: left; padding: 8px 10px; border: 1px dashed #b9c4bc; border-radius: 8px; background: transparent; cursor: pointer; font-weight: 600; color: #0b7a55; }
.side__new:hover { background: #eef6f1; }

/* ------------------------------------------------------------ studio */
input[type=password], input[type=number] { font: inherit; width: 100%; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.btn { font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; padding: .5rem .95rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); display: inline-flex; align-items: center; gap: .4rem; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: #035C43; color: #fff; }
.bar .btn--ghost { background: transparent; color: #C8CFD8; border-color: #39404E; }
.bar .btn--ghost:hover { background: #1A2030; color: #fff; }
.bar__state { flex: 1; color: #9AA3B2; font-size: .8rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; color: #E7EAEE; font-size: .85rem; font-weight: 600; padding: .45rem .7rem; border: 1px solid #39404E; border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu__pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 180px; padding: .35rem; box-shadow: 0 12px 30px rgba(0,0,0,.18); z-index: 30; }
.menu__pop a, .menu__pop button { display: block; width: 100%; text-align: left; padding: .5rem .7rem; border-radius: 7px; color: var(--ink); text-decoration: none; font: inherit; font-size: .88rem; background: none; border: 0; cursor: pointer; }
.menu__pop a:hover, .menu__pop button:hover { background: var(--paper); }
.side__new { margin: 8px 0 0; width: 100%; text-align: left; padding: 8px 10px; border: 1px dashed #b9c4bc; border-radius: 8px; background: transparent; cursor: pointer; font-weight: 600; color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.card__label { margin: 0; color: var(--ink-mute); font-size: .8rem; font-weight: 600; }
.card__value { margin: .2rem 0 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.card__sub { margin: .15rem 0 0; color: var(--ink-mute); font-size: .78rem; }

.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; background: var(--surface); }
.tbl th { text-align: left; font-size: .74rem; color: var(--ink-mute); font-weight: 700; padding: .5rem .55rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .5rem .55rem; border-bottom: 1px solid #EEEEE8; vertical-align: middle; }
.tbl td .row { flex-wrap: wrap; gap: .35rem; }
.tbl td .row > * { flex: none; }
.tbl select { width: auto; padding: .3rem .4rem; }
fieldset { overflow-x: auto; }

.score { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: .8rem 0 1.1rem; }
.score__head { display: flex; align-items: center; gap: .75rem; }
.score__num { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 800; font-size: 1rem; color: #fff; }
.score__title { font-weight: 800; }
.score__sub { color: var(--ink-mute); font-size: .82rem; margin-left: auto; }
.is-good { background: #0B7A55; color: #fff; } .is-ok { background: #C58A0B; color: #fff; } .is-bad { background: #B91C1C; color: #fff; }
.score__list summary { cursor: pointer; font-size: .82rem; color: var(--ink-mute); margin-top: .5rem; }
.score__list ul, ul.checks { list-style: none; margin: .5rem 0 0; padding: 0; }
.chk { position: relative; padding: .3rem 0 .3rem 1.6rem; font-size: .86rem; }
.chk::before { position: absolute; left: 0; top: .28rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; font-size: .7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.chk--pass::before { content: "\2713"; background: #0B7A55; }
.chk--warn::before { content: "!"; background: #C58A0B; }
.chk--fail::before { content: "\2715"; background: #B91C1C; }
.chk__tip { display: block; color: var(--ink-mute); font-size: .78rem; }
.pill { display: inline-block; min-width: 2.4rem; text-align: center; padding: .15rem .5rem; border-radius: 99px; font-weight: 800; font-size: .8rem; }

.chart { width: 100%; height: auto; background: var(--surface); }
.chart polyline { fill: none; stroke-width: 2; }
.chart__imp { stroke: #93A3B8; } .chart__clk { stroke: #0B7A55; }
.legend { color: var(--ink-mute); font-size: .78rem; }
.mono { font-family: var(--mono); font-size: .82rem; word-break: break-word; }
.codes { font-family: var(--mono); font-size: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; line-height: 1.9; }
.qr { margin: .8rem 0; }
.f--inline { display: grid; grid-template-columns: 1fr 52px 110px; gap: .6rem; align-items: center; }
.f--inline label { margin: 0; }
.f--inline input[type=color] { width: 52px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.logo-prev { padding: .6rem 0; }
.note { border: 1px solid var(--line); background: #F0F7F3; border-radius: 10px; padding: .7rem .9rem; margin: 0 0 1rem; font-size: .86rem; }
.note--warn { border-color: #E9C98F; background: #FEF3E2; }
.note p { margin: 0; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; font-size: .88rem; z-index: 60; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast--bad { background: var(--bad); }

/* sign-in pages */
body.auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: radial-gradient(900px 400px at 50% -80px, #E3F2EA, transparent 70%), var(--paper); }
.auth__card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 20px 50px -24px rgba(10,14,26,.35); }
.auth__brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.1rem; margin-bottom: 1.2rem; }
.auth__brand b { color: var(--accent); }
.auth h1 { font-size: 1.45rem; margin-bottom: 1rem; }
.form label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .9rem; }
.form input { margin-top: .3rem; }
.form .btn { width: 100%; justify-content: center; min-height: 44px; font-size: .95rem; }
.hint { color: var(--ink-mute); font-size: .8rem; margin: -.3rem 0 1rem; }
.auth__alt { text-align: center; margin: 1rem 0 0; font-size: .88rem; }
.auth__alt a { color: var(--accent); }
.msg { padding: .65rem .8rem; border-radius: 9px; font-size: .88rem; margin: 0 0 1rem; }
.msg--bad { background: #FDECEA; color: #8A1C14; }
.msg--ok { background: #E7F3EE; color: #064F37; }
.row > .btn { flex: none; }

/* ---------------------------------------------------------------- article editor (editor.js) */
.pve { border: 1px solid #d9dcd6; border-radius: 12px; background: #fff; }
.pve__bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-bottom: 1px solid #e3e6e1; background: #f6f7f4; border-radius: 12px 12px 0 0; position: sticky; top: 56px; z-index: 5; }
.pve-group { display: flex; gap: 2px; padding-right: 6px; border-right: 1px solid #e0e3de; }
.pve-group:last-child { border-right: 0; }
.pve-tb { font: 600 13px/1 system-ui, sans-serif; min-width: 32px; height: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #1d2a24; cursor: pointer; }
.pve-tb:hover:not(:disabled) { background: #fff; border-color: #cfd5cf; }
.pve-tb.on { background: #0b7a55; color: #fff; border-color: #0b7a55; }
.pve-tb:disabled { opacity: .35; cursor: default; }
.pve-tb:focus-visible, .pve-select:focus-visible { outline: 2px solid #0b7a55; outline-offset: 1px; }
.pve-select { height: 32px; border: 1px solid #cfd5cf; border-radius: 7px; background: #fff; font: 600 13px system-ui, sans-serif; padding: 0 6px; }
.pve-menu { position: relative; }
.pve-menu__list { position: absolute; top: 36px; left: 0; min-width: 190px; background: #fff; border: 1px solid #d5dad4; border-radius: 10px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.25); padding: 6px; z-index: 20; }
.pve-menu__list hr { border: 0; border-top: 1px solid #eceee9; margin: 4px 0; }
.pve-menu__item { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 6px; font: 14px system-ui, sans-serif; cursor: pointer; color: #1d2a24; }
.pve-menu__item:hover:not(:disabled) { background: #eef6f2; }
.pve-menu__item:disabled { opacity: .4; cursor: default; }
.pve__body { display: grid; grid-template-columns: minmax(0, 1fr) 250px; }
.pve__main { min-width: 0; }
.pve__area { padding: 18px 22px 30px; min-height: 360px; }
.pve__prose { outline: none; min-height: 320px; font: 17px/1.7 system-ui, sans-serif; color: #24332c; max-width: 760px; }
.pve__prose > * + * { margin-top: 0; }
.pve__prose h2 { font-size: 24px; margin: 28px 0 10px; line-height: 1.25; }
.pve__prose h3 { font-size: 19px; margin: 22px 0 8px; }
.pve__prose h4 { font-size: 16px; margin: 18px 0 6px; text-transform: none; }
.pve__prose p { margin: 0 0 14px; }
.pve__prose ul, .pve__prose ol { padding-left: 24px; margin: 0 0 14px; }
.pve__prose li p { margin: 0 0 4px; }
.pve__prose a { color: #0b7a55; font-weight: 600; text-decoration: underline; }
.pve__prose blockquote { margin: 16px 0; padding: 12px 16px; background: #fff8e8; border-left: 4px solid #e2b64a; border-radius: 6px; }
.pve__prose code { background: #f0f2ef; padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.pve__prose hr { border: 0; border-top: 2px solid #e3e6e1; margin: 24px 0; }
.pve__prose hr.ProseMirror-selectednode { border-top-color: #0b7a55; }
.pve__prose img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 14px 0; }
.pve__prose img.ProseMirror-selectednode { outline: 3px solid #0b7a55; outline-offset: 2px; }
.pve__prose .callout { margin: 16px 0; padding: 12px 16px 12px 44px; border-radius: 10px; border: 1px solid; position: relative; }
.pve__prose .callout > :last-child { margin-bottom: 0; }
.pve__prose .callout::before { position: absolute; left: 12px; top: 13px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 system-ui; color: #fff; }
.pve__prose .callout--tip { background: #e9f6f0; border-color: #cfe9dc; } .pve__prose .callout--tip::before { content: "✓"; background: #0b7a55; }
.pve__prose .callout--note { background: #e8effd; border-color: #cfdcfa; } .pve__prose .callout--note::before { content: "i"; background: #2458c6; }
.pve__prose .callout--warning { background: #fff6e5; border-color: #f2ddb0; } .pve__prose .callout--warning::before { content: "!"; background: #b7791f; }
.pve__prose ol.step-list { list-style: none; padding-left: 0; counter-reset: s; }
.pve__prose ol.step-list > li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 10px; }
.pve__prose ol.step-list > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: #e9f6f0; color: #064f37; font: 800 14px/28px system-ui; text-align: center; }
.pve__prose .tableWrapper { overflow-x: auto; margin: 14px 0; }
.pve__prose table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.pve__prose th, .pve__prose td { border: 1px solid #d9dcd6; padding: 8px 10px; vertical-align: top; position: relative; min-width: 60px; }
.pve__prose th { background: #f4f7f6; font-weight: 700; text-align: left; }
.pve__prose td p, .pve__prose th p { margin: 0; }
.pve__prose .selectedCell::after { content: ""; position: absolute; inset: 0; background: rgba(11,122,85,.12); pointer-events: none; }
.pve__prose p.is-editor-empty:first-child::before { content: attr(data-placeholder); color: #9aa39e; float: left; height: 0; pointer-events: none; }
.pve__src { display: block; width: 100%; min-height: 360px; border: 0; border-radius: 0; padding: 16px 18px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: #fbfcfa; resize: vertical; box-sizing: border-box; }
.pve__src:focus { outline: 2px solid #0b7a55; outline-offset: -2px; }
.pve__side { border-left: 1px solid #e3e6e1; padding: 14px 14px 18px; background: #fafbf9; font: 13px/1.45 system-ui, sans-serif; border-radius: 0 0 12px 0; }
.pve-side__h { margin: 0 0 6px; font: 700 11px/1 system-ui; letter-spacing: .08em; text-transform: uppercase; color: #6a746f; }
.pve-side__h + * { margin-bottom: 14px; }
.pve-outline { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; }
.pve-outline li { margin: 0; }
.pve-outline button, .pve-checks button { border: 0; background: none; padding: 3px 4px; font: inherit; text-align: left; cursor: pointer; color: #1d2a24; width: 100%; border-radius: 5px; }
.pve-outline button:hover, .pve-checks button:hover { background: #eef3f0; }
.pve-outline__l2 button { font-weight: 700; }
.pve-outline__l3 { padding-left: 12px; } .pve-outline__l4 { padding-left: 24px; color: #5d6b64; }
.pve-stats { color: #56625c; margin: 0 0 14px; padding: 8px 10px; background: #fff; border: 1px solid #e3e6e1; border-radius: 8px; }
.pve-checks { list-style: none; margin: 0; padding: 0; }
.pve-check { position: relative; padding-left: 14px; margin-bottom: 4px; }
.pve-check::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #9aa39e; }
.pve-check--bad::before { background: #b3261e; } .pve-check--warn::before { background: #d08a00; } .pve-check--ok::before { background: #0b7a55; } .pve-check--info::before { background: #2458c6; }
.pve__hint { margin: 0; padding: 8px 12px; border-top: 1px solid #eceee9; font: 12.5px/1.45 system-ui; color: #6a746f; }
.pve--full { position: fixed; inset: 0; z-index: 900; border-radius: 0; display: flex; flex-direction: column; }
.pve--full .pve__bar { top: 0; border-radius: 0; }
.pve--full .pve__body { flex: 1; min-height: 0; }
.pve--full .pve__main { overflow: auto; }
.pve--full .pve__area { max-width: 900px; margin: 0 auto; }
.pve--full .pve__side { overflow: auto; border-radius: 0; }
body.pve-noscroll { overflow: hidden; }
@media (max-width: 980px) { .pve__body { grid-template-columns: 1fr; } .pve__side { border-left: 0; border-top: 1px solid #e3e6e1; border-radius: 0 0 12px 12px; } }
/* dialogs */
.pve-modal { position: fixed; inset: 0; background: rgba(15, 25, 20, .45); display: grid; place-items: center; z-index: 1000; padding: 16px; }
.pve-modal__box { background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); font: 14px/1.5 system-ui, sans-serif; }
.pve-modal__title { margin: 0 0 14px; font-size: 18px; }
.pve-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.pve-modal__img { display: block; max-width: 100%; max-height: 220px; margin: 0 auto 14px; border-radius: 8px; border: 1px solid #e3e6e1; }
.pve-btn { font: 600 14px system-ui, sans-serif; padding: 9px 16px; border-radius: 9px; border: 1px solid #cfd5cf; background: #fff; cursor: pointer; }
.pve-btn--primary { background: #0b7a55; border-color: #0b7a55; color: #fff; }
.pve-btn--danger { color: #b3261e; border-color: #e7c1be; margin-right: auto; }
.pve-field { display: block; margin-bottom: 12px; }
.pve-field__label { display: block; font-weight: 700; margin-bottom: 5px; }
.pve-field__hint { display: block; color: #6a746f; font-size: 12.5px; margin-top: 4px; }
.pve-input { width: 100%; box-sizing: border-box; height: 38px; padding: 0 10px; border: 1px solid #cfd5cf; border-radius: 8px; font: 14px system-ui, sans-serif; }
.pve-input:focus { outline: 2px solid #0b7a55; outline-offset: -1px; border-color: #0b7a55; }
.pve-input--bad { border-color: #b3261e; background: #fff6f5; }
.pve-picker { margin-top: 6px; max-height: 220px; overflow: auto; border: 1px solid #e3e6e1; border-radius: 8px; }
.pve-picker__item { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-bottom: 1px solid #f0f2ef; background: #fff; cursor: pointer; text-align: left; font: 14px system-ui, sans-serif; }
.pve-picker__item:hover, .pve-picker__item.on { background: #eef6f2; }
.pve-picker__url { color: #6a746f; font-size: 12.5px; white-space: nowrap; }
.pve-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed #cfd5cf; border-radius: 12px; cursor: pointer; text-align: center; margin-bottom: 10px; font-weight: 600; }
.pve-drop.on, .pve-drop:hover { border-color: #0b7a55; background: #f3faf7; }
.pve-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pve-muted { color: #6a746f; font-weight: 400; font-size: 13px; margin: 4px 0; }
.pve__src[hidden], .pve__area[hidden], .pve-menu__list[hidden] { display: none; }
.pve__side { position: sticky; top: 120px; align-self: start; max-height: calc(100vh - 130px); overflow: auto; }
.pve--full .pve__side { position: static; max-height: none; }
