:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #262632; background: #f7f7fa; font-synthesis: none; color-scheme: light;
  --ink: #262632; --muted: #626373; --line: #dedee6; --purple: #6548bc; --purple-dark: #5539aa;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --side: 232px; --row: 25px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, .drop, .check, select { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { background: none; border: 0; }
button:disabled { opacity: .48; cursor: default; }
a { color: inherit; }
:focus-visible { outline: 3px solid #8666df; outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
[data-icon] { display: inline-flex; }
.skip { position: fixed; left: 10px; top: -70px; z-index: 20; background: #fff; padding: 10px; }
.skip:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: #23242e; color: #e8e8ed; display: flex; flex-direction: column; z-index: 8; }
.brand { height: 85px; display: flex; align-items: center; gap: 11px; padding: 0 25px; text-decoration: none; color: #fff; font-size: 1.75rem; font-weight: 720; letter-spacing: -.075em; }
.brand-mark { position: relative; width: 36px; height: 36px; background: #c6b3fa; flex-shrink: 0; border-radius: 9px; overflow: hidden; }
.brand-mark i { position: absolute; background: #262632; transform: skew(-16deg); }
.brand-mark i:nth-child(1) { width: 21px; height: 5px; top: 9px; left: 9px; }
.brand-mark i:nth-child(2) { width: 5px; height: 16px; top: 12px; left: 14px; }
.brand-mark i:nth-child(3) { width: 7px; height: 4px; top: 23px; left: 22px; }
.sidebar nav { padding: 16px 14px; overflow-y: auto; }
.nav-group + .nav-group { margin-top: 34px; }
.nav-label { font-size: .75rem; line-height: 1.2; font-weight: 620; letter-spacing: .105em; text-transform: uppercase; color: #a6a7b7; padding: 0 13px; margin: 0 0 12px; }
.nav-item, .side-action { text-decoration: none; display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 7px; font-weight: 470; font-size: .91rem; line-height: 1.35; color: #d1d1dc; text-align: left; }
.nav-item + .nav-item { margin-top: 3px; }
.nav-item .icon, .side-action .icon { width: 19px; height: 19px; }
.nav-item:hover, .side-action:hover { background: #30313d; color: #fff; }
.nav-item.active { background: #cbbafb; color: #282238; font-weight: 630; }
.side-bottom { margin: auto 14px 15px; padding-top: 14px; border-top: 1px solid #41414d; }
#session-count { margin-left: auto; line-height: 1.25rem; min-width: 22px; padding: 0 5px; text-align: center; background: #3b3b48; color: #dcdae8; border-radius: 5px; font-family: var(--mono); font-size: .76rem; }
.shell { margin-left: var(--side); }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 clamp(20px, 3.2vw, 54px); }
.crumb { display: flex; align-items: center; gap: 12px; color: #686975; font-size: .86rem; min-width: 0; white-space: nowrap; }
.crumb .icon { width: 16px; height: 16px; }
.crumb strong { font-weight: 550; color: #393944; overflow: hidden; text-overflow: ellipsis; }
.crumb-slash { color: #b4b3be; }
.local-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: #32624d; background: #eff8f2; border: 1px solid #d4e6db; padding: 5px 10px; border-radius: 30px; font-size: .76rem; font-weight: 580; }
.local-status i { width: 7px; height: 7px; background: #3f8b63; border-radius: 50%; }
.content { max-width: 1600px; margin: 0 auto; padding: 28px clamp(20px, 3.2vw, 54px) 55px; outline: none; }
.hero { position: relative; display: flex; align-items: center; min-height: 147px; isolation: isolate; overflow: hidden; background: #eae4fc; border: 1px solid #d9d0f0; border-radius: 14px; }
.hero-copy { z-index: 1; padding: 27px 32px; width: 77%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.95rem, 3.3vw, 3.05rem); letter-spacing: -.052em; line-height: 1.09; font-weight: 690; color: #292535; }
.hero-copy p { margin-top: 12px; line-height: 1.5; font-size: .97rem; color: #544e67; }
.hero-art { pointer-events: none; position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: clamp(205px, 26%, 320px); }
.grid-paper { position: absolute; inset: 0; background-image: linear-gradient(#b6a6da66 1px, transparent 1px), linear-gradient(90deg, #b6a6da66 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000 45%); }
.art-sheet { position: absolute; width: 91px; height: 94px; border: 1.7px solid #5b5275; border-radius: 7px; padding: 15px 12px; box-shadow: 3px 4px 0 #7a689a30; background: #fcfaff; }
.sheet-back { top: calc(50% - 49px); right: 91px; transform: rotate(-12deg); background: #d9cdf5; }
.sheet-front { top: calc(50% - 34px); right: 42px; transform: rotate(8deg); }
.art-sheet i { display: block; height: 4px; border-radius: 3px; margin-top: 7px; width: 91%; background: #b5a9c9; }
.art-sheet i:first-child { height: 5px; width: 36%; margin-top: 0; background: #696078; }
.art-sheet i:nth-child(3) { width: 66%; }
.art-sheet i:nth-child(4) { width: 77%; }
.art-sheet b { position: absolute; bottom: 6px; right: 7px; width: 24px; height: 22px; border-radius: 4px; display: grid; place-items: center; font: 700 19px/1 var(--mono); background: #dcf0dc; border: 1.5px solid #679373; color: #375e45; }
.sheet-back b { right: auto; left: 9px; color: #874c52; border-color: #a8767d; background: #f1c8ce; }
.cross { position: absolute; width: 10px; height: 10px; }
.cross::before, .cross::after { content: ""; position: absolute; background: #817497; }
.cross::before { top: 4px; height: 1px; width: 100%; }
.cross::after { left: 4px; width: 1px; height: 100%; }
.c-one { right: 25px; top: 19px; } .c-two { right: 198px; bottom: 18px; }
h2 { font-weight: 650; font-size: 1.18rem; line-height: 1.35; letter-spacing: -.042em; }
h3 { font-size: .97rem; font-weight: 620; letter-spacing: -.023em; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 23px 0 13px; min-height: 33px; }
.tool-links, .action-pair, .toolbar, .dialog-actions, .button-row { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.tool-links { gap: 12px; }
.btn, .text-btn, .icon-btn, .seg button, .view-icons button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn { line-height: 1.25; padding: 10px 14px; min-height: 40px; border: 1px solid #d7d6e0; border-radius: 7px; background: #fff; color: #454451; font-size: .875rem; font-weight: 550; }
.btn:hover:not(:disabled), .icon-btn:hover:not(:disabled) { background: #f3f0fa; border-color: #bbb3d1; }
.btn.primary { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 570; }
.btn.primary:hover:not(:disabled) { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn.small { font-size: .82rem; min-height: 34px; padding: 6px 11px; }
.btn.small .icon, .text-btn .icon { width: 15px; height: 15px; }
.text-btn { color: #5d5c6c; padding: 6px 4px; border-radius: 5px; font-size: .86rem; font-weight: 520; }
.text-btn:hover:not(:disabled) { color: var(--purple-dark); background: #ece8f7; }
.icon-btn { width: 34px; height: 34px; padding: 0; border-radius: 7px; border: 1px solid transparent; color: #666573; }
.mobile-menu { display: none; }
.editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.editor, .panel { border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 2px 4px #26253404; min-width: 0; }
.editor { overflow: hidden; }
.editor:focus-within { border-color: #a594ca; }
.editor-head { height: 53px; padding: 0 14px 0 16px; border-bottom: 1px solid #e6e6eb; display: flex; gap: 10px; align-items: center; }
.letter, .result-icon { display: inline-grid; place-items: center; flex-shrink: 0; }
.letter { width: 27px; height: 27px; border: 1px solid #e1d9f6; border-radius: 6px; font: 600 .88rem/1 var(--mono); color: #7356a7; background: #f0ebfa; }
.mint .letter { border-color: #cde5db; color: #3f7663; background: #e8f5ee; }
.editor-head .icon-btn { margin-left: auto; }
.edit-body { position: relative; height: 220px; overflow: hidden; background: linear-gradient(to right,#fafafb 40px, #ededf1 40px, #ededf1 41px, #fff 41px); }
.edit-body textarea { display: block; position: absolute; z-index: 1; inset: 0 0 0 41px; width: calc(100% - 41px); height: 100%; resize: none; border: 0; outline: 0; background: transparent; font: 400 .86rem/var(--row) var(--mono); color: #383645; padding: 12px 13px 12px 11px; tab-size: 4; white-space: pre; overflow: auto; }
.edit-body textarea::placeholder { color: #868390; }
.gutter, .line-lights { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gutter { width: 40px; background: #fafafbc9; }
.gutter span, .line-lights i { position: absolute; height: var(--row); left: 0; right: 0; }
.gutter span { padding-right: 10px; text-align: right; font: .76rem/var(--row) var(--mono); color: #8a8995; }
.line-lights i { left: 41px; border-left: 3px solid; }
.line-lights i.del { background: #fae9eb; border-color: #d9919e; }
.line-lights i.add { background: #e5f3e9; border-color: #86b897; }
.editor-foot { height: 33px; padding: 0 13px; border-top: 1px solid #ecebf1; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: .75rem/1.2 var(--mono); color: #6d6b7b; }
.edit-count { white-space: nowrap; }
.edit-name { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.editor-grid { align-items: start; }
.restore-offer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 13px; border-top: 1px solid #dcd4ee; background: #f5f1fc; }
.restore-info { display: flex; align-items: center; gap: 8px; min-width: 0; color: #564078; }
.restore-info div { min-width: 0; }
.restore-info strong, .restore-info small { display: block; overflow-wrap: anywhere; }
.restore-info strong { font-size: .83rem; font-weight: 600; }
.restore-info small { margin-top: 3px; font-size: .75rem; color: var(--muted); }
.restore-download { color: var(--purple-dark); }
.compare-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 24px; }
.action-pair > .icon-btn { background: #fff; border-color: #d7d6e0; width: 40px; height: 40px; }
.settings { position: relative; }
.settings summary { list-style: none; user-select: none; }
.settings summary::-webkit-details-marker { display: none; }
.settings-body { position: absolute; right: 0; top: calc(100% + 5px); min-width: 230px; z-index: 3; background: #fff; box-shadow: 0 7px 24px #2625351c; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: #565360; }
input[type=checkbox],input[type=radio] { width: 15px; height: 15px; accent-color: var(--purple); margin: 0; flex-shrink: 0; }
.panel-head { padding: 16px 19px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid #e6e5ec; }
.panel-head h2 { font-size: 1.06rem; }
.panel-head > .btn:last-child { margin-left: auto; }
.result-icon { width: 30px; height: 30px; border-radius: 7px; color: #70549b; background: #eee9f7; }
.result-tools, .diff-cap { display: flex; align-items: center; justify-content: space-between; gap: 9px; flex-wrap: wrap; }
.result-tools { padding: 12px 19px; }
.stats { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.stat { font-size: .76rem; font-weight: 540; display: inline-flex; gap: 6px; align-items: center; border: 1px solid; border-radius: 5px; padding: 4px 8px; }
.stat b { font-family: var(--mono); }
.stat.add { color: #39674b; background: #edf7ef; border-color: #d2e7d9; }
.stat.del { color: #8b4d5a; background: #fcf0f1; border-color: #efd6db; }
.stat.neutral { color: #666372; background: #f5f4f7; border-color: #e2e0e8; }
.view-icons, .seg { display: inline-flex; gap: 2px; padding: 3px; background: #f0eff4; border: 1px solid #e0dee8; border-radius: 7px; }
.view-icons button { border: 1px solid transparent; border-radius: 4px; width: 29px; height: 25px; color: #777381; padding: 0; }
.view-icons button .icon { width: 15px; height: 15px; }
.view-icons button.on, .seg button.on { background: #fff; color: #4e3a74; border-color: #dedae8; box-shadow: 0 1px 2px #27203512; }
.diff-cap { background: #faf9fc; border-block: 1px solid #e8e6ee; padding: 8px 19px; font-size: .76rem; color: #625f6d; }
.diff-cap .check { font-size: .76rem; }
.diff-scroll { overflow: auto; max-height: 440px; border-radius: 0 0 10px 10px; }
.diff-code { min-width: 100%; width: max-content; }
.diff-row { display: grid; grid-template-columns: 37px 37px 25px auto; }
.diff-row, .diff-cell { min-height: 25px; line-height: 25px; font-family: var(--mono); }
.diff-row code, .diff-cell code { font: .82rem/25px var(--mono); white-space: pre; padding-right: 12px; }
.diff-row small, .diff-cell small { color: #777584; text-align: right; padding-right: 7px; font: .72rem/25px var(--mono); }
.diff-row b, .diff-cell b { text-align: center; font: 600 .83rem/25px var(--mono); }
.diff-row.add, .diff-cell.add { background: #e8f5eb; }
.diff-row.del, .diff-cell.del { background: #faeaed; }
.diff-row.add b, .diff-cell.add b { color: #34744d; }
.diff-row.del b, .diff-cell.del b { color: #a15463; }
.pair-row { display: grid; grid-template-columns: 1fr 1fr; }
.diff-cell { display: grid; grid-template-columns: 38px 18px auto; }
.diff-cell + .diff-cell { border-left: 1px solid var(--line); }
.result-note, .inline-note { display: flex; align-items: center; gap: 10px; padding: 17px 19px; color: var(--muted); line-height: 1.5; font-size: .9rem; }
.pager { padding: 10px 16px; display: flex; gap: 12px; justify-content: flex-end; align-items: center; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
.seg { max-width: 100%; flex-wrap: wrap; }
.seg button { min-height: 34px; border: 1px solid transparent; border-radius: 5px; padding: 6px 13px; font-size: .86rem; font-weight: 550; color: var(--muted); }
.seg button .icon { width: 16px; height: 16px; }
.toolbar { justify-content: space-between; gap: 12px; margin: 22px 0 15px; }
.form-panel { padding: 18px; margin-bottom: 15px; }
.fields { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: .82rem; font-weight: 550; color: #595664; min-width: 0; }
.field select, .field input:not([type=checkbox]), .simple-input { height: 40px; background: #fff; border: 1px solid #d9d7e1; border-radius: 6px; padding: 8px 11px; color: var(--ink); font-size: .9rem; font-weight: 450; width: 100%; }
.field select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23635e6d' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.field input[type=number] { width: 115px; }
.fields + .hint { margin-top: 13px; }
.hint, .muted { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.subactions { margin: 15px 0; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; padding: 25px 15px; border: 1.5px dashed #b7a7d4; border-radius: 9px; background: #f8f6fd; color: #5e467f; cursor: pointer; }
.drop input { position: absolute; width: 100%; height: 100%; inset: 0; opacity: 0; cursor: pointer; }
.drop:focus-within, .drop.drag, .drop:hover { background: #eee8fa; border-color: #795ab3; }
.drop > .icon { width: 25px; height: 25px; margin-bottom: 2px; }
.drop span { font-size: .97rem; font-weight: 570; }
.drop small { font-size: .8rem; color: #716b7d; }
.drop.mini { padding: 16px; }
.padded { padding: 17px 19px; }
.file-row, .pick-row { display: flex; gap: 10px; align-items: center; min-height: 45px; padding: 6px 12px; border-bottom: 1px solid #ebeaf0; font-size: .87rem; }
.file-row:last-child, .pick-row:last-child { border-bottom: 0; }
.file-row > .icon, .pick-row > .icon { color: #81738d; width: 17px; height: 17px; }
.file-row .filename, .pick-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.file-row small, .pick-row small { white-space: nowrap; color: var(--muted); font-size: .76rem; }
.file-list, .pick-list { overflow: auto; max-height: 330px; }
.file-list:not(:empty) { border: 1px solid #e2dfe9; border-radius: 7px; margin-top: 12px; }
.file-panel + .panel { margin-top: 14px; }
.file-total { margin-top: 9px; }
.stream-hint { padding: 12px 19px; border-top: 1px solid var(--line); }
.file-list.result-list { margin: 0; border: 0; }
.file-run { margin: 15px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.progress-box { margin: 12px 0; padding: 14px 16px; display: grid; gap: 9px; }
.progress-box progress { width: 100%; accent-color: var(--purple); }
.progress-box .hint { overflow-wrap: anywhere; }
.error { color: #963b50; background: #fff0f2; border: 1px solid #e9c3cc; border-radius: 7px; padding: 10px 13px; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.error:empty { display: none; }
dialog { border: 1px solid #d9d5e2; color: var(--ink); border-radius: 13px; width: min(490px,calc(100% - 28px)); padding: 0; box-shadow: 0 22px 80px #211b393b; }
dialog::backdrop { background: #20202d70; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
#dialog-content { padding: 18px; max-height: 71vh; overflow-y: auto; }
.dialog-form, .help-rows { display: grid; gap: 15px; }
.dialog-actions { margin-top: 16px; justify-content: flex-end; }
.pick-list { border: 1px solid var(--line); border-radius: 7px; }
.pick-list > p { padding: 14px; }
.pick-row { cursor: pointer; }
.pick-row:hover { background: #f7f4fd; }
.help-rows p { line-height: 1.55; font-size: .9rem; margin-top: 4px; color: var(--muted); }
.toast { position: fixed; z-index: 12; bottom: 20px; left: calc(50% + var(--side) / 2); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 30px); padding: 11px 16px; color: #fff; background: #33313e; border-radius: 8px; box-shadow: 0 5px 20px #221f3626; font-size: .87rem; }
.copy-helper { position: fixed; left: -10000px; }
.scrim { display: none; }
.image-import { margin-top: 22px; }
.image-drop { min-height: 220px; gap: 10px; }
.image-drop > .icon { box-sizing: content-box; width: 30px; height: 30px; padding: 12px; margin-bottom: 3px; background: #eae3f8; border-radius: 13px; }
.image-drop small { font-size: .84rem; line-height: 1.5; color: var(--muted); }
.image-formats { margin-top: 12px; text-align: center; font: .75rem/1.5 var(--mono); color: var(--muted); }
.image-toolbar { align-items: flex-end; }
.image-source { flex: 1 1 220px; max-width: 520px; }
.local-picker { position: relative; cursor: pointer; overflow: hidden; }
.local-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.local-picker:focus-within { outline: 3px solid #8666df; outline-offset: 2px; }
.image-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); align-items: start; gap: 14px; }
.image-preview, .image-settings { min-width: 0; }
.image-preview > .panel-head { justify-content: space-between; }
.image-preview .seg button { min-height: 29px; padding: 4px 9px; font-size: .8rem; }
.image-stage {
  height: clamp(240px, 34vw, 425px); display: flex; justify-content: center; align-items: center;
  padding: 12px; background: repeating-conic-gradient(#e9e7ef 0% 25%, #f6f5f9 0% 50%) 0 0 / 18px 18px;
}
.image-stage canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.image-stage.cropping canvas { cursor: crosshair; touch-action: none; }
.image-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding: 12px 16px; font: .75rem/1.5 var(--mono); color: var(--muted); border-top: 1px solid var(--line); }
.image-caption > span:last-child { color: #604594; }
.image-options, .crop-controls { display: grid; padding: 16px 18px; gap: 14px; }
.image-size-fields, .crop-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.crop-controls { border-top: 1px solid var(--line); }
.crop-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.crop-controls > .text-btn { justify-self: start; }
.image-grid .field input[type=number] { width: 100%; min-width: 0; }
.image-adjust { border-block: 1px solid #e9e7ee; padding-block: 14px; }
.image-adjust h3 { font-size: .82rem; font-weight: 550; margin-bottom: 8px; color: #595664; }
.image-tool { min-width: 39px; padding-inline: 9px; }
.image-tool.selected { background: #eee8fa; border-color: #baaad9; color: var(--purple-dark); }
.image-quality { display: grid; gap: 6px; color: #595664; font-size: .82rem; font-weight: 550; }
.image-quality span { display: flex; justify-content: space-between; }
.image-quality output { font-family: var(--mono); color: var(--purple-dark); }
.image-quality input { width: 100%; margin: 4px 0; accent-color: var(--purple); }
.image-options .hint, .crop-controls .hint { font-size: .78rem; }
.image-actions { margin: 16px 0 8px; display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
#image-output-size { overflow-wrap: anywhere; }
#image-error:not(:empty) { margin-top: 12px; }
@media (max-width: 750px) {
  .image-grid { grid-template-columns: minmax(0, 1fr); }
  .image-stage { height: clamp(210px, 65vw, 350px); }
  .image-options, .crop-controls { padding: 14px; }
}
@media (max-width: 450px) {
  .crop-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-toolbar .image-source { flex-basis: 100%; }
}
@media (min-width: 1550px) { :root { --side: 252px; } .edit-body { height: 250px; } .hero { min-height: 162px; } }
@media (max-width: 1160px) { :root { --side: 207px; } .brand { padding-left: 22px; } .sidebar nav { padding-inline: 11px; } .side-bottom { margin-inline: 11px; } .content { padding-inline: 22px; } .topbar { padding-inline: 22px; } .hero-copy { padding: 24px; } .hero-art { right: -12px; } }
@media (max-width: 920px) {
  :root { --side: 0px; } .mobile-menu { display: inline-flex; flex-shrink: 0; } .sidebar { width: 237px; transform: translateX(-100%); visibility: hidden; transition: transform .16s ease, visibility .16s; }
  body.menu-open .sidebar { transform: none; visibility: visible; } .scrim { display: block; position: fixed; inset: 0; width: 100%; height: 100%; background: #211e305e; z-index: 7; }
  .topbar { gap: 10px; height: 56px; } .content { padding-top: 20px; } .hero { min-height: 135px; }
}
@media (max-width: 650px) {
  .topbar { padding: 0 12px; } .crumb { gap: 6px; font-size: .8rem; } .crumb > span:nth-child(-n+3) { display: none; }
  .local-status { font-size: .7rem; padding: 5px 7px; gap: 5px; }
  .content { padding: 15px 13px 36px; } .hero { min-height: 124px; border-radius: 10px; }
  .hero-copy { padding: 18px; width: 76%; } h1 { font-size: clamp(1.65rem, 6.2vw, 2.15rem); } .hero-copy p { margin-top: 8px; font-size: .84rem; }
  .hero-art { right: -29px; width: 155px; opacity: .85; } .art-sheet { scale: .58; transform-origin: center; } .sheet-back { right: 40px; top: calc(50% - 58px); } .sheet-front { right: 9px; top: calc(50% - 38px); } .c-one, .c-two { display: none; }
  .section-head { margin-top: 16px; margin-bottom: 9px; gap: 6px; } h2 { font-size: 1.04rem; } .tool-links { gap: 4px; } .text-btn { font-size: .76rem; gap: 4px; }
  .editor-grid { grid-template-columns: minmax(0,1fr); gap: 10px; } .editor-head { height: 46px; } .edit-body { height: 170px; } .editor-foot { height: 29px; }
  .compare-actions { margin-bottom: 16px; } .btn { min-height: 37px; padding: 8px 10px; font-size: .81rem; gap: 6px; } .action-pair > .icon-btn { width: 37px; height: 37px; }
  .panel-head, .padded, .result-tools { padding: 12px; } .panel-head { gap: 7px; } .panel-head h2 { font-size: .98rem; } .btn.small { font-size: .74rem; }
  .stats { gap: 4px; } .stat { padding: 3px 5px; font-size: .7rem; gap: 4px; } .diff-cap { padding: 7px 12px; }
  .toolbar { margin: 16px 0 12px; } .fields { gap: 10px; } .form-panel { padding: 13px; } .seg button { padding-inline: 9px; } .field { flex: 1 1 140px; } .file-row { padding-inline: 8px; }
}
@media (max-width: 365px) { .hero-art { display: none; } .hero-copy { width: 100%; } .tool-links { gap: 1px; } .tool-links .text-btn { padding-inline: 1px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
