@font-face{font-family:BlackFlag;src:url(/tattoo-studio/fonts/BlackFlag.ttf) format("truetype");font-style:normal;font-weight:400;font-display:swap}.studio{--font-ui:Arial,Helvetica,sans-serif;--text-xs:14px;--text-body:15px;--text-title:16px;--text-emphasis:16px;--text-display:18px;--weight-regular:400;--weight-medium:400;--weight-semibold:400;--panel:#292827;--ink:#eeeae4;--quiet:#aaa59e;--line:#44413e;--accent:#dbb18b;--paper:#201f1e;height:100dvh;display:flex;flex-direction:column;background:var(--paper);color:var(--ink);font:var(--weight-regular) var(--text-body)/1.5 var(--font-ui);font-synthesis:none;letter-spacing:0;color-scheme:dark;overflow:hidden}.studio *{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#625d57 transparent}.studio h1,.studio h2,.studio p{margin:0}.studio h1,.studio h2{font-size:var(--text-title);font-weight:400}.studio svg{flex-shrink:0;stroke-width:1.6}.studio button,.studio summary,.studio input,.studio select{font:inherit}.studio button,.studio summary{font-weight:var(--weight-medium);min-height:32px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:5px 8px;border:1px solid transparent;cursor:pointer;color:inherit;background:transparent;transition:background .12s ease,color .12s ease}.studio button:hover,.studio summary:hover{background:#3d3a37}.studio button:disabled{opacity:.35;cursor:not-allowed}.studio :focus-visible{outline:2px solid var(--accent);outline-offset:2px}.studio ::selection{background:var(--accent);color:#242323}.studio input{caret-color:var(--accent)}.studio .primary{background:#e7ded3;color:#28231f;font-weight:400}.studio .primary:hover{background:#f4ece2}.studio details{position:relative}.studio summary{list-style:none}.studio summary::-webkit-details-marker{display:none}:where(.studio) .menu-content{position:absolute;top:38px;right:0;width:280px;background:#302e2b;padding:12px;z-index:40;box-shadow:0 12px 40px #0006}:where(.studio) .menu-content h2{margin-bottom:12px}:where(.studio) .menu-content p{color:var(--quiet);font-size:var(--text-xs);margin:12px 0}:where(.studio) .menu-content>button{width:100%;justify-content:flex-start}:where(.studio) .menu-content label{display:flex;align-items:center;justify-content:space-between;margin:12px 0}:where(.studio) .menu-content select{padding:5px 8px;border:1px solid var(--line);background:var(--panel)}:where(.studio) .project-list{max-height:240px;overflow:auto;margin:0 -5px 12px;padding-bottom:12px;border-bottom:1px solid var(--line)}:where(.studio) .project-list button{width:100%;justify-content:space-between;text-align:left}:where(.studio) .project-list button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.studio) .project-list small{color:var(--quiet);white-space:nowrap;font-size:var(--text-xs)}.studio .active-project{background:#46403a}:where(.studio) .workspace{background:#242323;position:relative;display:grid;grid-template-columns:240px minmax(0,1fr);min-height:0;flex:1}:where(.studio) .asset-dock{min-height:0;display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);margin:0;overflow:hidden}:where(.studio) .dock-tabs{height:40px;flex-shrink:0;display:flex;align-items:center;padding:0 10px 6px;border-bottom:1px solid var(--line);gap:4px}.studio .dock-tabs button{padding:6px 10px;position:relative;color:var(--quiet);gap:7px;flex:1}.studio .dock-tabs button[aria-pressed=true]{color:var(--ink);font-weight:700;background:transparent;border-color:transparent}:where(.studio) .dock-tabs span{font-size:var(--text-xs);color:var(--quiet)}:where(.studio) .design-panel,:where(.studio) .composition-panel{display:none;flex-direction:column;overflow:auto;min-height:0;padding:12px 10px;flex:1;gap:12px}:where(.studio) .design-panel.mobile-visible,:where(.studio) .composition-panel.mobile-visible{display:flex}:where(.studio) .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}:where(.studio) .count{color:var(--quiet);font-size:var(--text-xs);font-variant-numeric:tabular-nums}.studio .upload-button{border:1px solid var(--line);background:transparent;color:var(--ink);width:100%;height:32px;font-weight:400}.studio .upload-button:hover{background:#3d3a37}:where(.studio) .library-empty{margin:0;text-align:left;color:var(--quiet);padding:12px 0}:where(.studio) .library-empty p{font-size:var(--text-xs);margin:0 0 6px;line-height:1.5}:where(.studio) .library-empty>span{font-size:var(--text-xs);color:var(--quiet)}:where(.studio) .image-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}:where(.studio) .design-tile{min-width:0}.studio .design-preview{width:100%;height:100px;background:#d5d0c7;cursor:grab;padding:8px}.studio .design-preview:hover{background:#e7dfd4;outline:1px solid var(--accent);outline-offset:2px}:where(.studio) .design-preview img{width:100%;height:100%;object-fit:contain}:where(.studio) .design-tile>div{display:flex;align-items:center;gap:2px;margin-top:5px}:where(.studio) .design-tile span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--text-xs);flex:1}.studio .design-tile>div button{padding:2px;min-height:26px}:where(.studio) .viewport{position:relative;min-width:0;min-height:0;background:#242323;color:var(--ink);overflow:hidden}:where(.studio) .canvas-mount{position:absolute;inset:0}:where(.studio) .canvas-mount canvas{display:block;touch-action:none}:where(.studio) .view-presets{display:flex;background:#302d29;padding:3px;border:1px solid #49443e;pointer-events:auto}:where(.studio) .view-presets button{min-width:54px;text-transform:capitalize;font-size:var(--text-xs)}:where(.studio) .drop-active{outline:2px solid var(--accent);outline-offset:-2px}:where(.studio) .placement-message{position:absolute;top:132px;left:50%;transform:translate(-50%);background:#e7d8c5;color:#342c23;display:flex;align-items:center;gap:10px;padding:7px 8px 7px 15px;white-space:nowrap;font-size:var(--text-xs)}:where(.studio) .loading-view{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:13px;background:#242323;padding:40px;text-align:center}:where(.studio) .loading-view p{max-width:430px;font-size:var(--text-xs);color:var(--quiet);overflow-wrap:anywhere}:where(.studio) .working-state{position:absolute;left:50%;top:132px;transform:translate(-50%);background:#302d29;padding:12px 20px;display:flex;align-items:center;gap:10px}:where(.studio) .spinner{animation:classic-studio-spin 1.3s linear infinite}@keyframes classic-studio-spin{to{transform:rotate(360deg)}}:where(.studio) .layer-list{overflow:auto}:where(.studio) .layers-empty{text-align:left;padding:12px 0;color:var(--quiet)}:where(.studio) .layers-empty p{color:var(--ink);font-size:var(--text-body);margin-bottom:6px}:where(.studio) .layers-empty span{font-size:var(--text-xs)}:where(.studio) .layer-row{display:flex;align-items:center;border:1px solid transparent;margin-bottom:5px}:where(.studio) .layer-row.selected{border-color:#90745b;background:#45392f}.studio .layer-select{flex:1;min-width:0;justify-content:flex-start;padding:6px;text-align:left;gap:9px}:where(.studio) .layer-select img{height:38px;width:38px;object-fit:contain;background:#d5d0c7;padding:3px}:where(.studio) .layer-select span{flex:1;min-width:0}:where(.studio) .layer-select strong{font-size:var(--text-xs);font-weight:var(--weight-medium);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}:where(.studio) .layer-select small{display:block;font-size:var(--text-xs);color:var(--quiet);margin-top:3px}:where(.studio) .layer-order{padding:0 3px}.studio .layer-order button{display:flex;padding:1px 4px;min-height:24px}:where(.studio) .context-panel{overflow:auto;background:#302d29;box-shadow:0 10px 35px #0004;z-index:5;animation:classic-inspector-in .18s ease-out}:where(.studio) .inspector{padding:12px}:where(.studio) .inspector .panel-heading{margin-bottom:6px}:where(.studio) .inspector .panel-heading button{min-height:26px;padding:4px}:where(.studio) .selected-name{font-size:var(--text-xs);color:var(--quiet);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:12px!important}:where(.studio) .control-help{font-size:var(--text-xs);color:var(--quiet);line-height:1.7}:where(.studio) .range-field{display:block;margin:14px 0}:where(.studio) .range-field>span{display:flex;justify-content:space-between;font-size:var(--text-xs);margin-bottom:6px}:where(.studio) .range-field output{color:#e2bf9e;font-size:var(--text-xs);font-variant-numeric:tabular-nums}:where(.studio) .range-field input{width:100%;height:18px;accent-color:var(--accent);cursor:pointer}:where(.studio) .rotation-controls{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:var(--text-xs)}.studio .rotation-controls button{border:1px solid #5d5349;min-height:32px;padding:4px 7px;font-size:var(--text-xs)}.studio .wide{width:100%;border:1px solid #66594c;font-size:var(--text-xs)}:where(.studio) .applied-status{display:flex;gap:5px;align-items:center;color:#b7c6a5;font-size:var(--text-xs);margin-bottom:12px}:where(.studio) .piece-actions{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:10px}:where(.studio) .piece-actions button{font-size:var(--text-xs);padding:5px 6px}.studio .danger-text{color:#e6a99b}:where(.studio) .error-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:70;background:#4a332d;color:#ffe0d7;padding:13px 16px;display:flex;align-items:center;gap:16px;max-width:min(620px,94vw)}:where(.studio) .error-toast p{font-size:var(--text-xs)}:where(.studio) .dialog-backdrop{border:0;padding:0;color:var(--ink);background:var(--panel);max-width:min(430px,calc(100vw - 40px));margin:auto}:where(.studio) .dialog-backdrop::backdrop{background:#0009}:where(.studio) .confirm-dialog{padding:28px}:where(.studio) .confirm-dialog p{margin:16px 0 24px;line-height:1.8;color:var(--quiet)}:where(.studio) .confirm-dialog>div{display:flex;justify-content:flex-end;gap:10px}.studio .danger{background:#914c3c;color:#fff}@keyframes classic-inspector-in{0%{transform:translateY(6px)}to{transform:translateY(0)}}:where(.studio) .viewport .menu-content{color:var(--ink)}@media(max-width:700px){:where(.studio) .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}:where(.studio) .viewport{grid-column:1;grid-row:1}:where(.studio) .asset-dock{max-height:280px;border:1px solid var(--line);margin:0}:where(.studio) .dock-tabs{height:44px;padding-bottom:8px}:where(.studio) .design-panel,:where(.studio) .composition-panel{padding:10px 14px}:where(.studio) .design-panel.mobile-visible{display:grid;grid-template-columns:145px minmax(0,1fr);gap:8px 14px;align-items:start}:where(.studio) .upload-button{grid-column:1}:where(.studio) .library-empty{grid-column:2;grid-row:1 / 3;padding:0;margin:0;text-align:left}:where(.studio) .library-empty>span{display:none}:where(.studio) .library-empty p{margin:0;font-size:var(--text-xs);line-height:1.7}:where(.studio) .image-library{grid-column:2;grid-row:1 / 4;display:flex;overflow:auto;gap:12px}:where(.studio) .design-tile{width:88px;flex-shrink:0}.studio .design-preview{height:78px}:where(.studio) .context-panel{z-index:10}:where(.studio) .inspector{padding:14px}:where(.studio) .range-field{margin:12px 0}:where(.studio) .selected-name{margin-bottom:10px!important}:where(.studio) .control-help{display:none}:where(.studio) .view-presets button{min-width:48px;padding:5px 7px}:where(.studio) .placement-message{top:120px;max-width:95%;white-space:normal;width:max-content}:where(.studio) .menu-content{position:fixed;top:56px;right:12px;max-width:calc(100vw - 24px)}:where(.studio) .layer-list{max-height:150px}:where(.studio) .layers-empty{padding:12px}}@media(prefers-reduced-motion:reduce){.studio *{animation:none!important;transition:none!important}}.studio :is(small,.count,.dock-tabs span,output){font-weight:var(--weight-regular)}.studio .layer-select:hover{background:transparent}:where(.studio) .layer-row:not(.selected):hover{background:#3d3a37}.studio .skin-tone-control{min-width:0;padding:0 16px;background:#302d29;border:1px solid #49443e;display:flex;align-items:center}.studio .skin-tone-control input{appearance:none;width:100%;height:6px;margin:5px 0;cursor:pointer;border:0;border-radius:3px;background:linear-gradient(90deg,#e9c9ad,#b48160,#513325)}.studio .skin-tone-control input::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border-radius:50%;background:var(--ink);border:2px solid var(--panel);box-shadow:0 0 0 1px var(--quiet)}.studio .skin-tone-control input::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:var(--ink);border:2px solid var(--panel);box-shadow:0 0 0 1px var(--quiet)}.studio .skin-tone-control:has(input:disabled){opacity:.4}.studio .studio-identity{height:52px;flex-shrink:0;overflow:hidden}.studio .view-presets button{flex-direction:column;gap:0}@media(max-width:700px){.studio .studio-identity{height:48px}}.studio .brand-identity{height:100%;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 12px}.studio .brand-identity h1{font:400 16px/1.2 BlackFlag,Arial,Helvetica,sans-serif;white-space:nowrap}@media(max-width:700px){.studio .brand-identity{gap:10px;padding:0 14px}}@media(pointer:coarse){.studio button,.studio summary{min-height:40px}.studio .dock-tabs{height:48px}.studio .upload-button{height:40px}}.studio .sidebar-column{display:flex;flex-direction:column;gap:8px;min-height:0;padding:8px}.studio .asset-dock{flex:1}.studio .view-controls{display:grid;grid-template-rows:repeat(2,40px);gap:6px;flex-shrink:0;width:100%}.studio :is(.skin-tone-control,.view-presets){background:#302d29;border:1px solid #49443e;min-width:0}.studio .view-presets button{flex:1;min-width:0;padding:5px 6px}.studio .canvas-controls{position:absolute;top:12px;right:16px;width:160px;display:flex;flex-direction:column;gap:6px;z-index:20}.studio .inspection-tools,.studio .canvas-controls summary,.studio .history-tools{width:100%;height:34px;min-height:34px;background:#2e2c29;border:1px solid #49443e}.studio .canvas-controls .primary{background:#e7ded3;color:#28231f}.studio .inspection-tools button:hover,.studio .canvas-controls summary:hover{background:#3d3a37}.studio .canvas-controls .primary:hover{background:#f4ece2}.studio .history-tools,.studio .inspection-tools{display:flex;padding:1px;gap:2px}.studio .history-tools button,.studio .inspection-tools button{flex:1;min-height:0}.studio .canvas-controls .menu-content{top:0;right:calc(100% + 8px);max-height:calc(100dvh - 140px);overflow:auto}.studio .context-panel{position:absolute;top:180px;right:16px;width:232px;max-height:calc(100% - 192px)}@media(max-width:700px){.studio .sidebar-column{grid-column:1;grid-row:2;padding:0 8px 8px;gap:6px;max-height:320px}.studio .asset-dock{min-height:150px;max-height:220px}.studio .view-controls{grid-template-columns:1fr 1fr;grid-template-rows:40px}.studio .canvas-controls{right:12px;width:144px}.studio .canvas-controls .menu-content{position:fixed;top:180px;right:12px;width:min(280px,calc(100vw - 24px));max-height:calc(100dvh - 192px)}.studio .context-panel{position:fixed;inset:auto 12px 8px;width:auto;max-height:45dvh;z-index:25}}@media(pointer:coarse){.studio .inspection-tools,.studio .canvas-controls summary,.studio .history-tools{height:42px;min-height:42px}.studio .history-tools button,.studio .inspection-tools button{min-height:38px}.studio .view-controls{grid-template-rows:repeat(2,48px)}.studio .context-panel{top:212px;max-height:calc(100% - 224px)}}@media(max-width:700px)and (pointer:coarse){.studio .view-controls{grid-template-rows:48px}.studio .context-panel{top:auto;max-height:45dvh}.studio .canvas-controls .menu-content{top:212px;max-height:calc(100dvh - 224px)}}.studio .project-menu .menu-content{width:350px;max-width:calc(100vw - 424px)}.studio .project-row{display:flex;align-items:center}.studio .project-list .project-open{flex:1;min-width:0;gap:12px}.studio .project-list .project-delete{width:32px;flex:0 0 32px;justify-content:center;padding:5px}@media(max-width:700px){.studio .project-menu .menu-content{width:350px;max-width:calc(100vw - 24px)}}.studio{--corner-small:6px;--corner-control:9px;--corner-surface:16px;--corner-panel:24px;--corner-curve:superellipse(2)}@supports (corner-shape:superellipse(2)){.studio{--corner-small:9px;--corner-control:14px;--corner-surface:24px;--corner-panel:36px}}.studio :is(button,summary,input:not([type=range]):not([type=file]),select,.layer-select img){border-radius:var(--corner-control);corner-shape:var(--corner-curve)}.studio :is(.design-preview,.layer-row,.view-presets,.placement-message,.working-state,.error-toast,.menu-content,.context-panel,.dialog-backdrop){border-radius:var(--corner-surface);corner-shape:var(--corner-curve)}.studio :is(.asset-dock,.skin-tone-control,.view-presets,.inspection-tools,.history-tools,.canvas-controls summary){border-radius:var(--corner-panel);corner-shape:var(--corner-curve)}.studio :is(.history-tools button,.view-presets button,.layer-select,.layer-order button,.design-tile>div button,.inspector .panel-heading button,.layer-select img){border-radius:var(--corner-small)}.studio .project-row{border-radius:var(--corner-control);corner-shape:var(--corner-curve)}html,body,#root{width:100%;height:100%;margin:0}body{background:#201f1e;font-family:Arial,Helvetica,sans-serif}*{box-sizing:border-box}button,input,select{font:inherit}
