[data-editing-passport-mount] { padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; }
.editing-passport { display:grid; gap:16px; max-width:1400px; margin:auto; color:#18251c; font-size:14px; }
.editing-passport .ep-heading { position:sticky; top:8px; z-index:12; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; background:#fff; border:1px solid #d0d9d0; }
.editing-passport h1 { font-size:22px; margin:2px 0 6px; line-height:1.3; }
.editing-passport h2 { font-size:19px; margin:0 0 16px; }
.editing-passport h3 { font-size:15px; margin:0 0 10px; }
.ep-project { margin:0; font-size:13px; font-weight:600; color:#34731f; }
.ep-metadata { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:#475547; }
.ep-heading [data-passport-status] { margin:6px 0 0; font-size:13px; }
.ep-heading [data-passport-status][data-tone="error"] { color:#a42318; }
.ep-actions,.ep-record-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.ep-more { position:relative; }
.ep-more summary { cursor:pointer; padding:10px; }
.ep-more[open] { display:grid; gap:6px; }
.ep-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:16px; align-items:start; }
.ep-navigation { display:grid; gap:6px; padding:12px; position:sticky; top:165px; }
.ep-navigation .v2-button { text-align:left; justify-content:flex-start; min-height:44px; }
.ep-navigation [aria-current="page"] { background:#edf6e8; border-color:#34731f; color:#245519; font-weight:700; }
.ep-workspace { min-width:0; padding:20px; scroll-margin-top:180px; }
.ep-group { margin-bottom:18px; }
.ep-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:10px; }
.ep-control { min-width:0; display:flex; flex-direction:column; gap:4px; padding:10px 12px; border:1px solid var(--brand-border); border-radius:10px; background:var(--surface-muted); box-sizing:border-box; }
.ep-control.ep-control-inline { display:flex; flex-direction:row; justify-content:space-between; align-items:center; gap:12px; padding:8px 12px; }
.ep-control-inline>.ep-control-label { min-width:0; overflow-wrap:anywhere; }
.ep-inline-actions { display:flex; flex:0 1 auto; min-width:0; max-width:60%; gap:6px; align-items:center; }
.ep-inline-actions .ep-value { padding:0; }
.ep-inline-actions .ep-value-links { min-width:0; }
.ep-control:has(textarea) { grid-column:1/-1; }
.ep-control>label,.ep-filter { font-weight:600; line-height:1.5; }
.editing-passport :is(input:not([type="color"]),textarea,select) { width:100%; min-width:0; max-width:100%; box-sizing:border-box; border:1px solid #aab8ac; border-radius:8px; background:#fff; color:#18251c; font:inherit; line-height:1.5; padding:9px 11px; min-height:42px; }
.editing-passport textarea { resize:vertical; overflow:hidden; min-height:82px; }
.editing-passport textarea.is-expanded { min-height:320px; }
.editing-passport :is(input,textarea,select,button):focus-visible { outline:2px solid #34731f; outline-offset:2px; }
.ep-text-expand { border:0; background:transparent; color:#285d1d; text-align:left; padding:2px 0; cursor:pointer; font:inherit; font-size:12px; align-self:flex-start; }
.editing-passport .ep-icon { display:inline-flex; flex:none; align-items:center; justify-content:center; width:34px; height:34px; min-height:34px; box-sizing:border-box; padding:7px; border-radius:7px; }
.editing-passport .ep-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.ep-channel-list { margin:0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:8px; }
.editing-passport [data-passport-channels] { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; padding:8px 12px; border:1px solid var(--brand-border); border-radius:10px; background:var(--surface-muted); }
.editing-passport [data-passport-channels] h3 { margin:0; }
.ep-control-head { display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:34px; }
.ep-control-head label,.ep-control-label { font-weight:600; line-height:1.5; }
.ep-control-wide { grid-column:1/-1; }
.ep-value-links,.ep-format-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ep-format-list { display:grid; gap:8px; }
.ep-format { display:grid; grid-template-columns:minmax(0,1fr) minmax(140px,1fr) auto; align-items:center; gap:12px; padding:8px 12px; border:1px solid var(--brand-border); border-radius:10px; background:var(--surface-muted); }
.ep-format-name { font-weight:600; }
.ep-format-value { min-width:0; overflow-wrap:anywhere; }
.ep-format-help { margin-top:12px; border:1px solid var(--brand-border); border-radius:10px; font-size:13px; line-height:1.6; }
.ep-format-help summary { cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; list-style:none; color:var(--v2-ink,#18211b); font-weight:600; padding:10px 12px; border-radius:10px; }
.ep-format-help summary::-webkit-details-marker { display:none; }
.ep-format-help summary:hover { background:var(--surface-muted); }
.ep-format-help summary svg { flex:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; }
.ep-format-help[open] summary svg { transform:rotate(180deg); }
.ep-level-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:0 12px 12px; }
.ep-level-group { min-width:0; border:1px solid var(--brand-border); border-radius:8px; padding:10px; background:var(--surface-muted); }
.ep-level-group h4 { display:flex; align-items:center; gap:8px; min-height:32px; margin:0 0 8px; font-size:14px; line-height:1.5; }
.ep-level-group h4 svg { flex:none; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; stroke-linecap:round; }
.ep-level-links { display:flex; flex-wrap:wrap; align-content:flex-start; gap:8px; }
.ep-level-link { display:inline-flex; align-items:center; justify-content:space-between; gap:8px; min-height:34px; padding:6px 8px; box-sizing:border-box; border:1px solid #cfd9d0; border-radius:7px; background:#fff; color:var(--v2-ink,#18211b); font-weight:600; text-decoration:none; }
.ep-level-link:hover { background:var(--brand-green-soft); border-color:var(--brand-green); }
.ep-level-link svg { flex:none; width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; stroke-linecap:round; }
.editing-passport :is(a,summary):focus-visible { outline:2px solid var(--brand-green-dark); outline-offset:3px; }
.ep-legacy-formats { margin-top:16px; }
.ep-help { font-size:13px; color:#475547; line-height:1.6; }
.ep-list-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; }
.ep-list-head h2 { margin:0; }
.ep-record-list { display:grid; gap:12px; }
.ep-record { border:1px solid #ccd7cd; border-radius:8px; padding:14px; min-width:0; }
.ep-record-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.ep-record-head>div:first-child { min-width:0; flex:1; }
.ep-summary { margin:6px 0 0; line-height:1.6; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.ep-record:has(.ep-record-editor) .ep-summary { -webkit-line-clamp:unset; }
.ep-record-editor { margin-top:16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.ep-record-actions .v2-button { min-height:36px; padding:6px 10px; font-size:12px; }
.ep-rule-type { display:inline-block; padding:3px 8px; border-radius:4px; background:#edf6e8; font-size:12px; font-weight:700; }
.ep-rule-type[data-type="ЗАБОРОНА"] { background:#fff0ec; color:#912018; }
.ep-rule-type[data-type="ДЕФОЛТ"] { background:#edf1f8; color:#254572; }
.ep-filter { display:flex; gap:12px; align-items:center; margin-bottom:16px; }
.ep-filter select { width:auto; }
.ep-color-tools { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.ep-color-tools label { display:flex; gap:8px; align-items:center; }
.ep-color-swatch { width:32px; height:32px; border:1px solid #7a887c; border-radius:6px; }
.ep-value { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; padding:2px 0; }
@media(max-width:1100px){.ep-layout{grid-template-columns:200px minmax(0,1fr)}.ep-heading{align-items:flex-start!important}.ep-actions{max-width:48%}}
@media(max-width:900px){.ep-layout{grid-template-columns:1fr}.ep-navigation{display:flex;overflow:auto;position:sticky;top:160px;z-index:11;padding:8px}.ep-navigation .v2-button{white-space:nowrap}.ep-navigation{max-width:100%;box-sizing:border-box}.ep-workspace{padding:16px}}
@media(max-width:680px){.editing-passport .ep-heading{position:static;display:block;padding:16px}.ep-actions{max-width:none;margin-top:12px}.ep-navigation{top:0;flex-wrap:wrap;overflow:visible}.ep-navigation .v2-button{flex:1 1 45%;font-size:12px}.ep-fields,.ep-record-editor{grid-template-columns:1fr}.ep-record-head{display:block}.ep-record-actions{margin-top:10px}.ep-list-head{align-items:flex-start;flex-wrap:wrap}.editing-passport :is(input,textarea,select){font-size:16px}.editing-passport .v2-button{min-height:44px}.ep-record-actions .v2-button{min-height:44px}.ep-workspace{padding:16px}.ep-layout{gap:12px}}
.ep-catalog { display:grid; gap:16px; }
.ep-catalog h1,.ep-catalog h2 { margin:0 0 12px; }
@media(max-width:760px){
 .ep-catalog .v2-button { display:inline-flex; align-items:center; min-height:44px; box-sizing:border-box; }
}
.v2-shell:has([data-editing-passport-mount])>.v2-shell__header { display:none; }
.ep-navigation [data-passport-section-select] { display:none; }
@media(max-width:900px){.ep-navigation [data-passport-section-select]{display:block;width:100%}.ep-navigation>button{display:none}.ep-navigation{top:var(--ep-heading-height,160px)}}
@media(max-width:680px){.editing-passport .ep-heading{position:sticky;top:0}.ep-navigation{top:var(--ep-heading-height,220px)}}
.ep-navigation { top:var(--ep-heading-height,165px); }
.ep-workspace { scroll-margin-top:calc(var(--ep-heading-height,165px) + 65px); }
.editing-passport .ep-actions .v2-button,.editing-passport .ep-record-actions .v2-button { min-height:40px; }
@media(max-width:680px){
 .editing-passport .ep-icon { width:44px; height:44px; min-height:44px; }
 .ep-format { grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; }
 .ep-format-name { grid-column:1; }
 .ep-format-value { grid-column:1; grid-row:2; }
 .ep-format-actions { grid-column:2; grid-row:1/3; }
 .ep-format-help summary { min-height:44px; display:flex; align-items:center; }
 .ep-level-groups { grid-template-columns:1fr; }
 .ep-level-group h4 { min-height:0; }
 .ep-level-link { min-height:44px; }
}
