/* BiteShark Customer / Vendor / Admin Role Experience, Viewpoint Banner & Self-Service Modals */

.biteshark-viewpoint-banner {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.4;
  background: #17382b;
  color: #fffaf0;
  border-bottom: 3px solid #f3c14f;
}

.biteshark-viewpoint-banner.is-act-on-behalf {
  background: #7f1d1d;
  border-bottom-color: #ff6b5f;
}

.biteshark-viewpoint-banner .vp-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.biteshark-viewpoint-banner .vp-banner-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  background: #fffaf0;
  color: #17382b;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.biteshark-viewpoint-banner .vp-banner-btn.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fffaf0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.profile-role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 6px;
}

.profile-role-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e6f0ec;
  color: #214b3b;
}

.profile-role-pill.is-admin {
  background: #f3c14f;
  color: #1b2420;
}

.profile-admin-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #214b3b !important;
  color: #fffaf0 !important;
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  margin: 4px 0;
}

.rx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(20, 30, 25, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rx-modal-backdrop[hidden] {
  display: none !important;
}

.rx-modal {
  background: #fffaf0;
  color: #1b2420;
  border: 1px solid #dfd7c5;
  border-radius: 18px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 24px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.rx-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rx-modal-head h2 {
  margin: 2px 0 0;
  font-size: 21px;
  color: #214b3b;
}

.rx-close {
  background: #efe9da;
  border: 1px solid #d8cfbc;
  color: #1b2420;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.rx-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.rx-tab {
  border: 1px solid #d8cfbc;
  background: #fff;
  color: #4b5852;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.rx-tab.active {
  background: #214b3b;
  color: #fff;
  border-color: #214b3b;
}

.rx-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rx-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3d4a44;
}

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

.rx-form input, .rx-form select, .rx-form textarea {
  background: #fff;
  color: #1b2420;
  border: 1px solid #cfc6b4;
  border-radius: 9px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13.5px;
}

.rx-card {
  background: #fff;
  border: 1px solid #e2dac8;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.rx-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #1b2420;
}

.rx-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e6f0ec;
  color: #214b3b;
}

.rx-badge.warn { background: #fef3c7; color: #92400e; }
.rx-badge.danger { background: #fee2e2; color: #991b1b; }

.rx-msg {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  background: #e6f0ec;
  color: #214b3b;
}

.rx-msg.error {
  background: #fdebe9;
  color: #b42318;
}

.community-report-btn {
  background: transparent;
  border: 1px solid #dfd7c5;
  color: #5c6862;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11.5px;
  cursor: pointer;
}

.community-report-btn:hover {
  border-color: #b42318;
  color: #b42318;
}

.owner-restriction-alert {
  background: #fff8eb;
  border: 1px solid #f0c97d;
  color: #7a4900;
  border-radius: 12px;
  padding: 12px 15px;
  margin: 10px 0 14px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .rx-row-2 {
    grid-template-columns: 1fr;
  }
  .rx-modal {
    padding: 16px 14px;
    border-radius: 14px;
    max-height: 92vh;
  }
}

/* Support & Feedback Experience */
.rx-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #b42318;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.avatar.has-support-unread {
  position: relative;
}

.avatar.has-support-unread::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d92d20;
  border: 2px solid #fff9ed;
}

.owner-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fffaf0;
  color: #183a2d;
  border: 1.5px solid #214b3b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.owner-support-btn:hover {
  background: #e6f0ec;
}

.rx-discover-help-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 8px;
  padding: 11px 14px;
  border-radius: 14px;
  background: #f8f5ec;
  border: 1px solid #e2dac8;
  font-size: 13px;
  color: #2f3b35;
}

