﻿:root {
  --bg: #eef4ff;
  --paper: #ffffff;
  --ink: #0f2238;
  --muted: #3e5b78;
  --line: #c7d7ee;
  --steel: #0057b8;
  --steel-dark: #003f88;
  --accent: #f36f21;
  --brand-blue: #0057b8;
  --brand-blue-dark: #003f88;
  --brand-orange: #f36f21;
  --grad-main: linear-gradient(90deg, #f36f21 0%, #0057b8 100%);
  --grad-deep: linear-gradient(120deg, #d95f16 0%, #0057b8 100%);
  --grad-soft: linear-gradient(135deg, rgba(243, 111, 33, 0.08) 0%, rgba(0, 87, 184, 0.1) 100%);
  --warn-bg: #ffe9de;
  --warn-ink: #8e2b00;
  --ok-bg: #e8f6ee;
  --ok-ink: #14653d;
  --layout-max: 1180px;
  --header-wordmark-width: 300px;
}

body.theme-dark {
  --bg: #0d1624;
  --paper: #132237;
  --ink: #e3eefc;
  --muted: #9fb4cf;
  --line: #2b4568;
  --grad-soft: linear-gradient(135deg, rgba(243, 111, 33, 0.08) 0%, rgba(0, 87, 184, 0.16) 100%);
  --warn-bg: #3e2020;
  --warn-ink: #ffd6d6;
  --ok-bg: #1c3a2c;
  --ok-ink: #d0ffe1;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1200;
}

.confetti-piece {
  position: absolute;
  border-radius: 2px;
  opacity: 0.95;
  animation-name: confettiFall;
  animation-timing-function: cubic-bezier(0.16, 0.74, 0.21, 1);
  animation-fill-mode: forwards;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.confetti-layer.fade-out .confetti-piece {
  transition: opacity 0.5s ease;
  opacity: 0;
}

@keyframes confettiFall {
  0% {
    transform: translate3d(0, -8px, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(var(--confetti-drift, 0px), 110vh, 0) rotate(var(--confetti-rotate, 540deg));
  }
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(243, 111, 33, 0.08), transparent 45%),
    radial-gradient(circle at top right, rgba(0, 87, 184, 0.1), transparent 50%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 220px);
}

a {
  color: var(--brand-blue);
}

.top-strip {
  background: var(--grad-deep);
  border-bottom: 1px solid #012f66;
  color: #f1f7ff;
  font-size: 13px;
}

.top-strip a {
  color: #ffffff;
}

.top-strip .inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions form {
  margin: 0;
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 100px;
  text-align: center;
}

.menu-dropdown summary.menu-summary-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  padding: 0;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  isolation: isolate;

  transform: translateY(2px);
}

.menu-dropdown summary.menu-summary-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/brand/chemical-methods-dropdown-icon.png") center / contain no-repeat;
  z-index: 2;
}

.menu-dropdown summary::after {
  content: " \25BE";
  font-size: 12px;
}

.menu-dropdown summary.menu-summary-logo::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 42% 58% 47% 53% / 45% 51% 49% 55%;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 32%, rgba(243, 111, 33, 0.95) 0%, rgba(243, 111, 33, 0.55) 24%, rgba(243, 111, 33, 0.06) 56%, rgba(243, 111, 33, 0) 74%),
    radial-gradient(circle at 68% 66%, rgba(255, 170, 94, 0.82) 0%, rgba(255, 170, 94, 0.34) 34%, rgba(255, 170, 94, 0.04) 62%, rgba(255, 170, 94, 0) 78%),
    radial-gradient(circle at 50% 52%, rgba(243, 111, 33, 0.48) 0%, rgba(243, 111, 33, 0.18) 44%, rgba(243, 111, 33, 0) 72%);
  filter: blur(6px) saturate(1.15);
  opacity: 0.74;
  z-index: 1;
  transform-origin: 50% 50%;
  animation:
    cmiFlameOrbDrift 7.6s cubic-bezier(0.38, 0.08, 0.18, 0.98) infinite alternate,
    cmiFlameOrbMorph 5.4s ease-in-out infinite,
    cmiFlameOrbPulse 4.9s ease-in-out infinite;
  will-change: transform, filter, opacity, border-radius;
}

.menu-dropdown summary::-webkit-details-marker {
  display: none;
}

.menu-dropdown[open] summary {
  background: rgba(255, 255, 255, 0.2);
}

.menu-dropdown[open] summary.menu-summary-logo {
  background: transparent;
}

.menu-dropdown[open] summary.menu-summary-logo::after,
.menu-dropdown summary.menu-summary-logo:hover::after {
  opacity: 0.95;
}

@keyframes cmiFlameOrbDrift {
  0% {
    transform: translate(-1.6px, 1.2px) rotate(-1.2deg) scale(0.985);
  }
  25% {
    transform: translate(1.8px, -1.3px) rotate(1.6deg) scale(1.02);
  }
  50% {
    transform: translate(0.9px, 1.9px) rotate(-0.8deg) scale(1.01);
  }
  75% {
    transform: translate(-1.9px, -1.1px) rotate(1.1deg) scale(1.025);
  }
  100% {
    transform: translate(1.4px, 1.1px) rotate(-1.4deg) scale(0.99);
  }
}

