* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding: 24px;
  color: #111;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

h1,
h2,
h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

h2 {
  margin-top: 8px;
}

section {
  background: white;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 8px;
}

p {
  margin-top: 0;
  line-height: 1.4;
}

small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #555;
}

.logo-wrap {
  text-align: center;
  margin: 0 0 20px 0;
}

.logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: inline-block;
}
.planner-top-grid {
  grid-template-columns: repeat(2, minmax(220px, 320px));
  justify-content: center;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.form-group,
.field-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

input,
select,
button {
  font-size: 14px;
  border-radius: 6px;
}

input,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  background: white;
}

button {
  margin-top: 12px;
  padding: 10px 16px;
  border: none;
  background: #1f7aec;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button:hover {
  background: #155fcc;
}

#results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-card {
  background: #fafafa;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.rod-line,
.utility-result {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  line-height: 1.45;
}

.rod-line:last-child,
.utility-result:last-child {
  border-bottom: none;
}

.pass {
  color: green;
  font-weight: bold;
}

.fail {
  color: red;
  font-weight: bold;
}

.form-errors {
  margin-top: 12px;
}

.error-box {
  background: #ffeaea;
  border: 1px solid #ffb3b3;
  color: #a30000;
  padding: 12px;
  border-radius: 8px;
}

.error-box ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

/* ===== BRAND HUB ===== */

.top-hub {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.brand-hub {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 14px;
  padding: 30px 24px 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.brand-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.brand-logo img {
  display: block;
  max-width: 300px;
  width: 100%;
  height: auto;
}

.brand-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0)
  );
  margin: 0 auto 20px;
}

.brand-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-actions button {
  width: 100%;
  margin-top: 0;
  min-height: 48px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}
.brand-actions .language-select {
  width: 100%;
  margin-top: 0;
  min-height: 48px;
  border: 1px solid #cfd7e3;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}

.brand-actions .language-select:focus {
  outline: none;
  border-color: #2f7ae5;
  box-shadow: 0 0 0 3px rgba(47, 122, 229, 0.15);
}
.primary-btn {
  background: #2f7ae5;
  color: white;
  border: none;
}

.primary-btn:hover {
  background: #2568c7;
}

.secondary-btn {
  background: white;
  color: #1f2d3d;
  border: 1px solid #cfd7e3;
}

.secondary-btn:hover {
  background: #f4f7fb;
  color: #1f2d3d;
  border-color: #bfc9d8;
}

/* ===== UTILITY ROWS ===== */

.utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  align-items: flex-start;
}

.utility-row > .field-group {
  flex: 1 1 160px;
  min-width: 160px;
}

.utility-legacy-fields,
.utility-advanced-fields {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-legacy-fields .field-group,
.utility-advanced-fields .field-group {
  flex: 1 1 180px;
  min-width: 180px;
}

.utility-target-tolerance-wrap {
  max-width: 220px;
}

.checkbox-group {
  flex: 0 0 auto;
  min-width: 100px;
  justify-content: flex-start;
  align-items: flex-start;
}

.checkbox-group label {
  margin-bottom: 6px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
}

.remove-utility-btn,
.remove-target-btn {
  margin-top: 24px;
}

.utility-row + .utility-row,
.target-row + .target-row {
  margin-top: 16px;
}

/* ===== NEW UTILITY CARD STYLE ===== */

.utility-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.utility-title {
  margin-bottom: 14px;
}

/* ===== TARGET ROWS ===== */

.target-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

/* ===== RESULTS HELPERS ===== */

.results {
  margin-top: 20px;
}

/* ===== MOBILE ===== */

@media (max-width: 700px) {
  body {
    padding: 12px;
  }

  .container {
    padding: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
.planner-top-grid {
  grid-template-columns: 1fr;
}
  .utility-row,
  .target-row {
    display: flex;
    flex-direction: column;
  }

  .utility-row > .field-group,
  .utility-legacy-fields .field-group,
  .utility-advanced-fields .field-group {
    min-width: 100%;
  }

  .remove-utility-btn,
  .remove-target-btn {
    margin-top: 8px;
  }

  .brand-hub {
    padding: 22px 18px 20px;
  }

  .brand-logo img {
    max-width: 260px;
  }
  @media (max-width: 700px) {

  .copilot-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }

  .copilot-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .copilot-brand-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .copilot-brand-row img.bw-logo {
    height: 52px;
    max-width: 100px;
  }

  .copilot-brand-row img.cp-logo {
    height: 46px;
    max-width: 52px;
  }

  .copilot-plus {
    font-size: 28px;
  }

  .copilot-title {
    font-size: 16px;
  }

  .copilot-subtitle {
    font-size: 13px;
  }

  .copilot-switch {
    margin: 0 auto;
  }

  
}
}
/* ===== Disclaimer Block ===== */

.full-width {
  grid-column: 1 / -1;
}

.disclaimer-block {
  margin-bottom: 14px;
  max-width: 700px;
}

.disclaimer-heading {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.disclaimer-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

#disclaimerCheck {
  width: 20px;
  height: 20px;
  margin: 2px 0 0 0;
  cursor: pointer;
  flex-shrink: 0;
}
.terms-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}
.rod-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fafafa;
}

