/* DigiTech Lessons: shared styles for the site pages (home, resources, 404).
   Project pages (the year-7 to year-12 folders) are self-contained and do NOT use this file.
   After changing this file, bump the ?v= number where pages link it. */

:root {
  --bg: #070a12;
  --bg2: #0d1220;
  --bg3: #141b2e;
  --text: #e8eef8;
  --muted: #8b97ad;
  --primary: #34e1ff;
  --primary2: #b8f3ff;
  --steel: #ff2ee8;
  --amber: #ffb703;
  --lime: #9be564;
  --border: rgba(52, 225, 255, 0.2);
  --display: 'Orbitron', sans-serif;
  --body: 'Exo 2', sans-serif;
  --mono: 'Share Tech Mono', monospace;
  --btn-h: 46px;
  /* every project's own colour, left to right Year 7 to Year 10 */
  --all-projects: repeating-linear-gradient(90deg,
    #ffb703 0 6px, #e2a35c 6px 12px, #ff6b4a 12px 18px, #4c9a2a 18px 24px, #ff6b35 24px 30px,
    #9bbc0f 30px 36px, #ffd21f 36px 42px, #ff3b30 42px 48px, #ff3f7f 48px 54px, #9d5cff 54px 60px,
    #ff8800 60px 66px, #c9a227 66px 72px, #ff2ee8 72px 78px, #f2994a 78px 84px, #8a7dff 84px 90px,
    #ff7a70 90px 96px, #34e1ff 96px 102px, #3be37f 102px 108px, #ff2e6d 108px 114px, #4db3ff 114px 120px,
    #d9a441 120px 126px, #b388ff 126px 132px, #c4f04d 132px 138px, #4b8dff 138px 144px, #2dd4bf 144px 150px,
    #3dff8b 150px 156px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade { opacity: 1 !important; }
}
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(255, 46, 232, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(52, 225, 255, 0.10), transparent 70%),
    linear-gradient(rgba(52, 225, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 225, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  background-attachment: scroll;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.skip { position: absolute; left: 50%; top: -60px; transform: translateX(-50%); z-index: 50; padding: 10px 18px; background: var(--primary); color: var(--bg); font-family: var(--mono); text-decoration: none; border-radius: 2px; }
.skip:focus { top: 12px; }

.accent-banner { height: 12px; width: 100%; background: var(--all-projects); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px 40px; position: relative; z-index: 1; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.2s; } .d3 { animation-delay: 0.35s; }
.d4 { animation-delay: 0.45s; } .d5 { animation-delay: 0.55s; } .d6 { animation-delay: 0.65s; }

/* ---------- header ---------- */
.header { text-align: center; padding: 56px 0 24px; }
.logo-mark { width: 76px; height: 76px; margin: 0 auto 18px; display: block; filter: drop-shadow(0 0 22px rgba(52, 225, 255, 0.35)); }
.header-label { font-family: var(--mono); font-size: 11px; color: var(--steel); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 16px; white-space: nowrap; }
.header h1 { font-family: var(--display); font-size: clamp(30px, 7vw, 60px); font-weight: 900; line-height: 1.05; letter-spacing: 0.02em; color: #fff; text-transform: uppercase; text-shadow: 0 0 30px rgba(52, 225, 255, 0.35), 0 0 70px rgba(255, 46, 232, 0.18); }
.header h1 span { display: inline-block; background: linear-gradient(90deg, var(--amber), var(--steel) 50%, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.header-sub { margin: 20px auto 0; font-size: 16px; color: var(--muted); font-weight: 400; line-height: 1.7; max-width: 600px; }

/* the 4 badges: same 2x2 grid as the project pages, but they are links */
.badge-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 460px; margin: 26px auto 0; }
.badge { display: flex; align-items: center; justify-content: center; height: 38px; font-family: var(--mono); font-size: 12px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 2px; color: var(--primary2); background: rgba(52, 225, 255, 0.06); letter-spacing: 0.08em; text-align: center; white-space: nowrap; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s; }
.badge:hover { border-color: var(--primary); background: rgba(52, 225, 255, 0.12); box-shadow: 0 0 16px rgba(52, 225, 255, 0.25); transform: translateY(-1px); }
.badge:focus-visible { border-color: var(--primary); background: rgba(52, 225, 255, 0.12); box-shadow: 0 0 16px rgba(52, 225, 255, 0.25); }

/* quest loop: 3 equal boxes */
.loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 460px; margin: 26px auto 0; }
.loop-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 64px; background: var(--bg2); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 2px; }
.loop-item b { font-family: var(--display); font-size: 20px; font-weight: 900; line-height: 1; color: #fff; }
.loop-item small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); line-height: 1; white-space: nowrap; }
.loop-item:nth-child(1) b { color: var(--amber); } .loop-item:nth-child(2) b { color: var(--steel); } .loop-item:nth-child(3) b { color: var(--primary); }

/* year jump row: same idea as the project pages' week buttons */
.year-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 34px 0 10px; white-space: nowrap; }
.year-row { max-width: 460px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.year-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 56px; background: var(--bg2); border: 1px solid color-mix(in srgb, var(--wc) 40%, transparent); border-radius: 2px; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.year-btn small { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.year-btn b { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1; color: var(--wc); }
.year-btn:hover { border-color: var(--wc); transform: translateY(-1px); box-shadow: 0 0 14px color-mix(in srgb, var(--wc) 40%, transparent); }
.year-btn:focus-visible { border-color: var(--wc); box-shadow: 0 0 14px color-mix(in srgb, var(--wc) 40%, transparent); }
.year-btn.locked b { color: var(--muted); }
.year-btn.locked { border-style: dashed; border-color: rgba(255, 255, 255, 0.14); }

/* ---------- worlds (year sections) ---------- */
.world { margin-top: 64px; scroll-margin-top: 20px; }
.world-head { text-align: center; margin-bottom: 22px; }
.world-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--wc); white-space: nowrap; }
.world h2 { font-family: var(--display); font-size: clamp(26px, 5vw, 38px); font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.1; margin: 8px 0 12px; color: #fff; text-shadow: 0 0 26px color-mix(in srgb, var(--wc) 45%, transparent); }
.xp { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; max-width: 460px; margin: 0 auto; }
.xp-bar { height: 10px; background: var(--bg2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.xp-bar i { display: block; height: 100%; width: var(--pct); background: repeating-linear-gradient(90deg, var(--wc) 0 8px, color-mix(in srgb, var(--wc) 70%, #fff) 8px 10px); box-shadow: 0 0 12px var(--wc); }
.xp-text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; min-width: 128px; text-align: right; }
.xp-text b { color: var(--wc); font-weight: 400; }

/* ---------- project tiles: square, themed per project ---------- */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tiles > li { display: flex; }
.tile {
  --tp: var(--primary); --tp2: var(--primary2); --ts: var(--steel); --tb: var(--bg2); --tb2: var(--bg3); --tf: var(--display); --tw: 900;
  position: relative; flex: 1; aspect-ratio: 1 / 1; display: grid; grid-template-rows: 10px minmax(0, 1fr) auto auto; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, color-mix(in srgb, var(--tp) 18%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--tp) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--tp) 7%, transparent) 1px, transparent 1px),
    var(--tb);
  background-size: auto, 22px 22px, 22px 22px, auto;
  border: 1px solid color-mix(in srgb, var(--tp) 35%, transparent); border-radius: 4px;
  color: var(--text); text-decoration: none; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tile::before { content: ""; display: block; background: repeating-linear-gradient(90deg, var(--tp) 0 6px, var(--ts) 6px 12px); }
.tile-icon { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 10% 0 4%; }
.tile-icon svg { width: 40%; max-width: 92px; height: auto; aspect-ratio: 1 / 1; border-radius: 18%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--tp) 45%, transparent), 0 0 26px color-mix(in srgb, var(--tp) 35%, transparent); transition: transform 0.25s; }
.tile-name { display: flex; align-items: center; justify-content: center; height: 2.5em; padding: 0 10px; font-family: var(--tf); font-weight: var(--tw); font-size: clamp(12px, 1.55vw, 16px); line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em; color: var(--tp2); text-wrap: balance; }
.tile-boss { display: flex; align-items: center; justify-content: center; height: 34px; margin: 10px 10px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--tp); background: color-mix(in srgb, var(--tp) 10%, transparent); border: 1px solid color-mix(in srgb, var(--tp) 30%, transparent); border-radius: 2px; white-space: nowrap; overflow: hidden; }
a.tile:hover, a.tile:focus-visible { transform: translateY(-4px); border-color: var(--tp); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--tp) 55%, transparent), 0 0 0 1px var(--tp); outline: none; }
a.tile:hover .tile-icon svg, a.tile:focus-visible .tile-icon svg { transform: scale(1.06) rotate(-3deg); }

