#np-photo-tools{--bg:#f8fbfd;--surface:#fff;--ink:#173645;--muted:#476576;--accent:#095d78;--warm:#ffbe55;--line:#d9e6ed;--soft:#eaf5f9}
#np-photo-tools *{box-sizing:border-box}
#np-photo-tools{padding:30px 0 50px}
#np-photo-tools .kicker{font-size:12px;font-weight:800;letter-spacing:.12em;color:var(--accent);text-transform:uppercase}
#np-photo-tools h1{font-size:clamp(32px,5vw,49px);line-height:1.14;letter-spacing:-.045em;margin:8px 0 10px}
#np-photo-tools h2{font-size:25px;letter-spacing:-.03em;margin:0 0 8px}
#np-photo-tools p{margin:0 0 16px;color:var(--muted)}
#np-photo-tools .tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:25px 0}
#np-photo-tools .tabs button{font:inherit;font-weight:750;text-align:left;padding:13px;background:white;border:1px solid var(--line);border-radius:12px;color:var(--ink);cursor:pointer;min-height:78px}
#np-photo-tools .tabs button[aria-selected=true]{background:var(--soft);border:2px solid var(--accent);padding:12px;color:var(--accent)}
#np-photo-tools .tabs small{display:block;font-size:12px;font-weight:450;color:var(--muted)}
#np-photo-tools button:focus-visible,#np-photo-tools input:focus-visible,#np-photo-tools select:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
#np-photo-tools .panel{padding:clamp(16px,3vw,28px);background:white;border:1px solid var(--line);border-radius:15px}
#np-photo-tools .cols{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:start}
#np-photo-tools .fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#np-photo-tools .fields label{font-size:13px;font-weight:650;display:block}
#np-photo-tools .fields input,#np-photo-tools .fields select{display:block;width:100%;font:inherit;background:white;border:1px solid #b6cbd4;border-radius:8px;padding:9px;margin-top:4px;color:var(--ink);min-width:0}
#np-photo-tools .fields input[type=range]{padding:0;accent-color:var(--accent)}
#np-photo-tools .metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;margin:18px 0}
#np-photo-tools .metric{border:1px solid var(--line);background:var(--soft);border-radius:9px;padding:12px}
#np-photo-tools .metric small{display:block;color:var(--muted);font-size:12px}
#np-photo-tools .metric strong{font-size:20px;display:block;line-height:1.3;margin-top:4px;overflow-wrap:anywhere}
#np-photo-tools .note{font-size:12px;color:var(--muted);margin:10px 0 0}
#np-photo-tools .scene{width:100%;display:block;border-radius:10px;background:#c4dae3}
#np-photo-tools .diagram{width:100%;height:auto;display:block}
#np-photo-tools .status{min-height:24px;color:#9b3e22;font-size:13px}
#np-photo-tools .section{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}
#np-photo-tools .inline{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
#np-photo-tools canvas{width:100%;height:auto;border:1px solid var(--line);border-radius:9px;display:block}
#np-photo-tools img.preview{max-width:100%;max-height:360px;object-fit:contain;border-radius:9px}
#np-photo-tools table{border-collapse:collapse;width:100%;font-size:13px}
#np-photo-tools td,#np-photo-tools th{text-align:left;padding:7px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
#np-photo-tools [hidden]{display:none!important}
@media(max-width:650px){#np-photo-tools .cols{grid-template-columns:1fr}
#np-photo-tools .tabs{grid-template-columns:1fr 1fr}
#np-photo-tools .fields{gap:9px}}
#np-photo-tools #npt-sky .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
#np-photo-tools #npt-sky .metric:nth-child(2){grid-column:1/-1;grid-row:2}
#np-photo-tools #npt-sky .metric:nth-child(3){grid-column:2;grid-row:1}
#np-photo-tools #npt-sky .metric strong{overflow-wrap:normal}
#np-photo-tools .skyview{background:#101e32;color:#d9e8ff;border-radius:12px;padding:9px}
#np-photo-tools .skyview svg{display:block;width:100%;height:auto}
#np-photo-tools .skyview .note{color:#bdcce1;margin:8px 8px 4px}
#np-photo-tools .action{font:inherit;font-weight:650;background:var(--accent);color:white;padding:9px 13px;border:0;border-radius:8px;cursor:pointer}
#np-photo-tools .action.secondary{background:white;color:var(--accent);border:1px solid var(--line)}
#np-photo-tools .skybuttons{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
#np-photo-tools .skylist{max-height:290px;overflow:auto}
#np-photo-tools .skylist th{position:sticky;top:0;background:white}
#np-photo-tools .skylist button{color:var(--accent);background:none;border:0;text-align:left;padding:0;font:inherit;cursor:pointer;text-decoration:underline}
#np-photo-tools .lensframe{display:block;width:100%;height:auto;background:#edf5fa;border-radius:10px}
#np-photo-tools .fields label.toggle{display:flex;gap:7px;align-items:center}
#np-photo-tools .fields label.toggle input{display:inline;width:auto;margin:0}
#np-photo-tools .readout{font-size:13px;color:var(--muted);margin:7px 0}
#np-photo-tools .modulelinks{font-size:12px;margin-top:12px;color:var(--muted)}
#np-photo-tools .modulelinks a{color:var(--accent)}
#np-photo-tools{width:min(1120px,calc(100% - 36px));margin:auto;color:var(--ink)}
@media(max-width:650px){#np-photo-tools{width:calc(100% - 24px)}}
#np-photo-tools button{max-width:100%} #np-photo-tools input,#np-photo-tools select{max-width:100%} #np-photo-tools svg{max-width:100%}

/* V11.2 — sdilene rozlozeni stavajici kalkulacky hloubky ostrosti; bez noveho CSS souboru. */
#np-photo-tools #npt-dof .npt-dof-control{min-width:0}
#np-photo-tools #npt-dof .npt-dof-control-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(74px,94px);align-items:center;gap:10px;min-width:0}
#np-photo-tools #npt-dof .npt-dof-control-head label{margin:0}
#np-photo-tools #npt-dof .npt-dof-control-head input[type=number]{margin:0;width:100%;min-width:0}
#np-photo-tools #npt-dof .npt-dof-control > input[type=range]{display:block;width:100%;min-height:44px;height:44px;margin:4px 0 0;padding:0;accent-color:var(--accent);touch-action:pan-y}
@media(max-width:650px){#np-photo-tools #npt-dof .npt-dof-fields{grid-template-columns:minmax(0,1fr)}}

/* NAS Press V11.3 — mobile control consistency; shared styles, no calculation changes. */
/* Labels with a slider have a descriptive name and a live numeric value in one row. */
#np-photo-tools .fields label:has(> input[type=range]){
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content;
  align-items:center;
  column-gap:10px;
  min-width:0;
}
#np-photo-tools .fields label:has(> input[type=range]) > output{
  grid-column:2;
  justify-self:end;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
#np-photo-tools .fields label:has(> input[type=range]) > input[type=range]{
  grid-column:1 / -1;
  width:100%;
  height:44px;
  min-height:44px;
  padding:0;
  margin:3px 0 0;
  border:0;
  background:transparent;
  touch-action:pan-y;
  accent-color:var(--accent);
}
@media(max-width:650px){
  /* The same one-column behavior applies to every calculator, not only DOF. */
  #np-photo-tools .fields{grid-template-columns:minmax(0,1fr)}
}