@keyframes cmiFlameOrbMorph {
  0%,
  100% {
    border-radius: 42% 58% 47% 53% / 45% 51% 49% 55%;
  }
  33% {
    border-radius: 49% 51% 44% 56% / 52% 46% 54% 48%;
  }
  66% {
    border-radius: 46% 54% 52% 48% / 44% 56% 46% 54%;
  }
}

@keyframes cmiFlameOrbPulse {
  0%,
  100% {
    opacity: 0.58;
    filter: blur(5px) saturate(1.08);
  }
  20% {
    opacity: 0.86;
    filter: blur(8px) saturate(1.2);
  }
  48% {
    opacity: 0.68;
    filter: blur(6px) saturate(1.12);
  }
  74% {
    opacity: 0.94;
    filter: blur(9px) saturate(1.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-dropdown summary.menu-summary-logo::after {
    animation: none;
  }
}

.menu-dropdown-list {
  position: absolute;
  right: 0;
  top: calc(100% - 2px);
  min-width: 190px;
  background: #ffffff;
  border: 1px solid #b6cae8;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 38, 82, 0.14);
  padding: 8px;
  z-index: 40;
  display: grid;
  gap: 8px;
}

.menu-dropdown-list a {
  display: block;
  text-decoration: none;
  color: #154d8d;
  padding: 8px 10px;
  border-radius: 6px;
}

.menu-dropdown-list a:hover {
  background: #eef5ff;
}

.menu-meta {
  font-size: 12px;
  color: #355b80;
  padding: 4px 6px 8px;
  border-bottom: 1px solid #d7e5f8;
  margin-bottom: 4px;
}

.menu-dropdown-list form {
  margin: 0;
}

.menu-dropdown-list button {
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.customer-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding-right: 0;
}

.customer-header-row .menu-dropdown {
  position: relative;
  margin-right: 0;
}

.customer-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.customer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px;
  flex: 0 0 auto;
}

.logo-preview-wrap {
  margin-top: 10px;
}

.logo-preview {
  max-height: 72px;
  max-width: 220px;
  object-fit: contain;
  border: 1px solid #c7d7ee;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
}

.notice-bar {
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
  color: #15406f;
  font-size: 14px;
}

.notice-bar .inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 10px 16px;
}

.brand-header {
  background: var(--grad-main);
  color: #ffffff;
  border-bottom: 4px solid var(--brand-orange);
  position: relative;
}

.brand-header::after {
  content: "";
  position: absolute;
  left: min(calc(50% + (var(--layout-max) / 2) - 4px), calc(100% - 4px));
  top: 50%;
  transform: translateY(-50%);
  width: var(--header-wordmark-width);
  height: 74px;
  background-image: url("/brand/chemical-methods-wordmark.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  z-index: 1;
}

.brand-header .inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 20px 16px 24px;
  position: relative;
  z-index: 2;
}

.ribbon-tabs {
  background: linear-gradient(90deg, #004a9b 0%, #0a5fc7 100%);
  border-bottom: 1px solid #073d7b;
}

.ribbon-tabs .inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 8px;
}

.ribbon-tab {
  display: inline-block;
  color: #eaf3ff;
  text-decoration: none;
  padding: 12px 14px;
  border-bottom: 3px solid transparent;
}

.ribbon-tabs .inner .ribbon-tab:first-child {
  margin-left: -14px;
}

.ribbon-tab:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ribbon-tab.active {
  border-bottom-color: var(--brand-orange);
  background: rgba(243, 111, 33, 0.42);
}

.brand-title {
  margin: 0;
  letter-spacing: 0.3px;
  font-size: 30px;
}

.brand-tagline {
  margin: 6px 0 0;
  color: #d9ebff;
  font-size: 15px;
}

.container {
  max-width: var(--layout-max);
  margin: 26px auto 40px;
  padding: 0 16px;
}

.container.wide {
  max-width: var(--layout-max);
}

.panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 38, 82, 0.08);
  padding: 22px;
  margin-bottom: 16px;
}