.rod-header {
  cursor: pointer;
  padding: 10px 12px;
  background: #f0f0f0;
  font-weight: 600;
  line-height: 1.4;
}

.rod-header:hover {
  background: #e8e8e8;
}

.rod-details {
  padding: 10px 12px;
  line-height: 1.5;
}
#enableBackreamLabel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

#enableBackream {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pdf-report {
  display: none;
}

.pdf-page {
  background: white;
  color: black;
  padding: 24px;
  page-break-after: always;
}

.pdf-page:last-child {
  page-break-after: auto;
}

.pdf-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.pdf-header h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
}

.pdf-header p,
.pdf-header-right p {
  margin: 4px 0;
  font-size: 13px;
}

.pdf-section {
  margin-bottom: 24px;
}

.pdf-section h2 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.pdf-table th,
.pdf-table td {
  border: 1px solid #cfcfcf;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.pdf-table th {
  background: #f2f2f2;
  font-weight: 700;
}

.pdf-summary-box {
  border: 1px solid #cfcfcf;
  padding: 10px 12px;
  font-size: 13px;
}

.pdf-rod-table {
  font-size: 10px;
}

.pdf-footer {
  margin-top: 24px;
  font-size: 11px;
  color: #444;
}

@media print {
  body * {
    visibility: hidden;
  }

  #pdfReport,
  #pdfReport * {
    visibility: visible;
  }

  #pdfReport {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  body {
    margin: 0;
    background: white;
  }
}
.rod-summary-table th:nth-child(4),
.rod-summary-table td:nth-child(4) {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
}

.actual-pitch-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 120px;
  margin-left: 0;
}

.actual-sign-toggle {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
}

.actual-pitch-input {
  flex: 0 0 64px;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  box-sizing: border-box;
  text-align: center;
}

.actual-pitch-saved {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #1f7a1f;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
}

.actual-pitch-saved.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.actual-pitch-input.saved {
  background: #e2e6ea;
  font-weight: 700;
  border-color: #b8c2cc;
}
input.filled-field,
select.filled-field,
textarea.filled-field {
  background: #415a7c65;
  color: #070606;
  font-weight: 700;
  border: 1px solid #1f2937;
}

input.filled-field::placeholder,
textarea.filled-field::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

input.filled-field:focus,
select.filled-field:focus,
textarea.filled-field:focus {
  outline: none;
}
.utility-rod-row {
  background:#ffe5e5;
}
.setup-rod-row {
  background: #f3f4f6;
}

.setup-rod-row td {
  color: #475569;
  font-weight: 600;
}

.utility-rod-row td {
  color:#900;
  font-weight:600;
}

.utility-rod-card {
  border:2px solid #cc0000;
  background:#fff5f5;
}
#mode,
#inputReference {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
}
.target-pitch-tolerance-help {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}
.warning-text {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.warning-text.caution {
  color: #b45309;
}

.warning-text.danger {
  color: #b91c1c;
}

.override-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.final-pitch-card {
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fafafa;
}

.final-pitch-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.final-pitch-toggle-label input {
  width: auto;
}

.final-pitch-inputs {
  margin-top: 10px;
}

.final-pitch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.optional-pitch-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}

@media (max-width: 700px) {
  .optional-pitch-row {
    grid-template-columns: 1fr;
  }
}
.machine-pitch-card {
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fafafa;
}

.machine-pitch-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.machine-pitch-toggle-label input {
  width: auto;
}

