/* TEE CREATE デザインエディタ（tshirt/design.html） */
.ed-head { padding-bottom: 36px; }
.ed-wrap { padding: 28px var(--gutter) 70px; background: var(--paper); }
.ed { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 300px minmax(0, 1fr) 120px; grid-template-areas: "tools main side" "tools finish finish"; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .ed { grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "main side" "tools tools" "finish finish"; } }
@media (max-width: 560px) { .ed { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "tools" "finish"; } }
.ed-tools { grid-area: tools; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ed-main { grid-area: main; min-width: 0; }
.ed-side { grid-area: side; display: grid; gap: 12px; }
.ed-finish { grid-area: finish; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ed-finish .ed-note { flex-basis: 100%; }
.ed-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.ed-tabs button { display: grid; justify-items: center; gap: 2px; padding: 12px 4px 10px; background: none; border: 0; font: inherit; font-size: .78rem; font-weight: 800; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.ed-tabs svg { width: 24px; height: 24px; fill: currentColor; }
.ed-tabs button[aria-selected="true"] { color: var(--orange-deep); border-bottom-color: var(--t-pink); background: #FFF6F9; }
.ed-tabs button:focus-visible { outline: 3px solid var(--t-sky); outline-offset: -3px; }
.ed-panel, .ed-props { padding: 16px; display: grid; gap: 12px; }
.ed-props { border-top: 1px dashed var(--line); background: #FBFCFF; }
.ed-props-title { margin: 0; font-weight: 800; color: var(--orange-deep); }
.ed-field { display: grid; gap: 6px; font-size: .85rem; }
.ed-field > span { font-weight: 700; }
.ed-field select, .ed-field textarea { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid #C9D3E6; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.ed-field input[type=range] { width: 100%; accent-color: var(--t-pink); }
.ed-note { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.7; }
.ed-note a { color: var(--orange-deep); }
.ed-btn { width: 100%; justify-content: center; }
.ed-colors { display: flex; flex-wrap: wrap; gap: 6px; max-height: 210px; overflow-y: auto; padding: 3px; }
.ed-sw, .ed-ink { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(20,33,61,.3); cursor: pointer; padding: 0; }
.ed-sw.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--t-pink); }
.ed-sw:focus-visible, .ed-ink:focus-visible { outline: 3px solid var(--t-sky); outline-offset: 2px; }
.ed-inks { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-ink { width: 24px; height: 24px; }
.ed-upload { position: relative; display: grid; justify-items: center; gap: 4px; padding: 26px 12px; border: 2px dashed #9FB3D9; border-radius: 12px; background: #F6F9FF; cursor: pointer; text-align: center; font-weight: 800; color: var(--ink); }
.ed-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ed-upload small { font-weight: 500; color: var(--muted); }
.ed-upload:focus-within { outline: 3px solid var(--t-sky); }
.ed-stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ed-stamp { aspect-ratio: 1; background: #F3F7FF; border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; }
.ed-stamp:hover { border-color: var(--t-pink); }
.ed-stamp svg { width: 100%; height: 100%; }
.ed-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ed-acts button, .ed-bar button, .ed-view button, .ed-sub-btn { font: inherit; font-size: .8rem; font-weight: 700; padding: 8px 6px; border: 1px solid #C9D3E6; border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.ed-acts button:hover, .ed-bar button:hover:not(:disabled), .ed-view button:hover, .ed-sub-btn:hover { border-color: var(--t-pink); }
.ed-acts .ed-del { color: #B3123C; border-color: #F0B8C7; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.ed-bar button:disabled { opacity: .4; cursor: default; }
.ed-saved { font-size: .78rem; color: var(--muted); margin-left: auto; }
.ed-stage { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: auto; display: flex; justify-content: center; max-height: 760px; }
.ed-stage .canvas-container { margin: 0 auto; }
.ed-area, .ed-now { margin: 8px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.ed-now { font-weight: 700; color: var(--ink); }
.ed-faces { display: grid; gap: 8px; }
@media (max-width: 560px) { .ed-faces { grid-template-columns: repeat(4, 1fr); } }
.ed-face { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; background: #fff; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 800; color: var(--ink); line-height: 1.3; }
.ed-face svg { width: 52px; height: 52px; }
.ed-face.is-on { border-color: var(--t-pink); background: #FFF6F9; }
.ed-face:focus-visible { outline: 3px solid var(--t-sky); outline-offset: 2px; }
.ed-view { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ed-view #ed-guide { grid-column: 1 / -1; }
.ed-view #ed-guide[aria-pressed="false"] { opacity: .55; }
.ed-finish-msg { margin: 0; font-size: .85rem; color: var(--orange-deep); font-weight: 700; }
#ed-finish:disabled { opacity: .6; cursor: wait; }
.ed [hidden] { display: none !important; }