body.theme-dark .panel {
  background: linear-gradient(180deg, #162842 0%, #132237 100%);
  border-color: #34537d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

body.theme-dark code {
  background: rgba(255, 255, 255, 0.12);
  color: #e3eefc;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body.theme-dark .customer-embed-panel {
  background: transparent;
  border: none;
  box-shadow: none;
}

h1,
h2 {
  margin-top: 0;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}

label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

input {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #b6cae8;
  border-radius: 6px;
  background: #fbfdff;
}

input[type="checkbox"] {
  width: auto;
  margin-top: 0;
}

select {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #b6cae8;
  border-radius: 6px;
  background: #fbfdff;
}

textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #b6cae8;
  border-radius: 6px;
  background: #fbfdff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  resize: vertical;
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  background: #0f1d31;
  color: #e3eefc;
  border-color: #3c5f8f;
}

button {
  border: none;
  border-radius: 6px;
  background: #f36f21;
  color: #ffffff;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}

button.secondary {
  background: #f36f21;
}

button.danger {
  background: #c62828;
}

button.btn-blue {
  background: #0057b8;
}

button.btn-blue:hover {
  background: #00489a;
}

.message {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.message.error {
  color: var(--warn-ink);
  background: var(--warn-bg);
  border: 1px solid #f4c8c4;
}

.message.success {
  color: var(--ok-ink);
  background: var(--ok-bg);
  border: 1px solid #bee3d0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-settings-group {
  border: 1px solid #c7d7ee;
  border-radius: 10px;
  padding: 12px;
  display: block;
  background: #f7fbff;
}

.collapsible-group {
  padding: 0;
  overflow: hidden;
}

.collapsible-summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  padding: 12px;
  background: rgba(0, 87, 184, 0.08);
  border-bottom: 1px solid #c7d7ee;
}

.collapsible-summary::-webkit-details-marker {
  display: none;
}

.page-settings-content {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 12px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-row input[type='checkbox'] {
  width: auto;
  margin: 0;
}

body.theme-dark .page-settings-group {
  background: #0f1d31;
  border-color: #2c5f9f;
}

body.theme-dark .collapsible-summary {
  background: rgba(0, 87, 184, 0.2);
  border-bottom-color: #2c5f9f;
}

.subuser-list {
  display: grid;
  gap: 10px;
}

.subuser-card {
  border: 1px solid #c7d7ee;
  border-radius: 10px;
  background: #f8fbff;
  overflow: hidden;
}

.subuser-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 87, 184, 0.05);
  border-bottom: 1px solid #c7d7ee;
}

.subuser-summary::-webkit-details-marker {
  display: none;
}

.subuser-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.subuser-content {
  padding: 12px;
}

.customer-login-edit-form {
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) minmax(180px, 1fr) 220px;
  align-items: end;
}

.customer-login-save-btn {
  margin: 0;
  height: 42px;
  align-self: end;
  width: 100%;
}

@media (max-width: 1200px) {
  .customer-login-edit-form {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .customer-login-save-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .customer-login-edit-form {
    grid-template-columns: 1fr;
  }
}

body.theme-dark .subuser-card {
  background: #0f1d31;
  border-color: #2c5f9f;
}

body.theme-dark .subuser-summary {
  background: rgba(0, 87, 184, 0.2);
  border-bottom-color: #2c5f9f;
}

.prefs-form {
  display: grid;
  gap: 8px;
}

.prefs-label {
  display: block;
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

.prefs-controls {
  display: grid;
  grid-template-columns: minmax(260px, 420px) auto;
  gap: 10px;
  align-items: center;
  justify-content: start;
}

.prefs-controls select {
  margin-top: 0;
  height: 42px;
}

.prefs-save {
  height: 42px;
  min-width: 180px;
  padding: 0 18px;
  margin: 0;
}

.form-submit {
  width: auto;
  min-width: 220px;
  justify-self: start;
  align-self: end;
}

.create-account-submit-wrap {
  align-self: start;
  padding-top: 30px;
}

.create-account-submit-wrap .form-submit {
  display: block;
  margin: 0;
}

.account-inline-submit {
  align-self: start;
  margin-top: 22px;
}

.settings-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.settings-item {
  border: 1px solid #c7d7ee;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

body.theme-dark .settings-item {
  background: #0f1d31;
  border-color: #3c5f8f;
}

.settings-item p {
  margin: 0 0 6px;
}

.create-account-panel {
  max-width: 100%;
  transition: max-width 160ms ease;
}

.create-account-panel.collapsed {
  max-width: 420px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
}

th {
  color: #1e4f87;
}

body.theme-dark th {
  color: #9fc6ff;
}

code {
  background: #eaf2ff;
  border-radius: 4px;
  padding: 2px 6px;
}

.muted {
  color: var(--muted);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-controls {
  flex-wrap: nowrap;
}

.inline-controls select {
  width: auto;
  min-width: 170px;
}

.action-row form {
  margin: 0;
}

.search-row {
  align-items: stretch;
}

.search-row .smart-search {
  display: flex;
  align-items: stretch;
}

.search-row .smart-search input {
  height: 100%;
  min-height: 42px;
  margin-top: 0;
}

.search-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  height: 42px;
  margin: 0;
}

.search-row .search-action-btn {
  align-self: stretch;
}

.link-btn.search-action-btn {
  display: inline-flex;
}

.customer-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(4, 14, 28, 0);
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms ease, background-color 380ms ease;
}

.customer-lightbox.hidden {
  display: grid;
  opacity: 0;
  pointer-events: none;
  background: rgba(4, 14, 28, 0);
}

.customer-lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
  background: rgba(4, 14, 28, 0.58);
}

.customer-lightbox.is-closing {
  opacity: 0;
  pointer-events: none;
  background: rgba(4, 14, 28, 0);
}

.customer-lightbox-card {
  position: relative;
  width: min(1100px, 94vw);
  max-height: min(88vh, 980px);
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  padding: clamp(14px, 2.2vw, 20px);
  border: 8px solid transparent;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, rgba(243, 111, 33, 0.65), rgba(0, 87, 184, 0.65));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transform: translateY(14px) scale(0.985);
  opacity: 0.92;
  transition: transform 340ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 300ms ease;
}

.customer-lightbox.is-visible .customer-lightbox-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.customer-lightbox.is-closing .customer-lightbox-card {
  transform: translateY(10px) scale(0.99);
  opacity: 0.9;
}

