:root{color-scheme:light;--paper:#f3f4ef;--white:#fff;--green:#14241f;--ink:#172420;--dim:#555f57;--line:#d9ded5;--orange:#ff825b;--deep:#9a3c25;--radius:14px;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);line-height:1.55}
a{color:inherit;text-underline-offset:.22em}
button,input,select{font:inherit}
:focus-visible{outline:3px solid #ae4d2b;outline-offset:4px}
h1,h2,h3,p,figure{margin:0}
.shell{width:min(1200px,calc(100% - 80px));margin-inline:auto}
.skip{position:absolute;top:10px;left:10px;z-index:2;background:white;color:var(--ink);padding:8px;transform:translateY(-200%)}
.skip:focus{transform:none}
.topbar{background:#fafbf8;border-bottom:1px solid var(--line)}
.top-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand{display:inline-flex;align-items:center;gap:10px;font-weight:850;letter-spacing:-.025em;text-decoration:none;white-space:nowrap}
.brand-icon{display:grid;place-items:center;background:var(--green);color:var(--orange);border-radius:8px;width:35px;height:35px;font-family:Arial,sans-serif;font-size:24px;font-weight:900;font-style:italic;line-height:1}
.brand-accent{color:var(--deep);margin-left:.15em}
.topbar nav{display:flex;gap:clamp(14px,3vw,38px);align-items:center}
.topbar nav a{color:#3f4d44;font-size:.92rem;font-weight:650;text-decoration:none}
.topbar a:hover,.footer-inner a:hover{color:var(--deep)}
.hero{margin-top:29px;display:grid;grid-template-columns:.94fr 1.06fr;min-height:468px;background:var(--green);border-radius:19px;overflow:hidden;color:#fff}
.hero-copy{padding:49px clamp(24px,4.1vw,65px) 46px;display:flex;flex-flow:column;justify-content:center;align-items:flex-start}
.eyebrow{display:flex;gap:9px;align-items:center;text-transform:uppercase;letter-spacing:.115em;color:#d3ddd2;font-size:.82rem;font-weight:750;margin-bottom:20px}
.eyebrow span{width:20px;height:2px;background:var(--orange)}
h1{font-size:clamp(4rem,7.5vw,7rem);font-weight:900;line-height:.86;letter-spacing:-.085em}
h1 em{font-style:normal;color:var(--orange)}
.hero-description{max-width:390px;color:#e0e7df;font-size:1.04rem;margin:24px 0 26px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.primary,.outline{display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:8px 14px;border-radius:8px;text-decoration:none;font-size:.88rem;font-weight:760}
.primary{background:var(--orange);color:#26140e;border:1px solid var(--orange)}
.primary:hover{background:#ff9b7d}
.outline{border:1px solid #78867a;color:#f6f7f4}
.outline:hover{background:#2b3d32}
.hero-picture{position:relative;overflow:hidden;background:#e7e6e0;isolation:isolate}
.hero-picture img{width:100%;height:100%;object-fit:cover;object-position:55% 50%;display:block;min-height:340px}
.hero-picture figcaption{position:absolute;bottom:17px;left:18px;right:18px;display:flex;justify-content:space-between;gap:10px;font-weight:750;font-size:.75rem;letter-spacing:.09em;color:#27312a}
.facts{display:grid;grid-template-columns:repeat(4,1fr);margin-top:15px;border:1px solid var(--line);border-radius:var(--radius);background:#fafbf8;overflow:hidden}
.facts div{display:grid;gap:1px;padding:16px 22px}
.facts div+div{border-left:1px solid var(--line)}
.facts strong{font-size:1.78rem;letter-spacing:-.06em;line-height:1.1}
.facts small{font-size:.95rem;letter-spacing:-.01em;font-weight:650}
.facts span{font-size:.89rem;color:var(--dim)}
.catalog{margin:44px 0 70px;scroll-margin-top:20px}
.catalog-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
h2{font-size:clamp(2rem,4.2vw,3.3rem);line-height:1.07;letter-spacing:-.065em}
.search{display:flex;align-items:center;gap:13px;width:min(100%,390px);background:var(--white);border:1px solid var(--line);border-radius:9px;padding:0 13px}
.search:focus-within{outline:2px solid #ae4d2b}
.search input{border:0;outline:0;background:none;width:100%;min-height:46px;color:var(--ink)}
.search-icon{width:14px;height:14px;border:2px solid #57655b;border-radius:50%;position:relative;flex:none;margin-right:3px}
.search-icon::after{content:"";position:absolute;width:7px;height:2px;background:#57655b;bottom:-3px;right:-5px;transform:rotate(45deg)}
.catalog-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;align-items:start}
.sections{display:grid;border:1px solid var(--line);border-radius:var(--radius);background:#fafbf8;padding:7px;gap:3px}
.sections a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:43px;padding:7px 10px;border-radius:7px;text-decoration:none;font-size:.91rem;font-weight:670}
.sections a:hover{background:#e7ebe2}
.sections a[aria-current]{background:#dce8de;color:#173e2d}
.sections span{font-size:.86rem;color:#536458;font-weight:570}
.manual-note{background:#e6ebe2;border-radius:var(--radius);margin-top:13px;padding:15px}
.manual-note p{font-size:.9rem;color:#46554b;margin:3px 0 10px}
.manual-note a,.article-links a,.footer-inner>a:last-child{color:#83371f;font-weight:720}
.catalog-controls{display:flex;justify-content:space-between;align-items:start;gap:16px}
.catalog-controls h3{font-size:1.45rem;line-height:1.15;letter-spacing:-.04em}
.catalog-controls p{margin-top:5px;color:var(--dim);font-size:.93rem}
select{appearance:none;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:#fafbf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9'%3E%3Cpath d='m1 2 5 5 5-5' fill='none' stroke='%233b4c42' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;padding:6px 29px 6px 9px;min-height:38px;font-size:.88rem}
.matches{color:var(--dim);margin:13px 0 8px;font-size:.88rem;min-height:1.3em}
.cards{display:grid;gap:9px}
.card{background:var(--white);border:1px solid var(--line);border-radius:11px}
.card[open]{border-color:#aabcae}
.card summary{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;min-height:70px;padding:13px 16px;list-style:none;cursor:pointer}
.card summary::-webkit-details-marker{display:none}
.card summary:hover{background:#f8faf6;border-radius:10px}
.card summary:focus-visible{outline-offset:-3px;border-radius:10px}
.card-title{display:block;font-weight:790;font-size:1.06rem;line-height:1.3}
.card-intro{display:block;color:var(--dim);font-size:.9rem;margin-top:3px}
.card-side{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.expand{font-size:1.3rem;font-weight:550;line-height:1;color:#4a6354;width:16px;text-align:center}
.expand::before{content:"+"}
.card[open] .expand::before{content:"−"}
.article{border-top:1px solid #e5e9e2;padding:15px 16px 18px}
.article p+p{margin-top:10px}
.article ul,.article ol{margin:9px 0;padding-left:1.3em}
.article li+li{margin-top:5px}
.article-links{display:flex;gap:8px 15px;flex-wrap:wrap;margin:12px 0 0;font-size:.92rem}
.empty{border:1px dashed #b5c2b5;border-radius:11px;padding:22px;color:var(--dim)}
.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;font-size:.94rem;margin:6px 0 12px}
th,td{text-align:left;border-bottom:1px solid var(--line);padding:8px 12px 8px 0;vertical-align:top}
thead th{color:#304f3f;font-size:.91rem}
code{overflow-wrap:anywhere}
footer{border-top:1px solid var(--line);background:#e9ede5}
.footer-inner{min-height:80px;display:flex;gap:17px;align-items:center;justify-content:space-between}
.footer-inner p{color:var(--dim);font-size:.91rem}
@media(max-width:950px){.shell{width:calc(100% - 40px)}.hero{min-height:410px}.hero-copy{padding:34px 32px}.catalog-layout{grid-template-columns:200px minmax(0,1fr)}}
@media(max-width:700px){.shell{width:calc(100% - 28px)}.top-inner{height:auto;min-height:63px;flex-wrap:wrap;padding:11px 0;gap:9px 15px}.topbar nav{order:3;width:100%;justify-content:space-between;gap:8px}.topbar nav a{font-size:.85rem}.hero{margin-top:14px;grid-template-columns:1fr}.hero-copy{padding:27px 24px 28px}.hero-picture{height:clamp(230px,67vw,380px)}.hero-picture img{min-height:0;object-position:center 49%}.hero-description{margin:18px 0}.facts{grid-template-columns:repeat(2,1fr)}.facts div{padding:10px 13px}.facts div:nth-child(3){border-left:0}.facts div:nth-child(n+3){border-top:1px solid var(--line)}.catalog{margin-top:32px}.catalog-title{align-items:stretch;flex-direction:column;gap:12px}.catalog-layout{display:block}.sections{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}.sections a{min-height:40px;font-size:.88rem}.manual-note{display:none}.catalog-controls{flex-wrap:wrap}.footer-inner{flex-wrap:wrap;padding:12px 0}.footer-inner p{width:100%;order:3}}
@media(max-width:390px){.sections span{display:none}.hero-copy{padding-inline:17px}}

.edition-bar{display:flex;justify-content:space-between;align-items:center;gap:10px 18px;background:#e6ebe2;border:1px solid var(--line);border-radius:11px;padding:10px 12px;margin-bottom:17px}
.edition-actions,.editor-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.edition-bar p{color:#46554b;font-size:.9rem}
.edit-action,.export-action{min-height:42px;padding:7px 13px;border:1px solid #aab8aa;border-radius:7px;font-weight:740;font-size:.9rem;cursor:pointer}
.edit-action{background:var(--green);border-color:var(--green);color:#fff}
.edit-action:hover{background:#304f3f}
.export-action{background:#fafbf8;color:var(--ink)}
.export-action:hover{background:#eaf2e8}
.export-action:disabled{cursor:wait;opacity:.65}
.local-copy{white-space:pre-wrap;overflow-wrap:anywhere}
.card-edit{margin-top:13px}
#article-editor{width:min(550px,calc(100% - 28px));max-height:calc(100% - 28px);padding:21px;border:1px solid var(--line);border-radius:14px;color:var(--ink);background:#fafbf8}
#article-editor::backdrop{background:#14241faa}
#article-form{display:grid;gap:11px}
#article-form h2{font-size:1.8rem}
#article-form label{display:grid;gap:4px;font-size:.94rem;font-weight:650}
#article-form input,#article-form textarea,#article-form select{width:100%;min-height:42px;padding:7px 10px;border:1px solid #b6c3b5;border-radius:7px;background-color:#fff;color:var(--ink);font-weight:400}
#article-form textarea{resize:vertical}
.editor-actions{justify-content:flex-end;margin-top:4px}
@media(max-width:700px){.edition-bar{align-items:flex-start;flex-direction:column}}

.facts-caption{font-size:.84rem;font-weight:780;color:#445547;margin:15px 0 0}
.facts-caption+.facts{margin-top:5px}
.model-heading{display:flex;align-items:center;gap:14px}
.model-thumb{display:block;width:96px;height:60px;flex:0 0 auto;border-radius:6px;object-fit:contain;background:#f7f8f5}
.model-photo{display:block;width:100%;max-height:400px;object-fit:contain;background:#f6f7f4;border-radius:8px;margin-bottom:14px}
.model-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.model-grid .model-card summary{grid-template-columns:minmax(0,1fr) auto;padding:12px}
.model-grid .model-heading{display:grid;gap:9px}
.model-grid .model-thumb{width:100%;height:clamp(90px,13vw,178px)}
.model-grid .model-card[open]{grid-column:1/-1}
.model-grid .model-card[open] .model-thumb{display:none}
@media(max-width:850px){.model-grid .model-card summary{gap:5px}.model-grid .card-title{font-size:1rem}}
@media(max-width:520px){.top-inner nav{flex-wrap:wrap;justify-content:flex-start;gap:7px 14px}.model-grid{grid-template-columns:1fr}.model-grid .model-thumb{height:170px}}

#article-editor,#section-editor{width:min(780px,calc(100% - 24px));padding:0;border:1px solid #b9c8ba;border-radius:15px;color:var(--ink);background:#fafbf8;overflow:hidden}
#section-editor{width:min(480px,calc(100% - 24px))}
#section-editor::backdrop{background:#14241faa}
#article-form,#section-form{display:flex;flex-direction:column;gap:0;max-height:min(850px,calc(100dvh - 34px))}
.editor-header{padding:15px 20px;border-bottom:1px solid var(--line);background:#e8eee5}
.editor-header h2{font-size:clamp(1.35rem,4vw,1.8rem)}
.editor-fields{display:grid;gap:13px;padding:16px 20px;overflow:auto;min-height:0}
.editor-metadata{display:grid;grid-template-columns:1.5fr 1fr;gap:10px}
#section-form label,.editor-label{display:grid;gap:4px;font-size:.94rem;font-weight:650}
#section-form input{width:100%;min-height:42px;padding:7px 10px;border:1px solid #b6c3b5;border-radius:7px;background:#fff;color:var(--ink);font-weight:400}
.text-editor{display:grid;grid-template-rows:auto auto minmax(0,1fr);height:clamp(215px,42dvh,520px);min-width:0;border:1px solid #b6c3b5;border-radius:9px;background:#fff;overflow:hidden}
.text-editor .editor-label{padding:9px 12px}
.format-bar{display:flex;flex-wrap:wrap;gap:5px 8px;padding:6px 9px;background:#edf2ea;border-block:1px solid #d7e0d6}
.format-group{display:flex;gap:3px}
.format-group button{border:1px solid #cdd9cc;border-radius:5px;background:#fafbf8;color:#20362a;min-width:34px;min-height:35px;padding:2px 6px;font-size:.91rem;cursor:pointer}
.format-group button:hover,.format-group button:focus-visible{background:#dce9db}
#rich-body{min-height:0;overflow-y:auto;scrollbar-gutter:stable;padding:12px;overflow-wrap:anywhere}
#rich-body:empty::before{content:attr(data-placeholder);color:#586459;pointer-events:none}
#rich-body:focus-visible{outline-offset:-3px}
#rich-body blockquote,.article-rich blockquote{margin:8px 0;padding:5px 13px;border-left:3px solid #87a18c;background:#edf2eb}
.editor-collection{min-width:0;margin:0;padding:9px 11px 11px;border:1px solid var(--line);border-radius:8px}
.editor-collection legend{padding:0 5px;font-size:.94rem;font-weight:700}
.editor-hint,.editor-message{font-size:.87rem;color:#46554b}
.editor-hint{margin-top:4px}
.editor-message{margin-right:auto}
.editor-message:empty{display:none}
.editor-actions{background:#edf2ea;border-top:1px solid var(--line);padding:10px 20px;margin:0}
.editor-link-row,.image-preview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;align-items:center;gap:7px;margin-bottom:7px}
.image-preview{grid-template-columns:78px minmax(0,1fr) auto;margin:8px 0 0}
.image-preview img{display:block;width:78px;height:52px;object-fit:contain;border-radius:5px;background:#edf2ea}
.remove-item{min-height:36px;padding-inline:8px}
#article-images::file-selector-button{border:1px solid #aab8aa;border-radius:5px;padding:3px 7px;background:#edf2ea;color:var(--ink);cursor:pointer}
.article-rich{overflow-wrap:anywhere}
.article-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;margin-top:12px}
.article-gallery figure{background:#f5f7f3;border:1px solid #e1e8df;border-radius:8px;overflow:hidden}
.article-gallery img{display:block;width:100%;max-height:440px;object-fit:contain}
.article-gallery figcaption{padding:6px 10px;color:#435447;font-size:.9rem}
@media(max-width:560px){.editor-fields,.editor-header,.editor-actions{padding-inline:11px}.editor-metadata{grid-template-columns:1fr}.editor-link-row{grid-template-columns:minmax(0,1fr) auto}.editor-link-row input:first-child{grid-column:1/-1}}

[hidden]{display:none!important}
.hero .hero-picture img{object-fit:contain;background:#edf0eb}
.hero-picture figcaption{align-items:center;gap:8px}
.slide-controls{display:flex;gap:5px}
.slide-controls button{width:38px;height:38px;border-radius:8px;border:1px solid #ffffff8a;background:#17241fe6;color:#fff;cursor:pointer;font-size:1.12rem}
.slide-controls button:hover{background:#375347}
.topbar nav a[aria-current],.model-tabs a[aria-current]{color:#244f3b;font-weight:800;text-decoration:underline;text-underline-offset:5px}
.model-tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.model-tabs a{text-decoration:none;display:inline-flex;align-items:center}
#model-description{margin-bottom:13px;color:#46554b}
#model-cards{max-width:1040px}
#rich-body h1,.article-rich h1{font:700 1.75rem/1.25 system-ui;margin:.6em 0 .3em}
#rich-body h2,.article-rich h2{font:700 1.4rem/1.3 system-ui;margin:.6em 0 .3em}
#rich-body h3,.article-rich h3{font:700 1.15rem/1.4 system-ui;margin:.6em 0 .3em}
#rich-body a,.article-rich a{color:#285840;text-decoration:underline}
#rich-body pre,.article-rich pre{background:#eef2ed;padding:9px;white-space:pre-wrap}
#rich-body td,#rich-body th,.article-rich td,.article-rich th{border:1px solid var(--line);padding:5px 8px}
.inline-photo{width:fit-content;max-width:100%;margin:10px auto;text-align:center}
.inline-photo[data-align=left]{margin-left:0}.inline-photo[data-align=right]{margin-right:0}
.inline-photo img{display:block;max-width:100%;max-height:420px;object-fit:contain;margin:auto;border-radius:7px}
.inline-photo figcaption{padding:4px 6px;color:#435447;font-size:.92rem}
#rich-body .inline-photo{cursor:pointer}
#rich-body .selected-photo{outline:2px solid #388457;outline-offset:3px}
.image-actions{display:flex;flex-wrap:wrap;gap:6px}
#insert-editor{width:min(520px,calc(100% - 24px));padding:0;border:1px solid #b9c8ba;border-radius:15px;background:#fafbf8;color:var(--ink)}
#insert-editor::backdrop{background:#14241f88}
#insert-form label{display:grid;gap:5px;font-weight:650}
#insert-form input{min-width:0;width:100%;font:inherit;padding:7px;border:1px solid #b6c3b5;border-radius:7px}
.format-group{flex-wrap:wrap}

#article-form>.editor-fields{overscroll-behavior:contain}
#article-form>.editor-header,#article-form>.editor-actions{flex-shrink:0}
.article-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.article-actions .card-edit{margin-top:0}
.fullscreen-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;color:var(--ink);background:var(--paper)}
.fullscreen-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.fullscreen-dialog::backdrop{background:#14241fa6}
body:has(.fullscreen-dialog[open]){overflow:hidden}
.reader-bar{display:flex;align-items:center;gap:8px;padding:10px clamp(12px,3vw,34px);border-bottom:1px solid var(--line);background:#e8eee5}
.reader-bar h2{flex:1;min-width:0;font:750 clamp(1rem,2.5vw,1.55rem)/1.25 system-ui;overflow-wrap:anywhere}
.reader-bar button{flex:none}
.reader-content{overflow:auto;overscroll-behavior:contain}
.reader-content .article{padding:clamp(12px,3vw,34px);border:0;overflow-wrap:anywhere}
.reader-content .reader-intro{color:#46554b;margin-bottom:14px}
.reader-content .article-rich,.reader-content .local-copy{font-size:clamp(1rem,1.5vw,1.14rem)}
.reader-content .article table{display:block;overflow:auto}
.reader-content .inline-photo img,.reader-content .article-gallery img,.reader-content .model-photo{max-height:75dvh;max-width:100%;height:auto}
.photo-zoom{display:block;border:0;background:transparent;color:inherit;max-width:100%;padding:0;cursor:zoom-in}
.photo-content{overflow:auto;overscroll-behavior:contain;background:#17241f;display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);min-width:0;min-height:0;padding:12px}
.photo-content img{display:block;place-self:center;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain}
.photo-content.actual-size{display:block}
.photo-content.actual-size img{max-width:none;max-height:none;margin-inline:auto}
@media(max-height:460px){
  .text-editor>.format-bar{flex-wrap:nowrap;overflow-x:auto}
  .text-editor>.format-bar .format-group{flex:none;flex-wrap:nowrap}
}


.article-editor-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.article-editor-header button{flex:none}
#article-editor.editor-fullscreen{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;border-radius:0}
#article-editor.editor-fullscreen #article-form{height:100%;max-height:none}
#article-editor.editor-fullscreen .editor-fields{display:flex;flex-direction:column;flex:1}
#article-editor.editor-fullscreen .editor-fields>*{flex-shrink:0}
#article-editor.editor-fullscreen .text-editor{flex:1 0 240px;height:auto}
.hero-picture .carousel-incoming{position:absolute;inset:0;z-index:1;pointer-events:none}
.hero-picture figcaption{z-index:2}

@media(max-width:560px){
  .text-editor>.format-bar{flex-wrap:nowrap;overflow-x:auto}
  .text-editor>.format-bar .format-group{flex:none;flex-wrap:nowrap}
}

.header-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.header-actions button{white-space:nowrap}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hero{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)}
.hero-picture{min-width:0;min-height:0}
.hero .hero-picture img{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0}
@media(max-width:700px){.hero{grid-template-columns:minmax(0,1fr)}.header-actions button{padding-inline:8px;min-height:38px}}
@media(max-width:370px){.header-actions button{font-size:.8rem}.top-inner{column-gap:8px}}

:root[data-theme="dark"]{
  color-scheme:dark;
  --paper:#181e1b;
  --white:#232b26;
  --green:#1c3026;
  --ink:#ecf1ec;
  --dim:#b7c3b9;
  --line:#3d4941;
  --orange:#ff946f;
  --deep:#ffa582;
  --dark-surface:#202824;
  --dark-raised:#28332c;
  --dark-hover:#35483c;
  --dark-accent:#a8d1b4;
}
[data-theme="dark"] .topbar,[data-theme="dark"] footer,[data-theme="dark"] .sections,
[data-theme="dark"] .skip,[data-theme="dark"] #article-editor,[data-theme="dark"] #section-editor,[data-theme="dark"] #insert-editor{background:var(--dark-surface)}
[data-theme="dark"] .topbar nav a,[data-theme="dark"] .sections span,[data-theme="dark"] .manual-note p,
[data-theme="dark"] .edition-bar p,[data-theme="dark"] .editor-hint,[data-theme="dark"] .editor-message,
[data-theme="dark"] #model-description,[data-theme="dark"] .reader-content .reader-intro,
[data-theme="dark"] .inline-photo figcaption,[data-theme="dark"] .article-gallery figcaption{color:var(--dim)}
[data-theme="dark"] .topbar nav a[aria-current],[data-theme="dark"] .model-tabs a[aria-current],
[data-theme="dark"] thead th,[data-theme="dark"] .expand,
[data-theme="dark"] #rich-body a,[data-theme="dark"] .article-rich a{color:var(--dark-accent)}
[data-theme="dark"] .edition-bar,[data-theme="dark"] .manual-note,[data-theme="dark"] .editor-header,
[data-theme="dark"] .format-bar,[data-theme="dark"] .editor-actions,[data-theme="dark"] .reader-bar,
[data-theme="dark"] .article-gallery figure,[data-theme="dark"] #rich-body blockquote,[data-theme="dark"] .article-rich blockquote,
[data-theme="dark"] #rich-body pre,[data-theme="dark"] .article-rich pre,[data-theme="dark"] .model-photo,
[data-theme="dark"] .model-thumb,[data-theme="dark"] .hero .hero-picture img{background:var(--dark-raised)}
[data-theme="dark"] .card{background:var(--white)}
[data-theme="dark"] .card[open],[data-theme="dark"] .article{border-color:var(--line)}
[data-theme="dark"] .card summary:hover,[data-theme="dark"] .sections a:hover,[data-theme="dark"] .sections a[aria-current],
[data-theme="dark"] .export-action:hover,[data-theme="dark"] .format-group button:hover,
[data-theme="dark"] .format-group button:focus-visible{background:var(--dark-hover);color:var(--ink)}
[data-theme="dark"] .export-action,[data-theme="dark"] .format-group button{
  background:var(--dark-raised);color:var(--ink);border-color:var(--line)
}
[data-theme="dark"] .edit-action{background:#39604a;border-color:#486c55;color:#fff}
[data-theme="dark"] .edit-action:hover{background:#4b775e}
[data-theme="dark"] #article-form input,[data-theme="dark"] #article-form select,
[data-theme="dark"] #section-form input,[data-theme="dark"] #insert-form input,
[data-theme="dark"] .text-editor{background:var(--white);color:var(--ink);border-color:var(--line)}
[data-theme="dark"] #article-form select{background-image:none;appearance:auto}
[data-theme="dark"] #rich-body:empty::before{color:var(--dim)}
[data-theme="dark"] .format-bar,[data-theme="dark"] .article-gallery figure,
[data-theme="dark"] #article-editor,[data-theme="dark"] #section-editor,[data-theme="dark"] #insert-editor{border-color:var(--line)}
[data-theme="dark"] .search-icon{border-color:var(--dim)}
[data-theme="dark"] .search-icon::after{background:var(--dim)}
[data-theme="dark"] .manual-note a,[data-theme="dark"] .article-links a,[data-theme="dark"] .footer-inner>a:last-child{color:var(--deep)}
[data-theme="dark"] #slide-label{color:#f3f5f3;background:#17241fe6;padding:4px 8px;border-radius:5px}

.article-author{color:var(--dim);font-size:.9rem;margin-bottom:10px}
.article ul[data-task-list],#rich-body ul[data-task-list]{list-style:none;margin:.65em 0;padding:0}
[data-task-list]>li{position:relative;padding-inline-start:1.65em;margin-block:.26em}
[data-task-list]>li>input[data-task-checkbox],#article-form [data-task-list]>li>input[data-task-checkbox]{
  position:absolute;inset-inline-start:0;top:.23em;width:1.1em;height:1.1em;min-height:0;margin:0;padding:0;
  appearance:auto;accent-color:#5c9a70;cursor:pointer
}

#table-editor{width:min(430px,calc(100% - 24px));padding:0;border:1px solid var(--line);border-radius:15px;background:var(--white);color:var(--ink)}
#table-editor::backdrop{background:#14241f88}
.table-dimensions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.table-dimensions label{display:grid;gap:5px;font-weight:650}
.table-dimensions input{min-width:0;width:100%;padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink)}
.table-header-toggle{display:flex;align-items:center;gap:8px}
.table-header-toggle input{accent-color:#5c9a70}
.article-rich{overflow-x:auto}

#manage-dialog{width:min(460px,calc(100% - 24px));padding:0;border:1px solid var(--line);border-radius:15px;background:var(--white);color:var(--ink)}
#manage-dialog::backdrop{background:#14241faa}
#manage-option{display:grid;gap:6px;font-weight:650}
#manage-option select{width:100%;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink)}
.article-actions:empty{display:none}
[data-delete-article],[data-delete-section]{color:var(--deep)}
