/* NiteFade 10.0–10.9: Color Lab + typography, no external image APIs */
.nf10-color-entry,.nf10-text-panel{display:grid;gap:9px;border:1px solid #e4d7f5;border-radius:12px;padding:13px;margin:10px 0 16px;background:linear-gradient(132deg,#f7f2ff,#fff)}
.nf10-color-entry strong,.nf10-text-panel strong{font-size:12px;color:#533780}
.nf10-color-entry p,.nf10-text-panel p{margin:0;color:#847195;line-height:1.55;font-size:10px}
.nf10-color-entry button{border-radius:9px;border:1px solid #7851dc;background:#7551dc;color:white;cursor:pointer;padding:11px;font-weight:800;font-size:11px}
.nf10-color-entry button:hover{background:#6340c7}
.nf10-text-panel label{font-size:11px;color:#594a75;font-weight:720;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.nf10-text-panel input[type=range]{width:100%;accent-color:#8155e7}
.nf10-text-panel output{color:#7a55cd;font-size:10px}
.nf10-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.nf10-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.nf10-grid button{background:#fff;border:1px solid #e5d9f2;border-radius:9px;color:#654a83;font-weight:750;padding:10px 6px;cursor:pointer;font-size:10px}
.nf10-grid button:hover{background:#efe7ff;color:#6b48cc;border-color:#c6a9f7}
.nf10-color-dialog{width:min(1110px,calc(100vw - 32px));max-width:1110px;max-height:min(900px,calc(100vh - 26px));overflow:hidden;padding:0;border:1px solid #d6cae9;border-radius:19px;color:#37274e;background:#fff;box-shadow:0 22px 75px #22114060}
.nf10-color-dialog::backdrop{background:#1c1428b9;backdrop-filter:blur(5px)}
.nf10-dialog-head{display:flex;justify-content:space-between;align-items:start;gap:10px;padding:18px 23px 16px;border-bottom:1px solid #ece4f5}
.nf10-dialog-head h2{font-size:18px;margin:0;color:#40275f}
.nf10-dialog-head h2 small{font-size:10px;color:#8568aa}
.nf10-dialog-head p{font-size:11px;color:#8a7c9a;margin:4px 0}
.nf10-dialog-head button{background:#f7f4fc;border:0;border-radius:8px;color:#655078;min-width:32px;height:32px;font-size:22px;cursor:pointer}
.nf10-color-layout{display:grid;grid-template-columns:285px minmax(0,1fr);height:min(610px,calc(100vh - 225px));min-height:300px}
.nf10-color-sliders{overflow-y:auto;padding:13px 16px;border-right:1px solid #e9e3f2;scrollbar-width:thin}
.nf10-color-section{border-bottom:1px solid #eee9f4;margin:0 0 15px;padding:2px 0 10px}
.nf10-color-section>strong{display:block;font-size:12px;color:#4e396c;margin:7px 0 12px}
.nf10-color-section label{font-size:11px;color:#645176;margin-bottom:10px;display:grid;grid-template-columns:1fr auto;align-items:center}
.nf10-color-section label output{color:#8c66dc;font-size:10px;font-weight:800}
.nf10-color-section input[type=range]{grid-column:1/-1;width:100%;margin:7px 0;accent-color:#7e56df}
.nf10-preview-wrap{display:flex;min-width:0;flex-direction:column;overflow:hidden;background:#eee7f5}
.nf10-preview-header{display:flex;justify-content:space-between;gap:8px;padding:12px 17px;background:#fff;font-size:11px;font-weight:730;color:#69577d}
.nf10-preview-surface{flex:1;min-height:0;overflow:auto;display:flex;align-items:safe center;justify-content:safe center;padding:26px;background-color:#eee5f6;background-image:linear-gradient(45deg,#e3d8ed 25%,transparent 25%),linear-gradient(-45deg,#e3d8ed 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e3d8ed 75%),linear-gradient(-45deg,transparent 75%,#e3d8ed 75%);background-size:26px 26px;background-position:0 0,0 13px,13px -13px,-13px 0}
#nf10-preview{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 6px 30px #2a183b38;border:1px solid #d9cdea}
#nf10-color-status{font-size:11px;color:#725b83;margin:0;padding:12px 15px;background:#fff;border-top:1px solid #eadff3}
.nf10-dialog-footer{padding:14px 20px;border-top:1px solid #e7ddef;display:flex;justify-content:space-between;align-items:center;gap:10px}
.nf10-dialog-footer p{font-size:10px;line-height:1.5;color:#82748f;margin:0;max-width:580px}
.nf10-dialog-footer>div{display:flex;gap:8px;flex-shrink:0}
.nf10-dialog-footer button{border:1px solid #e2d5ef;border-radius:9px;padding:10px 15px;background:#fff;font-weight:780;font-size:11px;color:#694c85;cursor:pointer}
.nf10-dialog-footer button.primary-btn{background:#7652df;color:white;border-color:#7652df}
.nf10-dialog-footer button:disabled{opacity:.5}
@media(max-width:760px){.nf10-color-layout{grid-template-columns:1fr;grid-template-rows:190px minmax(180px,1fr);height:calc(100vh - 245px)}.nf10-color-sliders{border:0;border-bottom:1px solid #eee}.nf10-dialog-footer{display:block}.nf10-dialog-footer>div{justify-content:flex-end;margin-top:10px}}

/* Original Phase 5 completion: Color Lab-only advanced levels and curves */
#nf10-tone-graph{display:block;box-sizing:border-box;width:100%;height:125px;border:1px solid #71658b;
  background:#181525;touch-action:none;cursor:crosshair;border-radius:7px}
.nf10-curve-help,.nf10-local-section p{font-size:10px!important;line-height:1.5;color:#877496;margin:5px 0 10px}
.nf10-local-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:8px}
.nf10-local-toggle input{width:18px;height:18px;accent-color:#7752da}
.nf10-photo-histogram{padding:10px 17px 8px;display:flex;align-items:center;gap:12px;background:#fff;
  border-bottom:1px solid #e7dced}
.nf10-photo-histogram span{color:#705781;font-size:10px;min-width:110px}
.nf10-photo-histogram canvas{max-width:min(256px,60%);height:55px;border-radius:5px}
.nf10-split-control{display:grid;grid-template-columns:110px 1fr 80px;align-items:center;gap:9px;
  background:#fff;padding:10px 14px;border-top:1px solid #e7dced;font-size:10px;color:#6a4f7e}
.nf10-split-control input{accent-color:#7851df;width:100%;min-width:0}
.nf10-split-control output{text-align:right}
@media(max-width:760px){
 .nf10-photo-histogram{padding:4px 8px}.nf10-photo-histogram canvas{height:30px}
 .nf10-split-control{grid-template-columns:90px 1fr 63px;gap:5px;padding:6px}
}