body.theme-dark .customer-lightbox-card {
  color: #e8f1ff;
  background-image:
    linear-gradient(#0f1d31, #0f1d31),
    linear-gradient(135deg, rgba(243, 111, 33, 0.65), rgba(0, 87, 184, 0.65));
}

.customer-lightbox-body {
  margin-top: 10px;
  max-width: 100%;
  overflow: hidden;
}

.customer-lightbox-body iframe,
.customer-lightbox-body video,
.customer-lightbox-body img,
.customer-lightbox-body object,
.customer-lightbox-body embed {
  max-width: 100% !important;
}

.customer-lightbox-body iframe {
  width: 100% !important;
  min-height: 420px;
  border: 0;
}

.customer-lightbox-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  .customer-lightbox,
  .customer-lightbox-card {
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .customer-lightbox {
    padding: 10px;
    place-items: center;
  }

  .customer-lightbox-card {
    width: 100%;
    max-height: 90vh;
    border-width: 6px;
    border-radius: 14px;
    padding: 12px;
  }

  .customer-lightbox-body {
  margin-top: 10px;
  max-width: 100%;
  overflow: hidden;
}

  .customer-lightbox-body iframe {
    min-height: 56vh;
  }
}

.customer-table-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.customer-table-controls select {
  width: auto;
  min-width: 140px;
}

.issue-filter-search-row {
  align-items: flex-end;
}

.issue-filter-search-row .search-action-btn {
  align-self: flex-start;
  margin-top: 30px;
}

.issue-filter-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  min-width: 260px;
  flex: 1 1 320px;
}

.issue-filter-field .smart-search {
  width: 100%;
}

.issue-filter-field .muted {
  font-weight: 400;
  font-size: 12px;
}

.issue-filter-controls {
  align-items: flex-end;
}

.issue-user-picker {
  width: 100%;
  position: relative;
}

.issue-user-picker summary {
  list-style: none;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #b6cae8;
  border-radius: 6px;
  background: #fbfdff;
  min-height: 42px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #4a6384;
}

.issue-user-picker summary::-webkit-details-marker {
  display: none;
}

.issue-user-picker[open] summary {
  border-color: #7ea7d8;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.issue-user-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  border: 1px solid #b6cae8;
  border-top: 0;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  background: #fbfdff;
  box-shadow: 0 8px 16px rgba(0, 38, 82, 0.12);
  padding: 8px;
}

.issue-user-picker-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.issue-user-picker-actions .link-btn {
  margin: 0;
  padding: 6px 10px;
}

.issue-user-picker-list {
  max-height: 180px;
  overflow: auto;
  border: 1px solid #d2deef;
  border-radius: 6px;
  padding: 6px;
  background: #fff;
}

.issue-user-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px;
  font-weight: 500;
}

.issue-user-option input[type='checkbox'] {
  width: auto;
  margin: 0;
}

body.theme-dark .issue-user-picker summary,
body.theme-dark .issue-user-picker-menu {
  background: #0f1d31;
  border-color: #3c5f8f;
  color: #dbe9ff;
}

body.theme-dark .issue-user-picker-list {
  background: #0c182a;
  border-color: #35557f;
}

.customer-preview-shell {
  position: relative;
  border: 1px solid #b7c9e3;
  border-radius: 18px;
  background: #d8e4f7;
  padding: 18px;
  margin-top: 4px;
}

.customer-preview-shell.desktop {
  max-width: 100%;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.38),
    0 12px 24px rgba(9, 36, 70, 0.16);
  padding: 14px 14px 22px;
}

.customer-preview-shell.desktop::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 8px;
  border-radius: 999px;
  background: rgba(18, 44, 78, 0.3);
}

.customer-preview-shell.desktop::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  width: 220px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(18, 44, 78, 0.05), rgba(18, 44, 78, 0.2), rgba(18, 44, 78, 0.05));
}

.monitor-frame {
  border-radius: 20px;
  border: 2px solid #8ea8cb;
  background: linear-gradient(180deg, #d3def0 0%, #bacce6 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 12px 24px rgba(9, 36, 70, 0.18);
  padding: 14px;
}

.monitor-screen {
  border-radius: 12px;
  border: 1px solid #7c97be;
  background: #ffffff;
  overflow: hidden;
  min-height: 0;
  max-height: none;
}

.desktop-preview-stage {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.desktop-preview-frame {
  border: 0;
  border-radius: 0;
  background: #fff;
  display: block;
}

.monitor-stand {
  width: 120px;
  height: 18px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #a5bad7 0%, #7894bc 100%);
}

.monitor-base {
  width: 260px;
  height: 12px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: rgba(16, 35, 59, 0.24);
}

.customer-preview-shell.mobile {
  width: min(440px, 100%);
  margin: 0 auto;
  border-radius: 46px;
  padding: 14px;
  background: linear-gradient(180deg, #202a39 0%, #0f1826 100%);
  border-color: #26384f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 2px rgba(0, 0, 0, 0.35),
    0 20px 36px rgba(7, 24, 49, 0.28);
}

.customer-preview-shell.mobile::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 26px;
  border-radius: 18px;
  background: #090d15;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.customer-preview-shell.mobile::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 146px;
  width: 4px;
  height: 72px;
  border-radius: 999px;
  background: rgba(160, 175, 195, 0.34);
}

.customer-preview-frame {
  width: 100%;
  min-height: 760px;
  border: 0;
  border-radius: 10px;
  background: #fff;
}

.customer-preview-shell.desktop .customer-preview-frame {
  min-height: clamp(700px, calc(100vh - 260px), 980px);
}

.customer-preview-shell.mobile .customer-preview-frame {
  min-height: 840px;
  border-radius: 34px;
}

body.theme-dark .customer-preview-shell {
  background: #10233b;
  border-color: #355581;
}

body.theme-dark .customer-preview-shell.desktop::before {
  background: rgba(198, 214, 235, 0.25);
}

body.theme-dark .monitor-frame {
  border-color: #375379;
  background: linear-gradient(180deg, #1b2d46 0%, #13253f 100%);
}

body.theme-dark .monitor-screen {
  border-radius: 12px;
  border: 1px solid #7c97be;
  background: #ffffff;
  overflow: hidden;
  min-height: 0;
  max-height: none;
}

body.theme-dark .customer-preview-shell.mobile::before {
  background: #070b12;
}

body.theme-dark .customer-preview-shell.mobile::after {
  background: rgba(198, 214, 235, 0.2);
}

body.customer-portal.preview-mode .brand-header::after {
  display: none;
}

@media (max-width: 900px) {
  body.customer-portal .brand-header::after {
    display: none;
  }
}

.customer-table-scroll {
  overflow: hidden;
  border-radius: 8px;
}

.customer-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
}

body.theme-dark .customer-table-scroll thead th {
  background: #132237;
}

.session-timeout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 16, 31, 0.55);
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 16px;
}