.tile.locked { --tp: #5d6678; --tp2: #8b97ad; --ts: #2a3142; --tb: #0b0f19; cursor: default; border-style: dashed; filter: saturate(0.2); }
.tile.locked .tile-icon svg { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); opacity: 0.8; }
.tile.locked .tile-name { color: #8b97ad; }

/* senior world: one locked panel */
.locked-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 220px; padding: 32px 20px; text-align: center; border: 1px dashed rgba(255, 255, 255, 0.16); border-radius: 4px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 14px, transparent 14px 28px), var(--bg2); }
.locked-panel svg { width: 52px; height: 52px; }
.locked-panel strong { font-family: var(--display); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: #c8d1e0; }
.locked-panel p { color: var(--muted); max-width: 440px; }

/* ---------- buttons ---------- */
.cta-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.cta-btn { width: 300px; max-width: 100%; height: var(--btn-h); display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--bg); background: linear-gradient(90deg, var(--primary), var(--primary2)); border: 1px solid var(--primary); border-radius: 2px; box-shadow: 0 0 18px rgba(52, 225, 255, 0.25); transition: box-shadow 0.2s, transform 0.2s; }
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(52, 225, 255, 0.45); }
.cta-btn:focus-visible { box-shadow: 0 0 28px rgba(52, 225, 255, 0.45); }
.cta-btn.ghost { color: var(--primary); background: transparent; }

