/* paint.css — Paint studio (v65). Dark, full-bleed painting interface. */
#paint-app { position: relative; height: calc(100vh - 110px); min-height: 560px; border-radius: 16px; overflow: hidden; background: #1b1b1d; color: #eee; font: 14px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; user-select: none; -webkit-user-select: none; }
#paint-app:fullscreen, #paint-app.pt-max { height: 100vh; border-radius: 0; }
#paint-app.pt-max { position: fixed; inset: 0; z-index: 2000; }
#paint-app button { font: inherit; color: inherit; }
.pt-work { position: absolute; inset: 0; } .pt-view { position: absolute; inset: 0; touch-action: none; outline: none; cursor: crosshair; }
.pt-top { position: absolute; top: 10px; display: flex; gap: 4px; align-items: center; background: rgba(30, 30, 32, .86); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 4px; backdrop-filter: blur(8px); z-index: 5; }
.pt-tl { left: 10px; } .pt-tr { right: 10px; }
.pt-top button { background: none; border: 0; border-radius: 9px; padding: 7px 11px; cursor: pointer; color: #e8e8ea; } .pt-top button:hover { background: rgba(255, 255, 255, .08); }
.pt-ic { min-width: 36px; font-size: 17px !important; } .pt-top button.on { background: rgba(59, 130, 246, .9); color: #fff; }
.pt-col { padding: 5px !important; } .pt-col i { display: block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.pt-side { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(30, 30, 32, .86); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 10px 6px; z-index: 5; }
.pt-right .pt-side { left: auto; right: 10px; }
.pt-vr { writing-mode: vertical-lr; direction: rtl; width: 24px; height: 150px; accent-color: #e8e8ea; cursor: ns-resize; }
.pt-mod { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); cursor: pointer; } .pt-mod.on { background: #3b82f6; }
.pt-side .pt-ic { background: none; border: 0; cursor: pointer; padding: 4px; border-radius: 8px; } .pt-side .pt-ic:hover { background: rgba(255, 255, 255, .1); }
.pt-full { position: absolute; right: 12px; bottom: 12px; z-index: 5; background: rgba(30, 30, 32, .86); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.pt-clean .pt-top, .pt-clean .pt-side, .pt-clean .pt-full { display: none; }
.pt-hud { position: absolute; left: 50%; top: 62px; transform: translate(-50%, -6px); background: rgba(20, 20, 22, .92); padding: 7px 14px; border-radius: 10px; opacity: 0; transition: all .18s; pointer-events: none; z-index: 8; white-space: nowrap; } .pt-hud.on { opacity: 1; transform: translate(-50%, 0); }
/* popovers */
.pt-pop { position: absolute; right: 10px; top: 62px; width: 360px; max-width: calc(100% - 20px); max-height: calc(100% - 80px); overflow: auto; background: rgba(32, 32, 35, .97); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); padding: 10px 12px 12px; z-index: 9; }
.pt-pop-actions, .pt-pop-adjust { left: 10px; right: auto; }
.pt-ph { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; } .pt-ph b { font-size: 15px; } .pt-ph span { color: #9a9aa2; font-size: 12px; } .pt-ph button { margin-left: auto; background: rgba(255, 255, 255, .08); border: 0; border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.pt-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; } .pt-row button, .pt-ag button, .pt-ab, .pt-bar button, .pt-dlg button, .pt-gb, .pt-card button { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px; padding: 6px 11px; cursor: pointer; }
.pt-row button:hover, .pt-ag button:hover, .pt-bar button:hover { background: rgba(255, 255, 255, .16); } .pt-go { background: #3b82f6 !important; border-color: #3b82f6 !important; color: #fff; } .pt-danger { color: #ff8a80; }
.pt-row input[type=text] { flex: 1; min-width: 0; background: #151517; border: 1px solid #3a3a40; color: #eee; border-radius: 8px; padding: 6px 8px; font: inherit; }
.pt-lib { display: grid; grid-template-columns: 112px 1fr; gap: 8px; } .pt-cats { display: flex; flex-direction: column; gap: 2px; } .pt-cats button { text-align: left; background: none; border: 0; border-radius: 8px; padding: 6px 8px; cursor: pointer; color: #c9c9ce; } .pt-cats button.on { background: rgba(59, 130, 246, .25); color: #fff; }
.pt-blist { display: flex; flex-direction: column; gap: 4px; } .pt-bi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; border-radius: 10px; padding: 5px 6px; cursor: pointer; } .pt-bi.on { border-color: #3b82f6; background: rgba(59, 130, 246, .14); } .pt-bi span { font-size: 12px; color: #ddd; } .pt-bi canvas { width: 100%; height: 34px; }
.pt-bprev { width: 100%; height: 80px; background: #151517; border-radius: 10px; margin-bottom: 8px; }
.pt-form { display: grid; gap: 6px; } .pt-sl { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; color: #c9c9ce; } .pt-sl input[type=range] { width: 100%; accent-color: #3b82f6; } .pt-sl output { min-width: 34px; text-align: right; color: #eee; } .pt-sl select, .pt-sl input[type=number], .pt-ag select { background: #151517; color: #eee; border: 1px solid #3a3a40; border-radius: 8px; padding: 4px 6px; font: inherit; }
/* layers */
.pt-lrows { display: flex; flex-direction: column; gap: 4px; } .pt-lr { display: grid; grid-template-columns: 26px 60px 1fr 28px; gap: 6px; align-items: center; background: rgba(255, 255, 255, .05); border: 1px solid transparent; border-radius: 10px; padding: 4px; } .pt-lr.on { background: rgba(59, 130, 246, .3); border-color: #3b82f6; } .pt-lr.clip { margin-left: 18px; }
.pt-eye, .pt-lo { background: none; border: 0; cursor: pointer; font-size: 16px; } .pt-lt { width: 60px; height: 44px; border-radius: 6px; background: #fff; } .pt-ln { text-align: left; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; min-width: 0; } .pt-ln b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pt-ln span { font-size: 11.5px; color: #aab; }
.pt-lopt { background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 8px; margin: -2px 0 4px; } .pt-lopt label { font-size: 12.5px; } .pt-wrap button { font-size: 12.5px; padding: 5px 8px; }
.pt-bg { margin-top: 8px; grid-template-columns: 26px 60px 1fr; } .pt-bgsw { width: 60px; height: 30px; border-radius: 6px; border: 1px solid #555; }
/* colour */
.pt-sw2 { display: flex; gap: 4px; margin-left: auto; } .pt-sw2 i { width: 34px; height: 22px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .3); cursor: pointer; }
.pt-ctabs { display: flex; gap: 2px; background: #151517; border-radius: 10px; padding: 3px; margin-bottom: 8px; } .pt-ctabs button { flex: 1; background: none; border: 0; border-radius: 8px; padding: 5px; cursor: pointer; color: #aab; } .pt-ctabs button.on { background: #3a3a40; color: #fff; }
.pt-disc { display: block; width: 260px; max-width: 100%; margin: 0 auto; touch-action: none; cursor: crosshair; }
.pt-swr { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0; } .pt-swr button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; padding: 0; } .pt-palh { font-size: 12px; color: #9a9aa2; margin-top: 8px; }
.pt-pop select[data-hm] { width: 100%; background: #151517; color: #eee; border: 1px solid #3a3a40; border-radius: 8px; padding: 6px; }
/* actions */
.pt-acts { display: grid; gap: 10px; } .pt-ag { display: flex; flex-direction: column; gap: 5px; } .pt-ag > b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #9a9aa2; } .pt-ag button, .pt-ab { text-align: left; } .pt-ag label { font-size: 13px; display: flex; gap: 6px; align-items: center; } .pt-info { font-size: 12px; color: #9a9aa2; } .pt-help span { font-size: 12px; color: #b9b9c0; }
/* bottom bar */
.pt-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px); background: rgba(30, 30, 32, .94); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 8px 10px; z-index: 6; } .pt-bar .pt-sl { grid-template-columns: auto 140px auto; } .pt-bar button:disabled { opacity: .4; cursor: default; }
.pt-seg { display: flex; background: #151517; border-radius: 9px; padding: 2px; } .pt-seg button { background: none !important; border: 0 !important; } .pt-seg button.on { background: #3a3a40 !important; }
/* dialogs */
.pt-ov { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; } .pt-dlg { background: #26262a; color: #eee; border-radius: 14px; padding: 16px; width: min(520px, 100%); display: flex; flex-direction: column; gap: 8px; font: 14px system-ui, sans-serif; } .pt-dlg textarea, .pt-dlg select, .pt-dlg input[type=number] { background: #151517; color: #eee; border: 1px solid #3a3a40; border-radius: 8px; padding: 8px; font: inherit; } .pt-dlg.pt-tl canvas { width: 100%; height: auto; border-radius: 8px; background: #fff; }
/* gallery */
.pt-gal { position: absolute; inset: 0; overflow: auto; padding: 18px; background: #1b1b1d; } .pt-gh { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; } .pt-gh b { font-size: 22px; } .pt-muted { color: #9a9aa2; font-size: 13px; }
.pt-new { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 18px; } .pt-new > button { background: #26262a; border: 1px solid #333; border-radius: 12px; padding: 10px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; } .pt-new span { color: #9a9aa2; font-size: 12px; } .pt-cust { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .pt-cust input[type=number] { width: 84px; background: #151517; color: #eee; border: 1px solid #3a3a40; border-radius: 8px; padding: 6px; } .pt-cust button { background: #3b82f6; border: 0; border-radius: 9px; padding: 7px 14px; color: #fff; cursor: pointer; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; } .pt-card { background: #26262a; border-radius: 14px; overflow: hidden; border: 1px solid #333; } .pt-th { display: block; width: 100%; aspect-ratio: 4 / 3; background: #fff; border: 0; padding: 0; cursor: pointer; } .pt-th img { width: 100%; height: 100%; object-fit: contain; }
.pt-cb { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; } .pt-cb input { background: transparent; border: 0; color: #fff; font: 600 14px system-ui; padding: 2px 0; } .pt-cb span { font-size: 12px; color: #9a9aa2; } .pt-card .pt-row button { font-size: 12.5px; padding: 5px 9px; }
@media (max-width: 700px) { #paint-app { height: calc(100vh - 80px); border-radius: 10px; } .pt-top button { padding: 6px 7px; } .pt-tl button[data-a="gallery"] { font-size: 13px; } .pt-tl { max-width: calc(100% - 250px); overflow-x: auto; scrollbar-width: none; } .pt-tl::-webkit-scrollbar { display: none; } .pt-tl button { flex: 0 0 auto; } .pt-vr { height: 110px; } .pt-pop { left: 8px !important; right: 8px; width: auto; top: auto; bottom: 8px; max-height: 70%; } .pt-lib { grid-template-columns: 92px 1fr; } }
@media (max-width: 520px) { .pt-tr { top: 58px; } .pt-hud { top: 108px; } .pt-pop { top: auto; } }
/* v67: animation strip, reference window, shape and fill bars */
.pt-anim { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px); background: rgba(30, 30, 32, .94); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 7px 10px; z-index: 6; }
.pt-anim button { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px; padding: 6px 11px; cursor: pointer; color: inherit; font: inherit; }
.pt-anim button:hover { background: rgba(255, 255, 255, .16); } .pt-anim .pt-sl { grid-template-columns: auto 80px auto; } .pt-anim b { min-width: 92px; text-align: center; font-weight: 600; }
.pt-has-anim .pt-bar { bottom: 74px; }
.pt-clean .pt-anim, .pt-clean .pt-refw { display: none; }
.pt-refw { position: absolute; right: 70px; top: 70px; width: 260px; height: 220px; min-width: 120px; min-height: 100px; resize: both; overflow: hidden; display: flex; flex-direction: column; background: rgba(30, 30, 32, .96); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); z-index: 7; }
.pt-refh { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 4px 10px; cursor: move; font-size: 12px; color: #bbb; touch-action: none; user-select: none; }
.pt-refh button { background: none; border: 0; color: #ddd; font-size: 18px; cursor: pointer; padding: 0 6px; }
.pt-refw img { flex: 1; min-height: 0; width: 100%; object-fit: contain; cursor: crosshair; background: #1b1b1d; }
.pt-shk button { min-width: 34px; font-size: 16px; padding: 4px 7px !important; }
.pt-tag { background: rgba(59, 130, 246, .2); border: 1px solid rgba(59, 130, 246, .5); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.pt-bar input[type=color] { width: 34px; height: 26px; border: 0; padding: 0; background: none; vertical-align: middle; }
.pt-bg select { margin-left: auto; background: #151517; color: inherit; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; padding: 4px 6px; font: inherit; font-size: 12px; }
@media (max-width: 640px) { .pt-anim { bottom: 8px; padding: 6px; gap: 4px; } .pt-anim .pt-sl { grid-template-columns: auto 56px auto; } .pt-has-anim .pt-bar { bottom: 112px; } .pt-refw { right: 10px; top: 110px; width: 180px; height: 160px; } }

.pt-bar { width: max-content; }

@media (max-width: 520px) { .pt-tl { max-width: calc(100% - 20px); } }