.session-timeout-modal {
  width: min(440px, 100%);
  background: #ffffff;
  border: 1px solid #b6cae8;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  padding: 18px;
}

.session-timeout-modal h3 {
  margin: 0 0 8px;
}

.session-timeout-modal p {
  margin: 0 0 14px;
  color: #2d4f73;
}

body.theme-dark .session-timeout-modal {
  background: #132237;
  border-color: #3c5f8f;
}

body.theme-dark .session-timeout-modal p {
  color: #bdd2ee;
}

.smart-search {
  position: relative;
  flex: 1 1 360px;
  min-width: 260px;
}

.smart-search input {
  width: 100%;
}

.smart-search-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  border: 1px solid #b6cae8;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 38, 82, 0.12);
  overflow: hidden;
  z-index: 50;
}

body.theme-dark .smart-search-list {
  background: #132237;
  border-color: #3c5f8f;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.smart-search-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  color: #163e69;
  padding: 10px 12px;
  border-bottom: 1px solid #e0eaf8;
  cursor: pointer;
}

body.theme-dark .smart-search-item {
  background: #132237;
  color: #d9e9ff;
  border-bottom-color: #2f4c71;
}

.smart-search-item:last-child {
  border-bottom: 0;
}

.smart-search-item.active,
.smart-search-item:hover {
  background: #eef5ff;
}

body.theme-dark .smart-search-item.active,
body.theme-dark .smart-search-item:hover {
  background: #1a3150;
}

.smart-search-title {
  display: block;
  font-weight: 700;
}

.smart-search-meta {
  display: block;
  margin-top: 2px;
  color: #4b6685;
  font-size: 12px;
}

body.theme-dark .smart-search-meta {
  color: #9fb4cf;
}

.link-btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 6px;
  background: #f36f21;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
}

.link-btn:hover {
  background: #d95f16;
}

.link-btn.danger {
  background: #c62828;
}

.link-btn.danger:hover {
  background: #a61f1f;
}

.link-btn.info {
  background: #0057b8;
}

.link-btn.info:hover {
  background: #00489a;
}

.container.customer-home-container {
  max-width: min(96vw, 1520px);
}

.customer-embed-panel {
  padding: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.customer-top-panel {
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
}

.customer-embed-panel .embed-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.customer-embed-panel .embed-wrap iframe {
  display: block;
  width: calc(100% + var(--embed-desktop-extra, 120px)) !important;
  margin-left: var(--embed-desktop-shift, -60px);
  max-width: none !important;
  min-width: 0 !important;
  height: min(var(--embed-desktop-height-vh, 82vh), var(--embed-desktop-height-max, 920px)) !important;
  min-height: var(--embed-desktop-min-height, 700px);
  border: 0;
  border-radius: 10px;
}

@media (max-width: 1200px) {
  .customer-embed-panel .embed-wrap iframe {
    width: calc(100% + var(--embed-medium-extra, 48px)) !important;
    margin-left: var(--embed-medium-shift, -24px);
  }
}

/* Give embedded tools enough vertical room on phone layouts to avoid nested inner scrolling. */
@media (max-width: 900px) {
  .customer-embed-panel .embed-wrap {
    overflow: hidden;
  }

  .customer-embed-panel .embed-wrap iframe {
    width: calc(100% + var(--embed-mobile-extra, 0px)) !important;
    margin-left: var(--embed-mobile-shift, 0px);
    min-width: 0 !important;
    height: min(var(--embed-mobile-height-vh, 78vh), var(--embed-mobile-height-max, 760px)) !important;
    min-height: var(--embed-mobile-min-height, 540px) !important;
  }

  body.customer-portal.preview-mode .customer-embed-panel .embed-wrap iframe {
    height: min(688px, calc(100vh - 210px)) !important;
    min-height: 520px !important;
  }
}

.icon-btn {
  border: 1px solid #9eb9df;
  background: #fff;
  color: #0f4b95;
  border-radius: 6px;
  padding: 6px 10px;
}

.graph-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 43, 92, 0.7);
  z-index: 1000;
  overflow: auto;
}

