/* Names & Numbers: same look as the DTF Prep Tool (dark panels, orange accent, green export). */
@keyframes dt-spin { to { transform: rotate(360deg); } }
.dt-wrap * { box-sizing: border-box; }
.dt-wrap { display: flex; width: 100%; height: var(--dt-host-h, 720px); min-height: 560px; background: #111; color: #e8e8e8; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; border-radius: 12px; overflow: hidden; }
.dt-panel { width: 220px; min-width: 200px; background: #1a1a1a; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.dt-panel--left  { border-right: 1px solid #252525; }
.dt-panel--right { border-left:  1px solid #252525; }
.dt-section-title { font-size: 10px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .8px; }
.dt-hint { font-size: 10px; color: #666; line-height: 1.5; margin: 0; }
.dt-divider { height: 1px; background: #222; margin: 4px 0; flex-shrink: 0; }
.dt-upload-btn { display: flex; align-items: center; gap: 7px; background: #252525; border: 1px dashed #383838; color: #bbb; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 12px; transition: border-color .2s; }
.dt-upload-btn:hover { border-color: #666; }
.dt-range { width: 100%; accent-color: #e05c2d; cursor: pointer; margin: 2px 0; }
.dt-num-input { width: 100%; background: #252525; border: 1px solid #333; color: #ddd; padding: 5px 6px; border-radius: 6px; font-size: 12px; text-align: center; }
.dt-num-input:focus { outline: none; border-color: #e05c2d; }
.dt-checkbox-row { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 9px; background: #222; border-radius: 7px; border: 1px solid #2a2a2a; flex-shrink: 0; }
.dt-checkbox-row:hover { border-color: #444; }
.dt-checkbox-row input[type="checkbox"] { accent-color: #e05c2d; width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; margin: 0; }
.dt-checkbox-label { font-size: 11px; color: #ccc; flex: 1; }
.dt-btn { width: 100%; padding: 8px 10px; border-radius: 7px; border: none; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; transition: opacity .15s; flex-shrink: 0; }
.dt-btn--secondary { background: #262626; color: #bbb; border: 1px solid #353535; }
.dt-btn--export { background: #1a6e42; color: #fff; padding: 11px 10px; font-size: 13px; }
.dt-btn:hover { opacity: .85; }
.dt-btn:disabled { opacity: .4; cursor: default; }
.dt-canvas-area { flex: 1; display: flex; flex-direction: column; padding: 14px 16px; gap: 8px; background: #111; min-width: 0; min-height: 0; overflow: hidden; }
.dt-canvas-topbar { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 8px; }
.dt-canvas-label { font-size: 10px; font-weight: 600; color: #777; text-transform: uppercase; letter-spacing: .8px; }
.dt-zoom-controls { display: flex; align-items: center; gap: 4px; }
.dt-zoom-btn { background: #252525; border: 1px solid #333; color: #aaa; border-radius: 5px; cursor: pointer; padding: 3px 8px; font-size: 11px; font-weight: 600; }
.dt-zoom-btn:hover { border-color: #666; color: #fff; }
.dt-viewport { flex: 1; overflow: auto; border-radius: 8px; background: #1f1f1f url("/dtf-prep/workspace-bg.jpg") center / cover no-repeat;
  min-height: 0; position: relative; scrollbar-width: thin; scrollbar-color: #555 #1a1a1a; overscroll-behavior: contain; }
.dt-empty-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; font-size: 13px; text-align: center; padding: 20px; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
.dt-canvas-info { font-size: 11px; font-weight: 600; color: #e05c2d; text-align: center; flex-shrink: 0; letter-spacing: .3px; min-height: 14px; }
.dt-rotate-row { display: flex; gap: 4px; }
.dt-rotate-btn { flex: 1; padding: 5px 2px; border-radius: 6px; border: 1px solid #333; background: #252525; color: #888; font-size: 10px; font-weight: 600; cursor: pointer; transition: all .15s; }
.dt-rotate-btn:hover { border-color: #555; color: #ccc; }
.dt-rotate-btn.active { background: #e05c2d; border-color: #e05c2d; color: #fff; }

/* ---- Names & Numbers ---- */
.nn-panel-left { width: 290px; min-width: 260px; }
.nn-panel-right { width: 250px; min-width: 230px; }
.nn-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.nn-brand img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.nn-brand-name { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .2px; }
.nn-brand-sub { font-size: 10px; color: #e05c2d; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
.nn-roster { width: 100%; min-height: 150px; height: 170px; resize: vertical; background: #202020; border: 1px solid #333; color: #eee; border-radius: 7px; padding: 8px 9px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; flex-shrink: 0; }
.nn-roster:focus { outline: none; border-color: #e05c2d; }
.nn-roster::placeholder { color: #555; }
.nn-roster-row, .nn-players-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.nn-link-btn { background: none; border: none; color: #e05c2d; font-size: 10px; font-weight: 600; cursor: pointer; padding: 0; }
.nn-link-btn:hover { text-decoration: underline; }
.nn-players { display: flex; flex-direction: column; gap: 3px; }
.nn-player-head, .nn-player { display: grid; grid-template-columns: 18px 1fr 38px 46px 46px; align-items: center; gap: 4px; }
.nn-player-head { font-size: 9px; color: #666; text-transform: uppercase; letter-spacing: .5px; padding: 0 4px; }
.nn-player { background: #202020; border: 1px solid #2a2a2a; border-radius: 6px; padding: 3px 4px; font-size: 11px; }
.nn-player.nn-hl { border-color: #e05c2d; background: #231a14; }
.nn-player .nn-idx { color: #555; font-size: 9px; text-align: right; }
.nn-player .nn-pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ddd; }
.nn-player .nn-pnum { color: #e05c2d; font-weight: 700; text-align: center; }
.nn-player input { width: 100%; background: #161616; border: 1px solid #333; color: #ddd; border-radius: 4px; padding: 3px 2px; font-size: 11px; text-align: center; }
.nn-player input::placeholder { color: #555; }
.nn-player input:focus { outline: none; border-color: #e05c2d; }
.nn-player input.nn-set { border-color: #e05c2d; color: #fff; }
.nn-block { display: flex; flex-direction: column; gap: 7px; }
.nn-field { display: flex; flex-direction: column; gap: 4px; }
.nn-label { font-size: 11px; color: #aaa; }
.nn-unit { font-size: 10px; color: #777; white-space: nowrap; }
.nn-inline { display: flex; align-items: center; gap: 6px; }
.nn-inline .dt-num-input { width: 72px; }
.nn-between { justify-content: space-between; }
.dt-num-input.nn-small { width: 56px; }
.nn-select { width: 100%; background: #252525; border: 1px solid #333; color: #ddd; border-radius: 6px; padding: 6px; font-size: 13px; }
.nn-select:focus { outline: none; border-color: #e05c2d; }
.nn-swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.nn-sw { width: 20px; height: 20px; border-radius: 4px; border: 2px solid #333; cursor: pointer; padding: 0; }
.nn-sw:hover { border-color: #777; }
.nn-sw.active { border-color: #e05c2d; box-shadow: 0 0 0 1px #e05c2d; }
.nn-sw-custom { position: relative; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.nn-sw-custom input { position: absolute; inset: -4px; width: 140%; height: 140%; opacity: 0; cursor: pointer; }
.nn-outline { display: flex; flex-direction: column; gap: 5px; padding: 7px; background: #202020; border: 1px solid #2a2a2a; border-radius: 7px; }
.nn-outline[hidden] { display: none; }
.nn-upload-font { justify-content: center; font-size: 11px; flex-shrink: 0; }
.nn-bg-label { font-size: 10px; color: #777; margin-right: 2px; }
.nn-bg-btn { width: 20px; height: 20px; border-radius: 5px; border: 2px solid #333; cursor: pointer; padding: 0; position: relative; overflow: hidden; display: inline-block; }
.nn-bg-btn.active { border-color: #e05c2d; }
.nn-bg-check { background: repeating-conic-gradient(#666 0% 25%, #3a3a3a 0% 50%) 0 0 / 8px 8px; }
.nn-bg-custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.nn-bg-custom input { position: absolute; inset: -4px; width: 140%; height: 140%; opacity: 0; cursor: pointer; }
.nn-sep { width: 1px; height: 18px; background: #333; margin: 0 4px; }
.nn-zoom-val { font-size: 10px; color: #888; min-width: 36px; text-align: right; }
.nn-viewport { display: block; padding: 0; }
#nn-canvas { display: block; margin: 0 auto; touch-action: none; }
.nn-warn { font-size: 11px; color: #f5a623; background: #1e1505; border: 1px solid #7a4a1a; border-radius: 7px; padding: 7px 10px; line-height: 1.45; flex-shrink: 0; }
.nn-warn[hidden] { display: none; }
.nn-busy { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100000; display: flex; align-items: center; justify-content: center; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.nn-busy[hidden] { display: none; }
.nn-busy-box { background: #111; border: 1px solid #333; border-radius: 14px; padding: 22px 26px; color: #eee; text-align: center; font-size: 13px; width: min(320px, 90vw); display: flex; flex-direction: column; gap: 12px; }
.nn-busy-bar { height: 6px; background: #2a2a2a; border-radius: 3px; overflow: hidden; }
#nn-busy-fill { height: 100%; width: 0; background: #e05c2d; transition: width .2s; }

@media (max-width: 900px) {
  .dt-wrap { flex-direction: column; height: auto; min-height: 0; overflow: visible; }
  .dt-panel, .nn-panel-left, .nn-panel-right { width: 100%; min-width: 0; overflow: visible; }
  .dt-panel--left  { border-right: 0; border-top: 1px solid #252525; }
  .dt-panel--right { border-left: 0;  border-top: 1px solid #252525; }
  .dt-canvas-area { order: -1; flex: none; height: max(380px, calc(var(--dt-host-h, 100vh) * 0.7)); padding: 10px; }
  .dt-canvas-topbar { flex-wrap: wrap; }
  .dt-zoom-controls { flex-wrap: wrap; row-gap: 6px; }
}

/* roster bubbles */
.nn-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; min-height: 120px; max-height: 260px; overflow-y: auto; background: #202020; border: 1px solid #333; border-radius: 7px; padding: 7px; cursor: text; flex-shrink: 0; }
.nn-chips:focus-within { border-color: #e05c2d; }
.nn-chips.nn-drop-bg { border-color: #e05c2d; border-style: dashed; }
.nn-chip { display: inline-flex; align-items: center; gap: 3px; background: #2c2c2c; border: 1px solid #3a3a3a; border-radius: 999px; padding: 2px 3px 2px 4px; font-size: 12px; line-height: 1; cursor: grab; user-select: none; max-width: 100%; }
.nn-chip:hover { border-color: #555; }
.nn-chip.nn-dragging { opacity: .35; }
.nn-chip.nn-drop-ok { border-color: #e05c2d; background: #3a2418; box-shadow: 0 0 0 2px rgba(224,92,45,.35); }
.nn-chip.nn-drop-bad { border-color: #ff3b30; background: #3a1816; cursor: not-allowed; }
.nn-chip.nn-drop-before { box-shadow: -3px 0 0 0 #e05c2d; }
.nn-chip.nn-drop-after { box-shadow: 3px 0 0 0 #e05c2d; }
.nn-part { padding: 4px 7px; border-radius: 999px; cursor: grab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.nn-part-name { background: #3a3a3a; color: #eee; }
.nn-part-num { background: #e05c2d; color: #fff; font-weight: 700; min-width: 14px; text-align: center; }
.nn-part.nn-part-before { box-shadow: -3px 0 0 0 #fff; }
.nn-part.nn-part-after { box-shadow: 3px 0 0 0 #fff; }
.nn-part.nn-dragging { opacity: .35; }
.nn-part-edit { background: #161616; border: 1px solid #e05c2d; color: #fff; border-radius: 999px; padding: 3px 7px; font: inherit; font-size: 12px; width: 70px; outline: none; }
.nn-chip-x { background: none; border: 0; color: #777; font-size: 14px; line-height: 1; padding: 0 3px; cursor: pointer; border-radius: 50%; }
.nn-chip-x:hover { color: #fff; background: #444; }
.nn-chip-input { flex: 1 0 120px; min-width: 120px; background: transparent; border: 0; color: #eee; font-size: 12px; padding: 5px 2px; outline: none; }
.nn-chip-input::placeholder { color: #555; }
.nn-chip-help { margin-top: -2px; }

/* per-player style editor */
.nn-pick { cursor: pointer; border-radius: 4px; padding: 2px 3px; }
.nn-pick:hover { background: #2c2c2c; }
.nn-pick.nn-picked { background: #3a2418; box-shadow: inset 0 0 0 1px #e05c2d; }
.nn-pname.nn-custom, .nn-pnum.nn-custom { text-decoration: underline dotted #e05c2d; text-underline-offset: 3px; }
.nn-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e05c2d; }
.nn-player.nn-open { border-color: #e05c2d; background: #231a14; }
.nn-ped-tabs, .nn-ped-seg { display: flex; gap: 2px; background: #111; border-radius: 6px; padding: 2px; flex-shrink: 0; }
.nn-ped-tabs button { background: none; border: 0; color: #999; font-size: 10px; padding: 3px 8px; border-radius: 4px; cursor: pointer; }
.nn-ped-tabs button.active { background: #e05c2d; color: #fff; }
.nn-ped-tabs button:disabled { opacity: .3; cursor: default; }
.nn-part.nn-part-on { box-shadow: 0 0 0 2px #fff; }
.nn-copy-btn { display: inline-flex; align-items: center; gap: 5px; background: #2a2a2a; border: 1px solid #3a3a3a; color: #ddd; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 4px 9px; cursor: pointer; }
.nn-copy-btn:hover:not(:disabled) { border-color: #e05c2d; color: #fff; }
.nn-copy-btn:disabled { opacity: .4; cursor: default; }
.nn-copy-btn.nn-copied { background: #1f7a3d; border-color: #1f7a3d; color: #fff; }

/* right panel while one player is selected */
.nn-edit-banner { background: #2a1a10; border: 1px solid #e05c2d; border-radius: 8px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; position: sticky; top: 0; z-index: 3; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.nn-eb-top, .nn-eb-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.nn-eb-label { font-size: 10px; font-weight: 700; color: #e05c2d; text-transform: uppercase; letter-spacing: .8px; }
.nn-eb-who { color: #fff; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nn-eb-done { background: #e05c2d; color: #fff; border: 0; border-radius: 5px; padding: 4px 12px; font-size: 11px; font-weight: 700; cursor: pointer; }
.nn-eb-row .nn-link-btn { font-size: 10px; }
.nn-block.nn-editing { box-shadow: inset 3px 0 0 #e05c2d; padding-left: 8px; }
.nn-block.nn-locked { opacity: .3 !important; pointer-events: none; filter: grayscale(1); }
.nn-edit-banner[hidden] { display: none; }
.nn-eb-row .nn-link-btn { white-space: nowrap; }

/* ---- simple layout: numbered steps, tabs, tucked-away extras, Download always in view ---- */
.nn-step { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; flex-shrink: 0; }
.nn-step-n { width: 20px; height: 20px; border-radius: 50%; background: #e05c2d; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nn-step-t { font-size: 13px; font-weight: 700; color: #fff; flex: 1; }
.nn-seg { display: flex; gap: 2px; background: #111; border: 1px solid #2a2a2a; border-radius: 8px; padding: 3px; flex-shrink: 0; }
.nn-seg button { flex: 1; background: none; border: 0; color: #999; font-size: 11px; font-weight: 600; padding: 6px 4px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.nn-seg button:hover { color: #fff; }
.nn-seg button.active { background: #e05c2d; color: #fff; }
.nn-seg[hidden], .nn-block[hidden] { display: none; }
.nn-tabs button { font-size: 12px; padding: 7px 4px; }
.nn-print-field { margin-top: 4px; }
.nn-tip { font-size: 11px; color: #888; line-height: 1.45; margin: 2px 0 0; padding: 8px 10px; background: #202020; border-radius: 7px; border: 1px solid #2a2a2a; }
.nn-more { border: 1px solid #2a2a2a; border-radius: 7px; background: #1e1e1e; flex-shrink: 0; }
.nn-more summary { list-style: none; cursor: pointer; padding: 8px 10px; font-size: 11px; font-weight: 600; color: #bbb; display: flex; align-items: center; gap: 6px; user-select: none; }
.nn-more summary::-webkit-details-marker { display: none; }
.nn-more summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid #888; border-bottom: 1.5px solid #888; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.nn-more[open] summary::before { transform: rotate(45deg); }
.nn-more summary:hover { color: #fff; }
.nn-more-body { padding: 2px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.nn-howto { margin: 0; padding-left: 16px; font-size: 11px; color: #999; line-height: 1.5; display: flex; flex-direction: column; gap: 3px; }
.nn-howto b { color: #ddd; font-weight: 600; }
.nn-panel-left .nn-chips { min-height: 150px; }
.nn-panel-right { padding: 0; overflow: hidden; width: 260px; }
.nn-right-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.nn-download { flex-shrink: 0; padding: 10px 12px 12px; border-top: 1px solid #252525; background: #1a1a1a; display: flex; flex-direction: column; gap: 5px; }
.nn-download .dt-hint { text-align: center; }
.dt-btn--export { background: #1a8a4f; font-size: 14px; padding: 12px 10px; }
.nn-upload-font { display: block; font-size: 11px; color: #e05c2d; font-weight: 600; cursor: pointer; padding: 2px 0; }
.nn-upload-font:hover { text-decoration: underline; }
.nn-colormode { margin-top: 2px; }
@media (max-width: 900px) {
  .nn-panel-right { overflow: visible; width: 100%; }
  .nn-right-scroll { overflow: visible; }
}
/* hidden always wins (some rows set display:flex) */
.nn-wrap [hidden] { display: none !important; }

/* uploaded designs (same look as the DTF Prep Tool's layer list and warnings) */
.nn-design-list { display: flex; flex-direction: column; gap: 5px; }
.nn-design { background: #202020; border: 2px solid #2a2a2a; border-radius: 7px; padding: 6px 7px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: border-color .15s; }
.nn-design:hover { border-color: #444; }
.nn-design.selected { border-color: #e05c2d; background: #231a14; }
.nn-design-top { display: flex; align-items: center; gap: 7px; }
.nn-design-thumb { width: 38px; height: 38px; border-radius: 4px; object-fit: contain; flex-shrink: 0; background: repeating-conic-gradient(#555 0% 25%, #3a3a3a 0% 50%) 0 0 / 8px 8px; }
.nn-design-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nn-design-name { font-size: 11px; color: #ccc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nn-design-size { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #888; white-space: nowrap; }
.nn-design-size .dt-num-input { width: 50px; padding: 3px 4px; font-size: 11px; }
.nn-design-x { margin-left: 4px; }
.nn-design-del { background: none; border: 0; color: #777; font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 4px; border-radius: 4px; align-self: flex-start; }
.nn-design-del:hover { color: #fff; background: #444; }
.nn-dpi { border-radius: 6px; padding: 6px 8px; font-size: 10px; line-height: 1.4; display: flex; flex-direction: column; gap: 2px; }
.nn-dpi b { font-size: 11px; }
.nn-dpi.warn { background: #1e1505; border: 1px solid #7a4a1a; color: #f5a623; }
.nn-dpi.bad { background: #2b1416; border: 1px solid #c8102e; color: #f4b8c0; }
.nn-dpi.bad b { color: #ff6b6b; }
.nn-semi { display: flex; flex-direction: column; gap: 5px; }
.nn-semi .dt-checkbox-row { padding: 5px 8px; }
.nn-info-btn { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #444; background: #2a2a2a; color: #aaa; font-size: 10px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0; flex-shrink: 0; }
.nn-semi-info { background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 6px; padding: 8px 9px; font-size: 10px; color: #888; line-height: 1.6; }
.nn-viewport.nn-drop { outline: 2px dashed #e05c2d; outline-offset: -6px; }

/* import players from a spreadsheet */
.nn-import { display: flex; flex-direction: column; gap: 5px; }
.nn-import-btn { display: flex; align-items: center; justify-content: center; gap: 6px; background: #252525; border: 1px solid #353535; color: #ccc; padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 600; }
.nn-import-btn:hover { border-color: #666; color: #fff; }
.nn-gsheet-row { display: flex; gap: 4px; }
.nn-gsheet { flex: 1; min-width: 0; background: #202020; border: 1px solid #333; color: #ddd; border-radius: 6px; padding: 6px 8px; font-size: 11px; }
.nn-gsheet:focus { outline: none; border-color: #e05c2d; }
.nn-gsheet::placeholder { color: #555; }
.nn-gsheet-go { background: #2a2a2a; border: 1px solid #3a3a3a; color: #ddd; border-radius: 6px; font-size: 11px; font-weight: 600; padding: 0 10px; cursor: pointer; }
.nn-gsheet-go:hover { border-color: #e05c2d; color: #fff; }
.nn-import-msg { font-size: 10px; color: #4caf7d; min-height: 0; }
.nn-import-msg:empty { display: none; }
.nn-import-msg.bad { color: #f5a623; }
#nn-design-status:empty { display: none; }

/* Gang Sheet Settings: button in the left panel + popup docked beside it (DTF Prep Tool popup look) */
.nn-pop-btn { justify-content: space-between; background: #252525; border: 1px solid #353535; color: #ddd; padding: 9px 10px; }
.nn-pop-btn:hover { border-color: #666; opacity: 1; }
.nn-pop-btn.open { border-color: #e05c2d; background: #2a1a10; }
.nn-pop-btn-l { display: flex; align-items: center; gap: 7px; }
.nn-pop-btn-v { font-size: 11px; font-weight: 600; color: #e05c2d; }
.nn-pop { position: fixed; left: 0; top: 0; width: min(300px, 92vw); max-height: min(78vh, 680px); overflow: auto; background: #b7b09a; color: #1f1d16; border: 1px solid #8a836d; border-radius: 12px; padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.35); z-index: 99990; display: flex; flex-direction: column; gap: 8px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.nn-pop-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: grab; font-size: 10px; color: #4f4a3d; border-bottom: 1px solid #8a836d; padding-bottom: 7px; user-select: none; touch-action: none; }
.nn-pop-bar > span { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.nn-pop-x { background: #c9c2ad; border: 1px solid #8a836d; color: #3d392e; border-radius: 6px; width: 22px; height: 22px; line-height: 1; cursor: pointer; font-size: 14px; }
.nn-dbox { background: #aaa28b; border: 1px solid #8a836d; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.nn-pop-title { font-size: 10px; font-weight: 700; color: #3d392e; text-transform: uppercase; letter-spacing: .8px; }
.nn-pop .nn-label { color: #2f2c22; font-weight: 600; }
.nn-pop .nn-unit, .nn-pop .dt-hint { color: #4f4a3d; }
.nn-pop .dt-rotate-btn { background: #c9c2ad; border-color: #8a836d; color: #3d392e; }
.nn-pop .dt-rotate-btn:hover { border-color: #5f594a; color: #1f1d16; }
.nn-pop .dt-rotate-btn.active { background: #e05c2d; border-color: #e05c2d; color: #fff; }
.nn-pop .dt-num-input, .nn-pop .nn-select { background: #d8d2c0; border-color: #8a836d; color: #1f1d16; }
.nn-pop .dt-checkbox-row { background: #c9c2ad; border-color: #8a836d; }
.nn-pop .dt-checkbox-label { color: #2f2c22; }
.nn-pop .dt-btn--secondary { background: #c9c2ad; color: #2f2c22; border-color: #8a836d; }
@media (max-width: 900px) { .nn-pop { left: 50% !important; transform: translateX(-50%); top: 70px !important; } }
/* custom sheet width: clearly a box you can type in */
.nn-custom-w { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #c9c2ad; border: 1px dashed #8a836d; border-radius: 7px; padding: 6px 8px; cursor: text; }
.nn-custom-w.on { border-style: solid; border-color: #e05c2d; background: #d8cfb8; }
.nn-custom-w .dt-num-input { width: 78px; font-size: 13px; font-weight: 600; }
.nn-units { min-width: 130px; }
#nn-width-presets .dt-rotate-btn { font-size: 10px; }
.nn-overlap { gap: 4px; }
.nn-overlap-fix { align-self: flex-start; margin-top: 3px; background: #c8102e; color: #fff; border: 0; border-radius: 6px; padding: 5px 10px; font-size: 11px; font-weight: 700; cursor: pointer; }
.nn-overlap-fix:hover { background: #a50d26; }
.nn-field .nn-upload-font { padding: 0; font-size: 11px; }
/* "Restore your last session?" card (same as the DTF Prep Tool) */
.nn-restore { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; background: #1f1c16; color: #f4efe1; border: 1px solid #8a836d; border-radius: 14px; padding: 20px 22px; box-shadow: 0 18px 50px rgba(0,0,0,.45); font: 600 15px/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; width: max-content; max-width: calc(100% - 32px); }
.nn-restore-sub { opacity: .65; font-weight: 500; font-size: 13px; }
.nn-restore-btns { display: flex; gap: 8px; }
.nn-restore-yes { background: #16a34a; color: #fff; border: 0; border-radius: 8px; padding: 9px 18px; font-weight: 700; font-size: 14px; font-family: inherit; cursor: pointer; }
.nn-restore-no { background: transparent; color: #f4efe1; border: 1px solid #8a836d; border-radius: 8px; padding: 9px 14px; font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; }
.nn-both-note { font-size: 10.5px; color: #888; line-height: 1.45; }

/* Settings: your defaults (modal) */
.nn-settings-btn { display: inline-flex; align-items: center; gap: 4px; }
.nn-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 99995; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.nn-modal-box { background: #1a1a1a; border: 1px solid #333; border-radius: 14px; width: min(640px, 100%); max-height: min(88vh, 860px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.5); color: #e8e8e8; }
.nn-modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
.nn-modal-hd b { font-size: 15px; }
.nn-modal-sub { margin: 4px 16px 10px; font-size: 11px; color: #888; }
.nn-modal-body { overflow-y: auto; padding: 0 16px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nn-dgroup { background: #202020; border: 1px solid #2a2a2a; border-radius: 9px; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.nn-dgroup-t { font-size: 10px; font-weight: 700; color: #e05c2d; text-transform: uppercase; letter-spacing: .8px; }
.nn-drow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: #bbb; }
.nn-drow > span:first-child { flex: 1; }
.nn-drow .nn-select { width: 150px; padding: 4px 6px; font-size: 12px; }
.nn-drow .dt-num-input { width: 64px; }
.nn-drow-check { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #ccc; cursor: pointer; }
.nn-drow-check input { accent-color: #e05c2d; width: 14px; height: 14px; margin: 0; }
.nn-dcolor { width: 40px; height: 24px; border: 1px solid #444; border-radius: 5px; background: none; padding: 0; cursor: pointer; }
.nn-modal-ft { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px 14px; border-top: 1px solid #2a2a2a; }
.nn-modal-ft .nn-link-btn { font-size: 11px; }
.nn-apply { margin-left: auto; }
.nn-modal-ft .dt-btn--export { width: auto; padding: 9px 16px; font-size: 13px; }
.nn-modal[hidden] { display: none !important; }
@media (max-width: 640px) { .nn-modal-body { grid-template-columns: 1fr; } .nn-apply { margin-left: 0; } }
.nn-drow.nn-drow-check { justify-content: flex-start; } .nn-drow.nn-drow-check > span { flex: 1; }
/* more than 4 uploaded designs: the list scrolls (about 4 rows tall) */
.nn-design-list.nn-many { max-height: 236px; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: #555 transparent; flex-shrink: 0; }

/* Full screen (button in the sheet toolbar) */
.nn-wrap.nn-fs { position: fixed; inset: 0; z-index: 99999; width: 100vw; height: 100vh; height: 100dvh; min-height: 0; border-radius: 0; }
.nn-wrap.nn-fs > .dt-panel { min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