.rx-discover-help-bar button {
  width: auto;
  min-height: 38px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #214b3b;
  background: #ffffff;
  color: #183a2d;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.si-mode-switch,
.si-kind-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.si-pill-btn {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid #cfc6b4;
  background: #ffffff;
  color: #2f3b35;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.si-pill-btn[aria-pressed="true"],
.si-pill-btn.active {
  background: #214b3b;
  color: #fffaf0;
  border-color: #214b3b;
}

.si-safety-note {
  padding: 9px 11px;
  border-radius: 10px;
  background: #f8f5ec;
  border: 1px solid #e2dac8;
  color: #3d4a44;
  font-size: 12px;
  line-height: 1.45;
}

.si-safety-note.is-critical {
  background: #fff8eb;
  border-color: #e6c675;
  color: #6b4300;
}

.si-context-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f2f7f4;
  border: 1px solid #c6ddd2;
  font-size: 12.5px;
  color: #1e3b2e;
}

.si-context-box label.si-inline-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.si-context-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.si-ack-card {
  border: 1.5px solid #214b3b;
  background: #eef7f2;
  color: #15382a;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.si-ack-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #15382a;
}

.si-ack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.si-ticket-card {
  background: #ffffff;
  border: 1px solid #dfd7c5;
  border-radius: 13px;
  padding: 13px 14px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.si-ticket-card.has-unread {
  border-color: #214b3b;
  box-shadow: 0 0 0 2px rgba(33, 75, 59, 0.12);
}

.si-ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.si-ticket-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #214b3b;
  background: #e6f0ec;
  padding: 2px 7px;
  border-radius: 6px;
}

.si-known-issue-banner {
  margin: 8px 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #eef6ff;
  border: 1px solid #bdd7f6;
  color: #183b66;
  font-size: 12.5px;
  line-height: 1.45;
}

.si-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.si-tl-item {
  padding: 9px 11px;
  border-radius: 10px;
  background: #f8f5ec;
  border: 1px solid #e6decb;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.si-tl-item.is-team {
  background: #eef7f2;
  border-color: #bddbc9;
}

.si-tl-item.is-event {
  background: #fcfaf4;
  border-style: dashed;
  font-size: 12px;
  color: #46524c;
}

.si-reopen-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8eb;
  border: 1px solid #ecd093;
}

.si-incepted-vendor-banner,
.owner-support-vendor-pill {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #eef7f2;
  border: 1px solid #b8dbc8;
  color: #1a3f30;
  font-size: 13px;
  line-height: 1.4;
}

.owner-support-vendor-pill {
  margin: 0 0 10px;
  font-size: 12.5px;
}

.si-incepted-vendor-banner code,
.owner-support-vendor-pill code {
  background: #ffffff;
  border: 1px solid #c9e2d4;
  border-radius: 6px;
  padding: 1px 6px;
  color: #16382a;
  font-size: 12px;
}

/* =========================================================================
 * First-Visit Welcome, Vendor Introduction & Area Switcher
 * ========================================================================= */
.welcome-screen,
.vendor-intro-screen {
  padding: calc(var(--header, 68px) + 18px) 16px calc(var(--nav, 64px) + var(--safe, 0px) + 24px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 12% 16%, rgba(243, 193, 79, 0.22), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(33, 75, 59, 0.1), transparent 36%),
    #fff9ed;
}

.welcome-shell,
.vendor-intro-shell {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.welcome-card,
.vendor-intro-card {
  background: #ffffff;
  border: 1px solid #e6dcc8;
  border-radius: 24px;
  padding: 22px 22px;
  box-shadow: 0 12px 30px rgba(24, 58, 45, 0.08);
}

.welcome-card h1,
.vendor-intro-card h1 {
  margin: 6px 0 6px;
  font-size: clamp(22px, 3.8vw, 28px);
  line-height: 1.2;
  color: #183a2d;
}

#welcomeHeading:focus,
#welcomeHeading:focus-visible,
#vendorIntroHeading:focus,
#vendorIntroHeading:focus-visible {
  outline: none !important;
}

.welcome-lead,
.vendor-intro-lead {
  margin: 0 0 14px;
  color: #3f4b45;
  font-size: 14.5px;
  line-height: 1.45;
}

.welcome-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.welcome-path-btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 92px;
  padding: 16px 15px;
  border-radius: 18px;
  border: 2px solid #d9cfbc;
  background: #fdfbf6;
  color: #183a2d;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.12s ease;
}

.welcome-path-btn.is-customer {
  background: #f1f8f4;
  border-color: #9ec9b4;
}

.welcome-path-btn:hover {
  border-color: #214b3b;
  background: #ffffff;
}