.machine-pitch-inputs {
  margin-top: 10px;
}

.machine-pitch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 700px) {
  .machine-pitch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .final-pitch-grid {
    grid-template-columns: 1fr;
  }
}
.copilot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 14px 0 18px;
  padding: 16px 18px;
  border: 2px solid #1f7aec;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #eef5ff);
  box-shadow: 0 6px 16px rgba(31, 122, 236, 0.12);
}

.copilot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.copilot-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.bw-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.copilot-plus {
  font-size: 28px;
  font-weight: 800;
  color: #1f3f73;
  line-height: 1;
}

.cp-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.copilot-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
  color: #102033;
}

.copilot-subtitle {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  line-height: 1.35;
}

.copilot-switch {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 36px;
  flex-shrink: 0;
}

.copilot-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.copilot-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: 0.2s;
}

.copilot-slider:before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.copilot-switch input:checked + .copilot-slider {
  background: #f97316;
}

.copilot-switch input:checked + .copilot-slider:before {
  transform: translateX(28px);
}
.copilot-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.copilot-brand-row img.bw-logo {
  height: 88px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.copilot-plus {
  font-size: 42px;
  font-weight: 900;
  color: #1f3f73;
  line-height: 1;
}

.copilot-brand-row img.cp-logo {
  height: 76px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  display: block;
}
.copilot-mini-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  color: #1f3f73;
  text-transform: uppercase;
  text-align: center;
  margin-top: 2px;
}
.cp-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.cp-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #1f3f73;
  line-height: 1;
}
.depth-profile-card {
  width: 100%;
  margin: -6px 0 16px;
  padding: 12px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fafafa;
}

.depth-profile-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
}

.depth-profile-toggle input {
  width: auto;
  margin: 0;
}

.depth-profile-options {
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.depth-profile-format {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.depth-profile-format label {
  font-size: 13px;
  font-weight: 700;
}

.depth-profile-format select {
  height: 38px;
  padding: 8px 10px;
}

#depthProfileHelp {
  margin-bottom: 4px;
  color: #475569;
}
.actual-sign-toggle {
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  background: #f97316;
  color: white;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.actual-sign-toggle:hover {
  background: #ea580c;
}

.actual-pitch-input::-webkit-outer-spin-button,
.actual-pitch-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.actual-pitch-input {
  appearance: textfield;
  -moz-appearance: textfield;
}
th.actual-header {
  text-align: left;
  padding-left: 8px;
}
/* ===== Copilot Working Overlay ===== */

.copilot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.copilot-overlay.show {
  display: flex;
}

.copilot-overlay-box {
  background: white;
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  max-width: 280px;
  width: 100%;
}

.copilot-overlay-box img {
  width: 72px;
  height: auto;
  margin-bottom: 14px;
  animation: spinCopilot 1.2s linear infinite;
}

.copilot-overlay-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.copilot-overlay-sub {
  margin-top: 6px;
  font-size: 14px;
  color: #64748b;
}

@keyframes spinCopilot {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.beta-notice {
  background: #fff8e1;
  border: 1px solid #f0c36d;
  color: #5c4300;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.feedback-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  margin-top: 18px;
}

.feedback-help {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}

.star-rating {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.star-btn {
  appearance: none;
  background: transparent !important;
  border: none !important;
  color: #a8a8a8;
  font-size: 34px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 1;
  box-shadow: none;
}

.star-btn.selected,
.star-btn:hover {
  color: #f5b301;
}

.feedback-notes {
  width: 100%;
  min-height: 90px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  resize: vertical;
  margin-bottom: 12px;
}

#submitPlanFeedbackBtn {
  width: 100%;
  border-radius: 8px;
  padding: 10px;
  font-weight: 700;
}

.feedback-message {
  margin-top: 10px;
  font-size: 14px;
}
.disclaimer-card,
.disclaimer-box,
#disclaimer {
  margin-top: 16px;
}
.copilot-col {
  border-left: 2px solid #9ca3af;
  padding-left: 12px;
}
.rod-summary-table td {
  vertical-align: middle;
}

.rod-summary-table td:last-child {
  vertical-align: middle;
}
.target-note {
  display: inline-block;
  color: #166534;
  font-weight: 700;
  background: #dcfce7;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 2px;
}
.rod-summary-table {
  width: auto;
  border-collapse: collapse;
}

.rod-summary-table th,
.rod-summary-table td {
  text-align: left;
  vertical-align: middle;
  padding: 4px 8px;
}

.rod-summary-table th:nth-child(7),
.rod-summary-table td:nth-child(7) {
  min-width: 260px;
  text-align: left;
}
.target-note {
  display: block;
  color: #166534;
  font-weight: 700;
  background: #dcfce7;
  padding: 4px 8px;
  border-radius: 4px;
  margin: 0;
  text-align: left;
}
.target-result-row {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.target-result-row:last-child {
  border-bottom: none;
}

.target-result-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.target-result-name {
  font-weight: 700;
  color: #111;
}

.target-result-pass {
  font-size: 12px;
  font-weight: 800;
  color: #166534;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 4px;
}

.target-result-details {
  font-size: 13px;
  color: #374151;
}
.notes-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.note-utility,
.note-target {
  display: block;
}

.target-note {
  position: static;
  top: auto;
}
.utility-rod-row .notes-cell {
  padding-top: 6px;
  padding-bottom: 6px;
}

.note-utility {
  line-height: 1.1;
}

.note-target {
  line-height: 1.1;
}
.setup-assist-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 14px 0 18px;
  padding: 16px 18px;
  border: 2px solid #1f7aec;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #eef5ff);
  box-shadow: 0 6px 16px rgba(31, 122, 236, 0.12);
}

.setup-assist-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.setup-assist-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.setup-assist-brand-row img.bw-logo {
  height: 88px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.setup-assist-plus {
  font-size: 42px;
  font-weight: 900;
  color: #1f3f73;
  line-height: 1;
}

.setup-assist-logo {
  height: 76px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  display: block;
}

.setup-assist-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.setup-assist-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f97316;
  line-height: 1;
}

.setup-assist-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
  color: #102033;
}

.setup-assist-subtitle {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  line-height: 1.35;
}

.setup-assist-switch {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 36px;
  flex-shrink: 0;
}

.setup-assist-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.setup-assist-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: 0.2s;
}

