@font-face {
  font-family: "SamsungOne";
  src: url("fonts/SamsungOne-400.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SamsungOne";
  src: url("fonts/SamsungOne-700.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SamsungOne";
  src: url("fonts/SamsungOne-800.woff") format("woff");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SamsungSharpSans";
  src: url("fonts/SamsungSharpSans-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SamsungSharpSans";
  src: url("fonts/SamsungSharpSans-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SamsungSharpSans";
  src: url("fonts/SamsungSharpSans-Bold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --primary: #0032a0;
  --blue: #0077c8;
  --blue-hover: #0065aa;
  --accent: #00b3e3;
  --ink: #000;
  --body: #333;
  --muted: #747474;
  --line: #e5e5e5;
  --bg: #f7f7f7;
  --surface: #f0f0f0;
  --card: #fff;
  --danger: #d93b30;
  --font-body: "SamsungOne", BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-heading: "SamsungSharpSans", "SamsungOne", BlinkMacSystemFont,
                  "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --topbar-h: 58px;
}

@media (max-width: 680px) {
  :root { --topbar-h: 44px; }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;   /* no rubber-band bounce past top/bottom */
}

body {
  margin: 0;
  overscroll-behavior-y: none;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  line-height: 1.5;
  min-height: 100vh; /* dvh fallback below tracks the real mobile viewport */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------- header */
.topbar {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  min-height: var(--topbar-h);
}
.topbar-logo {
  height: 17px;
  display: block;
}
.topbar-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .92rem;
  color: var(--primary);
  letter-spacing: .01em;
}
.topbar-title-short { display: none; }

/* --------------------------------------------------------- auth / draft */
.topbar-auth {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  font-size: .78rem;
  color: var(--muted);
}
.draft-status { min-width: 80px; text-align: right; transition: opacity 1s ease; opacity: 1; }
.draft-status.saving { color: var(--muted); }
.draft-status.saved { color: var(--blue); }
.draft-status.error { color: var(--danger); }
.draft-status.fading { opacity: 0; }
.topbar-username { color: var(--body); font-weight: 700; }
.topbar-link {
  border: none;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.topbar-link:hover { color: var(--blue-hover); }
#logout-form { margin: 0; display: inline; }

@media (max-width: 680px) {
  .topbar-inner { padding: 10px 14px; gap: 10px; }
  .topbar-logo { height: 14px; flex-shrink: 0; }
  .topbar-auth { gap: 8px; font-size: .68rem; flex-shrink: 0; }
  .draft-status { min-width: 52px; }

  .topbar-title-full { display: none; }
  .topbar-title-short { display: inline; }
  .topbar-title {
    font-size: .76rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.login-main {
  max-width: 420px;
  margin: 60px auto 0;
  padding: 0 16px;
}
.login-card label { margin-top: 14px; }
.login-card #login-error { margin-top: 12px; }
.login-card .generate { width: 100%; margin-top: 18px; }

/* --------------------------------------------------------------- main */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  flex: 1 0 auto;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 20px 22px;
  margin-bottom: 20px;
}
.card h2 {
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--blue);
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--primary);
}
.card h3 {
  margin: 20px 0 12px;
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--body);
}
.card h3:first-of-type { margin-top: 0; }
/* --------------------------------------------------------------- grid */
.grid { display: grid; gap: 14px 18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.checks { grid-template-columns: repeat(3, 1fr); gap: 8px 14px; }

@media (max-width: 680px) {
  #jobsite-card .grid.two + .grid.two { margin-top: 14px; }
}

/* Above the mobile step-pager breakpoint, fold step1-fields/rest/rest2
   into one continuous grid instead of three separate step boxes. */
@media (min-width: 681px) {
  #jobsite-card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  #jobsite-card > h2 { grid-column: 1 / -1; }
  #step1-fields, #step1-rest, #step1-rest2 { display: contents; }
}

/* ------------------------------------------------------- system tabs */
.systems-eyebrow {
  margin: 4px 0 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tabs-a {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 22px;
  position: sticky;
  top: var(--topbar-h);
  z-index: 15;
  padding-top: 4px;
  background: var(--bg);
}
.tabs-a::-webkit-scrollbar { display: none; }
.tab-a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  border: none;
  background: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .86rem;
  color: var(--muted);
  padding: 8px 2px 10px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .3s linear, border-color .3s linear;
}
.tab-a:hover { color: var(--body); }
.tab-a.active {
  color: var(--primary);
  border-bottom-color: var(--blue);
}
/* Beats the generic input[type=text] rule via specificity, not source order. */
.tab-a .tab-a-name {
  width: auto;
  min-height: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: inherit;
  min-width: 2ch;
}
.tab-a.active .tab-a-name { cursor: text; }
.tab-a.active .tab-a-name:focus { outline: none; text-decoration: underline; }
.tab-a-edit, .tab-a-remove {
  display: none;
  border: none;
  background: none;
  padding: 0;
  font-size: .78rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.tab-a.active .tab-a-edit,
.tab-a.active .tab-a-remove { display: inline-flex; }
.tab-a-edit:hover { color: var(--blue); }
.tab-a-remove:hover { color: var(--danger); }
.tab-a-add {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .86rem;
  color: var(--blue);
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px 2px 10px;
  white-space: nowrap;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.tab-a-add:hover { color: var(--blue-hover); }

@media (max-width: 680px) {
  .grid.two { grid-template-columns: 1fr; }
  .grid.checks { grid-template-columns: 1fr; }
  #fill-sample-btn, #fill-required-btn { display: none; }
  .required-note { display: none; }
  main { padding-top: 12px; margin-left: 0; margin-right: 0; }
}

/* --------------------------------------------------- mobile step paging */
.step-gate-bar { display: none; }
.mobile-step-hidden { display: none !important; }

@media (max-width: 680px) {
  body.mobile-steps-active footer.page-foot { display: none; }
  body.mobile-steps-active main { flex-grow: 0; }
  body.mobile-steps-active { min-height: 0; }
  body.mobile-steps-active .step-gate-bar { display: contents; }

  body.mobile-steps-active #step1-back-btn {
    position: fixed;
    left: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 30;
  }
  body.mobile-steps-active #step1-next-btn {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 30;
  }

  .mobile-step-slide { transition: transform .15s ease-out; }
  .mobile-step-slide.slide-to-left,
  .mobile-step-slide.slide-from-left { transform: translateX(-100%); }
  .mobile-step-slide.slide-to-right,
  .mobile-step-slide.slide-from-right { transform: translateX(100%); }
  .mobile-step-height-anim { transition: height .15s ease-out; }
}

.step-arrow-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  transition: background .3s linear;
  touch-action: manipulation; /* avoids double-tap-to-zoom on repeated taps */
}
.step-arrow-btn:hover { background: var(--blue-hover); }
.step-arrow-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.step-arrow-btn.is-hidden { display: none; }

/* -------------------------------------------------------------- inputs */
label[hidden] { display: none; }
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.1px;
}
input[type="text"], input[type="date"], input[type="file"], input[type="password"], textarea, select {
  font: inherit;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  width: 100%;
  min-height: 42px;
  transition: border-color .3s linear;
}
textarea { resize: vertical; }
.autosize { resize: none; overflow: hidden; }

@media (max-width: 680px) {
  /* 16px avoids iOS Safari's auto-zoom-on-focus below that threshold. */
  input[type="text"], input[type="date"], input[type="file"],
  input[type="password"], textarea, select {
    font-size: 16px;
  }
}

.date-pair, .field-pair { display: contents; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 .2rem rgba(17, 158, 219, .25);
}

/* checkboxes */
.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--body);
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background .3s linear;
}
.check:hover { background: var(--bg); }
.check input {
  width: 19px; height: 19px;
  min-height: 0;
  accent-color: var(--blue);
  flex-shrink: 0;
  margin: 0;
}

/* No align-self: start - needs the same bottom-anchoring as its row
   neighbors so it stays level once they wrap to multiple lines. */
.field-checkbox-input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.field-checkbox-input input[type="checkbox"] {
  width: 19px; height: 19px;
  min-height: 0;
  accent-color: var(--blue);
  margin: 0;
}

/* --------------------------------------------------- repeatable rows */
.rep-row {
  display: grid;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}
.rep-row .remove {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--danger);
  border-radius: 4px;
  min-height: 42px;
  width: 42px;
  font-size: 1.05rem;
  cursor: pointer;
  justify-self: end;
  transition: color .3s linear, background .3s linear, border .3s linear;
  touch-action: manipulation;
}
.rep-row .remove:hover { background: #fceceb; border-color: var(--danger); }

.rep-row.cols-model  { grid-template-columns: 1fr 1fr auto; }
.rep-row.cols-photo  { grid-template-columns: 1fr auto; }
.rep-row.cols-error  { grid-template-columns: 150px 1fr 100px 100px auto; }
.rep-row [readonly] {
  background: var(--bg);
  color: #666;
  cursor: not-allowed;
}
.rep-row.cols-fw     { grid-template-columns: 1fr 1fr auto; }
.rep-row.cols-obs    { grid-template-columns: 1fr 1fr auto; }
.rep-row.cols-accessory { grid-template-columns: 1.4fr 1fr 1fr auto; }

@media (max-width: 680px) {
  .rep-row.cols-error,
  .rep-row.cols-fw,
  .rep-row.cols-obs,
  .rep-row.cols-model,
  .rep-row.cols-photo,
  .rep-row.cols-accessory {
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
  }
  .rep-row.cols-error label:nth-child(2),
  .rep-row.cols-error label:nth-child(3),
  .rep-row.cols-error label:nth-child(4),
  .rep-row.cols-obs label,
  .rep-row.cols-fw label,
  .rep-row.cols-model label,
  .rep-row.cols-photo label,
  .rep-row.cols-accessory label { grid-column: span 2; }
  .rep-row .remove { grid-column: span 2; width: 100%; }
}

/* samsunghvac.com button voice: uppercase, 700, 1.6px tracking, 8px radius */
.add-row {
  margin-top: 2px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: #fff;
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: .6875rem 1.25rem .5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color .3s linear, background .3s linear, border .3s linear;
}
.add-row:hover { color: #fff; background: var(--blue); }
.add-row:disabled {
  opacity: .45;
  cursor: not-allowed;
  color: var(--muted);
  background: #fff;
  border-color: var(--line);
}
[data-role="fw-outdoor-sub1-add"],
[data-role="fw-outdoor-sub2-add"] {
  margin-top: 16px;
}
/* .card prefix needed to outrank .card h3:first-of-type's margin-top: 0. */
.card [data-role="fw-outdoor-sub1"] h3,
.card [data-role="fw-outdoor-sub2"] h3 {
  margin-top: 26px;
  display: flex;
  align-items: center;
}

/* ---------------------------------------------------------- dip switch */
.switch-row { display: flex; align-items: flex-start; margin-bottom: 14px; }
.switch-row-fields { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; }
.dip-group { display: flex; flex-direction: column; }
.switch-label {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
  color: var(--primary);
}
.addr-row-address { display: flex; flex-direction: column; margin-right: 24px; }
/* Element+attribute selector needed to outrank the shared input[type=text] rule. */
input[type="text"].addr-row-address-input {
  width: 60px;
  text-align: center;
  background: var(--bg);
  color: #666;
  cursor: not-allowed;
}
.dip-remove {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--danger);
  border-radius: 4px;
  width: 18px;
  height: 18px;
  line-height: 1;
  font-size: .7rem;
  cursor: pointer;
  transition: color .3s linear, background .3s linear, border .3s linear;
}
.dip-remove:hover { background: #fceceb; border-color: var(--danger); }
.addressing-row-remove { margin-left: 12px; }
.addressing-row-remove-spacer { visibility: hidden; pointer-events: none; }
/* Sized to match .rep-row .remove, not .dip-remove's smaller 18x18px. */
.fw-sub-remove {
  margin-left: 10px;
  vertical-align: middle;
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
}
.dip-widget { display: inline-block; margin: 8px 24px 20px 4px; }
.dip-housing {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #222;
  padding: 6px;
  border-radius: 3px;
  width: 96px;
  height: 96px;
  box-sizing: border-box;
}
.dip-caption {
  display: flex; justify-content: space-between;
  font-size: .62rem; font-weight: 700; letter-spacing: .5px;
  color: #fff;
}
.dip-slots { display: flex; justify-content: center; align-items: center; gap: 4px; flex: 1; }
.dip-slot {
  position: relative; width: 16px; height: 100%; max-height: 46px;
  background: #ccc; border: 1px solid #000; cursor: pointer; display: block;
  touch-action: manipulation;
}
.dip-slot input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.dip-slot::after {
  content: ""; position: absolute; left: 2px; right: 2px; height: 44%;
  bottom: 2px; background: #777; transition: top .12s, bottom .12s, background .12s;
}
.dip-slot:has(input:checked)::after {
  top: 2px; bottom: auto; background: var(--primary);
}
.dip-numbers {
  display: flex; justify-content: space-around;
  font-size: .62rem; color: #fff;
}

/* --------------------------------------------------------- rotary selector */
.hint { font-size: .82rem; color: var(--muted); margin: -6px 0 10px; }
.file-note { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }

.photo-dropzone {
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 120px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  cursor: pointer;
  transition: border-color .3s linear, background .3s linear, color .3s linear;
}
.photo-dropzone:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.photo-dropzone-icon { font-size: 1.8rem; line-height: 1; }
.photo-dropzone-text { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.photo-dropzone-hint { font-size: .68rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.photo-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.photo-thumb {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 2px 0 6px;
  cursor: zoom-in;
}

.photo-progress {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin: -2px 0 6px;
}
.photo-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width .15s linear;
}
.photo-progress.indeterminate .photo-progress-bar {
  width: 40%;
  animation: photo-progress-indeterminate 1s ease-in-out infinite;
}
@keyframes photo-progress-indeterminate {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(350%); }
}

.photo-lightbox[hidden] { display: none; }
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
           max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.photo-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  cursor: zoom-out;
}
.photo-lightbox-close {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.photo-lightbox-close:hover { background: rgba(255, 255, 255, .3); }

.file-attached-status {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--blue);
  margin-top: 4px;
}
.rep-row > .file-attached-status {
  grid-column: 1 / -1;
  margin: -4px 0 4px;
}
.rep-row > .file-attached-status:empty { display: none; }

.photo-retry {
  grid-column: 1 / -1;
  margin: -2px 0 6px;
  border: 1px solid var(--danger);
  background: #fff;
  color: var(--danger);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  align-self: start;
  transition: color .3s linear, background .3s linear;
}
.photo-retry:hover { background: var(--danger); color: #fff; }
/* display: flex avoids margin collapsing between .switch-label and .ring-box. */
.ring-group { display: flex; flex-direction: column; max-width: 190px; margin: 0 24px 20px 0; }
.ring-box {
  width: 96px; height: 96px; box-sizing: border-box;
  margin: 8px auto 20px;
  border-radius: 3px;
  background: #222;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ring-widget {
  position: relative; width: 130px; height: 130px; flex-shrink: 0;
  transform: scale(0.73);
}
.ring-num {
  position: absolute; left: var(--nx); top: var(--ny);
  transform: translate(-50%, -50%); font-size: 1.25rem; font-weight: 700;
  color: #fff; cursor: pointer;
  transition: color .2s linear;
  touch-action: manipulation;
}
.ring-num:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ring-num.active {
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
}
.ring-knob {
  position: absolute; left: 65px; top: 65px; width: 42px; height: 42px;
  transform: translate(-50%, -50%) rotate(calc(var(--pos, 0) * 36deg));
  border-radius: 50%; border: none; background: #999;
  cursor: pointer; padding: 0;
  touch-action: manipulation;
}
.ring-knob::before {
  /* arrow tail/shaft, centered on the knob */
  content: ""; position: absolute; left: 50%; top: 16px;
  width: 5px; height: 23px;
  background: #000;
  transform: translateX(-50%);
}
.ring-knob::after {
  /* arrowhead */
  content: ""; position: absolute; top: 2px; left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-bottom: 14px solid #000;
}
.ring-knob:hover { filter: brightness(1.15); }
.ring-knob:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 680px) {
  .switch-row { flex-direction: column; align-items: center; }
  .addressing-row-remove { margin-left: 0; margin-top: 12px; }
  .switch-row-fields { justify-content: center; gap: 20px 16px; }
  .dip-widget { margin: 8px 0 20px; }
  .ring-group { margin: 0 0 20px; }
  .addr-row-address { flex-basis: 100%; margin-right: 0; align-items: center; }
  .dip-housing { width: 140px; height: 140px; padding: 9px; }
  .dip-slot { width: 23px; max-height: 67px; }
  .dip-caption, .dip-numbers { font-size: .9rem; }
  .ring-box { width: 140px; height: 140px; }
  .ring-widget { transform: scale(1.06); }
}

/* ------------------------------------------------------------- actions */
.actions { text-align: center; margin-top: 28px; }
.generate {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 1rem 1.5rem .8rem;
  cursor: pointer;
  width: 100%;
  max-width: 420px;
  transition: color .3s linear, background .3s linear, border .3s linear;
}
.generate:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.generate:disabled { opacity: .6; cursor: wait; }

.status { min-height: 1.2em; font-size: .9rem; margin-top: 12px; color: var(--muted); }
.status.error { color: var(--danger); font-weight: 700; }

/* ------------------------------------------------------- required fields */
.required-note {
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.req-star { color: var(--danger); }
input.invalid, textarea.invalid, select.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 .2rem rgba(217, 59, 48, .18);
}

/* samsunghvac.com footer: dark slab */
.page-foot {
  background: #000;
  color: #fff;
  text-align: center;
  font-size: .75rem;
  padding: 22px 16px;
}
.page-foot img { height: 14px; vertical-align: middle; margin-right: 10px; filter: invert(1); }