.welcome-path-btn:focus-visible,
.welcome-secondary-actions button:focus-visible,
.welcome-signin-link:focus-visible,
.welcome-remember input:focus-visible,
.vendor-intro-shell button:focus-visible,
.vendor-intro-shell a:focus-visible,
.vendor-intro-shell input:focus-visible,
.vendor-intro-shell select:focus-visible,
.area-modal button:focus-visible,
.coarse-area-banner button:focus-visible {
  outline: 3px solid #214b3b;
  outline-offset: 2px;
}

.welcome-path-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.welcome-path-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.welcome-path-copy strong {
  font-size: 16.5px;
  line-height: 1.25;
  color: #16372a;
}

.welcome-path-copy span {
  font-size: 13.5px;
  line-height: 1.42;
  color: #3e4a44;
  font-weight: 500;
}

.welcome-path-arrow {
  font-size: 18px;
  font-weight: 700;
  color: #214b3b;
  align-self: center;
}

.welcome-remember {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: #f8f5ec;
  border: 1px solid #e4dbc8;
  margin-bottom: 16px;
  cursor: pointer;
}

.welcome-remember input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #214b3b;
}

.welcome-remember strong {
  display: block;
  font-size: 13.5px;
  color: #1c2621;
}

.welcome-remember small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: #45514b;
}

.welcome-remember small a {
  color: #184a38;
  font-weight: 600;
}

.welcome-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.welcome-signin-link {
  color: #184a38;
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  padding: 8px 4px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.welcome-feedback {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff8e6;
  border: 1px solid #e2c574;
  color: #4c3800;
  font-size: 13px;
}

.vendor-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.vi-remembered-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef7f2;
  border: 1px solid #b8dbc8;
  color: #1a3f30;
  font-size: 12px;
}

.vi-remembered-pill button {
  border: 0;
  background: transparent;
  color: #164331;
  font-weight: 700;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}

.vendor-intro-list {
  margin: 0 0 12px;
  padding-left: 20px;
  color: #2b3631;
  font-size: 13.5px;
  line-height: 1.45;
}

.vendor-intro-list li {
  margin-bottom: 5px;
}

.vendor-intro-governance {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8f5ec;
  border: 1px solid #dfd5c0;
  color: #2c3732;
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.vendor-intro-picker {
  padding: 11px 12px;
  border-radius: 12px;
  background: #fcfaf4;
  border: 1px solid #e3dac7;
  margin-bottom: 12px;
}

.vendor-intro-picker label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #23312b;
  margin-bottom: 8px;
}

.vendor-intro-picker-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

.vendor-intro-picker-row input,
.vendor-intro-picker-row select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #c9bfab;
  background: #ffffff;
  color: #1c2520;
  font-size: 14px;
}

.vendor-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.vendor-intro-actions button {
  flex: 1 1 210px;
  width: auto;
  margin: 0;
}

.welcome-secondary-actions button {
  width: auto;
  min-width: 140px;
  margin: 0;
}

.vendor-intro-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #ece3d2;
}

.vendor-intro-links a,
.vi-link-btn {
  color: #184a38;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: underline;
  background: transparent;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
}

.area-modal-copy {
  margin: 6px 0 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #434f49;
}

.area-locate-btn {
  width: 100%;
  margin-bottom: 12px;
}

.area-town-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.area-town-btn {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid #d5ccb9;
  background: #faf7ef;
  color: #23312b;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}

.area-town-btn.active {
  background: #214b3b;
  border-color: #214b3b;
  color: #ffffff;
}

.coarse-area-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #eef7f2;
  border: 1px solid #b8dbc8;
  color: #193e2f;
  padding: 8px 11px;
  border-radius: 11px;
  margin-top: 6px;
}

.coarse-area-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.coarse-area-action {
  border: 1px solid #96c4ae;
  background: #ffffff;
  color: #173d2e;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .welcome-card,
  .vendor-intro-card {
    padding: 18px 15px;
    border-radius: 18px;
  }
  .welcome-paths,
  .vendor-intro-picker-row,
  .area-town-grid {
    grid-template-columns: 1fr;
  }
  .vendor-intro-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-modal,
  .rx-tab,
  .si-pill-btn,
  .owner-support-btn,
  .welcome-path-btn {
    transition: none !important;
    animation: none !important;
  }
}