.setup-assist-slider:before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.setup-assist-switch input:checked + .setup-assist-slider {
  background: #f97316;
}

.setup-assist-switch input:checked + .setup-assist-slider:before {
  transform: translateX(28px);
}

.setup-assist-inputs {
  padding: 16px;
  margin: 0 0 18px;
  border-radius: 12px;
  border: 1px solid #dbe4f0;
  background: #ffffff;
}

.setup-assist-inputs h3 {
  margin-bottom: 6px;
}

.setup-assist-help {
  margin-bottom: 16px;
  color: #6b7280;
  line-height: 1.5;
}
.backream-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
}

.backream-toggle-label input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.backream-slider {
  position: relative;
  width: 54px;
  height: 30px;
  background: #cbd5e1;
  border-radius: 999px;
  transition: 0.2s;
  flex-shrink: 0;
}

.backream-slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.backream-toggle-label input:checked + .backream-slider {
  background: #f97316;
}

.backream-toggle-label input:checked + .backream-slider:before {
  transform: translateX(24px);
}
.rod-summary-table th:nth-child(4),
.rod-summary-table td:nth-child(4) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

th.actual-header {
  text-align: center;
  padding-left: 0;
}

.actual-pitch-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 112px;
  margin-left: 0;
}

.actual-sign-toggle {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
}

.actual-pitch-input {
  flex: 0 0 64px;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  box-sizing: border-box;
  text-align: center;
}
.optional-pitch-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.optional-pitch-row .machine-pitch-card,
.optional-pitch-row .final-pitch-card {
  grid-column: auto !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .optional-pitch-row {
    grid-template-columns: 1fr;
  }
}
.profile-depth-input {
  width: 76px;
  min-width: 76px;
  max-width: 76px;
  height: 38px;
  padding: 6px;
  text-align: center;
  box-sizing: border-box;
}

.profile-depth-ft-in-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  min-width: 140px;
}

.profile-depth-ft-input,
.profile-depth-in-input {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 38px;
  padding: 6px;
  text-align: center;
  box-sizing: border-box;
}

.profile-depth-ft-in-wrap span {
  font-size: 14px;
  white-space: nowrap;
}
.station-stack {
  white-space: normal;
  line-height: 1.2;
}

.station-stack span {
  display: block;
}
/* ===== Account Control Panel ===== */