.graph-modal.hidden {
  display: none;
}

.graph-modal-content {
  min-height: 100vh;
  background: #eef4ff;
  padding: 18px;
}

body.theme-dark .graph-modal-content {
  background: #0f1b2d;
}

.graph-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto 12px;
}

.data-table-wrap {
  overflow: auto;
}

.issue-list-table {
  table-layout: fixed;
  width: 100%;
}

.issue-list-table th,
.issue-list-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.issue-list-table th:first-child,
.issue-list-table td:first-child,
.issue-list-table .issue-ticket-cell {
  overflow: visible;
  text-overflow: clip;
}

.issue-list-table .issue-ticket-cell code {
  display: inline-block;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: middle;
}

.issue-list-table .issue-actions-cell {
  overflow: hidden;
}

.issue-list-table .issue-actions-cell .action-row {
  flex-wrap: nowrap;
  gap: 6px;
}

.issue-list-table .issue-actions-cell .link-btn,
.issue-list-table .issue-actions-cell button {
  min-width: 64px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.tab-notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #cf2b2b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.issue-chat-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  width: 38px;
  height: 38px;
  border: 1px solid #b6cae8;
  border-radius: 8px;
  background: #fbfdff;
  color: #1a4f88;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  overflow: visible;
}

.issue-chat-icon-btn .tab-notice-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  margin: 0;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  padding: 0 3px;
}

.issue-chat-log {
  border: 1px solid #c7d7ee;
  border-radius: 8px;
  background: #f8fbff;
  min-height: 280px;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  margin-bottom: 10px;
}

.issue-chat-message {
  border: 1px solid #c7d7ee;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  margin-bottom: 8px;
}

.issue-chat-message.from-admin {
  border-left: 4px solid #0057b8;
}

.issue-chat-message.from-customer {
  border-left: 4px solid #f46f1f;
}

.issue-chat-author {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 13px;
}

.issue-chat-text {
  margin: 0 0 6px;
  white-space: pre-wrap;
}

.issue-chat-files {
  margin: 0 0 6px;
  padding-left: 18px;
}

.issue-chat-react-btns {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: center;
  border: 1px solid #b6cae8;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  z-index: 30;
  min-width: 0;
  width: max-content;
  white-space: nowrap;
}

.issue-chat-reactions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.issue-chat-reaction-pill {
  border-radius: 999px;
  border: 1px solid #b6cae8;
  background: #eaf2ff;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.issue-chat-compose textarea {
  width: 100%;
  margin-bottom: 8px;
}

.issue-chat-shell {
  display: block;
}

.issue-chat-shell.with-review {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.issue-chat-main {
  min-width: 0;
}

.issue-chat-review {
  min-width: 0;
  border: 1px solid #c7d7ee;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
  max-height: 640px;
  overflow: auto;
}

.issue-chat-json-editor {
  width: 100%;
  font-family: Consolas, 'Courier New', monospace;
  margin-top: 6px;
}

.issue-chat-footer-actions {
  justify-content: space-between;
}

@media (max-width: 1200px) {
  .issue-chat-shell.with-review {
    grid-template-columns: 1fr;
  }
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checklist-box {
  border: 1px solid #b6cae8;
  border-radius: 6px;
  background: #fbfdff;
  padding: 8px;
  max-height: 180px;
  overflow: auto;
}

body.theme-dark .checklist-box {
  background: #0f1d31;
  border-color: #3c5f8f;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.color-editor {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.color-trigger {
  width: 28px;
  height: 28px;
  border: 1px solid #9eb9df;
  border-radius: 6px;
  cursor: pointer;
  background: var(--brand-blue);
}

.color-panel {
  position: absolute;
  top: 34px;
  left: 0;
  background: #fff;
  border: 1px solid #b6cae8;
  border-radius: 8px;
  padding: 8px;
  z-index: 30;
  min-width: 220px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

body.theme-dark .color-panel {
  background: #132237;
  border-color: #3c5f8f;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.color-panel.hidden {
  display: none;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.swatch-btn {
  width: 20px;
  height: 20px;
  border: 1px solid #8ca8d0;
  border-radius: 4px;
  cursor: pointer;
}

.about-container {
  max-width: 1120px;
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(243, 111, 33, 0.16), rgba(0, 87, 184, 0.14)),
    #ffffff;
}

body.theme-dark .about-hero {
  background:
    linear-gradient(90deg, rgba(243, 111, 33, 0.2), rgba(0, 87, 184, 0.2)),
    #132237;
}

.about-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
  font-size: 12px;
  font-weight: 700;
}

.about-lead {
  color: #1d3f66;
  font-size: 17px;
  line-height: 1.6;
  max-width: 900px;
}

body.theme-dark .about-lead {
  color: #bdd2ee;
}

.about-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  color: #20486f;
}

body.theme-dark .about-list {
  color: #bdd2ee;
}

.about-list li {
  margin-bottom: 6px;
}

.about-steps {
  background: #f4f9ff;
}

body.theme-dark .about-steps {
  background: #132237;
}

.about-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.about-step {
  border: 1px solid #c7d7ee;
  border-radius: 10px;
  background: #ffffff;
  padding: 16px;
}

body.theme-dark .about-step {
  border-color: #34537d;
  background: #0f1d31;
}

.about-step span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-step h4 {
  margin: 0 0 8px;
}

.about-step p {
  margin: 0;
  color: #355b80;
  line-height: 1.55;
}

body.theme-dark .about-step p {
  color: #9fb4cf;
}

.about-guide-link {
  display: inline-block;
  margin-top: 10px;
}

.about-guide-container {
  max-width: 1120px;
}

.guide-doc-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 12px;
}

.guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 0;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.guide-btn-orange {
  background: #f36f21;
}

.guide-btn-orange:hover {
  background: #da6119;
}

.guide-btn-blue {
  background: #0057b8;
}

.guide-btn-blue:hover {
  background: #00489a;
}

.guide-title h2 {
  margin-top: 0;
}

.guide-index-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.85;
}

.guide-index-list a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
}

.guide-index-list a:hover {
  text-decoration: underline;
}

.guide-section h3 {
  margin-top: 0;
}

.guide-shot {
  border: 1px solid #b8cae6;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 12px;
  background: #fff;
}

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

.guide-shot-header {
  background: linear-gradient(90deg, rgba(243, 111, 33, 0.16), rgba(0, 87, 184, 0.14));
  color: #153f68;
  padding: 10px 12px;
  font-weight: 700;
  border-bottom: 1px solid #c7d7ee;
}

.guide-shot-body {
  height: 470px;
  padding: 8px;
  background: #eef4fd;
  overflow: hidden;
}

.guide-shot-body iframe {
  width: 1600px;
  height: 2200px;
  border: 1px solid #c7d7ee;
  border-radius: 8px;
  transform: scale(0.45);
  transform-origin: top left;
  background: #fff;
  pointer-events: none;
}

.guide-shot-body.guide-flow-body {
  min-height: 84px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #355b80;
  font-size: 15px;
  padding: 14px;
  text-align: center;
  background: #fff;
}

body.theme-dark .guide-index-list a {
  color: #9fc3f0;
}

body.theme-dark .guide-shot {
  border-color: #3c5f8f;
  background: #0f1d31;
}

body.theme-dark .guide-shot-header {
  color: #d9e9ff;
  border-color: #355274;
  background: linear-gradient(90deg, rgba(243, 111, 33, 0.24), rgba(0, 87, 184, 0.24));
}

body.theme-dark .guide-shot-body {
  background: #101d2f;
}

body.theme-dark .guide-shot-body iframe {
  border-color: #355274;
}

body.theme-dark .guide-shot-body.guide-flow-body {
  color: #bdd2ee;
  background: #0f1d31;
}

.print-page-footer {
  display: none;
}

@media print {
  @page {
    size: auto;
    margin: 16mm 14mm 20mm 14mm;
  }

  .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .container.about-guide-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .panel {
    box-shadow: none;
    break-inside: avoid-page;
    page-break-inside: avoid;
    border: 1px solid #d7dfe9;
  }

  .guide-shot-body {
    height: 520px;
  }

  .guide-shot-body iframe {
    transform: scale(0.41);
  }

  .page-break-avoid {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  a[href]:after {
    content: "";
  }

  .print-page-footer {
    display: block;
    position: fixed;
    bottom: 6mm;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #4a5f77;
  }

  .print-page-number::after {
    content: counter(page);
  }
}

@media (max-width: 900px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .brand-title {
    font-size: 24px;
  }

  .brand-header .inner {
    padding-right: 16px;
  }

  .customer-header-row .menu-dropdown {
  position: relative;
  }

  .customer-header-row {
    align-items: center;
    flex-direction: row;
  }

  .customer-branding {
    width: auto;
  }

  .brand-header::after {
    display: none;
  }

  .about-split {
    grid-template-columns: 1fr;
  }

  .about-step-grid {
    grid-template-columns: 1fr;
  }

  .guide-doc-actions {
    gap: 10px;
  }

  .guide-shot-grid {
    grid-template-columns: 1fr;
  }

  .guide-btn {
    min-width: 0;
    flex: 1;
  }

  .guide-shot-body {
    height: 320px;
  }

  .guide-shot-body iframe {
    transform: scale(0.25);
  }

  .create-account-panel.collapsed {
    max-width: 100%;
  }
}



















.popup-editor-modal {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 14px;
  background: rgba(2, 17, 38, 0.52);
}

.popup-editor-modal.hidden {
  display: none;
}

.popup-editor-content {
  width: min(1180px, 100%);
  min-height: auto;
  background: transparent;
  padding: 0;
}

.popup-editor-content .panel {
  margin: 0;
}

body.theme-dark .popup-editor-content {
  background: transparent;
}

.popup-editor-panel {
  position: relative;
}

.popup-editor-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.popup-editor-titlebar h2 {
  margin: 0;
}

.popup-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #b6cae8;
  background: #f36f21;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.popup-modal-close:hover {
  background: #de621b;
}

body.theme-dark .popup-modal-close {
  border-color: #4c6f9e;
}

.issue-review-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 16, 36, 0.6);
}