/* ---------- footer ---------- */
.site-footer { margin-top: 80px; border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(7, 10, 18, 0.7); }
.site-footer .accent-banner { height: 4px; opacity: 0.7; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 36px 24px 40px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.footer-brand img { width: 30px; height: 30px; }
.footer-tag { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* footer badges: the same 2x2 badges as the headers */
.footer-badges { margin-top: 22px; }
.footer-copy { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* back to top: same as the project pages */
.to-top { position: fixed; right: 16px; bottom: 24px; z-index: 11; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--bg); background: var(--primary); border: 1px solid var(--primary); border-radius: 2px; cursor: pointer; box-shadow: 0 0 18px rgba(52, 225, 255, 0.4); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: 0 0 28px rgba(52, 225, 255, 0.6); }

/* themed scrollbars */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--primary) 55%, transparent) rgba(255, 255, 255, 0.04); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .tiles { gap: 12px; }
  .tile-name { font-size: 12px; padding: 0 6px; }
  .tile-boss { height: 28px; margin: 8px; font-size: 10px; letter-spacing: 0.02em; }
}
@media (max-width: 700px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile-name { font-size: clamp(12px, 3.2vw, 17px); padding: 0 10px; }
  .tile-boss { height: 34px; margin: 10px; font-size: 11px; letter-spacing: 0.06em; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px 32px; }
  .footer-inner { padding: 32px 16px 88px; }
  .header { padding-top: 44px; }
  .world { margin-top: 52px; }
}
@media (max-width: 480px) {
  .header-label, .world-label, .year-label, .footer-tag { letter-spacing: 0.14em; }
  .badge { font-size: 10px; letter-spacing: 0.04em; padding: 6px 4px; }
  .header-sub { font-size: 15px; }
  .tiles { gap: 10px; }
  .tile { grid-template-rows: 8px minmax(0, 1fr) auto auto; }
  .tile-name { font-size: 12px; padding: 0 6px; }
  .tile-boss { height: 28px; margin: 8px; font-size: 9.5px; letter-spacing: 0.02em; }
  .xp-text { min-width: 0; font-size: 10px; }
  .year-btn b { font-size: 18px; }
}
@media (max-width: 360px) {
  .tile-name { font-size: 11px; }
  .tile-boss { font-size: 9px; }
}

/* footer badges that open a popup (Hardware, Software) look and size exactly like the link badges */
button.badge { width: 100%; font-family: var(--mono); cursor: pointer; appearance: none; -webkit-appearance: none; }