.account-page {
  max-width: 1080px;
  margin: 32px auto 0;
}

.account-hero-card,
.account-card {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.account-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 22px;
}

.account-hero-card h1 {
  margin: 6px 0 8px;
  font-size: 2rem;
  line-height: 1.1;
}

.eyebrow {
  margin: 0;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted-text {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.account-status-pill {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  border: 1px solid #bbf7d0;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-card {
  padding: 22px;
}

.account-card-wide {
  grid-column: 1 / -1;
}

.account-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.account-card-header h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.account-info-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.account-info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.account-info-list div:last-child {
  border-bottom: 0;
}

.account-info-list span {
  color: #64748b;
}

.account-info-list strong {
  color: #0f172a;
}

.account-full-btn {
  width: 100%;
  justify-content: center;
}

.account-single-column {
  grid-template-columns: 1fr;
}

.account-message {
  margin-top: 12px;
}

.danger-btn {
  border: 1px solid #fecaca;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.danger-btn:hover {
  background: #fecaca;
}

@media (max-width: 800px) {
  .account-page {
    margin-top: 20px;
  }

  .account-hero-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }
}
.saved-plan-toolbar {
  margin-bottom: 16px;
}

.saved-plan-toolbar input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  box-sizing: border-box;
}

.account-saved-plans-list {
  display: grid;
  gap: 10px;
}

.empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 18px;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
}
.account-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}

.account-plan-row h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.account-plan-row p {
  margin: 0 0 4px;
  color: #475569;
}

.account-plan-row small {
  color: #64748b;
}

.account-plan-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .account-plan-row {
    align-items: stretch;
    flex-direction: column;
  }

  .account-plan-actions {
    justify-content: flex-start;
  }
}
.account-stack-btn {
  margin-top: 10px;
}
.seat-invite-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.seat-invite-row .secondary-btn {
  min-height: 42px;
  white-space: nowrap;
}

.seat-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.seat-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.seat-table th,
.seat-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}

