:root{--color-bg:#f5f5f4;--color-surface:#fff;--color-border:#e2e2e0;--color-text:#1c1c1e;--color-text-muted:#71717a;--color-accent:#2563eb;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body{background:var(--color-bg);height:100%;color:var(--color-text);overscroll-behavior:none;-webkit-tap-highlight-color:transparent;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Pretendard,Malgun Gothic,sans-serif}#root{height:100dvh;height:100svh;overflow:hidden}button{cursor:pointer;color:inherit;background:0 0;border:none;font-family:inherit}input{font-family:inherit}.screen{flex-direction:column;height:100%;display:flex;position:relative;overflow:hidden}.home-screen{padding:calc(var(--safe-top) + 20px) 20px calc(var(--safe-bottom) + 20px);gap:16px;overflow-y:auto}.home-header h1{margin:0;font-size:22px}.primary-button{background:var(--color-accent);color:#fff;border-radius:12px;min-height:48px;padding:14px 18px;font-size:16px;font-weight:600}.hint{color:var(--color-text-muted);font-size:14px}.project-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.project-item{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;align-items:center;display:flex;overflow:hidden}.project-item-main{text-align:left;flex-direction:column;flex:1;align-items:flex-start;gap:4px;padding:14px 16px;display:flex}.project-name{font-size:16px;font-weight:600}.project-date{color:var(--color-text-muted);font-size:12px}.project-delete{color:#dc2626;align-self:stretch;height:100%;padding:0 16px;font-size:13px}.editor-header{padding:calc(var(--safe-top) + 8px) 12px 8px;background:var(--color-surface);border-bottom:1px solid var(--color-border);z-index:5;flex-shrink:0;align-items:center;gap:8px;display:flex}.icon-button{border-radius:8px;justify-content:center;align-items:center;width:40px;height:40px;font-size:18px;display:flex}.icon-button:active{background:var(--color-bg)}.project-name-button,.project-name-input{text-align:left;border-radius:8px;flex:1;padding:8px 10px;font-size:17px;font-weight:600}.project-name-input{border:1px solid var(--color-accent);background:var(--color-surface)}.editor-body{flex-direction:column;flex:1;min-height:0;display:flex}.editor-body .viewport-wrap{background:#e5e5e5;flex:56%;min-height:220px;position:relative}.edit-panel{background:var(--color-surface);border-top:1px solid var(--color-border);min-height:0;padding:12px 16px calc(var(--safe-bottom) + 16px);flex-direction:column;flex:44%;gap:18px;display:flex;overflow-y:auto}@media (min-width:768px){.editor-body{flex-direction:row}.editor-body .viewport-wrap{flex:1;min-height:0}.edit-panel{border-top:none;border-left:1px solid var(--color-border);flex:0 0 320px;width:320px}}.edit-panel-section{flex-direction:column;gap:10px;display:flex}.panel-section-title{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.02em;margin:0;font-size:13px;font-weight:700}.lid-toggle-button{width:100%}.lid-toggle-button:disabled{opacity:.45;cursor:not-allowed}.collapsible-header{background:var(--color-bg);border-radius:10px;justify-content:space-between;align-items:center;width:100%;min-height:44px;padding:10px 12px;font-size:14px;font-weight:600;display:flex}.chevron{transition:transform .2s}.chevron.open{transform:rotate(180deg)}.assembly-slider-row{align-items:center;gap:10px;padding:4px 2px;display:flex}.assembly-label{color:var(--color-text-muted);white-space:nowrap;font-size:12px}.assembly-slider{height:36px;accent-color:var(--color-accent);flex:1}.dims-row{gap:8px;display:flex}.field{color:var(--color-text-muted);flex-direction:column;gap:8px;font-size:13px;display:flex}.field-inline{flex:1}.field input[type=number],.field input[type=text]{border:1px solid var(--color-border);color:var(--color-text);border-radius:8px;width:100%;padding:10px 12px;font-size:16px}.chip-row{flex-wrap:wrap;gap:8px;display:flex}.material-chip,.face-tag-chip{background:var(--color-bg);border:1px solid var(--color-border);white-space:nowrap;border-radius:999px;min-height:44px;padding:10px 14px;font-size:13px}.material-chip.active,.face-tag-chip.active{background:var(--color-accent);color:#fff;border-color:var(--color-accent)}.row-inline{align-items:center;gap:10px;display:flex}.face-list{flex-direction:column;gap:8px;display:flex}.face-row{background:var(--color-bg);border:1px solid #0000;border-radius:12px;justify-content:space-between;align-items:center;gap:10px;min-height:52px;padding:10px 12px;display:flex}.face-row.active{border-color:var(--color-accent);background:#2563eb14}.face-row-label{flex-shrink:0;width:52px;font-size:14px;font-weight:600}.face-row-controls{flex:1;justify-content:flex-end;align-items:center;gap:8px;display:flex}.photo-button{background:var(--color-surface);border:1px solid var(--color-border);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;min-height:44px;padding:0 12px;font-size:13px;font-weight:600;display:inline-flex;position:relative}.photo-button input[type=file]{opacity:0;cursor:pointer;position:absolute;inset:0}.face-thumb-wrap{flex-shrink:0;width:40px;height:40px;position:relative}.face-thumb{object-fit:cover;border:1px solid var(--color-border);border-radius:8px;width:40px;height:40px;display:block}.face-thumb-empty{background:var(--color-border)}.face-thumb-remove{color:#fff;background:#dc2626;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;font-size:11px;display:flex;position:absolute;top:-6px;right:-6px}.apply-all-row{align-items:center;gap:10px;margin-top:4px;display:flex}.apply-all-row .secondary-button{flex:1}.color-popover{z-index:20;background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;flex-direction:column;gap:10px;width:220px;padding:12px;display:flex;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 8px 24px #00000026}.swatch-row{flex-wrap:wrap;gap:8px;display:flex}.swatch{border:1px solid var(--color-border);border-radius:50%;width:32px;height:32px}.swatch.active{outline:2px solid var(--color-accent);outline-offset:2px}.swatch-large{border-radius:10px;flex-shrink:0;width:40px;height:40px}.hex-input{width:100%}.secondary-button{background:var(--color-bg);border:1px solid var(--color-border);border-radius:10px;min-height:44px;padding:12px;font-size:14px;font-weight:600}.loading{justify-content:center;align-items:center}