/* ---------- Hardware and Software lists (assets/js/needs.js) ---------- */
html.needs-open { overflow: hidden; }
.needs-dlg { --yc: #34e1ff; margin: auto; padding: 0; width: min(860px, calc(100vw - 24px)); height: min(860px, calc(100dvh - 24px)); max-height: none; color: var(--text); background: linear-gradient(180deg, rgba(52, 225, 255, 0.06), transparent 30%), var(--bg2); border: 1px solid rgba(52, 225, 255, 0.35); border-radius: 6px; box-shadow: 0 0 60px rgba(52, 225, 255, 0.15); overflow: hidden; }
.needs-dlg::backdrop { background: rgba(3, 5, 10, 0.8); backdrop-filter: blur(4px); }
.needs-dlg::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, #ffb703, #ff2ee8, #34e1ff, #9be564); }
.nd-wrap { display: flex; flex-direction: column; height: calc(100% - 4px); }
.nd-head { position: relative; padding: 18px 64px 12px; text-align: center; }
.nd-head h2 { font-family: var(--display); font-size: clamp(20px, 4vw, 26px); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.nd-head p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.nd-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; color: var(--primary2); background: transparent; border: 1px solid var(--border); border-radius: 3px; cursor: pointer; }
.nd-x:hover, .nd-x:focus-visible { border-color: var(--primary); box-shadow: 0 0 12px rgba(52, 225, 255, 0.3); outline: none; }
.nd-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 4px 20px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nd-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(460px, 100%); }
.nd-tab { height: 40px; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yc); background: color-mix(in srgb, var(--yc) 6%, transparent); border: 1px solid color-mix(in srgb, var(--yc) 35%, transparent); border-radius: 3px; cursor: pointer; white-space: nowrap; }
.nd-tab[aria-selected="true"] { color: var(--bg); background: var(--yc); border-color: var(--yc); box-shadow: 0 0 16px color-mix(in srgb, var(--yc) 45%, transparent); }
.nd-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nd-filter { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text); cursor: pointer; white-space: nowrap; }
.nd-filter input { width: 18px; height: 18px; accent-color: #ff2ee8; }
.nd-body { flex: 1; overflow-y: auto; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.nd-body:focus-visible { outline: none; }
.nd-every { padding: 10px 14px; border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: 4px; }
.nd-every h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.nd-card { border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); border-left: 4px solid var(--pc); border-radius: 4px; background: color-mix(in srgb, var(--pc) 4%, rgba(255, 255, 255, 0.02)); padding: 12px 14px; }
.nd-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.nd-icon { width: 30px; height: 30px; flex: none; }
.nd-icon svg { width: 100%; height: 100%; display: block; border-radius: 4px; }
.nd-card h3 { flex: 1; min-width: 0; font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pc); }
.nd-open { flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nd-open:hover, .nd-open:focus-visible { color: var(--pc); }
.nd-body ul { list-style: none; margin: 0; padding: 0; }
.nd-item { display: grid; grid-template-columns: 150px 1fr; align-items: start; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px; line-height: 1.45; }
.nd-item:first-child { border-top: 0; }
.nd-item b { color: #fff; font-weight: 600; }
.nd-item b a { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, 0.35); }
.nd-item b a:hover, .nd-item b a:focus-visible { color: var(--primary); border-color: var(--primary); }
.nd-item small { display: block; font-size: 13px; color: var(--muted); }
.nd-item small.nd-login { color: #ffd447; }
.nd-qty { justify-self: start; min-width: 52px; padding: 2px 8px; text-align: center; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--bg); background: var(--yc); border-radius: 3px; }
.nd-qty.none { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.nd-type { justify-self: start; padding: 2px 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; white-space: nowrap; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.15); color: var(--text); }
.nd-type.t-installed { color: #ff9cf3; border-color: rgba(255, 46, 232, 0.6); background: rgba(255, 46, 232, 0.12); }
.nd-type.t-web { color: #8ff0ff; border-color: rgba(52, 225, 255, 0.4); }
.nd-type.t-page { color: #b7f58f; border-color: rgba(155, 229, 100, 0.45); }
.nd-type.t-windows { color: #c9d4e8; }
.nd-type.t-network { color: #ffd447; border-color: rgba(255, 198, 26, 0.45); }
.nd-empty { color: #9be564; font-size: 14px; }
.nd-empty.big { text-align: center; padding: 30px 10px; }
.nd-foot { padding: 10px 20px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-align: center; color: var(--muted); border-top: 1px solid rgba(255, 255, 255, 0.08); }
@media (max-width: 600px) {
  .nd-head { padding: 16px 56px 10px 16px; text-align: left; }
  .nd-head p { font-size: 13px; }
  .nd-bar { padding: 4px 12px 12px; }
  .nd-tab { font-size: 11px; letter-spacing: 0.06em; }
  .nd-body { padding: 12px; }
  .nd-item { grid-template-columns: 1fr; gap: 4px; }
  .nd-card header .nd-open { font-size: 10px; }
  .nd-qty.none { display: none; }
}
/* every badge in a list is the same size and sits in its own column, clear of the text beside it */
.nd-item.hw { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.nd-item.sw { grid-template-columns: 188px minmax(0, 1fr); gap: 14px; }
.nd-qty, .nd-type { box-sizing: border-box; width: 100%; justify-self: stretch; display: flex; align-items: center; justify-content: center; gap: 6px; height: 24px; padding: 0 6px; overflow: hidden; white-space: nowrap; text-align: center; }
.nd-qty { min-width: 0; }
@media (max-width: 600px) {
  .nd-item.hw, .nd-item.sw { grid-template-columns: 1fr; gap: 6px; }
  .nd-qty { width: 76px; justify-self: start; }
  .nd-type { width: 188px; justify-self: start; }
}