.seat-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seat-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 700px) {
  .seat-invite-row {
    grid-template-columns: 1fr;
  }
}
/* ===== Mobile Copilot + Setup Assist Card Fix ===== */
@media (max-width: 700px) {
  .copilot-card,
  .setup-assist-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 14px;
    margin: 14px 0 18px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .copilot-brand,
  .setup-assist-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .copilot-brand-row,
  .setup-assist-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .copilot-brand-row img.bw-logo,
  .setup-assist-brand-row img.bw-logo {
    height: 56px;
    max-width: 90px;
    width: auto;
  }

  .copilot-brand-row img.cp-logo,
  .setup-assist-logo {
    height: 50px;
    max-width: 58px;
    width: auto;
  }

  .copilot-plus,
  .setup-assist-plus {
    font-size: 30px;
    line-height: 1;
    flex: 0 0 auto;
  }

  .cp-stack,
  .setup-assist-stack {
    flex: 0 0 auto;
  }

  .copilot-title,
  .setup-assist-title {
    width: 100%;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
  }

  .copilot-subtitle,
  .setup-assist-subtitle {
    width: 100%;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    margin-top: 4px;
  }

  .copilot-switch,
  .setup-assist-switch {
    align-self: center;
    margin: 0;
    flex: 0 0 auto;
  }
}
/* ===== Mobile Rod Table Fix ===== */
@media (max-width: 700px) {
  .rod-summary-table {
    width: max-content;
    min-width: 620px;
  }

  .rod-summary-table-wrap,
  #rodSummary,
  #rodSummaryTableWrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rod-summary-table th,
  .rod-summary-table td {
    white-space: nowrap;
    padding: 6px 8px;
  }

  .rod-summary-table th:nth-child(7),
  .rod-summary-table td:nth-child(7) {
    min-width: 180px;
  }

  .station-stack {
    white-space: nowrap;
  }

  .station-stack span {
    display: inline;
  }

  .actual-pitch-wrap {
    width: 112px;
    min-width: 112px;
  }
}
/* ===== Mobile Rod Summary Table Scroll ===== */
@media (max-width: 700px) {
  .rod-summary-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
  }

  .rod-summary-table {
    width: max-content;
    min-width: 760px;
  }

  .rod-summary-table th,
  .rod-summary-table td {
    white-space: nowrap;
    padding: 6px 8px;
  }

  .station-stack {
    white-space: nowrap;
  }

  .station-stack span {
    display: inline;
  }

  .notes-cell {
    min-width: 180px;
    white-space: normal;
  }
}
/* ===== Mobile Actual Input Cleanup ===== */
@media (max-width: 700px) {
  .actual-sign-toggle {
    display: none;
  }

  .actual-pitch-wrap {
    width: 76px;
    min-width: 76px;
    gap: 0;
  }

  .actual-pitch-input {
    width: 76px;
    min-width: 76px;
    max-width: 76px;
  }
}
/* ===== Mobile Rod Table Scroll Polish ===== */
@media (max-width: 700px) {
  .rod-summary-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .rod-summary-table-wrap::after {
    content: "Swipe table sideways →";
    display: block;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
  }
}
/* ===== Center Actual Column On Mobile ===== */
@media (max-width: 700px) {
  .rod-summary-table th.actual-header {
    text-align: center;
  }

  .rod-summary-table th:nth-child(4),
  .rod-summary-table td:nth-child(4) {
    text-align: center;
    width: 112px;
    min-width: 112px;
    max-width: 112px;
  }

  .actual-pitch-wrap {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .actual-pitch-input {
    margin-left: auto;
    margin-right: auto;
  }
}
/* ===== Center Actual Column On Mobile ===== */
@media (max-width: 700px) {
  .rod-summary-table th.actual-header {
    text-align: center;
  }

  .rod-summary-table th:nth-child(4),
  .rod-summary-table td:nth-child(4) {
    text-align: center;
    width: 96px;
    min-width: 96px;
    max-width: 96px;
  }

  .actual-pitch-wrap {
    width: 96px;
    min-width: 96px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .actual-pitch-input {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* ===== Rod Details Header Cleanup ===== */
.rod-header-main {
  font-weight: 800;
  line-height: 1.25;
}

.rod-header-station {
  margin-top: 4px;
  font-weight: 700;
  color: #374151;
  line-height: 1.25;
}
/* ===== Non-blocking input warnings ===== */

.input-warning {
  display: none;
  margin-top: 6px;
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.input-warning.show {
  display: block;
}

input.unusual-input,
select.unusual-input,
textarea.unusual-input {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}
.remove-utility-btn {
  background: white;
  color: #1f2d3d;
  border: 1px solid #cfd7e3;
}

.remove-utility-btn:hover {
  background: #f4f7fb;
  color: #1f2d3d;
  border-color: #bfc9d8;
}
.remove-utility-btn,
.remove-target-btn {
  width: 164px;
  min-height: 48px;
  margin-top: 24px;
  padding: 10px 16px;
  border-radius: 6px;
  background: white;
  color: #1f2d3d;
  border: 1px solid #cfd7e3;
}

.remove-utility-btn:hover,
.remove-target-btn:hover {
  background: #f4f7fb;
  color: #1f2d3d;
  border-color: #bfc9d8;
}
.seat-invite-row {
  align-items: flex-end;
}
#inviteSeatBtn {
  margin-bottom: 18px;
}
/* ===== Planner / Documentation Tabs ===== */

.planner-tab-shell {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 8px 16px 0;
  border-bottom: 1px solid #cfd7e3;
}

.planner-tab {
  margin: 0;
  padding: 12px 18px;
  border: 1px solid #cfd7e3;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: #eef2f7;
  color: #334155;
  font-weight: 900;
  cursor: pointer;
}

.planner-tab + .planner-tab {
  margin-left: 6px;
}

.planner-tab:hover {
  background: #e2e8f0;
  color: #111827;
}

.planner-tab.active {
  background: #ffffff;
  color: #1f3f73;
  position: relative;
  top: 1px;
}

.planner-tab-panel {
  display: none;
}

.planner-tab-panel.active {
  display: block;
}

.documentation-section,
.files-section {
  padding-top: 20px;
}

.documentation-card,
.files-card {
  background: #fafafa;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.documentation-card-header,
.files-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.documentation-card-header h3,
.files-card-header h3 {
  margin-bottom: 4px;
}

.documentation-card-header p,
.files-card-header p {
  color: #475569;
  margin-bottom: 0;
}

.documentation-warning {
  margin: 12px 0 0;
  color: #92400e;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
}

.strike-documentation-card {
  border-color: #fecaca;
  background: #fff7f7;
}

.danger-btn {
  background: #dc2626;
}

.danger-btn:hover {
  background: #b91c1c;
}

.strike-help-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #7f1d1d;
}

.strike-help-box ul {
  margin: 8px 0 0 18px;
  padding: 0;
  line-height: 1.45;
}

.documentation-photo-grid,
.strike-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.strike-photo-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.empty-documentation-text {
  grid-column: 1 / -1;
  color: #64748b;
  font-weight: 700;
  margin: 0;
}

.documentation-privacy-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dbe4f0;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.files-upload-grid {
  margin-top: 14px;
}

.job-files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-file-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #ffffff;
}

.job-file-name {
  font-weight: 800;
  color: #111827;
}

.job-file-meta {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 700px) {
  .planner-tab-shell {
    margin-left: 0;
    margin-right: 0;
  }

  .planner-tab {
    flex: 1;
    padding: 11px 10px;
    font-size: 14px;
  }

  .documentation-card-header,
  .files-card-header {
    flex-direction: column;
  }

  .documentation-card-header button,
  .files-card-header button {
    width: 100%;
  }

  .job-file-row {
    grid-template-columns: 1fr;
  }
}
.job-file-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 10px;
}

.job-file-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-file-main span {
  font-size: 13px;
  color: #64748b;
}

.job-file-main small {
  color: #475569;
}
.job-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.job-file-actions button {
  margin-top: 0;
}

.danger-btn {
  background: #b91c1c;
  color: white;
}

.danger-btn:hover {
  background: #991b1b;
}

@media (max-width: 700px) {
  .job-file-row {
    flex-direction: column;
    align-items: stretch;
  }

  .job-file-actions {
    width: 100%;
  }

  .job-file-actions button {
    width: 100%;
  }
}
.job-photo-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 10px;
}

.strike-photo-card {
  border-color: #fecaca;
  background: #fff5f5;
}

.job-photo-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-photo-info span {
  font-size: 13px;
  color: #64748b;
}

.job-photo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.job-photo-actions button {
  margin-top: 0;
}

@media (max-width: 700px) {
  .job-photo-card {
    flex-direction: column;
    align-items: stretch;
  }

  .job-photo-actions {
    width: 100%;
  }

  .job-photo-actions button {
    width: 100%;
  }
}
.documentation-photo-grid,
.strike-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.job-photo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 0;
  overflow: hidden;
}