.issue-review-content {
  width: min(1160px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.issue-review-content .panel {
  margin: 0;
}

.issue-review-content .popup-editor-titlebar .popup-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 0 0 auto;
  margin-left: auto;
}

.issue-content-section {
  margin-top: 12px;
  border: 1px solid #d4e0f2;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}

.issue-content-section h3 {
  margin: 0 0 8px;
  color: #153f68;
  font-size: 16px;
}

.issue-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.issue-content-item {
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.issue-content-item.is-empty {
  background: #fbfdff;
}

.issue-content-label {
  margin: 0 0 4px;
  color: #284e73;
  font-weight: 700;
  font-size: 13px;
}

.issue-content-value {
  margin: 0;
  color: #0f2e4b;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.issue-content-input {
  width: 100%;
  margin: 0;
  border: 1px solid #b6cae8;
  border-radius: 6px;
  background: #fff;
  color: #0f2e4b;
  font-size: 13px;
  line-height: 1.35;
  padding: 7px 8px;
}

.issue-content-input[type="text"] {
  height: 36px;
}

.issue-content-input:focus {
  outline: none;
  border-color: #0c5cb8;
}

body.theme-dark .issue-content-section {
  border-color: #3b5d87;
  background: #12223a;
}

body.theme-dark .issue-content-section h3 {
  color: #d9e9ff;
}

body.theme-dark .issue-content-item {
  border-color: #36567e;
  background: #0f1d31;
}

body.theme-dark .issue-content-label {
  color: #b7cbea;
}

body.theme-dark .issue-content-value {
  color: #e3eefc;
}

body.theme-dark .issue-content-input {
  border-color: #36567e;
  background: #10253f;
  color: #e3eefc;
}

.issue-raw-submission {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid #b6cae8;
  border-radius: 8px;
  background: #f7fbff;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: auto;
}

body.theme-dark .issue-raw-submission {
  background: #0f1d31;
  border-color: #3c5f8f;
  color: #e8f1ff;
}

.inactivity-list {
  display: grid;
  gap: 10px;
}

.inactivity-item {
  border: 1px solid #c7d7ee;
  border-radius: 10px;
  background: #f8fbff;
  overflow: hidden;
}

.inactivity-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0, 87, 184, 0.05);
  border-bottom: 1px solid #c7d7ee;
}

.inactivity-summary::-webkit-details-marker {
  display: none;
}

.inactivity-content {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.inactivity-content p {
  margin: 0;
}

body.theme-dark .inactivity-item {
  background: #0f1d31;
  border-color: #2c5f9f;
}

body.theme-dark .inactivity-summary {
  background: rgba(0, 87, 184, 0.2);
  border-bottom-color: #2c5f9f;
}

.analytics-toolbar {
  align-items: center;
  gap: 8px;
}

.analytics-toolbar .analytics-search-wrap {
  flex: 1 1 620px;
  max-width: 760px;
}

.analytics-toolbar .analytics-search-wrap input {
  margin-top: 0;
  height: 42px;
}

.analytics-toolbar .show-inline {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.analytics-toolbar .show-inline select {
  width: 96px;
  margin-top: 0;
}

.analytics-toolbar .btn-blue,
.analytics-toolbar .link-btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
}

.inactivity-controls {
  align-items: end;
  gap: 8px;
}

.inactivity-controls input[type='text'] {
  flex: 1 1 420px;
}

.inactivity-controls .show-inline {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inactivity-controls .show-inline select {
  width: 220px;
  margin-top: 0;
}

.inactivity-user-wrap {
  margin-top: 6px;
}

.inactivity-user-table {
  width: 100%;
  border-collapse: collapse;
}

.inactivity-user-table th,
.inactivity-user-table td {
  font-size: 13px;
  padding: 8px 6px;
}



.issue-chat-react-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.issue-emoji-picker-btn {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit;
  padding: 2px 4px;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.issue-emoji-option-btn {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.issue-emoji-option-btn:hover,
.issue-emoji-picker-btn:hover {
  transform: scale(1.08);
  background: transparent !important;
}

.team-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.team-contact-card {
  border: 1px solid #c7d7ee;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
}

.team-contact-photo-wrap {
  width: 76px;
  height: 76px;
}

.team-contact-photo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #c7d7ee;
  background: #f2f7ff;
}

.team-contact-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4c6b8d;
  font-size: 12px;
}

.team-contact-body h3 {
  margin: 0 0 6px;
}

.team-contact-body .muted {
  margin: 0 0 8px;
}

.team-contact-details p {
  margin: 0 0 6px;
}

.team-editor-list {
  display: grid;
  gap: 12px;
}

.team-editor-card {
  border: 1px solid #c7d7ee;
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.team-editor-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.team-editor-card-head h4 {
  margin: 0;
}

.team-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.team-editor-photo-wrap {
  margin-top: 10px;
  width: 76px;
  height: 76px;
  border: 1px dashed #a9c0e3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4c6b8d;
  font-size: 12px;
  overflow: hidden;
  background: #fff;
}

.team-editor-photo-preview {
  width: 76px;
  height: 76px;
  object-fit: cover;
}

body.theme-dark .team-contact-card,
body.theme-dark .team-editor-card {
  background: #0f1d31;
  border-color: #2c5f9f;
}

body.theme-dark .team-contact-photo,
body.theme-dark .team-editor-photo-wrap {
  border-color: #3c5f8f;
  background: #12223a;
}


