@font-face{font-family:"Graded Plus Jakarta Sans";src:url("./fonts/graded/jakarta.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Graded Plus Jakarta Sans";src:url("./fonts/graded/jakarta-italic.woff2") format("woff2");font-weight:200 800;font-style:italic;font-display:swap}
@font-face{font-family:"Graded Inter";src:url("./fonts/graded/inter.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Graded Inter";src:url("./fonts/graded/inter-italic.woff2") format("woff2");font-weight:100 900;font-style:italic;font-display:swap}
.grade-node{position:relative;height:100%;width:100%;color:#38343f;font-family:inherit;font-size:14px;line-height:1.45}
.grade-frame{position:relative;width:100%;height:100%;background:#f4f2f7;border:1px solid #d7d2e0;border-radius:16px;box-shadow:0 2px 10px #30224014}
.grade-node.selected .grade-frame{outline:2px solid #a78be4;outline-offset:2px}
.grade-node .grade-resize-corner.handle{display:block!important;width:18px;height:18px;opacity:0;z-index:5;touch-action:none}
.grade-frame>img,.grade-overlay{position:absolute;width:100%;height:100%;inset:0;object-fit:contain;border-radius:inherit;user-select:none}
.grade-overlay{pointer-events:none}.grade-overlay.drawing{pointer-events:auto;cursor:crosshair;touch-action:none}
.grade-frame{overflow:hidden}
.grade-card-move{cursor:grab}
.grade-move-grip{position:absolute;z-index:5;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:5px;padding:2px 10px;min-height:24px;box-sizing:border-box;border:1px solid #d7d2e0;border-radius:12px;background:#fbfafd;color:#51475f;font-size:13px;user-select:none;touch-action:none}
.grade-move-grip span{font-size:16px;line-height:1}
.react-flow__node.dragging .grade-card-move{cursor:grabbing}
.grade-frame>img[aria-haspopup=dialog]:focus-visible{outline:2px solid #7954ae;outline-offset:-3px}
.grade-result-preview{position:fixed;inset:0;box-sizing:border-box;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:16px;border:0;background:transparent;color:white;overflow:hidden}
.grade-result-preview[open]{display:grid;place-items:center}
.grade-result-preview::backdrop{background:rgb(16 14 20 / 92%)}
.grade-result-preview>img{width:min(100%,calc((100dvh - 32px) * var(--grade-preview-ratio)));height:auto;max-height:100%;object-fit:contain}
.grade-result-preview [role=alert]{position:absolute;top:100%;right:0;margin-top:6px;padding:4px 8px;white-space:nowrap;background:#352f3e;border-radius:5px}
.grade-frame.grade-free-text,.grade-free-text>.grade-overlay{overflow:visible}
.grade-frame>img,.grade-overlay,.grade-layer-view{transform-origin:0 0;transform:var(--grade-image-transform,none)}
.grade-layer-view{position:absolute;inset:0;width:100%;height:100%;touch-action:none;user-select:none;background:#f4f2f7}
.grade-layer-move{cursor:move}.grade-layer-outline{fill:none;stroke:#8357bd;stroke-width:1.5px;vector-effect:non-scaling-stroke}
.grade-layer-grip{fill:white;stroke:#654492;stroke-width:1.5px;vector-effect:non-scaling-stroke}
.grade-layer-grip.nw,.grade-layer-grip.se{cursor:nwse-resize}.grade-layer-grip.ne,.grade-layer-grip.sw{cursor:nesw-resize}
.grade-layer-grip.n,.grade-layer-grip.s{cursor:ns-resize}.grade-layer-grip.e,.grade-layer-grip.w{cursor:ew-resize}
.grade-rotate-grip{cursor:grab}.grade-rotate-grip:active{cursor:grabbing}
.grade-rotate-grip line,.grade-rotate-grip circle{stroke:#654492;stroke-width:1.5px;vector-effect:non-scaling-stroke}
.grade-rotate-grip circle{fill:#ede5fa}
.grade-angle{display:inline-flex;align-items:center;gap:3px;font-size:13px;padding:0 5px}
.grade-angle input{width:5.2em;border:1px solid #d7cbe8;border-radius:5px;background:white;color:inherit;text-align:center;font:inherit}
.grade-frame[data-panning=true],.grade-frame[data-panning=true] *{cursor:grabbing!important}
.grade-node .grade-fit{display:none;position:absolute;bottom:8px;right:8px;z-index:3;background:#fbfafd;box-shadow:0 1px 5px #332a4026}
.grade-frame[data-adjusted=true]>.grade-fit{display:block}
.grade-overlay polygon{fill:#966bea25;stroke:#594173;stroke-width:2px;stroke-dasharray:5 3;vector-effect:non-scaling-stroke}
.grade-overlay polygon[data-copy-area]{cursor:text;pointer-events:all}
.grade-copy-block{cursor:move;pointer-events:all;touch-action:none;outline:none}
.grade-frame-handle{fill:#7651ab;stroke:white;stroke-width:1px;vector-effect:non-scaling-stroke;pointer-events:all;touch-action:none;outline:none}
.grade-line-editor{pointer-events:all;overflow:visible}
.grade-node .grade-line-editor textarea[wrap=soft]{white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden}
.grade-node .grade-line-editor textarea{display:block;box-sizing:border-box;width:100%;height:100%;border:0;outline:1px dashed #876da3;background:transparent;padding:0;margin:0;border-radius:0;line-height:1.2;resize:none;user-select:text;caret-color:currentColor}
.grade-line-list{display:grid;gap:2px;width:100%;min-width:0;max-height:13em;overflow:auto}
.grade-line-list label{display:flex;align-items:center;gap:5px;padding:1px}
.grade-line-list label>span{font-size:11px;color:#665c70;min-width:1.5em;text-align:right}
.grade-card .grade-line-list textarea{box-sizing:border-box;width:100%;min-width:0;min-height:0;padding:0 2px;resize:none;color:inherit;font:inherit;background:transparent;border:1px solid transparent;border-radius:4px}
.grade-line-list textarea:focus{outline:1px solid #876da3}
.grade-copy-block rect{fill:transparent;stroke:#876da3;stroke-dasharray:4 3;stroke-width:1px;vector-effect:non-scaling-stroke}
.grade-copy-block:is(:focus,:hover,[data-active=true]) rect{stroke:#69439e;stroke-width:2px;stroke-dasharray:none}
.grade-copy-guide{stroke:#7651ab;stroke-width:1px;stroke-dasharray:2 4;vector-effect:non-scaling-stroke;pointer-events:none}
.grade-copy-editor{pointer-events:auto;cursor:text}
.grade-node .grade-copy-editor textarea{display:block;box-sizing:border-box;width:100%;height:100%;margin:0;border:0;outline:0;border-radius:0;background:transparent;color:#302836;box-shadow:inset 0 0 0 1px #8265ac;line-height:1.2;resize:none;user-select:text;cursor:text;overscroll-behavior:contain}
.grade-node .grade-copy-editor textarea[hidden]{display:none}
.grade-typeset-preview{box-sizing:border-box;width:100%;height:100%;overflow:auto;background:transparent;color:#302836;line-height:1.2;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;cursor:text;outline:0}
.grade-typeset-preview [data-selected=true]{background:#e8ddf8}
.grade-empty{display:grid;place-content:center;justify-items:center;gap:12px;height:100%}.grade-empty strong{font-size:18px}.grade-empty span{color:#645971}
.grade-node button,.grade-node select,.grade-node textarea{color:inherit;font:inherit}
.grade-node button{cursor:pointer;border:0;background:transparent;border-radius:9px;padding:5px 8px;white-space:nowrap;font-size:13px}
.grade-node button:hover,.grade-node button[aria-pressed=true]{background:#eae2f7;color:#493270}
.grade-node button:disabled{opacity:.55;cursor:default}
.grade-empty button{background:#eee8f6}
.grade-empty .grade-white-entry{display:grid;gap:4px;max-width:100%;padding:9px 14px;white-space:normal;border:1px dashed #bdaecf;background:#f6f2fa}
.grade-white-entry small,.grade-white-count{font-size:12px;line-height:1.45;color:#645971}
.grade-white-photos{display:grid;justify-items:center;gap:6px;min-width:0;max-width:100%;padding:4px}
.grade-white-review{max-width:100%;font-size:13px;overflow-wrap:anywhere}
.grade-white-review summary{cursor:pointer}
.grade-white-review ul{max-height:8em;overflow:auto;overscroll-behavior:contain;margin:4px 0;padding-inline-start:1.4em}
.grade-white-thumbs{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-height:104px;overflow:auto}
.grade-white-thumb{position:relative;padding:2px 8px 0 0}
.grade-white-thumb img{display:block;width:42px;height:42px;object-fit:contain;border-radius:6px}
.grade-white-thumb .grade-white-angle{position:static;display:grid;justify-items:center;gap:2px;height:auto;padding:2px 3px;border:1px solid transparent;border-radius:6px;font-size:10px}
.grade-white-thumb .grade-white-angle[aria-pressed="true"]{border-color:#785ac0;background:#eee9f8}
.grade-white-thumb button{position:absolute;right:0;top:0;min-width:19px;height:19px;padding:0;border-radius:50%;background:#faf9fb}
.grade-target-hint{padding:0 6px;color:#645971}
.grade-controls{position:relative;z-index:3;justify-self:center;min-width:0;max-width:100%;display:flex;align-items:center;flex-direction:column;gap:5px}
.grade-strip,.grade-levels,.grade-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;padding:3px;border-radius:20px;background:rgba(252,251,254,.95);color:#302836;box-shadow:0 2px 8px #21153036}
.grade-strip button{padding:4px 7px;position:relative}.grade-strip .grade-level{font-weight:700;border-right:1px solid #d6cfdb;border-radius:16px 0 0 16px}
.grade-node .grade-primary{color:white;background:#7644c6;border-radius:18px;padding:5px 10px}.grade-node .grade-primary:disabled{background:#69636e}
.grade-strip [data-done=true]::after{content:"";position:absolute;top:3px;right:1px;width:5px;height:5px;border-radius:50%;background:#308249}
.grade-tools{order:-1}.grade-levels{order:-2}.grade-badge,.grade-download{position:absolute;top:9px;z-index:4}
.grade-tools.grade-copy-format{order:-2;gap:2px}
.grade-copy-format label{display:inline-flex;align-items:center;gap:4px;margin-left:3px;padding-left:7px;border-left:1px solid #d6cfdb;font-size:13px}
.grade-copy-format input{box-sizing:border-box;width:5.5em;padding:4px;border:1px solid #bcaed1;border-radius:5px;background:#fff;color:#302836;caret-color:#302836;font:inherit;font-variant-numeric:tabular-nums;text-align:center}
.grade-copy-format select{max-width:9em;min-width:5em;padding:3px;border:1px solid #d7cbe8;border-radius:5px;background:#fff;font-size:13px}
.grade-copy-format input:focus-visible,.grade-copy-format button:focus-visible{outline:2px solid #8265ac;outline-offset:1px}
.grade-badge{left:9px}.grade-badge>button,.grade-node .grade-download{background:#332a40dd;color:#fff;box-shadow:0 1px 6px #30224033}.grade-download{right:9px}
.grade-node .grade-copy-image{position:absolute;left:9px;bottom:9px;z-index:4;background:#332a40dd;color:white;box-shadow:0 1px 6px #30224033}
.grade-frame:focus-visible{outline:2px solid #7954ae;outline-offset:1px}
.grade-surface{position:absolute;z-index:3;top:8px;right:8px;display:flex;padding:3px;border-radius:14px;background:#fbfafd;box-shadow:0 1px 5px #332a4026}
.grade-frame:has(>.grade-download)>.grade-surface{top:48px}
.grade-read-status{font-size:13px;overflow-wrap:anywhere}.grade-read-status button{margin-left:4px}
.grade-history{background:#fff;border:1px solid #ded8e7;border-radius:10px;padding:5px;max-height:170px;overflow:auto;display:grid;grid-template-columns:repeat(3,50px)}
.grade-history img{width:42px;height:46px;object-fit:contain}
.grade-cards{position:absolute;left:calc(100% + 16px);top:0;width:244px;display:grid;gap:14px;cursor:default}
.grade-card{position:relative;color:#37333d;background:#eceaed;border:1px solid #d4d1d6;border-radius:16px;padding:8px;box-shadow:0 2px 8px #30224012}
.grade-node .grade-check{position:absolute;z-index:1;top:-7px;right:-7px;display:grid;place-items:center;min-width:26px;height:26px;padding:0 5px;box-sizing:border-box;border-radius:50%;background:#f9f8fa;border:1px solid #c6c2ca;color:#79757c;font-size:15px}
.grade-node button.grade-check[data-ready=false]{font-size:12px;border-radius:14px}
.grade-node button.grade-check:focus-visible{outline:2px solid #7954ae;outline-offset:2px}
.grade-node .grade-check[data-ready=true]{background:#d2d1d5;color:#27252b;font-weight:700}
.grade-card-edit{display:grid;grid-template-columns:37px minmax(0,1fr);gap:7px;align-items:start;background:#dedce1;border-radius:10px;padding:8px}
.grade-area-header{display:flex;align-items:center;justify-content:space-between;margin:0 12px 5px 0}.grade-area-header button:first-child{font-weight:600}.grade-area-header button:last-child:not(:first-child){font-size:11px;color:#655c70}
.grade-cards[hidden],.grade-card[hidden]{display:none}
.grade-node[data-generating=true] .react-flow__handle{visibility:hidden;pointer-events:none}
.grade-card[data-confirmed=true] .grade-area-title{display:flex;align-items:center;gap:7px}
.grade-card[data-confirmed=true] .grade-area-title::before{content:"";width:8px;height:8px;flex:none;border-radius:50%;background:#308249}
.grade-input{display:grid;min-width:0}
.grade-input>textarea,.grade-input>.grade-read-status{grid-area:1/1}
.grade-input[aria-busy=true]>textarea{visibility:hidden}
.grade-input>.grade-read-status{align-self:center;text-align:left}
.grade-copy-input{gap:3px}.grade-copy-input>label,.grade-copy-requirements summary,.grade-copy-actions{font-size:12px;color:#61586d}
.grade-copy-input>textarea,.grade-copy-input>.grade-read-status{grid-area:auto}
.grade-copy-input[aria-busy=true]>textarea{visibility:visible}
.grade-copy-actions{display:flex;flex-wrap:wrap;gap:3px}.grade-copy-actions:empty{display:none}
.grade-copy-requirements{margin:4px}.grade-copy-requirements summary{cursor:pointer}
.grade-card[data-current=true]{border-color:#a58ac3}
.grade-region-number{pointer-events:visiblePainted;cursor:pointer;touch-action:manipulation}
.grade-region-number:focus-visible circle,.grade-region-number:hover circle{stroke:white;stroke-width:2px;vector-effect:non-scaling-stroke}
.grade-card-key{display:grid;gap:7px;justify-items:start}.grade-card-key strong{font-size:14px}
.grade-region-thumb{width:32px;height:32px;border-radius:5px;overflow:hidden}
.grade-card textarea{display:block;box-sizing:border-box;width:100%;min-height:52px;margin:0;padding:3px 5px;border:1px solid transparent;border-radius:6px;background:transparent;line-height:1.45;font-size:14px;resize:vertical;cursor:text}
.grade-card textarea:hover,.grade-card textarea:focus{background:#fbfafc}.grade-card textarea:focus-visible,.grade-card select:focus-visible{outline:2px solid #8265ac}
.grade-card textarea:read-only{opacity:1;color:inherit;resize:none}
.grade-reference{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-height:64px;border-radius:9px;margin-top:4px;text-align:center;color:#534f59}
.grade-reference:empty{display:none}
.grade-reference .grade-ref-picker{display:flex;align-items:center;justify-content:center;gap:7px;min-height:64px;width:100%;border:1px dashed #c6bbcf;border-radius:9px;padding:8px 18px;font-size:14px;white-space:normal}
.grade-donor-edit{display:grid;grid-template-columns:40px minmax(0,1fr);gap:6px;align-items:center;width:100%;padding:5px 13px 5px 4px;text-align:left}
.grade-reference .grade-donor-thumb{min-height:40px;padding:0;border:0}
.grade-donor-edit textarea{min-height:48px}
.grade-ref-picker:focus-visible,.grade-ref-picker:hover{border-color:#a594bc}
.grade-reference img{width:38px;height:38px;object-fit:contain;border-radius:5px}.grade-reference span{overflow-wrap:anywhere}
.grade-reference .grade-ref-remove{position:absolute;top:1px;right:0;padding:0;width:21px;height:21px;font-size:15px;background:#faf9fb}
.grade-product-mode{display:flex;align-items:center;gap:4px;margin:3px 5px 7px;color:#645b6e;font-size:12px}
.grade-product-mode select{cursor:pointer}
.grade-card select{display:block;max-width:100%;border:0;background:transparent;font-size:12px;margin:0 4px;color:#5a535f}
.grade-read-status{margin:4px;color:#554c5d}
.grade-scale{margin:5px 4px;color:#514a59;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.grade-scale p{margin:2px 0}.grade-scale summary{font-weight:600;cursor:pointer}
.grade-scale details p{padding-left:10px}.grade-scale small{font-size:12px}
.grade-status{border:1px solid #d9d2e3;border-radius:12px;padding:9px;background:#fbfafd;box-shadow:0 3px 12px #41324c16}
.grade-below{position:absolute;top:calc(100% + 8px);left:0;width:100%;display:grid;gap:6px}
.grade-below:empty{display:none}
.grade-status{font-size:13px;overflow-wrap:anywhere}
.grade-lighting{display:grid;gap:7px;padding:12px;color:#494353}
.grade-supplement{display:grid;gap:5px;color:#494353}
.grade-supplement textarea{box-sizing:border-box;width:100%;min-height:3.4em;padding:6px 8px;border:1px solid #d9d2e3;border-radius:7px;background:#fff;color:inherit;font:inherit;resize:vertical}
.grade-lighting label{display:grid;gap:3px}
.grade-light-observations{display:grid;gap:7px;max-height:22rem;overflow:auto;overscroll-behavior:contain;padding:2px}
.grade-lighting textarea{box-sizing:border-box;width:100%;padding:5px 7px;border:1px solid #d9d2e3;border-radius:7px;background:#fff;color:inherit;font:inherit;resize:vertical}
.grade-lighting .grade-light-apply{display:flex;gap:6px;align-items:center}
.grade-lighting button{justify-self:start}
.grade-status-line{display:flex;align-items:center;gap:7px}.grade-status-line>span{flex:1;min-width:0}
.grade-status-line>small{white-space:nowrap;color:#635971;font-variant-numeric:tabular-nums}
.grade-progress{flex:1;min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
.grade-progress>span{height:5px;position:relative;overflow:hidden;border-radius:5px;background:#e6dfed}
.grade-progress i{position:absolute;inset:0 auto 0 0;width:0;border-radius:inherit;background:#7954ae}
.grade-progress [data-state=done] i{width:100%}
.grade-progress [data-state=waiting] i{width:45%;animation:grade-progress-wait 1.25s ease-in-out infinite alternate}
@keyframes grade-progress-wait{from{left:0}to{left:55%}}
@media(prefers-reduced-motion:reduce){.grade-progress [data-state=waiting] i{left:0;width:100%;animation:none;background:repeating-linear-gradient(120deg,#7954ae 0 3px,#dfd3ed 3px 6px)}}
.grade-node [data-over=true],.grade-node [data-image-drop-active]{outline:3px solid #9661ce;outline-offset:-4px}
.grade-provider-receipt{display:flex;align-items:center;gap:10px}
.grade-provider-receipt img{width:76px;height:76px;object-fit:contain;border-radius:6px}