.strike-photo-card {
  border: 2px solid #dc2626;
  background: #fff5f5;
}

.job-photo-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
}

.job-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.job-photo-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 700;
}

.job-photo-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.job-photo-info strong {
  overflow-wrap: anywhere;
}

.job-photo-info span {
  font-size: 13px;
  color: #64748b;
}

.job-photo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.job-photo-actions button {
  flex: 1 1 80px;
  margin-top: 0;
}

@media (max-width: 700px) {
  .documentation-photo-grid,
  .strike-photo-grid {
    grid-template-columns: 1fr;
  }
}
.tab-save-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8fafc;
}

.tab-save-row button {
  margin-top: 0;
}

.tab-save-row small {
  margin-top: 0;
  color: #475569;
  font-weight: 600;
}

@media (max-width: 700px) {
  .tab-save-row {
    align-items: stretch;
  }

  .tab-save-row button {
    width: 100%;
  }
}
/* ===== Field Help Button ===== */

.field-help-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.field-help-row small {
  margin-top: 0;
}

.field-help-btn {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #1f7aec;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.field-help-btn:hover {
  background: #155fcc;
}

/* ===== Help Modal ===== */

.help-modal[hidden] {
  display: none;
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.help-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.help-modal-card h2 {
  padding-right: 36px;
  margin-bottom: 16px;
}

.help-modal-card p {
  margin-bottom: 12px;
}

.help-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #334155;
  font-size: 26px;
  line-height: 1;
}

.help-modal-close:hover {
  background: #eef2f7;
  color: #111827;
}

body.help-modal-open {
  overflow: hidden;
}
/* ===== Planner Support Link ===== */

.planner-support-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 10px 14px;
  background: #eef5ff;
  border: 1px solid #cfe0f7;
  border-radius: 8px;
  font-size: 14px;
  color: #334155;
}

.planner-support-link a {
  color: #1f7aec;
  font-weight: 700;
  text-decoration: none;
}

.planner-support-link a:hover {
  text-decoration: underline;
}