body{background:#f4f6f2}.adminLogin{max-width:430px;margin:50px auto;background:white;padding:28px;border:1px solid var(--line);border-radius:16px}.adminLogin h1{font-size:28px}main{max-width:1500px;margin:auto;padding:30px}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.intro h1{font-size:32px;letter-spacing:-.8px;margin:0 0 12px}.intro p{color:var(--muted)}.tabs{display:flex;gap:8px;margin-bottom:25px}.tabs button.active{background:var(--ink);color:white}.layoutTools{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:20px}.layoutTools label{flex:1;min-width:180px;margin:0}.layoutTools button{height:48px}.editorColumns{display:grid;grid-template-columns:1.05fr 1fr;gap:24px}.editorPanel{background:white;border:1px solid var(--line);border-radius:16px;padding:24px}.editorPanel p{color:var(--muted);font-size:14px}.editorRow{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0}.editorRow .swatch{width:22px;height:22px;border-radius:6px;flex-shrink:0}.editorRow .name{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:650}.editorRow button{font-size:12px;min-height:36px;padding:6px 9px}.editorRow small{display:block;color:var(--muted);font-weight:450}.previewPanel{align-self:start;position:sticky;top:20px}.previewPanel .tiles{min-height:150px;max-height:460px;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:90px}.previewPanel .tile{font-size:13px;padding:12px}.publishArea{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.publishArea>div{display:flex;gap:10px}.publishArea .muted{font-size:12px;margin:16px 0 0}#draftState{font-size:12px;color:#996329}.registerForm{display:flex;gap:16px;align-items:flex-end;margin:25px 0 40px}.registerForm label{flex:1;margin:0}.registerForm button{margin:0}.record{display:flex;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}.record>div{flex:1}.record small{display:block;color:var(--muted)}#buttonRows{max-height:55vh;overflow:auto}#removePage{margin-top:18px}.topRight a{font-size:13px!important}input[type=color]{height:48px;padding:5px;max-width:140px}#productSelect{height:260px}.topRight{display:flex!important}@media(max-width:1000px){.editorColumns{grid-template-columns:1fr}.previewPanel{position:static}.intro{align-items:flex-start;flex-direction:column}.tabs{flex-wrap:wrap}.layoutTools button{flex:1}.registerForm{flex-direction:column;align-items:stretch}}@media(max-width:600px){main{padding:16px}.editorPanel{padding:16px}.editorRow{flex-wrap:wrap}.editorRow .name{min-width:50%}.previewPanel .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.intro h1{font-size:26px}.record{flex-wrap:wrap}.topRight a{display:inline!important}.top{height:auto;flex-wrap:wrap;padding:10px 14px}}

.profileBar{display:flex;align-items:center;gap:28px;margin:0 0 20px}.profileBar label{min-width:220px}.profileBar p{margin:6px 0;color:#58685d}@media(max-width:700px){.profileBar{display:block}}

.categoryDialog{width:min(760px,94vw);max-width:760px}.checklistTools{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}#groupChecklist{max-height:46vh;overflow:auto;border:1px solid var(--line);border-radius:12px}.checkGroup{padding:16px;border-bottom:1px solid var(--line)}.checkGroup:last-child{border-bottom:0}.categoryCheck{font-size:17px;margin-bottom:12px}.subChecks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-left:28px}.subChecks .check{padding:9px;margin:0;align-items:flex-start;border-radius:8px;background:#f4f7f2}.subChecks small{display:block;font-weight:400;font-size:12px;color:#617261;margin-top:3px}.alreadyAdded{opacity:.65}.categoryDialog input[type=checkbox]{width:20px;height:20px;flex:0 0 20px}.categoryDialog #groupCount{font-size:14px}.categoryDialog .dialogActions{position:sticky;bottom:0;background:white;padding-top:12px}@media(max-width:600px){.subChecks{grid-template-columns:1fr;padding-left:12px}}
.categoryDialog{padding:24px;overflow:hidden}.categoryDialog form{display:flex;flex-direction:column;max-height:calc(90dvh - 50px);overflow:hidden}.categoryDialog h2{margin:0 0 10px;flex-shrink:0}.categoryDialog #groupHelp{margin:0 0 10px;flex-shrink:0}.categoryDialog .checklistTools{margin:0 0 10px;flex-shrink:0}.categoryDialog #groupChecklist{flex:1;min-height:80px;max-height:none}.categoryDialog form>label{display:flex;align-items:center;gap:12px;margin:12px 0 0;flex-shrink:0}.categoryDialog input[type=color]{width:80px;height:38px}.categoryDialog #groupCount{margin:10px 0 0;flex-shrink:0}.categoryDialog .dialogActions{position:static;margin-top:12px;padding-top:0;flex-shrink:0}

.showButton{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;margin:0;flex-shrink:0}.showButton input{width:22px;height:22px;margin:0}.organiseDialog{width:min(680px,94vw);max-width:680px;max-height:90dvh;overflow:auto}#moveProducts{max-height:28vh;min-height:50px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:12px}#moveProducts .check{padding:8px;margin:0}#moveProducts input{width:22px;height:22px;flex:0 0 22px}#moveCount{font-size:14px;color:var(--muted)}#newGroupFields[hidden]{display:none}.organiseDialog .dialogActions{position:sticky;bottom:-24px;background:white;padding:14px 0;margin-bottom:0}
