:root{color-scheme:light;--paper:#f3f0e8;--panel:#faf8f2;--ink:#253e42;--muted:#697577;--line:#cecfc5;--edge:#a5aca5;--teal:#245b5a;--teal-dark:#173c40;--peach:#ffc49d;--peach-deep:#d88f5d;--stage:#283638;--focus:#257b8d;--sans:"Segoe UI",Tahoma,Arial,sans-serif;--radius:4px;font-family:var(--sans);font-size:16px;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select,textarea{font:inherit}button{color:inherit;cursor:pointer}button:disabled{opacity:.38;cursor:not-allowed}button,select,input,textarea{outline-offset:3px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus)}button{border:0;background:none}button svg,svg.icon{width:19px;height:19px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}svg{vertical-align:middle}.icon-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}[hidden]{display:none!important}h1,h2,h3,p{margin:0}a{color:var(--teal);text-decoration-thickness:1px;text-underline-offset:3px}button:hover:not(:disabled){filter:brightness(.97)}button:active:not(:disabled){transform:translateY(1px)}button[aria-pressed="true"]{background:var(--teal);color:#fff}input[type="number"],input[type="text"],input[type="search"],select,textarea{width:100%;min-width:0;border:1px solid var(--edge);border-radius:3px;background:#fffefa;box-shadow:inset 1px 1px 0 #28363810;padding:8px 9px;font-size:.875rem;color:var(--ink)}input[type="number"]{appearance:textfield}input::-webkit-inner-spin-button{appearance:none}textarea{resize:vertical;min-height:70px}select{appearance:none;padding-right:27px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23253e42' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}input[type="color"]{width:32px;height:29px;padding:2px;border:1px solid var(--edge);border-radius:3px;background:#fffefa;cursor:pointer}input[type="range"]{display:block;width:100%;height:17px;padding:0;margin:0;appearance:none;background:transparent;accent-color:var(--teal);cursor:pointer}input[type="range"]::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(90deg,#a4b6b3,#ced5cb)}input[type="range"]::-webkit-slider-thumb{appearance:none;width:12px;height:16px;margin-top:-6.5px;border:1px solid #1c494a;border-radius:2px;background:var(--panel);box-shadow:1px 1px 0 #a4b0a7,inset 1px 1px #fff}input[type="range"]::-moz-range-track{height:3px;background:#b5c4be}input[type="range"]::-moz-range-thumb{width:10px;height:14px;border:1px solid #1c494a;border-radius:2px;background:var(--panel)}input[type="checkbox"]{accent-color:var(--teal)}label{font-size:.875rem}kbd{font:11px/1.4 var(--sans);padding:1px 4px;border:1px solid #b9c1b9;border-radius:2px;background:#f2f3ed;color:#637170;white-space:nowrap}
#app{display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:620px;overflow:hidden;border-top:4px solid var(--teal-dark)}.app-header{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:85px;flex:0 0 auto;padding:10px 22px 10px 18px;background:linear-gradient(110deg,#fffdf6 0%,#f3efe5 65%,#ede9df);border-bottom:1px solid #a3b0a9;box-shadow:inset 0 -1px 0 #fff}.brand{display:flex;align-items:center;gap:15px;min-width:0}.brand .ry2k-crt{--ry2k-crt-width:82px;padding:4px 5px 3px;border-radius:6px}.brand .ry2k-crt__chin{padding-top:3px;min-height:11px}.brand .ry2k-crt__screen{border-width:2px}.brand .ry2k-crt__label{font-size:7px}.brand .ry2k-crt__power{width:4px;height:4px}.brand-type{min-width:0}.wordmark{display:flex;align-items:baseline;gap:0;font-family:"Trebuchet MS",var(--sans);font-size:1.78rem;line-height:1.12;font-weight:800;letter-spacing:-1.5px;white-space:nowrap}.wordmark>span:first-child{font-weight:400;font-size:1.65rem;letter-spacing:-1.4px;margin-left:1px}.wordmark .brand-stamp{align-self:center;font-family:var(--sans);font-weight:700;font-size:9px;line-height:1;letter-spacing:1.35px;margin:4px 0 0 14px;padding:5px 6px;border:1px solid #b6c3bc;border-radius:2px;color:#68817c}.brand-type p{font-size:.75rem;color:#647471;margin-top:6px;white-space:nowrap;letter-spacing:.03em}.brand-divider{padding:0 8px;color:#a2ada5}.brand-tagline{color:#78857b}.header-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:37px;padding:8px 13px;border:1px solid #a6afa5;border-radius:3px;background:linear-gradient(#fffef8,#eeeae0);box-shadow:inset 1px 1px #fff,0 1px 0 #b2b7aa;font-weight:600;font-size:.875rem;line-height:1.2;white-space:nowrap}.button:hover:not(:disabled){background:#e7eee7;filter:none}.button:active:not(:disabled){box-shadow:inset 1px 1px 2px #74847b33}.button.primary{border-color:#a66948;background:linear-gradient(#ffd5b6,#ffc197);box-shadow:inset 1px 1px #ffe8d2,0 1px 0 #aa7c5f;color:#3e352d}.button.primary:hover{background:#ffb987}.button.small{min-height:30px;padding:5px 8px;font-size:.8rem}.button.full{width:100%}.offline-button{font-weight:500;background:transparent;box-shadow:none;border-color:#c0c6bc}.offline-button svg{width:17px}.menubar{position:relative;z-index:25;display:flex;align-items:center;justify-content:space-between;height:33px;min-height:33px;flex:0 0 auto;padding:0 17px;background:#e9ece3;border-bottom:1px solid #b8c1b6}.menus{display:flex;align-items:center;height:100%;gap:1px}.menus>button,.menu-wrap>button{height:27px;padding:3px 11px;border:1px solid transparent;font-size:.875rem;border-radius:2px}.menu-wrap>button[aria-expanded="true"],.menus>button:hover,.menu-wrap>button:hover{background:#fafff5;border-color:#b2bcb0}.menu-wrap{position:relative;height:100%;display:flex;align-items:center}.menu-popup{position:absolute;top:31px;left:0;z-index:60;min-width:242px;padding:5px;background:var(--panel);border:1px solid #8f9d92;box-shadow:3px 4px 0 #1f343432, inset 1px 1px #fff;border-radius:0 3px 3px 3px}.menu-popup button{width:100%;min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:22px;font-size:.875rem;text-align:left;padding:7px 10px;border-radius:2px;white-space:nowrap}.menu-popup button:hover{background:var(--teal);color:white;filter:none}.menu-popup button:hover kbd{color:#fff;background:transparent;border-color:#75908b}.menu-popup hr{border:0;border-top:1px solid var(--line);margin:5px 6px}.menu-right{display:flex;align-items:center;height:100%;gap:3px}.local-note{display:flex;align-items:center;gap:6px;font-size:.72rem;color:#6b7e73;letter-spacing:.03em;margin-right:9px}.local-note svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.4}.menu-separator{width:1px;height:17px;background:#bac5b6;margin-right:7px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:29px;height:28px;padding:4px;border:1px solid transparent;border-radius:3px}.icon-button:hover{border-color:#aebbad;background:#f8fcf4}.icon-button svg{width:17px;height:17px}.tool-options{display:flex;align-items:center;gap:16px;min-height:44px;flex:0 0 auto;padding:6px 17px;background:#f9f7ef;border-bottom:1px solid #9ca99e;box-shadow:inset 0 1px #fff;font-size:.875rem}.active-tool{display:flex;align-items:center;gap:9px;min-width:119px;padding-right:15px;border-right:1px solid #d0d5c8;font-size:.875rem;white-space:nowrap}.tool-options-mark{width:9px;height:9px;border:1px solid #2b5b56;background:var(--teal);box-shadow:inset 1px 1px #8fae9f}.tool-options #tool-controls{display:flex;align-items:center;gap:14px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:1px 3px;white-space:nowrap}.tool-options label{display:inline-flex;align-items:center;gap:7px;font-size:.8rem;flex-shrink:0}.tool-options input[type="number"]{width:65px;min-height:27px;padding:4px 7px}.tool-options select{min-width:110px;max-width:190px;padding:4px 27px 4px 7px;height:28px;font-size:.8rem}.tool-options input[type="range"]{width:78px;min-width:65px}.tool-options input[type="text"]{max-width:190px;min-height:27px;padding:4px 7px}.tool-options .helper-text,.tool-options .hint{font-size:.75rem;color:#788178}.tool-options button:not(.mobile-only){font-size:.8rem;white-space:nowrap}.workspace{display:grid;grid-template-columns:80px minmax(0,1fr) 302px;flex:1;min-height:0;overflow:hidden}.tool-rail{display:flex;flex-direction:column;gap:0;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;padding:10px 7px;background:linear-gradient(90deg,#e4e8dd,#edf0e7);border-right:1px solid #9fac9f;box-shadow:inset -1px 0 0 #fff;z-index:5}.tool-group{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:8px 0;border-bottom:1px solid #c4cdbc}.tool-group:first-child{padding-top:0}.tool-group:last-of-type{border-bottom:0}.tool{position:relative;display:flex;align-items:center;justify-content:center;width:29px;min-height:33px;padding:4px;border:1px solid transparent;border-radius:3px;color:#3d5554}.tool svg{width:21px;height:21px;stroke-width:1.55}.tool span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.tool:hover{background:#f9fbf3;border-color:#a3b5a7}.tool.active,.tool[aria-pressed="true"]{color:#fff8e7;background:var(--teal);border-color:#234746;box-shadow:inset 1px 1px #84a097,0 1px 0 #afbeac}.rail-signature{font-family:"Trebuchet MS",sans-serif;font-size:11px;letter-spacing:2px;font-weight:bold;color:#8f9e8d;text-align:center;margin-top:auto;padding:14px 0 4px}.editor-area{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border-right:1px solid #a3ada3;background:#dce1d6}.document-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:39px;padding:0 11px 0 0;background:#dbe1d7;border-bottom:1px solid #536a62}.document-tab{display:flex;align-items:center;gap:9px;align-self:stretch;min-width:0;max-width:65%;padding:8px 18px 6px;background:#eef2e8;box-shadow:inset 0 2px #739080;border-right:1px solid #a5b7a5;font-size:.8rem;font-weight:600}.document-tab>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;flex-shrink:0}#document-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-type{font-size:8px;letter-spacing:1px;padding:3px 4px;border:1px solid #b7c6b4;color:#718c7a;font-weight:700;margin-left:9px}.document-actions{display:flex;align-items:center;gap:6px;min-width:0}.document-actions #save-state{font-size:.7rem;color:#6e7f72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px}.document-actions .icon-button{width:25px;height:25px}.document-actions .icon-button svg{width:14px;height:14px}.stage-container{position:relative;display:flex;flex:1;min-height:150px;padding:18px 0 0 18px;background:var(--stage);overflow:hidden}.ruler{position:absolute;background:#354645;color:#a0b1a7;font:8px/1 var(--sans);pointer-events:none}.ruler-top{height:18px;left:18px;top:0;right:0;display:flex;justify-content:space-around;align-items:center;border-bottom:1px solid #1f2c2d;background-image:repeating-linear-gradient(90deg,transparent 0 19px,#6a7c6b55 19px 20px);background-position:0 bottom;background-size:100% 5px;background-repeat:no-repeat}.ruler-top span{padding:0 4px;background:#354645}.ruler-side{width:18px;top:18px;bottom:0;left:0;border-right:1px solid #1f2c2d;background-image:repeating-linear-gradient(0deg,transparent 0 19px,#6a7c6b55 19px 20px);background-position:right 0;background-size:5px 100%;background-repeat:no-repeat}#viewport{position:relative;flex:1;min-width:0;min-height:0;overflow:hidden;touch-action:none;outline-offset:-3px;background:radial-gradient(ellipse at 45% 40%,#354342,#263234 75%)}#canvas-wrap{position:absolute;top:0;left:0;transform-origin:0 0;box-shadow:0 10px 30px #0005,0 0 0 1px #0004;background-color:#e1e3db;background-image:linear-gradient(45deg,#bdc3ba 25%,transparent 25%),linear-gradient(-45deg,#bdc3ba 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#bdc3ba 75%),linear-gradient(-45deg,transparent 75%,#bdc3ba 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}#editor-canvas,#overlay-canvas{position:absolute;top:0;left:0;display:block;max-width:none}#overlay-canvas{touch-action:none}.canvas-badge{position:absolute;right:17px;bottom:14px;pointer-events:none;user-select:none;color:#aabbb480;letter-spacing:2.4px;font-size:8px;font-weight:600}.drop-hint{position:absolute;inset:13px;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;background:#203c39eb;border:2px dashed #d6e1c9;color:#fff9e6;pointer-events:none}.drop-hint svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1}.drop-hint strong{font-size:1.4rem}.drop-hint span{font-size:.875rem;color:#d1daca}.view-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;height:38px;min-height:38px;padding:3px 14px;background:#dfe5da;border-top:1px solid #839583;border-bottom:1px solid #b7c2b0}.view-bar #stage-status{font-size:.7rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#627566}.view-controls{display:flex;align-items:center;gap:4px;flex-shrink:0}.compare-button{display:flex;align-items:center;gap:5px;padding:3px 6px;font-size:.7rem;white-space:nowrap;border-radius:2px}.compare-button svg{width:15px;height:15px}.compare-button:hover{background:#f2f5e9}.view-divider{width:1px;height:17px;background:#bac5b4;margin:0 5px}.view-controls .icon-button{width:23px;height:23px}.view-controls .icon-button svg{width:13px;height:13px}.zoom-label{min-width:43px;font-size:.75rem;font-variant-numeric:tabular-nums}.fit-button{padding:3px 8px;font-size:.75rem;border:1px solid #a9b7a3;border-radius:2px;box-shadow:inset 1px 1px #fff8;background:#edf1e5;margin-left:3px}.looks-shelf{display:flex;flex-direction:column;min-height:126px;height:126px;flex:0 0 auto;padding:12px 17px 12px;background:#f2f3e9;box-shadow:inset 0 1px #fff}.looks-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.looks-heading>div{display:flex;align-items:center;gap:7px;min-width:0}.looks-heading svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;color:#597565}.looks-heading strong{font-size:.8rem;white-space:nowrap}.looks-heading>div>span{font-size:.7rem;color:#829080;margin-left:8px;white-space:nowrap}.looks-hint{font-size:.68rem;color:#8b9984;white-space:nowrap}.preset-list{display:flex;gap:9px;min-height:0;overflow-x:auto;overflow-y:hidden;padding:0 1px 6px;scrollbar-width:thin;scrollbar-color:#a7b6a1 transparent}.preset-card,.preset{flex:0 0 91px;min-width:91px;padding:0 0 3px;border:2px solid transparent;border-radius:3px;overflow:hidden;text-align:left;color:#5c7363;background:#e1e7d9;box-shadow:0 1px 0 #c4ceba}.preset-card img,.preset-card canvas,.preset img,.preset canvas{display:block;width:100%;height:46px;object-fit:cover;border-bottom:1px solid #0002}.preset-card span,.preset-card strong,.preset span,.preset strong{display:block;padding:4px 6px 0;font-size:.68rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preset-card.active,.preset-card[aria-pressed="true"],.preset.active,.preset[aria-pressed="true"]{border-color:var(--teal);background:#245b5a;color:white}.preset-card:hover,.preset:hover{border-color:#88a286;background:#e9f0e0;filter:none}.inspector{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--panel);box-shadow:inset 1px 0 #fff;z-index:15}.panel-tabs{display:grid;grid-template-columns:repeat(3,1fr);min-height:39px;flex:0 0 auto;background:#e8ece1;border-bottom:1px solid #b9c4b2}.panel-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 3px 7px;border:0;border-right:1px solid #cdd4c3;border-bottom:2px solid transparent;font-size:.8rem;color:#73836f}.panel-tabs button:last-child{border-right:0}.panel-tabs button svg{width:15px;height:15px;stroke-width:1.6}.panel-tabs button.active,.panel-tabs button[aria-selected="true"]{color:var(--teal-dark);background:var(--panel);border-bottom-color:var(--teal);font-weight:600}.inspector-panel{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#b2beaa transparent}.histogram-section{padding:17px 18px 16px;border-bottom:1px solid #d9dfd1}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:11px}.section-heading h2{font-size:.9rem;font-weight:650;letter-spacing:-.2px}.text-button{font-size:.75rem;color:var(--teal);padding:3px 2px;line-height:1.3;border-radius:2px}.text-button:hover{color:#113536;background:#e4ebdc}.histogram-wrap{padding:9px 8px 6px;background:#e8ede2;border:1px solid #d4deca;border-radius:3px}#histogram{display:block;width:100%;height:56px}.histogram-scale{display:flex;justify-content:space-between;font-size:.6rem;color:#86977f;letter-spacing:.02em;margin-top:3px}.auto-button{width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:5px;min-height:33px;padding:7px;margin-top:12px;color:var(--teal-dark);background:#dfebda;border:1px solid #abc0a4;border-radius:3px;box-shadow:inset 1px 1px #f5fff0;font-size:.8rem;font-weight:600}.auto-button svg{width:14px;height:14px}.auto-button>span{display:none;font-size:.68rem;font-weight:400;color:#73866f}#adjustment-controls{padding:0}.adjust-group,.adjustment-group,.adjust-section{padding:15px 18px;border-bottom:1px solid #d9dfd1}.adjust-group h3,.adjustment-group h3,.adjust-section h3{font-size:.75rem;font-weight:650;margin-bottom:16px;color:#657d69;letter-spacing:.04em}.adjustment-row,.adjust-row,.slider-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;margin:0 0 17px;font-size:.875rem}.adjustment-row:last-child,.adjust-row:last-child,.slider-row:last-child{margin-bottom:0}.adjustment-row>label,.adjust-row>label,.slider-row>label{font-size:.8rem}.adjustment-row>input[type="range"],.adjust-row>input[type="range"],.slider-row>input[type="range"]{flex:1 0 100%}.adjustment-row output,.adjust-row output,.slider-row output{font-size:.7rem;color:#788b74;min-width:29px;text-align:right;font-variant-numeric:tabular-nums}.adjustment-row input[type="number"],.adjust-row input[type="number"],.slider-row input[type="number"]{width:48px;min-height:22px;text-align:right;padding:3px 5px;font-size:.7rem;border-color:#d4dfcb;box-shadow:none;background:#f9fcf4}.control-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:10px 0;font-size:.8rem}.control-row>input[type="range"]{flex:1 0 100%}.control-row>input[type="number"]{max-width:90px}.control-row>output{font-size:.75rem;color:#71856d}.panel-section{border-bottom:1px solid #d9dfd1;padding:0 18px}.panel-section summary{position:relative;list-style:none;cursor:pointer;padding:16px 19px 16px 0;font-size:.8rem;font-weight:650}.panel-section summary::-webkit-details-marker{display:none}.panel-section summary::after{content:"+";position:absolute;right:1px;top:15px;font-weight:400;font-size:16px;color:#829179}.panel-section[open] summary::after{content:"−"}.panel-section summary span{display:block;font-weight:400;font-size:.68rem;color:#8c9a83;padding-top:4px}.curve-wrap{padding-bottom:16px}#curves-canvas{width:100%;height:130px;display:block;border:1px solid #bdcab3;border-radius:2px;background-color:#e8ede1;background-image:linear-gradient(#b9cbb422 1px,transparent 1px),linear-gradient(90deg,#b9cbb422 1px,transparent 1px);background-size:25% 25%;cursor:crosshair;touch-action:none}.curve-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:7px;font-size:.65rem;color:#84947c}.curve-caption .text-button{font-size:.65rem}.cutout-controls{padding-bottom:15px}.helper-text{font-size:.75rem;line-height:1.55;color:#7e8d77;margin:9px 0 13px}.cutout-controls .button{font-size:.8rem}.cutout-controls .control-row{margin:14px 0}.panel-footnote{display:flex;gap:8px;margin:17px 18px 22px;padding:11px 0;color:#86967d;font-size:.68rem;line-height:1.5}.panel-footnote svg{width:15px;height:15px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.5}.panel-heading{padding:17px 18px 0}.layer-settings{padding:0 18px 15px;border-bottom:1px solid #d4deca}.layer-settings>label{display:block;font-size:.75rem;margin-bottom:7px;color:#657b61}.layer-settings select{font-size:.8rem;background-color:#fffefa}.layer-settings .control-row{display:flex;margin:13px 0 0}.layer-list{padding:10px 8px;min-height:100px}.layer-row,.layer-item{display:flex;align-items:center;gap:8px;min-height:62px;width:100%;padding:8px;border:1px solid transparent;border-radius:3px;background:transparent;margin-bottom:4px;font-size:.8rem}.layer-row:hover,.layer-item:hover{background:#edf2e5}.layer-row.active,.layer-row.selected,.layer-item.active,.layer-item.selected{border-color:#a6c0a0;background:#dfecd8;box-shadow:inset 1px 1px #f8ffef}.layer-row img,.layer-row canvas,.layer-item img,.layer-item canvas,.layer-thumb{display:block;width:48px;height:39px;object-fit:contain;flex-shrink:0;border:1px solid #b5c6a8;border-radius:2px;background:repeating-conic-gradient(#d2dbcc 0% 25%,#e8eee1 0% 50%) 50% / 8px 8px}.layer-row .layer-info,.layer-item .layer-info{min-width:0;flex:1}.layer-row .layer-name,.layer-item .layer-name{font-size:.8rem;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-row small,.layer-item small,.layer-meta{display:block;font-size:.63rem;color:#88997d;line-height:1.7}.layer-row button,.layer-item button{flex-shrink:0;padding:3px}.layer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px 13px;border-top:1px solid #d4deca;border-bottom:1px solid #d4deca;background:#eef2e6}.layer-toolbar .text-button{font-size:.7rem}.layer-toolbar .icon-button svg{width:15px;height:15px}.layer-properties{padding:14px 18px}.layer-properties:empty{display:none}.layer-properties h3{font-size:.8rem;margin-bottom:13px}.layer-properties label{font-size:.75rem;color:#6c8064}.layer-properties input,.layer-properties textarea,.layer-properties select{font-size:.8rem}.layer-properties .field-grid,.layer-properties .grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.layer-properties .field-grid label{display:grid;gap:5px}.history-intro{margin:0;padding:0 18px 15px}.history-list{padding:0 9px}.history-item,.history-row{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border:1px solid transparent;border-radius:3px;text-align:left;font-size:.8rem;margin-bottom:2px}.history-item.active,.history-item.current,.history-row.active,.history-row.current{border-color:#afc4a5;background:#e0ecd9;color:#254d45}.history-item:hover,.history-row:hover{background:#edf2e6}.history-item small,.history-row small{color:#94a48b;font-size:.65rem;margin-left:auto}.memory-status{padding:18px;font-size:.7rem;color:#83967a;line-height:1.6}.status-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:27px;flex:0 0 auto;padding:3px 14px;background:#dce3d4;border-top:1px solid #9faf9a;box-shadow:inset 0 1px #f6fff0;color:#71846b;font-size:.65rem}.status-bar>span:first-child{display:flex;align-items:center;gap:6px}.status-bar svg{width:12px;height:12px;stroke:currentColor;stroke-width:1.5;fill:none}.status-center{letter-spacing:.03em;color:#8a9980}.status-bar .text-button{font-size:.65rem;display:flex;align-items:center;gap:8px;color:#61795b}.status-bar kbd{font-size:9px;line-height:1.1;padding:1px 3px}.toast{position:fixed;z-index:100;left:50%;bottom:43px;transform:translateX(-50%);max-width:min(620px,calc(100vw - 32px));padding:12px 18px;border:1px solid #7a9280;border-radius:5px;background:#fafff0;box-shadow:3px 4px 0 #263e3d33;color:#294c42;font-size:.875rem;line-height:1.45}.toast.error{border-color:#b77b50;background:#fff0df;color:#78482a}.busy-overlay{position:fixed;inset:0;z-index:150;display:flex;align-items:center;justify-content:center;background:#1f353a99;backdrop-filter:blur(2px)}.busy-card{display:flex;flex-direction:column;align-items:center;gap:16px;width:min(390px,calc(100% - 38px));padding:30px;border:1px solid #a6b19b;box-shadow:6px 7px 0 #172f3240,inset 1px 1px white;background:var(--panel);border-radius:5px;text-align:center}.busy-camera{display:grid;place-items:center;width:59px;height:59px;color:var(--teal);background:#e0ebd7;border:1px solid #b2c7a6;border-radius:50%}.busy-camera svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.3}.busy-card strong{font-size:1rem;line-height:1.4}.busy-card p{font-size:.8rem;color:#859478}.busy-progress{width:100%;height:7px;border:1px solid #acc19f;background:repeating-linear-gradient(90deg,#93ad82 0 9px,#c1d3b5 9px 12px);border-radius:2px}dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 56px);padding:0;border:1px solid #8f9e87;border-radius:5px;background:var(--panel);color:var(--ink);box-shadow:6px 7px 0 #19383944}dialog::backdrop{background:#1c343966;backdrop-filter:blur(2px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 17px;border-bottom:1px solid #aebfa4;background:#e2ebd8;box-shadow:inset 1px 1px #fff}.dialog-heading h2{font-size:1rem;font-weight:650}.dialog-heading .icon-button{width:25px;height:25px}#dialog-content{padding:23px;line-height:1.6;font-size:.875rem}#dialog-content h3{font-size:1rem;margin:15px 0 8px}#dialog-content p{margin-bottom:13px}#dialog-content label{display:block;margin-bottom:7px}#dialog-content label input:not([type="checkbox"]):not([type="range"]),#dialog-content label select,#dialog-content label textarea{margin-top:5px}#dialog-content .field-grid,#dialog-content .form-grid,#dialog-content .grid-2{display:grid;grid-template-columns:1fr 1fr;gap:13px}#dialog-content .dialog-actions,#dialog-content .form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px;padding-top:17px;border-top:1px solid #d1dbc8}#dialog-content table{width:100%;font-size:.8rem;border-collapse:collapse}#dialog-content td,#dialog-content th{text-align:left;padding:7px;border-bottom:1px solid #d4decb}#dialog-content details{margin:10px 0}#dialog-content summary{cursor:pointer;font-weight:600}#dialog-content .button{margin:3px 0}#dialog-content ul{padding-left:21px;margin:10px 0}#dialog-content .format-help,#dialog-content .note{color:#7e9076;font-size:.75rem;line-height:1.5;margin:10px 0}.mobile-only{display:none!important}
@media(min-width:1600px){.workspace{grid-template-columns:84px minmax(0,1fr) 326px}.tool-rail{padding-left:9px;padding-right:9px}.tool{width:29px}.histogram-section,.adjust-group,.adjustment-group,.adjust-section{padding-left:22px;padding-right:22px}.looks-shelf{height:145px;min-height:145px;padding:13px 20px}.preset-card,.preset{min-width:112px;flex-basis:112px}.preset-card img,.preset-card canvas,.preset img,.preset canvas{height:59px}.preset-card span,.preset span{font-size:.72rem}.stage-container{min-height:200px}}
@media(max-width:1200px){.brand-stamp{display:none!important}.brand-tagline,.brand-divider{display:none}.header-actions{gap:7px}.app-header{padding-right:15px;gap:12px}.header-actions .button{padding:8px 10px}.workspace{grid-template-columns:71px minmax(0,1fr) 282px}.tool-rail{padding-left:5px;padding-right:5px}.tool{width:27px}.tool-group{gap:4px}.wordmark{font-size:1.6rem}.wordmark>span:first-child{font-size:1.48rem}.looks-heading>div>span,.looks-hint{display:none}.view-bar #stage-status{max-width:45%}.document-tab{padding-left:12px;padding-right:10px}.document-type{display:none}.document-actions #save-state{max-width:100px}.histogram-section,.adjust-group,.adjustment-group,.adjust-section{padding-left:15px;padding-right:15px}.tool-options{gap:10px}.active-tool{min-width:105px}.tool-options #tool-controls{gap:10px}}
@media(max-width:1000px){.offline-button span{display:none}.offline-button{width:37px;padding:8px!important}.brand{gap:11px}.brand .ry2k-crt{--ry2k-crt-width:72px}.app-header{min-height:76px;padding:8px 13px}.wordmark{font-size:1.45rem}.wordmark>span:first-child{font-size:1.34rem}.brand-type p{font-size:.65rem}.workspace{grid-template-columns:64px minmax(0,1fr) 260px}.tool-rail{padding-left:3px;padding-right:3px}.tool-group{gap:2px}.tool{width:27px;min-height:31px}.tool svg{width:19px;height:19px}.panel-tabs button{gap:4px;font-size:.72rem}.panel-tabs button svg{width:13px;height:13px}.local-note{display:none}.menubar{padding:0 10px}.menus>button,.menu-wrap>button{padding-left:9px;padding-right:9px}.view-bar #stage-status{display:none}.view-bar{justify-content:flex-end;padding-right:8px}.document-actions #save-state{display:none}.status-center{display:none}.histogram-section{padding:13px}.adjust-group,.adjustment-group,.adjust-section{padding:14px 13px}.panel-section{padding:0 13px}.tool-options label{font-size:.75rem}.header-actions .button{font-size:.8rem}}
@media(max-width:790px){body{overflow:auto}#app{min-height:640px;height:100dvh}.app-header{min-height:74px;padding:8px 11px;gap:9px}.header-actions{gap:6px}.header-actions .button{padding:7px 9px;min-height:35px}.header-actions .open-button{display:none}.brand{gap:9px}.brand .ry2k-crt{--ry2k-crt-width:67px}.wordmark{font-size:1.45rem}.wordmark>span:first-child{font-size:1.3rem}.workspace{grid-template-columns:62px minmax(0,1fr);position:relative;overflow:visible}.inspector{display:none;position:fixed;top:0;bottom:0;right:0;width:min(330px,88vw);z-index:80;border-left:1px solid #83967d;box-shadow:-12px 0 40px #1e343e55}.inspector-open .inspector{display:flex}.inspector-open::after{content:"";position:fixed;inset:0;background:#1e343e33;z-index:70;pointer-events:none}.mobile-only{display:flex!important}.inspector-head{align-items:center;justify-content:space-between;padding:14px 16px;background:#dbe7d1;border-bottom:1px solid #adbe9e}.inspector-head strong{font-size:.875rem}.inspector-panel{background:var(--panel)}.tool-options{padding:6px 10px;gap:8px;min-height:43px}.active-tool{min-width:auto;padding-right:9px;font-size:.8rem;gap:6px}.tool-options-mark{width:7px;height:7px}.tool-options #tool-controls{flex:1;max-width:none}.tool-options .mobile-only{flex-shrink:0;min-height:28px;font-size:.7rem;padding:4px 6px;gap:4px}.tool-options .mobile-only svg{width:13px;height:13px}.tool-options input[type="range"]{min-width:56px;width:56px}.tool-options .hint,.tool-options .helper-text{display:none}.menubar{padding:0 8px}.menus>button,.menu-wrap>button{padding:3px 8px;font-size:.8rem}.menu-right{gap:0}.menu-separator{display:none}.document-actions #save-state{display:block;max-width:110px}.tool-group{padding:7px 0}.tool-rail{padding-top:9px}.looks-shelf{height:123px;min-height:123px;padding:10px 12px}.looks-heading{margin-bottom:9px}.looks-heading>div>span{display:inline;font-size:.65rem}.looks-heading strong{font-size:.75rem}.preset-card,.preset{flex-basis:88px;min-width:88px}.view-bar #stage-status{display:block}.stage-container{min-height:210px}.status-bar{padding:3px 9px;gap:9px}.status-bar>span:first-child{font-size:.6rem;overflow:hidden;white-space:nowrap}.status-bar .text-button{flex-shrink:0}.menu-popup{min-width:220px}.menu-wrap:nth-child(n+5) .menu-popup{left:auto;right:0}.app-header .brand-stamp{display:none!important}}
@media(max-width:520px){#app{min-height:680px}.app-header{min-height:72px;padding:9px 10px}.brand .ry2k-crt{--ry2k-crt-width:61px;padding:3px 4px 2px}.brand .ry2k-crt__chin{min-height:9px;padding-top:2px;gap:3px}.brand .ry2k-crt__label{font-size:6px}.brand .ry2k-crt__vents{width:12px}.brand .ry2k-crt__power{width:3px;height:3px}.brand{gap:8px}.wordmark{font-size:1.2rem;letter-spacing:-1px}.wordmark>span:first-child{font-size:1.1rem;letter-spacing:-1px}.brand-type p{font-size:.55rem;margin-top:5px;letter-spacing:0}.header-actions{gap:5px}.header-actions .button{min-height:31px;padding:6px 7px;font-size:.72rem}.header-actions .button svg{width:15px;height:15px}.header-actions .primary span{font-size:0}.header-actions .primary span::after{content:"Export";font-size:.72rem}.offline-button{width:30px;padding:6px!important}.menubar{min-height:32px;height:32px;padding:0 6px}.menus{gap:0;min-width:0}.menus>button,.menu-wrap>button{padding:3px 6px;font-size:.74rem}.menu-right .icon-button{width:25px;height:24px}.menu-right .icon-button svg{width:14px;height:14px}.workspace{display:flex;flex-direction:column;min-height:0;overflow:hidden}.tool-rail{flex-direction:row;gap:7px;min-height:42px;height:42px;flex:0 0 auto;width:100%;padding:4px 7px;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid #aebba3;box-shadow:inset 0 1px #fff;scrollbar-width:none;background:#e8eee0}.tool-group{display:flex;align-items:center;flex-shrink:0;gap:2px;border:0;border-right:1px solid #c0cdba;padding:0 7px 0 0!important}.tool-group:last-of-type{border-right:0}.tool{min-height:30px;height:30px;width:29px}.tool svg{width:19px;height:19px}.rail-signature{display:none}.editor-area{flex:1;border-right:0;min-height:0}.tool-options{min-height:40px;gap:6px;padding:5px 7px}.tool-options .active-tool{max-width:80px;font-size:.73rem;gap:5px;padding-right:6px}.tool-options .mobile-only{font-size:0;padding:4px 7px;min-width:28px}.tool-options .mobile-only svg{width:16px;height:16px}.tool-options #tool-controls{gap:9px;font-size:.72rem;max-height:31px}.tool-options input[type="number"]{width:52px;padding:3px 5px;font-size:.72rem;min-height:24px}.tool-options input[type="color"]{width:25px;height:25px}.tool-options label{gap:4px;font-size:.7rem}.tool-options select{min-width:80px;max-width:140px;height:25px;font-size:.7rem;padding:3px 23px 3px 6px}.tool-options input[type="text"]{max-width:120px;font-size:.7rem;min-height:25px}.document-bar{min-height:34px;height:34px;gap:8px;padding-right:5px}.document-tab{padding:7px 9px 5px;font-size:.72rem;max-width:67%;gap:6px}.document-tab>svg{width:13px;height:13px}.document-actions{gap:3px}.document-actions #save-state{display:none}.stage-container{min-height:230px;padding:14px 0 0 14px}.ruler-top{height:14px;left:14px;font-size:7px}.ruler-side{width:14px;top:14px}.canvas-badge{font-size:6px;letter-spacing:1.7px;right:9px;bottom:9px}.view-bar{padding:3px 7px;height:33px;min-height:33px}.view-bar #stage-status{max-width:34%;font-size:.61rem}.view-controls{gap:1px}.compare-button{gap:3px;font-size:.63rem;padding:3px}.compare-button svg{width:13px;height:13px}.view-divider{margin:0 4px}.zoom-label{min-width:35px;font-size:.68rem}.fit-button{padding:3px 6px;font-size:.68rem}.looks-shelf{height:112px;min-height:112px;padding:9px}.looks-heading>div>span{display:none}.looks-heading{margin-bottom:8px}.looks-heading strong{font-size:.73rem}.looks-heading svg{width:13px;height:13px}.preset-list{gap:7px}.preset-card,.preset{min-width:80px;flex-basis:80px}.preset-card img,.preset-card canvas,.preset img,.preset canvas{height:42px}.preset-card span,.preset-card strong,.preset span,.preset strong{font-size:.61rem;padding:3px 5px 0}.status-bar{min-height:25px;padding:3px 7px;gap:7px}.status-bar .text-button{font-size:.59rem;gap:5px}.status-bar>span:first-child{font-size:.57rem}.status-bar>span:first-child svg{display:none}.status-bar kbd{font-size:8px}.menu-popup{top:30px;min-width:205px}.menu-popup button{font-size:.8rem;min-height:35px;padding:7px 8px;gap:12px}.menu-wrap:nth-child(n+4) .menu-popup{left:auto;right:0}.menu-popup kbd{font-size:9px}.toast{bottom:37px;font-size:.8rem;padding:10px 13px}#dialog-content{padding:18px;font-size:.8rem}.dialog-heading{padding:11px 14px}.drop-hint{inset:9px;padding:16px;text-align:center}.drop-hint strong{font-size:1.1rem}.drop-hint span{font-size:.75rem}}
@media(max-width:370px){.wordmark{font-size:1.05rem}.wordmark>span:first-child{font-size:.95rem}.brand .ry2k-crt{--ry2k-crt-width:54px}.brand-type p{font-size:.49rem}.brand{gap:6px}.app-header{padding:8px 7px;min-height:66px}.header-actions{gap:4px}.header-actions .primary{padding:6px}.header-actions .primary svg{display:none}.offline-button{width:27px}.menus>button,.menu-wrap>button{padding:3px 4px;font-size:.7rem}.menu-right .icon-button{width:22px}.menubar{padding:0 5px}.view-bar #stage-status{display:none}.view-bar{justify-content:flex-end}.document-tab{max-width:70%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Keep the controls people read repeatedly comfortable at every zoom level. */
.panel-tabs button,.panel-section summary,.adjustment-row>label,.adjust-row>label,.slider-row>label,.control-row,.layer-settings>label{font-size:.875rem}
.adjust-group h3,.adjustment-group h3,.adjust-section h3{font-size:.875rem}
.layer-properties label,.layer-properties input,.layer-properties textarea,.layer-properties select{font-size:.875rem}
@media(min-width:791px){.tool-options label{font-size:.875rem}.auto-button{font-size:.875rem}.layer-toolbar .text-button{font-size:.8rem}}
@media(min-width:791px) and (max-height:720px){#app{min-height:500px}.app-header{min-height:72px;padding-top:6px;padding-bottom:6px}.brand .ry2k-crt{--ry2k-crt-width:70px}.tool-options{min-height:40px}.looks-shelf{height:110px;min-height:110px;padding-top:9px;padding-bottom:8px}.looks-heading{margin-bottom:7px}.preset-card img,.preset-card canvas,.preset img,.preset canvas{height:40px}.stage-container{min-height:130px}.tool-group{padding-top:6px;padding-bottom:6px}.tool{min-height:30px}}
/* Live controls generated by the editor. */
.field-label{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;margin:0 0 15px;font-size:.875rem;line-height:1.35;font-weight:500;color:#526d59}
.field-label>input:not([type="checkbox"]):not([type="color"]),.field-label>select,.field-label>textarea{display:block;width:100%;min-width:0;font-weight:400;font-size:.875rem}
.field-label>input[type="range"]{margin-top:6px}
.field-label>input[type="color"]{display:block;width:46px;height:33px;margin-top:4px}
.property-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 13px;margin:0 0 15px}
.property-grid>.field-label{margin-bottom:0}
#dialog-content>.field-label,#dialog-content .property-grid>.field-label{display:flex;flex-direction:column;gap:5px;font-size:.875rem;margin-bottom:15px}
#dialog-content .property-grid>.field-label{margin-bottom:0}
#dialog-content .field-label>input:not([type="checkbox"]),#dialog-content .field-label>select,#dialog-content .field-label>textarea{margin-top:0}
#dialog-content .field-label>input[type="color"]{width:46px;height:34px}
.check-label{display:flex!important;align-items:center;gap:8px;font-size:.875rem;line-height:1.5}
.check-label input{margin:0;width:15px;height:15px;flex-shrink:0}
.property-note,.muted{font-size:.8rem;line-height:1.55;color:#778970;font-weight:400}
.property-note{padding:12px 0 0;margin-top:12px;border-top:1px solid #d5dfca}
#dialog-content .muted{margin:13px 0 0;font-size:.8rem}
.subtle-button,.primary-button,.small-primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:35px;padding:7px 12px;font-size:.875rem;line-height:1.2;font-weight:600;border:1px solid #a8b89d;border-radius:3px;background:linear-gradient(#fffef7,#edf1e4);box-shadow:inset 1px 1px #fff,0 1px 0 #c4cebb;white-space:nowrap}
.subtle-button{background:#f6f9ef;font-weight:500;box-shadow:inset 1px 1px #fff}
.primary-button,.small-primary{color:#43392f;border-color:#aa7856;background:linear-gradient(#ffd8b8,#ffc298);box-shadow:inset 1px 1px #ffeedb,0 1px 0 #b68d6e}
.subtle-button:hover:not(:disabled){background:#e4eddb;filter:none}
.primary-button:hover:not(:disabled),.small-primary:hover:not(:disabled){background:#ffbd8d;filter:none}
.small-primary{min-height:29px;padding:5px 9px;font-size:.8rem}
#tool-controls>.subtle-button{min-height:28px;padding:4px 8px;font-size:.8rem}
.compact-label{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;white-space:nowrap;color:#51684f}
.compact-label>output{min-width:21px;font-size:.75rem;color:#798b71;text-align:right;font-variant-numeric:tabular-nums}
.compact-label>input[type="checkbox"]{width:14px;height:14px;margin:0 3px 0 0;flex-shrink:0}
.tool-tip{display:inline-block;max-width:100%;white-space:nowrap;font-size:.8rem;line-height:1.35;color:#7c8c73;flex-shrink:0}
.active-tool{min-width:0;max-width:210px;flex-shrink:0}
#active-tool-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
details.adjust-group{padding-top:0;padding-bottom:0}
details.adjust-group>summary{position:relative;list-style:none;padding:16px 21px 15px 0;font-size:.875rem;line-height:1.3;font-weight:650;color:#566e58;cursor:pointer}
details.adjust-group>summary::-webkit-details-marker{display:none}
details.adjust-group>summary::after{content:"+";position:absolute;right:1px;top:14px;font-size:18px;font-weight:400;color:#84977b}
details.adjust-group[open]>summary::after{content:"−"}
details.adjust-group[open]>summary{padding-bottom:18px}
details.adjust-group>.adjust-row{margin-bottom:18px;font-size:.875rem;line-height:1.2;font-weight:400;gap:8px}
details.adjust-group>.adjust-row>span{font-size:.875rem}
details.adjust-group>.adjust-row>output{font-size:.75rem;line-height:1.2;min-width:32px;color:#74886c}
details.adjust-group>.adjust-row>input[type="range"]{flex:1 0 100%;width:100%;height:18px;min-width:0}
details.adjust-group>.adjust-row:last-child{margin-bottom:17px}
.layer-row{cursor:grab;min-height:62px;gap:5px;padding:7px 5px}
.layer-row:active{cursor:grabbing}
.layer-row .layer-select{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;width:0;padding:2px 0;border:0;text-align:left}
.layer-row .layer-select:hover{filter:none}
.layer-row .layer-thumb{width:48px;height:36px;flex:0 0 48px}
.layer-copy{display:block;min-width:0;flex:1;line-height:1.35;text-align:left}
.layer-copy>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:600}
.layer-copy>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.68rem;line-height:1.65}
.layer-row .layer-visibility,.layer-row .layer-lock{display:grid;place-items:center;min-width:24px;width:24px;min-height:33px;padding:0;font-size:15px;color:#77946e;border-radius:3px}
.layer-row .layer-visibility:hover,.layer-row .layer-lock:hover{background:#b8d2ab55;filter:none}
.layer-row.active{background:#e0edd7;border-color:#a4bf97;box-shadow:inset 1px 1px #f6ffeb}
.layer-row.active .layer-copy>strong{color:#274c3e}
.layer-row.drop-target{outline:2px dashed #bf8b52;outline-offset:-2px;background:#fff0d8}
.layer-properties>.subtle-button{width:100%;margin-top:3px}
.history-item{align-items:flex-start;font-size:.875rem;line-height:1.4;padding:11px 9px;gap:9px}
.history-item .history-mark{color:#73936b;font-size:12px;line-height:1.8;flex-shrink:0}
.history-item>span:nth-child(2){flex:1;min-width:0}
.history-item>small{flex-shrink:0;line-height:1.8;white-space:nowrap;font-size:.64rem}
.history-item.future{color:#94a08c;background:#f3f6ec;border-color:transparent}
.history-item.future .history-mark{color:#acb9a3}
.history-item.future small{color:#a8b49e}
.history-item.active .history-mark{color:#245b5a}
.import-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:19px 0 16px}
.import-choice{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;min-height:112px;padding:16px 15px;text-align:left;border:1px solid #a4b99a;border-radius:4px;box-shadow:inset 1px 1px #fff,0 2px 0 #d0dbc4;background:linear-gradient(135deg,#f8fcf2,#e9f1de)}
.import-choice:first-child{background:linear-gradient(135deg,#e2efda,#d3e6c8);border-color:#93af85}
.import-choice strong{font-size:.95rem;line-height:1.3;color:#284e3e;font-weight:650}
.import-choice span{font-size:.8rem;line-height:1.45;color:#7b8d6f}
.import-choice:hover{background:#dceccc!important;border-color:#6f965e;filter:none!important}
.shortcut-list{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px 14px;padding:14px;border:1px solid #cfdbc4;background:#eef4e6;border-radius:3px;margin:12px 0 20px}
.shortcut-list>span{font-size:.8rem;line-height:1.4}
.shortcut-list>kbd{justify-self:start;font-size:.7rem;padding:3px 5px;background:#fffef6;white-space:normal;max-width:100%}
.help-content h3{padding-top:8px}
.help-content p{font-size:.875rem;line-height:1.65}
#viewport[data-tool="move"]{cursor:default}
#viewport[data-tool="hand"]{cursor:grab}
#viewport[data-tool="hand"]:active{cursor:grabbing}
#viewport[data-tool="crop"],#viewport[data-tool="select"],#viewport[data-tool="lasso"],#viewport[data-tool="wand"],#viewport[data-tool="eyedropper"],#viewport[data-tool="shape"],#viewport[data-tool="gradient"]{cursor:crosshair}
#viewport[data-tool="text"]{cursor:text}
#viewport[data-tool="brush"],#viewport[data-tool="erase"],#viewport[data-tool="mask"],#viewport[data-tool="restore"],#viewport[data-tool="clone"],#viewport[data-tool="heal"],#viewport[data-tool="dodge"],#viewport[data-tool="burn"]{cursor:crosshair}
@media(max-width:790px){.active-tool{max-width:170px}.tool-tip{font-size:.75rem}.layer-copy>strong{font-size:.875rem}.property-grid{gap:11px}.shortcut-list{gap:9px 12px}.menu-popup{max-height:calc(100dvh - 145px);overflow-y:auto}}
@media(max-width:520px){.active-tool{max-width:110px!important}.tool-tip{display:none}#tool-controls>.subtle-button{min-height:27px;padding:4px 7px;font-size:.75rem}.compact-label>output{font-size:.7rem;min-width:18px}.small-primary{min-height:27px;padding:4px 8px;font-size:.75rem}.menu-wrap{position:static}.menu-wrap>.menu-popup,.menu-wrap:nth-child(n+4)>.menu-popup,.menu-wrap:nth-child(n+5)>.menu-popup{left:6px;right:6px;top:31px;min-width:0;width:auto;max-width:calc(100vw - 12px);max-height:calc(100dvh - 130px)}.menu-popup button{font-size:.875rem;padding:8px 11px;min-height:39px}.menu-popup kbd{font-size:.7rem}.field-label,#dialog-content>.field-label,#dialog-content .property-grid>.field-label{font-size:.875rem}.subtle-button,.primary-button{min-height:37px;font-size:.875rem}.import-choice{min-height:110px;padding:14px 12px;gap:7px}.import-choice strong{font-size:.875rem}.import-choice span{font-size:.75rem}.shortcut-list{grid-template-columns:1fr;gap:5px;padding:12px}.shortcut-list>kbd{margin-bottom:8px}.shortcut-list>kbd:last-child{margin-bottom:0}.history-item{font-size:.875rem}}
@media(max-width:370px){.import-choices{grid-template-columns:1fr;gap:10px}.import-choice{min-height:82px;padding:13px}.property-grid{gap:10px}}

/* Leave room for complete look names and the horizontal scrollbar. */
.looks-shelf{height:148px;min-height:148px}.preset-list{min-height:88px;flex-shrink:0}.preset-card{min-height:72px}.preset-card span{font-size:.75rem}
@media(min-width:1600px){.looks-shelf{height:158px;min-height:158px}.preset-list{min-height:95px}}
@media(max-width:520px){.looks-shelf{height:133px;min-height:133px}.preset-list{min-height:82px}.preset-card{min-height:67px}.preset-card span{font-size:.7rem}.stage-container{min-height:200px}}
@media(min-width:791px) and (max-height:720px){.looks-shelf{height:133px;min-height:133px}.preset-list{min-height:80px}}

@media(max-width:790px){.header-actions .open-button{display:inline-flex;width:32px;padding:6px;flex-shrink:0}.header-actions .open-button span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.header-actions .open-button svg{width:16px;height:16px}}
@media(max-width:370px){.header-actions .open-button{width:27px;padding:4px}.header-actions .button{min-width:0}.app-header{gap:4px}}
