/* Axis Apparel – mockup designer */
html.axd-open, html.axd-open body { overflow: hidden; }
.axd { position: fixed; inset: 0; z-index: 100000; background: #0b0b0b; color: #f5f5f5; display: flex; flex-direction: column; font: 15px/1.45 Inter, system-ui, sans-serif; }
.axd *, .axd *::before, .axd *::after { box-sizing: border-box; }
.axd button, .axd input, .axd select, .axd textarea { font: inherit; }
.axd__bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid #222; background: #000; }
.axd__title { font: 600 20px Oswald, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.axd__garment { color: #b9b9b9; font-size: 14px; }
.axd__x { margin-left: auto; width: 40px; height: 40px; border: 1px solid #333; border-radius: 50%; background: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.axd__x:hover { border-color: var(--axis-red, #c00000); }
.axd__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px 1fr 270px; }
.axd__tools, .axd__side { padding: 16px; overflow-y: auto; background: #111; }
.axd__tools { border-right: 1px solid #222; }
.axd__side { border-left: 1px solid #222; display: flex; flex-direction: column; gap: 12px; }
.axd__center { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 12px; gap: 10px; overflow-y: auto; }
.axd__btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin: 0 0 10px; padding: 0 14px; border: 1px solid #444; border-radius: 4px; background: #000; color: #fff; font: 600 15px Oswald, sans-serif !important; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.axd__btn:hover { border-color: #fff; }
.axd__btn--red { background: var(--axis-red, #c00000); border-color: var(--axis-red, #c00000); }
.axd__btn--red:hover { filter: brightness(1.1); border-color: var(--axis-red, #c00000); }
.axd__btn:disabled { opacity: .6; cursor: wait; }
.axd__hint { margin: 0 0 12px; color: #9a9a9a; font-size: 13px; }
.axd__sec h4, .axd__props h4 { margin: 14px 0 8px; font: 600 14px Oswald, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #ddd; }
.axd__props { border-top: 1px solid #222; padding-top: 4px; }
.axd__props label { display: grid; gap: 4px; margin: 0 0 10px; font-size: 13px; color: #bbb; }
.axd__props input:not([type=checkbox]):not([type=color]), .axd__props select, .axd__props textarea, .axd__notes { width: 100%; padding: 8px 10px; border: 1px solid #333; border-radius: 4px; background: #000; color: #fff; }
.axd__props input[type=color] { width: 100%; height: 38px; padding: 2px; border: 1px solid #333; border-radius: 4px; background: #000; }
.axd__row { display: flex; gap: 10px; align-items: end; }
.axd__row > label { flex: 1; }
.axd__check { display: flex !important; align-items: center; gap: 6px; padding-bottom: 10px; }
.axd__row--btns { flex-wrap: wrap; gap: 6px; }
.axd__row--btns button { flex: 1 1 auto; padding: 7px 8px; border: 1px solid #333; border-radius: 4px; background: #000; color: #fff; cursor: pointer; font-size: 13px; }
.axd__row--btns button:hover { border-color: #fff; }
.axd__row--btns .axd__del { color: #ff8080; }
.axd__layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.axd__layers li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid #262626; border-radius: 4px; cursor: pointer; font-size: 13px; }
.axd__layers li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.axd__layers li small { color: #8a8a8a; white-space: nowrap; }
.axd__layers li.is-sel { border-color: var(--axis-red, #c00000); }
.axd__layers .axd__empty { color: #777; cursor: default; }
.axd__attach ul { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.axd__attach li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.axd__attach button { border: 0; background: none; color: #ff8080; cursor: pointer; font-size: 16px; }
.axd__views { display: flex; gap: 6px; }
.axd__tab { padding: 8px 18px; border: 1px solid #333; border-radius: 999px; background: #000; color: #ddd; cursor: pointer; font: 600 14px Oswald, sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.axd__tab[aria-selected=true] { background: #fff; color: #000; border-color: #fff; }
.axd__tab span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; border-radius: 9px; background: var(--axis-red, #c00000); color: #fff; font-size: 11px; }
.axd__stagewrap { width: 100%; display: flex; justify-content: center; }
.axd__stage { position: relative; width: 100%; max-width: 640px; height: 400px; background: #fff; border-radius: 6px; overflow: hidden; user-select: none; touch-action: none; }
.axd__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.axd__photo.is-flip { transform: scaleX(-1); }
.axd__size-in { margin: 4px 0 10px; padding: 10px; border: 1px solid #262626; border-radius: 4px; }
.axd__size-in > strong { display: block; margin-bottom: 6px; font-size: 13px; color: #ddd; }
.axd__rec { margin: 2px 0 0; font-size: 12.5px; color: #bbb; }
.axd__rec b { color: #fff; }
.axd__rec button { margin-left: 4px; padding: 3px 8px; border: 1px solid var(--axis-red, #c00000); border-radius: 4px; background: none; color: #fff; cursor: pointer; font-size: 12px; }
.axd__areas, .axd__items { position: absolute; inset: 0; pointer-events: none; }
.axd__area { position: absolute; border: 1.5px dashed rgba(0,0,0,.28); pointer-events: auto; cursor: pointer; }
.axd__area span { position: absolute; left: 0; top: -20px; font-size: 11px; color: rgba(0,0,0,.45); white-space: nowrap; }
.axd__area.is-on { border: 2px dashed var(--axis-red, #c00000); background: rgba(192,0,0,.04); }
.axd__area.is-on span { color: var(--axis-red, #c00000); font-weight: 600; }
.axd__item { position: absolute; pointer-events: auto; cursor: move; touch-action: none; }
.axd__item img { width: 100%; height: 100%; display: block; pointer-events: none; }
.axd__item.is-sel { outline: 1.5px solid #1e88ff; outline-offset: 1px; }
.axd__h { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #1e88ff; touch-action: none; }
.axd__h--size { right: -9px; bottom: -9px; cursor: nwse-resize; }
.axd__h--rot { left: 50%; top: -30px; margin-left: -8px; cursor: grab; }
.axd__h--rot::after { content: ""; position: absolute; left: 5px; top: 14px; width: 2px; height: 14px; background: #1e88ff; }
.axd__size { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); padding: 1px 7px; border-radius: 10px; background: #1e88ff; color: #fff; font-size: 11px; white-space: nowrap; pointer-events: none; }
.axd__areachips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.axd__chip { padding: 6px 12px; border: 1px solid #333; border-radius: 4px; background: #000; color: #ddd; cursor: pointer; font-size: 13px; }
.axd__chip small { color: #8a8a8a; }
.axd__chip[aria-pressed=true] { border-color: var(--axis-red, #c00000); color: #fff; }
.axd__colors { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 640px; }
.axd__swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #444; cursor: pointer; }
.axd__swatch[aria-pressed=true] { outline: 2px solid var(--axis-red, #c00000); outline-offset: 2px; }
.axd__warn { padding: 10px 12px; border-left: 3px solid #f2b51c; background: rgba(242,181,28,.1); font-size: 13px; }
.axd__save { margin-top: auto; }
@media (max-width: 1000px) {
	.axd__body { grid-template-columns: 1fr; overflow-y: auto; }
	.axd__center { order: -1; overflow: visible; }
	.axd__tools, .axd__side { border: 0; overflow: visible; }
	.axd__save { position: sticky; bottom: 0; }
}
/* builder panel (theme) */
.axis-design-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.axis-design-thumbs img { width: 110px; height: 110px; object-fit: contain; background: #f2f2f0; border-radius: 4px; }
@media (max-width: 600px) {
	.axd__bar { padding: 10px 12px; gap: 8px; }
	.axd__title { font-size: 16px; white-space: nowrap; }
	.axd__garment { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}

.axd__bg { margin: 4px 0 10px; padding: 10px; border: 1px solid #262626; border-radius: 4px; }
.axd__bg > strong { display: block; margin-bottom: 6px; font-size: 13px; color: #ddd; }
.axd__bg input[type=range] { width: 100%; accent-color: var(--axis-red, #c00000); }
.axd__bgmsg { margin: 6px 0 0; font-size: 12.5px; color: #bbb; }
/* checkerboard behind see-through art in the layers list isn't needed; the shirt shows through */
