:root {
  --primary: #2563eb;
  --primary-dark: #0f1f3d;
  --accent: #c98a12;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #162033;
  --muted: #667085;
  --border: #d9e2ec;
  --success: #067647;
  --warning: #b54708;
  --danger: #b42318;
  --panel: var(--card);
  --ink: var(--text);
  --line: var(--border);
  --purple: #7c3aed;
  --gold-soft: #fff7df;
  --blue-soft: #eff6ff;
  --shadow: 0 18px 40px rgba(22, 33, 43, 0.08);
  --shadow-soft: 0 12px 28px rgba(15, 31, 61, 0.08);
}

/* Agent customer CRM */
.customers-workspace {
  gap: 20px;
}

.customer-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.compact-stat {
  min-height: 96px;
}

.compact-stat span {
  color: var(--muted);
  font-weight: 700;
}

.compact-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.customer-toolbar {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.customer-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 0.65fr);
  gap: 20px;
  align-items: start;
}

.customer-list-card,
.customer-detail-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  padding: 16px;
  min-height: 280px;
}

.customer-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.customer-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.customer-card:hover,
.customer-card.active {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.11);
}

.customer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.customer-avatar.large {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 20px;
}

.customer-main strong,
.customer-main small,
.customer-main em {
  display: block;
}

.customer-main strong {
  color: var(--text);
  font-size: 16px;
}

.customer-main small,
.customer-main em {
  color: var(--muted);
  font-style: normal;
  margin-top: 3px;
}

.customer-metrics {
  text-align: center;
  min-width: 58px;
}

.customer-metrics strong {
  display: block;
  font-size: 22px;
  color: var(--primary);
}

.customer-metrics small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.customer-detail-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.customer-detail-head h3 {
  margin: 0;
  font-size: 22px;
}

.customer-detail-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.customer-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

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

.customer-info-grid div,
.customer-note-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  padding: 11px 12px;
}

.customer-info-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-info-grid strong {
  display: block;
  color: var(--text);
  margin-top: 5px;
  word-break: break-word;
}

.customer-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 800;
  font-size: 12px;
}

.customer-note-block {
  margin-top: 10px;
}

.customer-note-block strong {
  display: block;
  margin-bottom: 5px;
}

.customer-note-block p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

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

.customer-quote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
}

.customer-quote-item strong,
.customer-quote-item small {
  display: block;
}

.customer-quote-item small {
  margin-top: 4px;
  color: var(--muted);
}

.customer-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Quote version groups */
.quote-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.quote-group-card {
  display: grid;
  grid-template-rows: 112px 1fr auto;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.quote-group-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.13);
}

.quote-group-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
}

.quote-group-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-group-cover > span {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
}

.quote-group-body {
  display: block;
  padding: 12px 14px 8px;
}

.quote-group-body strong,
.quote-group-body small,
.quote-group-body em {
  display: block;
}

.quote-group-body strong {
  margin-top: 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.quote-group-body small,
.quote-group-body em {
  color: var(--muted);
  font-style: normal;
  margin-top: 5px;
  font-size: 12px;
}

.quote-group-body .quote-group-customer {
  color: #0f172a;
  font-weight: 900;
  font-size: 13px;
}

.quote-group-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--border);
  padding: 10px 12px 12px;
}

.quote-group-footer span {
  display: block;
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px 9px;
}

.quote-group-footer strong,
.quote-group-footer small {
  display: block;
}

.quote-group-footer strong {
  color: var(--text);
}

.quote-group-footer small {
  color: var(--muted);
  font-weight: 700;
  margin-top: 3px;
  font-size: 11px;
}

.quote-status-badge.version-count {
  color: #4c1d95;
  background: #ede9fe;
  border-color: #ddd6fe;
}

.quote-version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f8fbff);
}

.quote-version-header h3 {
  margin: 0;
}

.quote-version-header p {
  margin: 5px 0 0;
}

.quote-version-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.quote-version-card .quote-group-cover {
  background: linear-gradient(135deg, #fef3c7, #dbeafe);
}

.quote-detail-panel {
  margin: 18px 0;
}

.quote-detail-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.quote-detail-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.quote-detail-hero img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.quote-detail-hero span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
}

.quote-detail-content {
  padding: 22px;
}

.quote-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.quote-detail-head h3 {
  margin: 10px 0 6px;
  font-size: 26px;
}

.quote-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0 20px;
}

.quote-detail-meta span {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
  color: var(--text);
}

.quote-detail-meta strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.quote-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .customer-summary-grid,
  .customer-layout,
  .customer-form {
    grid-template-columns: 1fr;
  }

  .customer-toolbar {
    grid-template-columns: 1fr;
  }

  .customer-info-grid {
    grid-template-columns: 1fr;
  }

  .quote-version-header {
    align-items: stretch;
    flex-direction: column;
  }

  .quote-detail-card {
    grid-template-columns: 1fr;
  }

  .quote-detail-head {
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-page {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.16), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(135deg, #f7f9ff 0%, #eef4ff 45%, #f8fbff 100%);
}

.login-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.62fr);
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  place-items: stretch;
}

.login-showcase {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  padding: 46px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(11, 31, 68, 0.96), rgba(31, 55, 116, 0.94) 52%, rgba(91, 52, 178, 0.92)),
    linear-gradient(45deg, #0f1f3d, #2563eb);
  box-shadow: 0 28px 80px rgba(15, 31, 61, 0.22);
}

.login-showcase::before,
.login-showcase::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-showcase::before {
  inset: 24px 24px auto auto;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 58%);
}

.login-showcase::after {
  right: -82px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(201, 138, 18, 0.22);
}

.login-brand-block,
.login-visual {
  position: relative;
  z-index: 1;
}

.login-brand-row {
  align-items: flex-start;
  margin-bottom: 24px;
}

.login-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.login-brand-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-showcase h1 {
  max-width: 660px;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 44px;
  line-height: 1.08;
}

.login-showcase-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.7;
}

.login-feature-list {
  display: grid;
  max-width: 560px;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-feature-list li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.login-feature-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c98a12, #f8d97a);
  box-shadow: 0 0 0 5px rgba(248, 217, 122, 0.16);
  transform: translateY(-50%);
}

.login-visual {
  min-height: 190px;
  margin-top: 42px;
}

.route-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.route-card-main {
  left: 0;
  bottom: 0;
  width: min(360px, 86%);
  padding: 22px;
}

.route-card-main strong,
.route-card-main small {
  display: block;
}

.route-card-main strong {
  margin: 8px 0;
  color: #ffffff;
  font-size: 20px;
}

.route-card-main small,
.route-label,
.route-card-small span {
  color: rgba(255, 255, 255, 0.72);
}

.route-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.route-card-small {
  right: 22px;
  bottom: 42px;
  min-width: 132px;
  padding: 18px;
  text-align: center;
}

.route-card-small strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 30px;
}

.route-line {
  position: absolute;
  left: 110px;
  right: 98px;
  bottom: 100px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(248, 217, 122, 0.72), rgba(255, 255, 255, 0.1));
}

.route-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #c98a12;
  box-shadow: 0 0 0 8px rgba(201, 138, 18, 0.16);
}

.route-dot-a {
  left: 106px;
  bottom: 93px;
}

.route-dot-b {
  left: 50%;
  bottom: 132px;
}

.route-dot-c {
  right: 96px;
  bottom: 93px;
}

.login-card {
  align-self: center;
  width: 100%;
  max-width: 440px;
  justify-self: center;
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 28px 72px rgba(15, 31, 61, 0.14);
}

.login-card-header {
  margin-bottom: 24px;
}

.login-kicker {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-card h2 {
  margin-bottom: 8px;
  color: #101828;
  font-size: 30px;
  line-height: 1.2;
}

.login-card .field-stack {
  gap: 16px;
}

.login-card input {
  min-height: 50px;
  border-color: #d6deea;
  border-radius: 12px;
  background: #fbfdff;
}

.login-card input::placeholder {
  color: #9aa8bb;
}

.login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
}

.login-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.login-support-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  background: #f5f8ff;
  color: #52627a;
  font-size: 14px;
  line-height: 1.5;
}

.login-setup-link {
  margin: 16px 0 0;
  text-align: center;
}

.auth-card,
.dashboard-card,
.setup-card,
.home-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-card {
  width: min(440px, 100%);
  padding: 28px;
}

.home-card {
  padding: 28px;
}

.setup-card,
.dashboard-card {
  padding: 24px;
}

.stack {
  display: grid;
  gap: 18px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: 28px;
}

h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.muted {
  color: var(--muted);
}

.field-stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: #344251;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  background: #ffffff;
}

select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  background: #ffffff;
}

textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  border-color: var(--primary);
}

.label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.label-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #2563eb;
  background: #eff6ff;
  flex: 0 0 auto;
}

.label-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  border-color: #b8c4cf;
}

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.danger {
  border-color: rgba(180, 35, 24, 0.24);
  color: var(--danger);
}

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn.primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--primary);
  background: #ffffff;
}

.btn-danger {
  border-color: rgba(180, 35, 24, 0.24);
  color: var(--danger);
  background: #ffffff;
}

.btn-ghost {
  border-color: transparent;
  color: var(--muted);
  background: #f8fafc;
}

.btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.btn.tiny {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 12px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.notice {
  margin: 14px 0 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  background: #f8fafc;
}

.notice.success {
  border-color: rgba(6, 118, 71, 0.24);
  color: var(--success);
  background: #ecfdf3;
}

.notice.error {
  border-color: rgba(180, 35, 24, 0.24);
  color: var(--danger);
  background: #fff4f2;
}

.notice.info {
  border-color: rgba(15, 118, 110, 0.24);
  color: var(--primary-dark);
  background: #f0fdfa;
}

.notice.warning {
  border-color: rgba(181, 71, 8, 0.24);
  color: var(--warning);
  background: #fffaeb;
}

.alert {
  box-shadow: 0 8px 20px rgba(15, 31, 61, 0.05);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 32rem),
    linear-gradient(180deg, #f7f9fd 0%, var(--bg) 100%);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(180deg, #0b1f3a 0%, #101828 100%);
  color: #ffffff;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand .brand-mark {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 58%, var(--accent) 100%);
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand strong {
  font-size: 15px;
  line-height: 1.25;
}

.sidebar-brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.sidebar-link:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
}

.sidebar-link.active {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(124, 58, 237, 0.82));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.sidebar-link-button {
  width: 100%;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.sidebar-plan-card {
  display: grid;
  gap: 4px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-plan-card strong {
  font-size: 13px;
}

.sidebar-plan-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.dashboard-main {
  min-width: 0;
  padding: 28px;
}

.dashboard-shell .dashboard-topbar {
  border: 1px solid rgba(217, 226, 236, 0.88);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.dashboard-shell .topbar-brand .brand-mark {
  background: linear-gradient(135deg, var(--primary), var(--purple));
}

.dashboard-shell .topbar-brand h1 {
  color: var(--primary-dark);
}

.dashboard-grid {
  align-items: stretch;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(217, 226, 236, 0.88);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 40%),
    var(--card);
  box-shadow: var(--shadow-soft);
}

.stat-card::after {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(201, 138, 18, 0.2));
  content: "";
}

.stat-card strong {
  color: var(--primary-dark);
}

.panel-card,
.table-card {
  border-color: rgba(217, 226, 236, 0.88);
  box-shadow: var(--shadow-soft);
}

.panel-card .section-head h2,
.table-card .section-head h2 {
  color: var(--primary-dark);
}

.credit-widget {
  background:
    linear-gradient(135deg, rgba(201, 138, 18, 0.12), transparent 48%),
    var(--card);
}

.action-card {
  min-height: 52px;
  justify-content: flex-start;
  box-shadow: 0 8px 18px rgba(15, 31, 61, 0.06);
}

.status-badge,
.status-pill {
  border-radius: 8px;
}

.responsive-table {
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.empty-state {
  display: grid;
  gap: 8px;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  background: #fbfcff;
  text-align: center;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.topbar-brand {
  margin-bottom: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-name {
  color: var(--muted);
  font-size: 14px;
}

.admin-workspace {
  display: grid;
  gap: 18px;
}

.admin-dashboard-v2 .dashboard-main {
  display: grid;
  gap: 20px;
}

.admin-dashboard-header {
  align-items: center;
}

.admin-dashboard-header h1 {
  margin-bottom: 6px;
  font-size: 30px;
}

.admin-header-actions {
  justify-content: flex-end;
}

.admin-command-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at right top, rgba(201, 138, 18, 0.18), transparent 16rem),
    linear-gradient(135deg, #ffffff 0%, #eef5ff 52%, #f7f1ff 100%);
}

.admin-command-card h2 {
  max-width: 680px;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 28px;
}

.admin-command-card p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-stat-grid .summary-card {
  min-height: 128px;
}

.admin-create-card .admin-form,
.admin-branding-form {
  align-items: start;
}

.admin-focus-panel {
  border-color: rgba(37, 99, 235, 0.16);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.04), transparent 38%),
    var(--card);
}

.admin-credit-grid {
  margin-bottom: 18px;
}

.admin-recharge-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.78fr);
}

.admin-recharge-layout .recharge-form,
.admin-branding-logo-panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.adjustment-form {
  background: #fffdf7;
}

.admin-table-head {
  align-items: center;
}

.admin-table-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 240px);
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.admin-agent-table {
  min-width: 1180px;
}

.admin-agent-table th {
  background: #f3f7fb;
}

.admin-agent-table tbody tr:hover td {
  background: #fbfdff;
}

.admin-agent-identity {
  display: grid;
  gap: 4px;
}

.admin-agent-identity small {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.admin-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 300px;
}

.admin-action-group .btn.primary {
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.16);
}

.admin-branding-logo-panel {
  background: #fbfcff;
}

.agent-workspace {
  display: grid;
  gap: 20px;
}

.agent-dashboard-v2 .dashboard-main {
  display: grid;
  gap: 20px;
}

.agent-dashboard-header {
  align-items: center;
}

.agent-dashboard-header h1 {
  margin-bottom: 6px;
  font-size: 30px;
}

.agent-header-actions {
  justify-content: flex-end;
}

.credit-badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(201, 138, 18, 0.28);
  border-radius: 8px;
  padding: 8px 12px;
  color: #7a4d00;
  background: var(--gold-soft);
  font-size: 13px;
  font-weight: 700;
}

.agent-hero-credit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(360px, 0.78fr);
  gap: 16px;
  align-items: stretch;
}

.travel-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.82fr);
  gap: 24px;
  min-height: 280px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 14%, rgba(255, 255, 255, 0.72), transparent 12rem),
    linear-gradient(180deg, #dbeeff 0%, #e9f7ff 48%, #b9edf5 49%, #e5f8ff 70%, #fff4d6 71%, #fff9ea 100%);
}

.travel-hero-card::before {
  position: absolute;
  right: 0;
  bottom: 55px;
  left: 0;
  height: 78px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), transparent 42%, rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 13px);
  content: "";
}

.travel-hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
}

.hero-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.travel-hero-content h2 {
  max-width: 620px;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 31px;
  line-height: 1.12;
}

.travel-hero-content p {
  max-width: 580px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.travel-visual {
  position: relative;
  min-height: 240px;
}

.travel-sun {
  position: absolute;
  top: 18px;
  right: 38px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd166 0%, #f59e0b 58%, rgba(245, 158, 11, 0.3) 59%, transparent 72%);
}

.travel-cloud {
  position: absolute;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    20px -8px 0 rgba(255, 255, 255, 0.72),
    38px 1px 0 rgba(255, 255, 255, 0.64);
}

.travel-cloud-one {
  top: 62px;
  right: 190px;
  width: 74px;
}

.travel-cloud-two {
  top: 92px;
  right: 70px;
  width: 52px;
}

.travel-plane {
  position: absolute;
  top: 84px;
  right: 160px;
  display: grid;
  width: 64px;
  height: 36px;
  place-items: center;
  border-radius: 50% 50% 46% 46%;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff, #dbeafe);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  transform: rotate(-9deg);
}

.travel-plane::before,
.travel-plane::after {
  position: absolute;
  background: #ffffff;
  content: "";
}

.travel-plane::before {
  left: 20px;
  top: 13px;
  width: 34px;
  height: 8px;
  border-radius: 999px;
  transform: rotate(-18deg);
}

.travel-plane::after {
  right: 8px;
  bottom: -5px;
  width: 18px;
  height: 8px;
  border-radius: 999px;
  transform: rotate(28deg);
}

.travel-island {
  position: absolute;
  right: 20px;
  bottom: 26px;
  width: 270px;
  height: 58px;
  border-radius: 60% 45% 8px 8px;
  background:
    radial-gradient(circle at 34% 44%, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(180deg, #ffd994 0%, #f1b45f 100%);
  box-shadow: 0 -10px 24px rgba(255, 255, 255, 0.42);
}

.travel-palm {
  position: absolute;
  right: 28px;
  bottom: 68px;
  width: 82px;
  height: 130px;
  content: "";
  background:
    radial-gradient(ellipse at 34% 18%, #1f9d61 0 18px, transparent 19px),
    radial-gradient(ellipse at 62% 20%, #15854e 0 20px, transparent 21px),
    radial-gradient(ellipse at 48% 10%, #31b475 0 22px, transparent 23px),
    linear-gradient(82deg, transparent 0 43px, #8b5e2e 44px 51px, transparent 52px);
  transform: rotate(9deg);
}

.travel-people {
  position: absolute;
  right: 124px;
  bottom: 80px;
  width: 76px;
  height: 96px;
  background:
    radial-gradient(circle at 22px 12px, #7c4a2d 0 8px, transparent 9px),
    radial-gradient(circle at 50px 10px, #7c4a2d 0 8px, transparent 9px),
    linear-gradient(#2563eb 0 0) 16px 24px / 14px 44px no-repeat,
    linear-gradient(#c98a12 0 0) 44px 22px / 15px 46px no-repeat,
    linear-gradient(#0f1f3d 0 0) 12px 66px / 8px 28px no-repeat,
    linear-gradient(#0f1f3d 0 0) 48px 68px / 8px 26px no-repeat;
}

.agent-stat-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.agent-stat-grid .summary-card {
  min-height: 116px;
}

.agent-stat-grid .summary-card strong {
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.agent-stat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.agent-stat-card::after {
  display: none;
}

.agent-stat-card span:not(.stat-icon) {
  margin-bottom: 6px;
}

.agent-stat-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.stat-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
}

.stat-icon-purple {
  color: #5b21b6;
  background: #ede9fe;
}

.stat-icon-green {
  color: #047857;
  background: #dcfce7;
}

.stat-icon-gold {
  color: #b45309;
  background: #fef3c7;
}

.stat-icon-blue {
  color: #0369a1;
  background: #e0f2fe;
}

.stat-icon-pink {
  color: #be185d;
  background: #fce7f3;
}

.stat-icon-teal {
  color: #0f766e;
  background: #ccfbf1;
}

.credit-widget-panel {
  display: grid;
  gap: 16px;
}

.agent-credit-overview {
  --credit-used-percent: 0%;
  align-content: start;
}

.credit-widget-head,
.credit-meter-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.credit-widget-head h2 {
  margin-bottom: 4px;
}

.credit-meter {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.credit-meter-row span,
.credit-breakdown span,
.credit-overview-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.credit-progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #e7eef8;
}

.credit-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--purple), var(--accent));
  transition: width 0.25s ease;
}

.credit-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.credit-breakdown > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.credit-breakdown strong {
  display: block;
  margin-top: 6px;
  color: var(--primary-dark);
  font-size: 22px;
}

.credit-overview-layout {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.credit-donut {
  position: relative;
  display: grid;
  width: 122px;
  height: 122px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--purple) var(--credit-used-percent), #d9e2ec 0);
}

.credit-donut::after {
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  background: #ffffff;
  content: "";
}

.credit-donut strong,
.credit-donut span {
  position: relative;
  z-index: 1;
}

.credit-donut strong {
  margin-top: 8px;
  color: var(--primary-dark);
  font-size: 24px;
}

.credit-donut span {
  margin-top: -28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.credit-overview-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credit-overview-list strong {
  color: var(--primary-dark);
}

.agent-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agent-action-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--text);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.agent-action-card:hover {
  border-color: rgba(37, 99, 235, 0.34);
  text-decoration: none;
  transform: translateY(-1px);
}

.agent-action-card span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  font-weight: 900;
}

.agent-action-card strong {
  color: var(--primary-dark);
}

.agent-action-card small {
  color: var(--muted);
  line-height: 1.45;
}

.agent-dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 18px;
  align-items: start;
}

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

.recent-quote-table-shell {
  min-width: 0;
}

.recent-quotes-table {
  min-width: 780px;
}

.recent-quotes-table td strong,
.recent-quotes-table td small {
  display: block;
}

.recent-quotes-table td small {
  margin-top: 4px;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.recent-quote-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.recent-quote-card strong,
.recent-quote-card p {
  margin-bottom: 4px;
}

.recent-quote-card small {
  color: var(--muted);
}

.profile-summary-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcff;
}

.compact-logo-box {
  width: 82px;
  height: 82px;
}

.compact-logo-box .logo-placeholder {
  width: 58px;
  height: 58px;
  font-size: 20px;
}

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

.profile-summary-details span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-summary-details strong {
  overflow-wrap: anywhere;
}

.compact-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-actions-row {
  margin-top: 14px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.summary-card strong {
  font-size: 28px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2,
.section-head p {
  margin-bottom: 4px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-form .wide {
  grid-column: span 2;
}

.compact-form {
  grid-template-columns: minmax(240px, 360px) auto;
  align-items: end;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-status {
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agent-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  background: #ffffff;
}

.agent-table th,
.agent-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.agent-table th {
  background: #f8fafc;
  color: #344251;
  font-size: 12px;
  text-transform: uppercase;
}

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

.agent-table code {
  color: var(--primary-dark);
  font-family: Consolas, "Courier New", monospace;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 230px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill.active {
  color: var(--success);
  background: #ecfdf3;
  border: 1px solid rgba(6, 118, 71, 0.24);
}

.status-pill.suspended {
  color: var(--danger);
  background: #fff4f2;
  border: 1px solid rgba(180, 35, 24, 0.24);
}

.quote-status-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  vertical-align: middle;
}

.quote-status-badge.saved,
.quote-status-badge.sent {
  border-color: rgba(6, 118, 71, 0.22);
  color: var(--success);
  background: #ecfdf3;
}

.quote-status-badge.sent {
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--primary);
  background: #eff6ff;
}

.quote-builder-shell-v2 {
  width: min(1480px, calc(100% - 28px));
  height: 100vh;
  padding: 24px 0 36px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
}

.builder-topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  border: 1px solid rgba(217, 226, 236, 0.92);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.builder-topbar-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.builder-topbar .topbar-brand {
  min-width: 220px;
  margin-bottom: 0;
}

.builder-title-block {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.builder-title-block h2 {
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 28px;
}

.builder-title-block .hero-kicker {
  margin-bottom: 8px;
}

.builder-topbar-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.builder-status-pill {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.builder-status-pill.draft {
  border: 1px solid rgba(100, 116, 139, 0.24);
  color: var(--muted);
  background: #f8fafc;
}

.builder-status-pill.saved {
  border: 1px solid rgba(6, 118, 71, 0.22);
  color: var(--success);
  background: #ecfdf3;
}

.builder-status-pill.sent {
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--primary);
  background: #eff6ff;
}

.builder-status-pill.public {
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--primary);
  background: #eff6ff;
}

.builder-workspace {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
}

.builder-action-dock {
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.07)),
    rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.builder-action-summary {
  display: grid;
  min-width: 220px;
  gap: 3px;
}

.builder-action-summary strong {
  color: var(--primary-dark);
  font-size: 15px;
}

.builder-action-summary span {
  color: var(--muted);
  font-size: 13px;
}

.builder-action-buttons {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.builder-action-buttons .btn {
  min-height: 38px;
  padding: 8px 12px;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  gap: 20px;
  min-height: 0;
  align-items: stretch;
}

.builder-form-card,
.quote-preview-card {
  min-width: 0;
  min-height: 0;
}

.builder-form-card {
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  border-color: rgba(217, 226, 236, 0.9);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.builder-form-intro {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.1), transparent 18rem),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.builder-form-intro h2 {
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.builder-letterhead-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 18px 24px 0;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.05)),
    var(--card);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.builder-letterhead-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.builder-letterhead-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.builder-letterhead-card h3 {
  margin: 4px 0;
  font-size: 1.2rem;
}

.quote-builder-shell .notice {
  min-width: 0;
  margin-right: 24px;
  margin-left: 24px;
}

.quote-builder-shell .public-link-panel {
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1fr);
  align-items: end;
  margin: 18px 24px 22px;
  border-color: rgba(37, 99, 235, 0.14);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(245, 158, 11, 0.05)),
    #ffffff;
}

.quote-builder-shell .public-link-panel.is-unsaved {
  border-color: rgba(181, 71, 8, 0.2);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(255, 247, 223, 0.92)),
    #ffffff;
}

.quote-builder-shell .public-link-panel.has-public-link {
  border-color: rgba(6, 118, 71, 0.2);
  background:
    linear-gradient(135deg, rgba(6, 118, 71, 0.08), rgba(37, 99, 235, 0.05)),
    #ffffff;
}

.quote-builder-shell .public-link-panel .button-row {
  grid-column: 1 / -1;
}

.public-link-mirror-actions {
  align-items: stretch;
}

.public-link-mirror-actions .btn {
  flex: 0 1 auto;
}

.quote-preview-card {
  display: flex;
  max-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-color: rgba(217, 226, 236, 0.9);
  background: #f8fbff;
  box-shadow: var(--shadow-soft);
}

.quote-preview-card > .section-head {
  flex: 0 0 auto;
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  background: #ffffff;
}

.preview-scroll-helper {
  margin-bottom: 0;
  font-size: 12px;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: 0 24px 24px;
}

.form-block {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.form-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.builder-section-card {
  border: 1px solid rgba(217, 226, 236, 0.92);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 24px rgba(15, 31, 61, 0.04);
}

.form-block.builder-section-card:first-of-type {
  border-top: 1px solid rgba(217, 226, 236, 0.92);
  padding-top: 18px;
}

.builder-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.builder-section-head > div {
  min-width: 0;
}

.builder-section-head h3,
.compact-head h3 {
  margin: 0 0 3px;
  color: var(--primary-dark);
  font-size: 18px;
}

.builder-section-head p {
  margin-bottom: 0;
  font-size: 13px;
}

.section-step {
  display: inline-flex;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  font-size: 12px;
  font-weight: 800;
}

.compact-head {
  align-items: flex-start;
  margin-bottom: 0;
}

.compact-head .btn {
  margin-left: auto;
  white-space: nowrap;
}

.builder-section-card input,
.builder-section-card select,
.builder-section-card textarea {
  background: #ffffff;
}

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

.repeat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 226, 236, 0.92);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 26px rgba(15, 31, 61, 0.05);
}

.repeat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--purple));
}

.repeat-card[data-type="hotel"]::before {
  background: linear-gradient(180deg, #0891b2, var(--primary));
}

.repeat-card[data-type="pricing"]::before {
  background: linear-gradient(180deg, var(--accent), #f59e0b);
}

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

.repeat-head strong {
  color: var(--primary-dark);
  font-size: 15px;
}

.repeat-card .admin-form {
  gap: 12px;
}

.repeat-subhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
}

.repeat-subhead strong {
  color: var(--primary-dark);
}

.repeat-subhead p {
  margin: 3px 0 0;
  font-size: 12px;
}

.same-meals-helper {
  align-self: flex-start;
  width: fit-content;
  margin-top: 8px;
  white-space: normal;
}

.upload-control-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.5fr) auto;
  gap: 12px;
  align-items: end;
}

.upload-picker,
.upload-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  cursor: pointer;
  overflow: hidden;
}

.upload-picker {
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  padding: 10px 14px;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 800;
}

.upload-inline input,
.upload-picker input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.upload-url-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.upload-url-row label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.upload-status {
  margin: 10px 0 0;
  font-size: 12px;
}

.upload-status.success {
  color: var(--success);
}

.upload-status.error {
  color: var(--danger);
}

.upload-status.info {
  color: var(--primary);
}

.upload-status.warning {
  color: #b45309;
}

.ai-image-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 8px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: #f0fdfa;
}

.ai-image-tools .field-note {
  margin: 0;
}

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

.day-image-builder,
.hotel-image-builder {
  margin-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
  padding-top: 12px;
}

.day-image-list,
.hotel-image-list {
  display: grid;
  gap: 10px;
}

.day-image-row {
  display: grid;
  grid-template-columns: 90px minmax(180px, 1fr) minmax(160px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(217, 226, 236, 0.86);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.day-image-row label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.day-image-thumb {
  display: grid;
  width: 90px;
  height: 66px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.day-image-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line-editor-source {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.line-editor {
  display: grid;
  gap: 10px;
}

.line-editor-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(217, 226, 236, 0.92);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 31, 61, 0.04);
}

.line-editor-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.line-editor-input {
  min-height: 38px;
  padding: 8px 10px;
}

.line-editor-empty {
  border: 1px dashed rgba(100, 116, 139, 0.28);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 13px;
}

.line-editor-add {
  justify-self: start;
}

.builder-section-card textarea[name="transport"] {
  min-height: 132px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(255, 255, 255, 0)),
    #ffffff;
}

.admin-image-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-image-thumb {
  width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.admin-image-thumb img {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: cover;
}

.admin-image-thumb .btn {
  width: 100%;
  border-width: 1px 0 0;
  border-radius: 0;
}

.quote-table-list {
  min-width: 980px;
}

.quote-list-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
  border: 1px solid rgba(217, 226, 236, 0.86);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.quote-search-field,
.quote-status-filter {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.quote-search-field input,
.quote-status-filter select {
  min-height: 42px;
}

.quote-list-count {
  align-self: center;
  justify-self: end;
  white-space: nowrap;
  font-size: 13px;
}

.transaction-table {
  min-width: 1080px;
}

.credit-summary-grid {
  margin-bottom: 16px;
}

.credit-summary-grid .summary-card strong {
  overflow-wrap: anywhere;
  font-size: 24px;
}

.recharge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.recharge-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.recharge-form .wide {
  grid-column: 1 / -1;
}

.plan-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.credit-history-head {
  align-items: center;
  margin-top: 10px;
  margin-bottom: 12px;
}

.credit-history-head h3 {
  margin: 0;
  font-size: 17px;
}

.public-link-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.public-link-panel p {
  margin-bottom: 0;
}

.public-link-field {
  min-width: 0;
  font-weight: 700;
}

.public-link-field input {
  min-width: 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.branding-logo-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 16px 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfd;
}

.logo-preview-box {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.logo-preview-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.logo-placeholder {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
}

.logo-upload-form {
  display: grid;
  gap: 12px;
}

.branding-form {
  margin-top: 6px;
}

.quote-preview-paper {
  display: grid;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.quote-preview-card .quote-preview-paper {
  min-height: 0;
}

.quote-rendered {
  display: grid;
  gap: 16px;
}

.quote-brand-header {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-bottom: 4px solid var(--quote-primary, var(--primary));
  padding-bottom: 14px;
}

.quote-brand-logo {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.quote-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.quote-brand-logo span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: var(--quote-primary, var(--primary));
  color: #ffffff;
  font-weight: 800;
}

.quote-brand-details h2 {
  margin: 0 0 4px;
  color: var(--quote-primary, var(--primary));
  font-size: 24px;
}

.quote-brand-owner {
  margin-bottom: 8px;
  color: #344251;
  font-weight: 700;
}

.quote-brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.quote-brand-meta span {
  overflow-wrap: anywhere;
}

.quote-lite-cover h2 {
  margin-bottom: 10px;
  font-size: 26px;
  color: var(--quote-primary, var(--primary));
}

.quote-lite-hero {
  margin: -18px -18px 16px;
}

.quote-lite-hero img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.quote-section-lite {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.quote-section-lite h3 {
  margin: 0 0 10px;
  color: var(--quote-primary, var(--primary));
  font-size: 17px;
}

.quote-section-lite p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.quote-section-lite ul {
  margin: 0;
  padding-left: 20px;
}

.quote-mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fbfcfd;
}

.quote-mini-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.quote-day-note {
  margin-top: 10px;
  border-left: 3px solid var(--quote-accent, var(--accent));
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffaf0;
  color: #713f12;
}

.quote-day-note b {
  display: block;
  margin-bottom: 4px;
}

.quote-day-note p {
  margin: 0 0 6px;
}

.quote-day-note p:last-child {
  margin-bottom: 0;
}

.quote-day-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.quote-day-image-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.quote-day-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.quote-day-image-card figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.quote-hotel-group {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.quote-hotel-group:last-child {
  margin-bottom: 0;
}

.quote-hotel-group h4 {
  margin: 0;
  border-left: 4px solid var(--quote-primary, var(--primary));
  padding-left: 10px;
  color: var(--quote-primary, var(--primary));
  font-size: 16px;
}

.quote-hotel-card {
  display: grid;
  gap: 10px;
}

.quote-hotel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-hotel-meta span {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
}

.quote-lite-table {
  width: 100%;
  border-collapse: collapse;
}

.quote-lite-table th,
.quote-lite-table td {
  border: 1px solid var(--line);
  padding: 9px;
  text-align: left;
  vertical-align: top;
}

.quote-lite-table th {
  background: #f8fafc;
}

.quote-lite-footer {
  border-top: 2px solid var(--quote-accent, var(--accent));
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.quote-lite-footer p {
  margin-bottom: 8px;
}

.quote-lite-footer strong {
  color: var(--quote-primary, var(--primary));
}

.public-quote-shell {
  width: min(960px, calc(100% - 32px));
}

.public-quote-card {
  display: grid;
  gap: 18px;
}

.public-quote-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.public-quote-head h1 {
  margin-bottom: 0;
}

.public-quote-actions {
  justify-content: flex-end;
}

.public-quote-paper {
  min-height: 0;
  box-shadow: var(--shadow);
}

.public-quote-page {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  background: var(--bg);
}

.public-quote-page .public-quote-paper,
.public-quote-page .standalone-quote-rendered {
  max-height: none;
  overflow: visible;
  touch-action: pan-y;
}

.public-quote-page .public-quote-shell {
  width: min(1360px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 46px;
}

.public-quote-main-head {
  margin-bottom: 18px;
}

.public-quote-main-head h1 {
  margin: 6px 0 0;
  font-size: 34px;
}

.public-quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.public-quote-actions-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.public-quote-actions-card h2 {
  margin: 0;
  font-size: 18px;
}

.public-quote-actions-card p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.public-quote-actions-card .btn {
  width: 100%;
  justify-content: center;
}

.agent-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.agent-hero h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.agent-hero-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.agent-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.profile-grid > div.wide {
  grid-column: span 2;
}

.profile-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.profile-grid strong {
  overflow-wrap: anywhere;
}

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

.meta-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.meta-box span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.meta-box strong {
  overflow-wrap: anywhere;
}

.access-denied {
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: #fff4f2;
}

/* Dashboard UX cleanup */
.admin-dashboard-v2,
.agent-dashboard-v2 {
  max-width: 100vw;
  overflow-x: clip;
}

.dashboard-main,
.admin-workspace,
.agent-workspace,
.dashboard-card,
.table-wrap,
.responsive-table {
  min-width: 0;
}

.sidebar-logo-mark {
  overflow: hidden;
}

.sidebar-logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-logo-mark .logo-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

.agent-dashboard-header {
  min-height: 96px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.agent-dashboard-header h1 {
  margin: 2px 0 4px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.08;
}

.agent-hero-credit-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.travel-hero-card {
  min-height: 156px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: 14px;
  padding: 18px;
}

.travel-hero-card::before {
  bottom: 28px;
  height: 44px;
}

.travel-hero-content h2 {
  max-width: 520px;
  margin-bottom: 7px;
  font-size: clamp(22px, 2.1vw, 27px);
}

.travel-hero-content p {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: 14px;
}

.travel-hero-content .hero-kicker {
  margin-bottom: 8px;
}

.travel-visual {
  min-height: 132px;
  cursor: pointer;
}

.travel-visual::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  content: "Visual";
}

.travel-sun {
  top: 10px;
  right: 22px;
  width: 42px;
  height: 42px;
}

.travel-cloud-one {
  top: 38px;
  right: 120px;
}

.travel-cloud-two {
  top: 54px;
  right: 44px;
}

.travel-plane {
  top: 46px;
  right: 104px;
  width: 52px;
  height: 30px;
}

.travel-island {
  right: 8px;
  bottom: 12px;
  width: 174px;
  height: 38px;
}

.travel-palm {
  right: 12px;
  bottom: 34px;
  width: 58px;
  height: 86px;
  background-size: auto;
}

.travel-people {
  right: 82px;
  bottom: 44px;
  transform: scale(0.72);
  transform-origin: bottom right;
}

.credit-widget-panel {
  gap: 12px;
}

.credit-widget-head {
  align-items: flex-start;
}

.credit-widget-head h2 {
  margin-bottom: 4px;
  font-size: 20px;
}

.credit-overview-layout {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.credit-donut {
  width: 108px;
  height: 108px;
}

.credit-overview-list > div {
  gap: 8px;
  padding: 8px 0;
}

.credit-overview-list strong {
  text-align: right;
  white-space: nowrap;
}

.recharge-help-line {
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 8px;
  padding: 9px 11px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 700;
}

.agent-recent-full {
  width: 100%;
}

.recent-quotes-table {
  min-width: 0;
  table-layout: fixed;
}

.recent-quotes-table th,
.recent-quotes-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.transaction-table {
  min-width: 0;
  table-layout: fixed;
}

.transaction-table th,
.transaction-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.agent-action-card {
  border: 0;
  text-align: left;
  cursor: pointer;
}

.admin-dashboard-v2 .dashboard-main {
  overflow-x: clip;
}

.admin-agent-table {
  min-width: 0;
  table-layout: fixed;
}

.admin-agent-table th,
.admin-agent-table td {
  padding: 9px 7px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.admin-agent-table th:nth-child(1),
.admin-agent-table td:nth-child(1) {
  width: 17%;
}

.admin-agent-table th:nth-child(2),
.admin-agent-table td:nth-child(2),
.admin-agent-table th:nth-child(3),
.admin-agent-table td:nth-child(3),
.admin-agent-table th:nth-child(4),
.admin-agent-table td:nth-child(4),
.admin-agent-table th:nth-child(5),
.admin-agent-table td:nth-child(5) {
  width: 10%;
}

.admin-agent-table th:nth-child(6),
.admin-agent-table td:nth-child(6),
.admin-agent-table th:nth-child(7),
.admin-agent-table td:nth-child(7),
.admin-agent-table th:nth-child(8),
.admin-agent-table td:nth-child(8) {
  width: 8%;
}

.admin-agent-table th:nth-child(9),
.admin-agent-table td:nth-child(9) {
  width: 21%;
}

.admin-agent-identity small {
  display: none;
}

.admin-action-group {
  min-width: 0;
  gap: 5px;
}

.admin-action-group .btn {
  flex: 1 1 78px;
  min-height: 30px;
  padding: 6px 7px;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 760px;
    padding: 32px 0;
  }

  .login-showcase {
    min-height: auto;
  }

  .login-card {
    max-width: none;
  }

  .admin-shell .summary-grid,
  .agent-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-command-card,
  .admin-recharge-layout {
    grid-template-columns: 1fr;
  }

  .admin-command-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agent-hero-credit-grid,
  .agent-dashboard-columns,
  .travel-hero-card {
    grid-template-columns: 1fr;
  }

  .travel-visual {
    min-height: 180px;
  }

  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-action-grid,
  .credit-overview-layout,
  .credit-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .builder-topbar {
    position: static;
  }

  .builder-action-dock {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .builder-action-buttons {
    justify-content: flex-start;
  }

  .builder-topbar-left {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .builder-title-block {
    width: 100%;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 14px;
    padding-left: 0;
  }

  .quote-builder-shell .public-link-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .sidebar-brand {
    padding-bottom: 14px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sidebar-link {
    justify-content: center;
    text-align: center;
  }

  .dashboard-main {
    padding: 20px;
  }
}

@media (max-width: 700px) {
  .auth-shell.login-shell {
    width: min(100% - 24px, 100%);
    padding: 18px 0;
  }

  .login-showcase {
    padding: 24px;
    border-radius: 22px;
  }

  .login-brand-row {
    flex-direction: column;
  }

  .login-showcase h1 {
    font-size: 30px;
    line-height: 1.16;
  }

  .login-showcase-copy {
    font-size: 15px;
  }

  .login-feature-list li {
    padding-right: 14px;
  }

  .login-visual {
    min-height: 150px;
    margin-top: 26px;
  }

  .route-card-main {
    width: 78%;
    padding: 16px;
  }

  .route-card-main strong {
    font-size: 17px;
  }

  .route-card-small {
    right: 0;
    bottom: 18px;
    min-width: 94px;
    padding: 13px;
  }

  .route-card-small strong {
    font-size: 22px;
  }

  .route-line,
  .route-dot {
    display: none;
  }

  .login-card {
    padding: 24px;
    border-radius: 22px;
  }

  .login-card h2 {
    font-size: 26px;
  }

  .page-shell {
    width: min(100% - 20px, 1080px);
    padding: 20px 0;
  }

  .dashboard-main {
    padding: 14px;
  }

  .dashboard-shell,
  .dashboard-main,
  .dashboard-main > *,
  .agent-workspace,
  .agent-workspace > *,
  .dashboard-topbar,
  .summary-grid,
  .dashboard-card,
  .panel-card,
  .agent-hero-credit-grid,
  .agent-dashboard-columns {
    min-width: 0;
    max-width: 100%;
  }

  .dashboard-topbar,
  .topbar-actions,
  .button-row {
    width: 100%;
  }

  .credit-badge,
  .agent-stat-card > div {
    min-width: 0;
  }

  .agent-stat-card span,
  .agent-stat-card strong,
  .agent-stat-card small {
    overflow-wrap: anywhere;
  }

  .dashboard-sidebar {
    padding: 14px;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar,
  .builder-topbar,
  .builder-action-dock,
  .public-quote-head,
  .button-row,
  .section-head,
  .topbar-actions,
  .builder-topbar-actions,
  .admin-table-head,
  .agent-hero,
  .repeat-head {
    align-items: stretch;
    flex-direction: column;
  }

  .meta-grid,
  .summary-grid,
  .admin-form,
  .admin-table-toolbar,
  .compact-form,
  .agent-summary-grid,
  .agent-stat-grid,
  .agent-action-grid,
  .agent-hero-credit-grid,
  .agent-dashboard-columns,
  .credit-overview-layout,
  .credit-breakdown,
  .profile-summary-card,
  .profile-summary-details,
  .compact-profile-grid,
  .quote-list-toolbar,
  .recharge-layout,
  .quick-action-grid,
  .profile-grid,
  .branding-logo-panel,
  .quote-brand-header {
    grid-template-columns: 1fr;
  }

  .logo-preview-box,
  .quote-brand-logo {
    width: 96px;
    height: 96px;
  }

  .admin-form .wide,
  .profile-grid > div.wide {
    grid-column: auto;
  }

  .quote-builder-shell-v2 {
    width: min(100% - 20px, 1480px);
    padding-top: 14px;
  }

  .builder-form-intro,
  .quote-preview-card > .section-head {
    padding: 18px;
  }

  .builder-letterhead-card {
    grid-template-columns: 1fr;
    margin-right: 14px;
    margin-left: 14px;
  }

  .quote-form {
    padding: 0 14px 14px;
  }

  .quote-builder-shell .notice,
  .quote-builder-shell .public-link-panel {
    margin-right: 14px;
    margin-left: 14px;
  }

  .builder-section-card {
    padding: 14px;
  }

  .builder-action-buttons {
    width: 100%;
  }

  .builder-action-buttons .btn,
  .public-link-mirror-actions .btn {
    flex: 1 1 160px;
    width: auto;
  }

  .builder-section-head {
    flex-direction: column;
  }

  .upload-control-grid,
  .upload-url-row {
    grid-template-columns: 1fr;
  }

  .upload-picker,
  .upload-url-row .btn {
    width: 100%;
  }

  .repeat-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .repeat-actions .btn,
  .repeat-actions .upload-inline {
    flex: 1 1 150px;
  }

  .repeat-subhead {
    flex-direction: column;
  }

  .day-image-row {
    grid-template-columns: 1fr;
  }

  .day-image-thumb {
    width: 100%;
    height: 180px;
  }

  .quote-list-count {
    justify-self: start;
  }

  .line-editor-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .line-editor-row .btn {
    grid-column: 1 / -1;
  }

  .public-link-field input {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .compact-head .btn {
    margin-left: 0;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .quote-builder-shell-v2 {
    height: auto;
    min-height: 100vh;
    display: block;
    overflow: visible;
  }

  .builder-workspace {
    grid-template-rows: auto;
  }

  .builder-layout {
    grid-template-columns: 1fr;
  }

  .builder-form-card {
    max-height: none;
    overflow: visible;
  }

  .quote-preview-card {
    position: static;
    max-height: none;
  }

  .quote-preview-card .quote-preview-paper {
    min-height: 420px;
    overflow: visible;
  }
}

/* QuoteSuite full-size B2B login portal */
.login-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78) 38%, rgba(239, 246, 255, 0.72)),
    radial-gradient(circle at 78% 18%, rgba(124, 58, 237, 0.16), transparent 30%),
    radial-gradient(circle at 86% 86%, rgba(37, 99, 235, 0.14), transparent 34%),
    #eef4ff;
}

.auth-shell.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 38vw) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow-x: hidden;
  place-items: stretch;
}

.auth-card.login-card {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: clamp(30px, 5vw, 72px);
  border: 0;
  border-right: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.login-card-inner {
  width: min(440px, 100%);
  margin: 0 auto;
}

.login-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
}

.login-logo-row strong,
.login-logo-row span {
  display: block;
}

.login-logo-row strong {
  color: #101828;
  font-size: 23px;
  line-height: 1.1;
}

.login-logo-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.login-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.22);
}

.login-card-header {
  margin-bottom: 28px;
}

.login-kicker {
  margin-bottom: 10px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
}

.login-card-header h1 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.08;
}

.login-card .field-stack {
  gap: 18px;
}

.login-card input {
  min-height: 52px;
  border-color: #d6deea;
  border-radius: 12px;
  background: #fbfdff;
}

.login-card input::placeholder {
  color: #9aa8bb;
}

.login-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.25);
}

.login-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #5b21b6);
}

.login-help-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.login-help-links a {
  font-weight: 800;
}

.login-setup-link {
  display: inline-flex;
  margin-top: 24px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.login-showcase {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  gap: clamp(20px, 3vw, 34px);
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(34px, 4vw, 72px);
  border: 0;
  border-radius: 0;
  color: #0f172a;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.82)),
    radial-gradient(circle at 86% 18%, rgba(37, 99, 235, 0.18), transparent 34%);
  box-shadow: none;
}

.login-showcase::before {
  inset: auto -74px 10% auto;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 62%);
}

.login-showcase::after {
  right: 18%;
  bottom: -120px;
  width: 320px;
  height: 320px;
  background: rgba(124, 58, 237, 0.08);
}

.login-showcase-head {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.login-brand-kicker {
  margin: 0 0 10px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-showcase-head h2 {
  max-width: 800px;
  margin-bottom: 14px;
  color: #0f172a;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.02;
}

.login-showcase-head p {
  max-width: 700px;
  color: #52627a;
  font-size: 17px;
  line-height: 1.7;
}

.login-slider {
  position: relative;
  z-index: 1;
  min-height: 260px;
  border: 1px solid rgba(203, 213, 225, 0.68);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 31, 61, 0.96), rgba(37, 99, 235, 0.9) 52%, rgba(124, 58, 237, 0.86)),
    #0f1f3d;
  box-shadow: 0 28px 80px rgba(15, 31, 61, 0.18);
}

.login-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: clamp(28px, 4vw, 56px);
  color: #ffffff;
  opacity: 0;
  transform: translateX(20px);
  animation: quoteSuiteSlide 27s infinite;
}

.login-slide h3 {
  max-width: 640px;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.login-slide p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.7;
}

.slide-eyebrow {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.slide-two {
  animation-delay: 4.5s;
}

.slide-three {
  animation-delay: 9s;
}

.slide-four {
  animation-delay: 13.5s;
}

.slide-five {
  animation-delay: 18s;
}

.slide-six {
  animation-delay: 22.5s;
}

.login-slider-dots {
  position: absolute;
  left: clamp(28px, 4vw, 56px);
  bottom: 24px;
  display: flex;
  gap: 9px;
}

.login-slider-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  animation: quoteSuiteDot 27s infinite;
}

.login-slider-dots span:nth-child(2) {
  animation-delay: 4.5s;
}

.login-slider-dots span:nth-child(3) {
  animation-delay: 9s;
}

.login-slider-dots span:nth-child(4) {
  animation-delay: 13.5s;
}

.login-slider-dots span:nth-child(5) {
  animation-delay: 18s;
}

.login-slider-dots span:nth-child(6) {
  animation-delay: 22.5s;
}

.login-product-mockup {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(170px, 0.82fr) minmax(240px, 1.3fr) auto;
  gap: 14px;
  align-items: stretch;
}

.mockup-search,
.mockup-result,
.mockup-actions {
  border: 1px solid rgba(203, 213, 225, 0.74);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(15, 31, 61, 0.08);
}

.mockup-search,
.mockup-result {
  display: grid;
  gap: 5px;
  padding: 18px;
}

.mockup-search span,
.mockup-result span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mockup-search strong,
.mockup-result strong {
  color: #0f172a;
  font-size: 22px;
}

.mockup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mockup-actions span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 14px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.mockup-actions span:first-child {
  background: #2563eb;
  color: #ffffff;
}

.login-trust-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-trust-chips span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.74);
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.login-footer {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-top: 1px solid rgba(203, 213, 225, 0.74);
  background: rgba(255, 255, 255, 0.82);
  color: #64748b;
  font-size: 13px;
}

.login-footer a {
  color: #475569;
  font-weight: 700;
}

@keyframes quoteSuiteSlide {
  0%,
  12% {
    opacity: 1;
    transform: translateX(0);
  }

  18%,
  100% {
    opacity: 0;
    transform: translateX(-18px);
  }
}

@keyframes quoteSuiteDot {
  0%,
  12% {
    width: 24px;
    background: #ffffff;
  }

  18%,
  100% {
    width: 9px;
    background: rgba(255, 255, 255, 0.34);
  }
}

@media (max-width: 1080px) {
  .auth-shell.login-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 100vh;
    overflow: visible;
  }

  .auth-card.login-card,
  .login-showcase,
  .login-footer {
    grid-column: 1;
  }

  .auth-card.login-card {
    grid-row: 1;
    min-height: auto;
    padding: 28px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.72);
  }

  .login-showcase {
    grid-row: 2;
    min-height: auto;
  }

  .login-footer {
    grid-row: 3;
  }

  .login-logo-row {
    margin-bottom: 32px;
  }

  .login-product-mockup {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .auth-shell.login-shell {
    width: 100%;
    padding: 0;
  }

  .login-card-inner {
    width: 100%;
  }

  .login-card-header h1 {
    font-size: 30px;
  }

  .login-showcase {
    gap: 18px;
    padding: 24px 16px;
  }

  .login-showcase-head h2 {
    font-size: 30px;
  }

  .login-showcase-head p,
  .login-slide p {
    font-size: 15px;
  }

  .login-slider {
    min-height: 270px;
    border-radius: 22px;
  }

  .login-slide {
    padding: 24px;
  }

  .login-slide h3 {
    font-size: 28px;
  }

  .login-slider-dots {
    left: 24px;
    bottom: 20px;
  }

  .login-trust-chips span {
    flex: 1 1 150px;
    justify-content: center;
  }

  .login-footer {
    padding: 14px 16px;
  }
}

/* QuoteSuite login compact fit pass */
.login-page {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.auth-shell.login-shell {
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

.auth-card.login-card,
.login-showcase {
  min-height: calc(100vh - 46px);
}

.auth-card.login-card {
  padding: clamp(24px, 3.6vw, 54px);
}

.login-card-inner {
  width: min(400px, 100%);
}

.login-logo-row {
  margin-bottom: 34px;
}

.login-logo-row strong {
  font-size: 19px;
}

.login-logo-row span,
.login-help-links,
.login-footer,
.login-setup-link {
  font-size: 12px;
}

.login-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 15px;
}

.login-card-header {
  margin-bottom: 20px;
}

.login-kicker,
.login-brand-kicker {
  font-size: 11px;
}

.login-card-header h1 {
  font-size: clamp(25px, 2.2vw, 33px);
}

.login-card .muted,
.login-showcase-head p,
.login-slide p {
  font-size: 13px;
  line-height: 1.55;
}

.login-card .field-stack {
  gap: 13px;
}

.login-card input,
.login-submit {
  min-height: 44px;
}

.login-help-links {
  gap: 7px;
  margin-top: 14px;
}

.login-setup-link {
  margin-top: 16px;
}

.login-showcase {
  grid-template-rows: auto minmax(210px, 0.9fr) auto auto;
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(24px, 3.4vw, 52px);
}

.login-showcase-head h2 {
  max-width: 720px;
  margin-bottom: 10px;
  font-size: clamp(27px, 3.2vw, 46px);
}

.login-slider {
  min-height: 210px;
  border-radius: 22px;
}

.login-slide {
  padding: clamp(22px, 3vw, 40px);
}

.login-slide h3 {
  margin-bottom: 9px;
  font-size: clamp(23px, 2.9vw, 34px);
}

.slide-eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
}

.login-slider-dots {
  left: clamp(22px, 3vw, 40px);
  bottom: 18px;
}

.login-product-mockup {
  gap: 10px;
}

.mockup-search,
.mockup-result {
  gap: 3px;
  padding: 13px;
}

.mockup-search span,
.mockup-result span {
  font-size: 10px;
}

.mockup-search strong,
.mockup-result strong {
  font-size: 17px;
}

.mockup-actions {
  gap: 8px;
  padding: 12px;
}

.mockup-actions span {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 11px;
}

.login-trust-chips {
  gap: 8px;
}

.login-trust-chips span {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 11px;
}

.login-footer {
  min-height: 46px;
}

@media (max-width: 1080px) {
  .auth-shell.login-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .auth-card.login-card,
  .login-showcase {
    min-height: auto;
  }
}

/* QuoteSuite login CoreFares-inspired color and chip cleanup */
.login-page {
  background: #f7f7f8;
}

.auth-card.login-card {
  background: #f7f7f8;
  border-right-color: #e6eaf0;
}

.login-showcase {
  grid-template-rows: auto minmax(245px, 1fr) auto;
  background:
    radial-gradient(circle at 82% 20%, rgba(38, 164, 242, 0.16), transparent 28%),
    radial-gradient(circle at 18% 84%, rgba(255, 255, 255, 0.12), transparent 24%),
    #133f68;
  color: #ffffff;
}

.login-showcase::before {
  border-color: rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle, rgba(38, 164, 242, 0.18), transparent 62%);
}

.login-showcase::after {
  background: rgba(38, 164, 242, 0.1);
}

.login-showcase-head h2,
.login-slide h3 {
  color: #ffffff;
}

.login-brand-kicker,
.login-kicker,
.login-help-links a {
  color: #20a3f3;
}

.login-showcase-head p,
.login-slide p {
  color: rgba(255, 255, 255, 0.82);
}

.login-brand-mark,
.btn.primary.login-submit {
  background: #20a3f3;
  border-color: #20a3f3;
  box-shadow: 0 14px 32px rgba(32, 163, 243, 0.28);
}

.btn.primary.login-submit:hover {
  background: #148bd3;
  border-color: #148bd3;
}

.login-card input:focus {
  border-color: #20a3f3;
  outline-color: rgba(32, 163, 243, 0.18);
}

.login-slider {
  min-height: 245px;
  background:
    linear-gradient(135deg, rgba(15, 64, 107, 0.98), rgba(19, 63, 104, 0.95) 58%, rgba(32, 163, 243, 0.82)),
    #133f68;
  box-shadow: 0 28px 70px rgba(13, 52, 86, 0.22);
}

.login-product-mockup,
.mockup-search,
.mockup-result,
.mockup-actions {
  display: none !important;
}

.login-trust-chips {
  align-self: start;
  display: flex;
  width: min(760px, 100%);
  margin-top: -2px;
  gap: 10px;
}

.login-trust-chips span {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}

.login-footer {
  background: #f7f7f8;
}

@media (max-width: 1080px) {
  .login-showcase {
    grid-template-rows: auto minmax(240px, auto) auto;
  }
}

@media (max-width: 700px) {
  .login-trust-chips {
    width: 100%;
  }

  .login-trust-chips span {
    flex: 1 1 140px;
  }
}

/* Agent dashboard test hero image overlay */
.travel-hero-card {
  grid-template-columns: minmax(0, 1fr);
  min-height: 330px;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 34%, rgba(255, 255, 255, 0.42) 58%, rgba(255, 255, 255, 0.12) 100%),
    url("../images/agent-dashboard-hero-v1.png") center right / cover no-repeat;
}

.travel-hero-card::before {
  display: none;
}

.travel-hero-content {
  max-width: 560px;
  align-self: center;
}

.travel-hero-content h2 {
  color: #0f1f3d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.travel-hero-content p {
  color: #53657d;
}

.travel-visual {
  display: none;
}

@media (max-width: 700px) {
  .travel-hero-card {
    min-height: 360px;
    padding: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.32) 100%),
      url("../images/agent-dashboard-hero-v1.png") center bottom / cover no-repeat;
  }
}

/* Full-width agent standalone pages: quotes, branding, profile */
.agent-standalone-page {
  background:
    radial-gradient(circle at 88% 8%, rgba(32, 163, 243, 0.08), transparent 24rem),
    #f3f6fb;
}

.agent-page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 28px clamp(18px, 3vw, 48px) 46px;
}

.agent-page-topbar {
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 18px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(15, 31, 61, 0.07);
}

.agent-page-topbar .topbar-brand h1 {
  font-size: 30px;
}

.agent-full-panel {
  width: 100%;
  max-width: none;
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 34px);
  box-shadow: 0 20px 55px rgba(15, 31, 61, 0.08);
}

.agent-standalone-page .agent-workspace {
  display: block;
  width: 100%;
}

.agent-standalone-page .agent-workspace[hidden] {
  display: none;
}

.quotes-full-panel .section-head,
.branding-full-panel .section-head,
.profile-full-panel .section-head {
  align-items: center;
  margin-bottom: 22px;
}

.quotes-full-panel .quote-list-toolbar {
  grid-template-columns: minmax(320px, 1fr) minmax(220px, 280px) auto;
  padding: 18px;
  border-radius: 14px;
  background: #f8fbff;
}

.quotes-full-panel .table-wrap,
.branding-full-panel .branding-logo-panel,
.profile-full-panel .profile-settings-grid {
  border-radius: 14px;
}

.quotes-full-panel .agent-table th,
.quotes-full-panel .agent-table td {
  padding: 15px 16px;
}

.branding-full-panel .branding-logo-panel {
  grid-template-columns: 170px minmax(0, 1fr);
  padding: 20px;
  background: #f8fbff;
}

.branding-full-panel .logo-preview-box {
  width: 150px;
  height: 150px;
}

.branding-full-panel .branding-form,
.profile-settings-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.branding-full-panel .branding-form .wide,
.profile-settings-form .wide {
  grid-column: 1 / -1;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* Ready packages */
.ready-package-toolbar {
  align-items: end;
}

.ready-package-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ready-package-card .quote-group-cover {
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
}

.ready-package-card .quote-group-body strong {
  font-size: 17px;
}

.ready-package-card .quote-group-footer {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ready-use-panel {
  border-top: 1px solid var(--border);
  padding: 12px;
  background: #fbfdff;
}

.ready-use-panel .btn {
  width: 100%;
  justify-content: center;
}

.ready-version-shell {
  display: grid;
  gap: 10px;
}

.ready-version-shell .quote-group-card {
  height: 100%;
}

.ready-use-btn {
  width: 100%;
  justify-content: center;
}

.ready-admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 22px;
  align-items: start;
}

.ready-package-form {
  position: sticky;
  top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fbff;
}

.ready-package-form .wide {
  grid-column: 1 / -1;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.ready-admin-list {
  min-width: 0;
}

.ready-admin-hint {
  margin: -4px 0 14px;
}

.ready-admin-cards {
  display: grid;
  gap: 14px;
}

.ready-admin-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.ready-admin-cover {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.ready-admin-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ready-admin-cover span {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
}

.ready-admin-body {
  min-width: 0;
  padding: 14px;
}

.ready-admin-body h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.ready-admin-body p {
  margin: 5px 0;
}

@media (max-width: 980px) {
  .ready-admin-layout {
    grid-template-columns: 1fr;
  }

  .ready-package-form {
    position: static;
  }
}

@media (max-width: 640px) {
  .ready-package-card .quote-group-footer {
    grid-template-columns: 1fr;
  }

  .ready-admin-card {
    grid-template-columns: 1fr;
  }

  .ready-admin-cover {
    min-height: 160px;
  }
}

.profile-summary-tile {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.profile-logo-large {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.profile-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-summary-tile h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 24px;
}

.profile-summary-tile p {
  margin: 0;
  color: var(--muted);
}

.profile-meta-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.profile-meta-list div {
  display: grid;
  gap: 4px;
  border-top: 1px solid #e8eef6;
  padding-top: 10px;
}

.profile-meta-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-meta-list strong {
  color: var(--primary-dark);
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .agent-page-shell {
    padding: 16px;
  }

  .agent-page-topbar,
  .quotes-full-panel .section-head,
  .branding-full-panel .section-head,
  .profile-full-panel .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .quotes-full-panel .quote-list-toolbar,
  .branding-full-panel .branding-form,
  .profile-settings-form,
  .profile-settings-grid {
    grid-template-columns: 1fr;
  }

  .branding-full-panel .branding-logo-panel {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .dashboard-topbar,
  .builder-action-dock,
  .builder-form-card,
  .quote-preview-card > .section-head,
  .notice {
    display: none !important;
  }

  .page-shell,
  .quote-builder-shell,
  .quote-builder-shell-v2 {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    padding: 0;
  }

  .builder-layout {
    display: block;
  }

  .quote-preview-card,
  .quote-preview-paper,
  .public-quote-paper {
    overflow: visible;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .public-quote-head,
  #publicQuoteMessage,
  .public-quote-actions {
    display: none !important;
  }
}

/* QuoteSuite v20: personal quote builder port */
.personal-builder-page {
  --pb-bg: #f4f5f7;
  --pb-paper: #ffffff;
  --pb-ink: #102133;
  --pb-muted: #667085;
  --pb-line: #dfe6ef;
  --pb-soft: #f8fafc;
  --pb-navy: #182338;
  --pb-blue: #006aa6;
  --pb-orange: #c2410c;
  --pb-note: #fff7df;
  --pb-shadow: 0 14px 38px rgba(16, 33, 51, 0.08);
  min-height: 100vh;
  background: var(--pb-bg);
  color: var(--pb-ink);
}

.personal-builder-page .topbar,
.personal-builder-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--pb-line);
  backdrop-filter: blur(10px);
}

.personal-builder-page .brand-block,
.personal-builder-page .top-actions,
.personal-builder-page .link-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.personal-builder-page .brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--pb-navy);
  color: #fff;
  font-weight: 900;
}

.personal-builder-page .brand-block h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
}

.personal-builder-page .brand-block p {
  margin: 3px 0 0;
  color: var(--pb-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.personal-builder-page .btn,
.personal-builder-page .icon-btn {
  border: 1px solid var(--pb-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pb-ink);
  font-weight: 800;
  min-height: 38px;
}

.personal-builder-page .btn {
  padding: 0 13px;
}

.personal-builder-page .btn.small {
  min-height: 33px;
  padding: 0 10px;
  font-size: 13px;
}

.personal-builder-page .btn.tiny {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.personal-builder-page .btn.primary {
  border-color: var(--pb-blue);
  background: var(--pb-blue);
  color: #fff;
}

.personal-builder-page .btn.accent {
  border-color: var(--pb-orange);
  background: var(--pb-orange);
  color: #fff;
}

.personal-builder-page .btn.ghost {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.personal-builder-page .btn.danger,
.personal-builder-page .btn.danger-soft {
  color: #b42318;
  border-color: #ffd6d1;
  background: #fff7f6;
}

.personal-builder-page .icon-btn {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  font-size: 12px;
}

.personal-builder-page .icon-btn.danger {
  color: #b42318;
  border-color: #ffd6d1;
  background: #fff7f6;
}

.personal-builder-page .status-line {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px solid #cfe1ef;
  border-radius: 8px;
  background: #eff8ff;
  color: #075985;
  font-weight: 800;
}

.personal-builder-shell {
  display: block;
  width: min(1860px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.personal-builder-shell .editor-pane,
.personal-builder-shell .preview-pane {
  min-width: 0;
}

.personal-builder-shell .editor-pane {
  display: grid;
  gap: 14px;
  align-self: start;
  width: min(1480px, 100%);
  margin: 0 auto;
}

.builder-create-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--pb-shadow);
}

.builder-create-head h2 {
  margin: 2px 0 3px;
  font-size: 25px;
}

.builder-create-head p {
  margin: 0;
  color: var(--pb-muted);
}

.builder-create-kicker {
  color: var(--pb-blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.personal-builder-shell .form-section,
.personal-builder-shell .preview-toolbar {
  background: var(--pb-paper);
  border: 1px solid var(--pb-line);
  border-radius: 8px;
}

.personal-builder-shell .form-section {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  box-shadow: var(--pb-shadow);
}

.personal-builder-shell .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.personal-builder-shell .section-title span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #eff8ff;
  color: var(--pb-blue);
  font-size: 13px;
  font-weight: 900;
}

.personal-builder-shell .section-title h2 {
  margin: 0;
  font-size: 20px;
}

.personal-builder-shell .section-subtitle {
  margin-top: 6px;
  color: var(--pb-muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.personal-builder-shell .field-grid,
.personal-builder-shell .mini-grid {
  display: grid;
  gap: 12px;
}

.personal-builder-shell .field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.personal-builder-shell .field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.personal-builder-shell .mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.personal-builder-shell .wide,
.personal-builder-shell .mini-grid .wide,
.personal-builder-shell .field-grid .wide {
  grid-column: 1 / -1;
}

.personal-builder-shell label {
  display: grid;
  gap: 6px;
  color: var(--pb-ink);
  font-size: 13px;
  font-weight: 900;
}

.personal-builder-shell input,
.personal-builder-shell textarea,
.personal-builder-shell select {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd7e3;
  border-radius: 6px;
  background: #fff;
  color: var(--pb-ink);
  font-size: 14px;
}

.personal-builder-shell input,
.personal-builder-shell select {
  min-height: 39px;
  padding: 0 10px;
}

.personal-builder-shell textarea {
  padding: 10px;
  resize: vertical;
}

.personal-builder-shell input:focus,
.personal-builder-shell textarea:focus,
.personal-builder-shell select:focus {
  outline: none;
  border-color: var(--pb-blue);
  box-shadow: 0 0 0 3px rgba(0, 106, 166, 0.12);
}

.personal-builder-shell .field-note {
  color: var(--pb-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.personal-builder-shell .url-add-box {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: end;
}

.personal-builder-shell .admin-image-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.personal-builder-shell .admin-image-thumb,
.personal-builder-shell .image-thumb-card {
  position: relative;
  flex: 0 0 150px;
  overflow: hidden;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: #f8fafc;
}

.personal-builder-shell .admin-image-thumb img,
.personal-builder-shell .image-thumb-card img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.personal-builder-shell .admin-image-thumb .btn {
  width: 100%;
  border-radius: 0;
}

.personal-builder-shell .line-editor {
  display: grid;
  gap: 8px;
}

.personal-builder-shell .line-editor-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.personal-builder-shell .line-editor-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: #eff8ff;
  color: var(--pb-blue);
  font-weight: 900;
}

.personal-builder-shell .line-editor-empty {
  padding: 10px;
  border: 1px dashed #cbd7e3;
  border-radius: 6px;
  color: var(--pb-muted);
  background: #fbfcfe;
  font-size: 13px;
  font-weight: 700;
}

.personal-builder-shell .repeat-card,
.personal-builder-shell .hotel-row-card {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #d8e4ef;
  border-radius: 8px;
  background: #fbfcfe;
}

.personal-builder-shell .repeat-head,
.personal-builder-shell .nested-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.personal-builder-shell .repeat-head strong,
.personal-builder-shell .nested-head strong {
  color: var(--pb-navy);
}

.personal-builder-shell .day-image-builder,
.personal-builder-shell .hotel-image-builder {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.personal-builder-shell .upload-inline {
  position: relative;
  overflow: hidden;
}

.personal-builder-shell .upload-inline input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.personal-builder-shell .day-image-list,
.personal-builder-shell .hotel-image-list {
  display: grid;
  gap: 10px;
}

.personal-builder-shell .day-image-row,
.personal-builder-shell .hotel-image-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: #fff;
}

.personal-builder-shell .day-image-thumb {
  width: 110px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--pb-muted);
  font-size: 12px;
  font-weight: 800;
}

.personal-builder-shell .day-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.personal-builder-shell .transport-notes {
  margin-top: 8px;
}

.personal-builder-shell .preview-pane {
  display: none !important;
}

.personal-builder-shell .preview-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  box-shadow: var(--pb-shadow);
}

.personal-builder-shell .preview-toolbar input {
  font-size: 12px;
}

.personal-builder-shell .quote-paper {
  min-height: calc(100vh - 170px);
  max-height: calc(100vh - 170px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--pb-shadow);
}

.premium-builder-page {
  --builder-sidebar: 228px;
  background:
    radial-gradient(circle at 78% 0%, rgba(91, 90, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

.premium-builder-page .personal-builder-topbar {
  padding-left: calc(var(--builder-sidebar) + 18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.builder-side-nav {
  position: fixed;
  z-index: 45;
  inset: 0 auto 0 0;
  width: var(--builder-sidebar);
  padding: 14px 16px;
  color: #dbeafe;
  background:
    radial-gradient(circle at 30% 12%, rgba(79, 70, 229, 0.35), transparent 25%),
    linear-gradient(180deg, #061529 0%, #08233f 58%, #061223 100%);
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px 16px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 232, 240, 0.16);
}

.side-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.30);
}

.side-brand strong {
  display: block;
  font-size: 16px;
}

.side-brand small,
.side-nav-footer small {
  display: block;
  color: #93a8c4;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.side-nav-links {
  display: grid;
  gap: 6px;
}

.side-nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: #e7eefb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.side-nav-links a span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
}

.side-nav-links a:hover,
.side-nav-links a.active {
  background: linear-gradient(135deg, #2563eb, #6d35df);
  color: #fff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.28);
}

.side-nav-footer {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
}

.premium-builder-page .personal-builder-shell {
  width: auto;
  max-width: none;
  margin-left: var(--builder-sidebar);
  padding: 18px 22px 26px;
}

.premium-builder-page .personal-builder-shell .editor-pane {
  width: min(1480px, 100%);
}

.builder-stepper {
  display: grid;
  grid-template-columns: repeat(7, minmax(86px, 1fr));
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  overflow-x: auto;
}

.builder-stepper button {
  position: relative;
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #53627a;
  font-weight: 900;
  cursor: pointer;
}

.builder-stepper button::before {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(-50% - 6px);
  width: calc(100% + 12px);
  border-top: 1px dashed #cbd5e1;
}

.builder-stepper button:first-child::before {
  display: none;
}

.builder-stepper span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dbe6f2;
  border-radius: 50%;
  background: #fff;
  color: #2563eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.builder-stepper .active span,
.builder-stepper button:hover span {
  color: #fff;
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.builder-stepper strong {
  font-size: 12px;
}

.builder-overview-section {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92)),
    radial-gradient(circle at 70% 10%, rgba(124, 58, 237, 0.10), transparent 28%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.builder-overview-head,
.builder-bottom-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.builder-overview-head h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

.builder-overview-head p,
.builder-bottom-guide span {
  margin: 0;
  max-width: 560px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.builder-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.builder-section-card {
  position: relative;
  min-height: 166px;
  padding: 18px;
  text-align: left;
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  color: #12233c;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.builder-section-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.12);
}

.builder-section-card .card-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 950;
}

.builder-section-card .card-status {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.builder-section-card .card-status.complete {
  color: #047857;
  background: #dff7ec;
}

.builder-section-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.builder-section-card small {
  display: block;
  min-height: 38px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.builder-section-card em {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  color: #31527b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.builder-section-card.wide-card {
  grid-column: span 2;
}

.builder-bottom-guide {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}

.personal-builder-shell .form-section[data-editor-section]:not(.drawer-section-active) {
  display: none;
}

.section-drawer[hidden] {
  display: none !important;
}

.section-drawer {
  position: fixed;
  z-index: 120;
  inset: 0;
}

.section-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(5px);
}

.section-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(760px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: -28px 0 60px rgba(15, 23, 42, 0.22);
  animation: sectionDrawerIn 0.24s ease both;
}

@keyframes sectionDrawerIn {
  from {
    transform: translateX(22px);
    opacity: 0.7;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.section-drawer-head,
.section-drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
}

.section-drawer-foot {
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
  justify-content: flex-end;
}

.section-drawer-head h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

.section-drawer-body {
  min-width: 0;
  overflow: auto;
  padding: 22px;
}

.section-drawer-body .form-section {
  display: grid !important;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.section-drawer-body .section-title {
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.section-drawer-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .premium-builder-page .personal-builder-topbar {
    padding-left: 18px;
  }

  .builder-side-nav {
    display: none;
  }

  .premium-builder-page .personal-builder-shell {
    margin-left: 0;
  }

  .builder-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .builder-stepper {
    grid-template-columns: repeat(7, 86px);
    padding: 10px;
  }

  .builder-overview-head,
  .builder-bottom-guide {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-overview-grid {
    grid-template-columns: 1fr;
  }

  .builder-section-card.wide-card {
    grid-column: auto;
  }

  .section-drawer-panel {
    width: 100%;
  }

  .section-drawer-head,
  .section-drawer-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .section-drawer-body {
    padding: 16px;
  }
}

/* QuoteSuite Super Admin separate pages and unified navigation v52 */
.admin-pro-v52 .admin-v52-brand-mark {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 900;
}

.admin-pro-v52 .sidebar-brand { gap: 9px; }
.admin-pro-v52 .sidebar-link.active {
  color: #fff;
  background: rgba(47,111,201,.28);
  border-color: rgba(125,170,233,.12);
  box-shadow: none;
}
.admin-pro-v52 .sidebar-link:hover { background: rgba(47,111,201,.2); }

.admin-dashboard-page #protectedPanel > .admin-create-card,
.admin-dashboard-page #protectedPanel > #editPanel,
.admin-dashboard-page #protectedPanel > #resetPanel,
.admin-dashboard-page #protectedPanel > #rechargePanel,
.admin-dashboard-page #protectedPanel > #brandingPanel,
.admin-dashboard-page #protectedPanel > #agentsPanel,
.admin-dashboard-page #protectedPanel > #settingsPanel { display: none !important; }

.admin-agents-page #protectedPanel > .admin-stat-grid,
.admin-agents-page #protectedPanel > .admin-v50-analytics,
.admin-agents-page #protectedPanel > .admin-v50-recent-grid,
.admin-agents-page #protectedPanel > .admin-v50-preview-card,
.admin-agents-page #protectedPanel > #settingsPanel { display: none !important; }

.admin-agents-page .admin-v50-heading { margin-bottom: 2px; }
.admin-v52-topbar-title { display: grid; gap: 2px; color: #fff; }
.admin-v52-topbar-title strong { font-size: .88rem; }
.admin-v52-topbar-title small { color: #9fb3cc; font-size: .65rem; }
.admin-standalone-page .dashboard-topbar { grid-template-columns: 42px minmax(200px, 1fr) auto; }
.admin-standalone-page .admin-v52-workspace { gap: 14px; }
.admin-v52-filter-card { display: grid; grid-template-columns: minmax(260px, 520px) 1fr; align-items: end; gap: 14px; }
.admin-v52-filter-card label { display: grid; gap: 6px; color: #425169; font-size: .72rem; font-weight: 750; }
.admin-v52-filter-card select { padding: 10px 12px; border: 1px solid #d6e0ec; border-radius: 6px; background: #fff; }
.admin-standalone-page .admin-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-standalone-page .admin-stat-grid .stat-card { min-height: 88px; padding: 15px; border: 1px solid #dfe7f1; border-radius: 7px; background: #fff; }
.admin-standalone-page .admin-stat-grid .stat-card span { color: #66748a; font-size: .7rem; }
.admin-standalone-page .admin-stat-grid .stat-card strong { display: block; margin-top: 7px; font-size: 1.3rem; }
.admin-v52-report-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.admin-v52-report-grid > div { min-width: 0; }
.admin-v52-report-grid .admin-v50-growth-chart { height: 170px; }

@media (max-width: 900px) {
  .admin-v52-filter-card,
  .admin-v52-report-grid { grid-template-columns: 1fr; }
}

/* QuoteSuite premium operational pages v54 */
.admin-pro-v54 {
  --v54-navy: #061c38;
  --v54-blue: #075fc8;
  --v54-border: #dbe4ef;
  --v54-muted: #62738a;
  --v54-surface: #fff;
  background: #f4f7fb;
}

.admin-pro-v54 .dashboard-main { background: #f4f7fb; }
.admin-pro-v54 .admin-workspace { padding: 24px 28px 32px; gap: 18px; }
.admin-pro-v54 .dashboard-card,
.admin-pro-v54 .panel-card,
.admin-pro-v54 .summary-card {
  border: 1px solid var(--v54-border);
  border-radius: 10px;
  background: var(--v54-surface);
  box-shadow: 0 8px 24px rgba(18, 47, 82, .045);
}

.admin-pro-v54 .admin-v50-heading { align-items: end; margin: 2px 0 4px; }
.admin-pro-v54 .admin-v50-heading h1 { margin: 2px 0 4px; color: #0a1b33; font-size: 1.52rem; letter-spacing: -.035em; }
.admin-pro-v54 .admin-v50-heading p { color: var(--v54-muted); font-size: .82rem; }
.admin-v54-eyebrow { display: block; color: var(--v54-blue); font-size: .62rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.admin-pro-v54 .admin-v54-refresh { min-height: 36px; padding: 7px 14px; border-color: #cdd9e8; color: #34506f; background: #fff; }

.admin-v54-stat-icon,
.admin-v54-feature-icon,
.admin-v54-panel-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: #075fc8;
  background: #edf5ff;
  font-size: .9rem;
  font-weight: 800;
}
.admin-v54-stat-icon.green, .admin-v54-feature-icon.green { color: #14864d; background: #eaf8f0; }
.admin-v54-stat-icon.violet, .admin-v54-feature-icon.violet { color: #6847ce; background: #f0edff; }
.admin-v54-stat-icon.amber, .admin-v54-feature-icon.amber { color: #b87500; background: #fff6df; }

/* Agents + recharge management */
.admin-agents-page.admin-pro-v54 #protectedPanel > .admin-stat-grid { display: grid !important; }
.admin-agents-page.admin-pro-v54 #protectedPanel > .admin-v50-analytics,
.admin-agents-page.admin-pro-v54 #protectedPanel > .admin-v50-recent-grid,
.admin-agents-page.admin-pro-v54 #protectedPanel > .admin-v50-preview-card,
.admin-agents-page.admin-pro-v54 #protectedPanel > #settingsPanel { display: none !important; }
.admin-agents-page.admin-pro-v54 .admin-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 0; }
.admin-agents-page.admin-pro-v54 .admin-v50-stat {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  box-shadow: none;
}
.admin-agents-page.admin-pro-v54 .admin-v50-stat::after { display: none; }
.admin-agents-page.admin-pro-v54 .admin-v50-stat .admin-v50-stat-icon { width: 39px; height: 39px; border-radius: 10px; }
.admin-agents-page.admin-pro-v54 .admin-v50-stat > div { display: grid; gap: 1px; }
.admin-agents-page.admin-pro-v54 .admin-v50-stat > div > span { color: #667890; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.admin-agents-page.admin-pro-v54 .admin-v50-stat strong { color: #0a1b33; font-size: 1.55rem; line-height: 1.1; }
.admin-agents-page.admin-pro-v54 .admin-v50-stat small { color: #718198; font-size: .63rem; }
.admin-agents-page.admin-pro-v54 #agentsPanel { overflow: hidden; padding: 0; }
.admin-agents-page.admin-pro-v54 #agentsPanel > .section-head { margin: 0; padding: 18px 19px 14px; border-bottom: 1px solid #e3eaf2; }
.admin-agents-page.admin-pro-v54 #agentsPanel h2 { color: #0b1d35; font-size: 1.05rem; }
.admin-agents-page.admin-pro-v54 .admin-table-toolbar { margin: 0; padding: 12px 19px; border-bottom: 1px solid #e3eaf2; background: #f9fbfd; }
.admin-agents-page.admin-pro-v54 .admin-table-toolbar label { min-width: 165px; color: #53667e; font-size: .66rem; }
.admin-agents-page.admin-pro-v54 .admin-table-toolbar select { min-height: 34px; background: #fff; }
.admin-agents-page.admin-pro-v54 #agentsPanel > .notice { margin: 12px 19px 0; }
.admin-agents-page.admin-pro-v54 .agent-table { border-collapse: separate; border-spacing: 0; }
.admin-agents-page.admin-pro-v54 .agent-table th { padding: 10px 11px; color: #64758b; border-bottom: 1px solid #dce5ef; background: #f8fafc; font-size: .61rem; letter-spacing: .035em; text-transform: uppercase; }
.admin-agents-page.admin-pro-v54 .agent-table td { padding: 11px; color: #24364c; border-bottom: 1px solid #edf1f6; font-size: .69rem; vertical-align: middle; }
.admin-agents-page.admin-pro-v54 .agent-table tbody tr:hover { background: #f8fbff; }
.admin-agents-page.admin-pro-v54 .admin-action-group { flex-wrap: nowrap; gap: 4px; }
.admin-agents-page.admin-pro-v54 .admin-action-group .btn { min-height: 28px; padding: 4px 7px; border-radius: 5px; font-size: .61rem; box-shadow: none; }

.admin-pro-v54.admin-v54-drawer-open { overflow: hidden; }
.admin-pro-v54.admin-v54-drawer-open::before { content: ""; position: fixed; inset: 0; z-index: 90; background: rgba(2, 16, 35, .52); backdrop-filter: blur(2px); }
.admin-pro-v54 .admin-v54-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  display: block;
  width: min(570px, calc(100vw - 28px));
  height: 100vh;
  margin: 0;
  padding: 0 20px 24px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: -24px 0 60px rgba(4, 24, 51, .22);
}
.admin-pro-v54 .admin-v54-drawer[hidden] { display: none !important; }
.admin-pro-v54 .admin-v54-drawer > .section-head { position: sticky; top: 0; z-index: 3; margin: 0 -20px 18px; padding: 18px 20px 14px; border-bottom: 1px solid #dfe7f0; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.admin-pro-v54 .admin-v54-drawer > .section-head h2 { color: #0b1c33; font-size: 1.12rem; }
.admin-pro-v54 .admin-v54-drawer > .section-head p { font-size: .69rem; }
.admin-pro-v54 .admin-v54-drawer .admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.admin-pro-v54 .admin-v54-drawer .admin-form label { color: #24384f; font-size: .68rem; font-weight: 750; }
.admin-pro-v54 .admin-v54-drawer input,
.admin-pro-v54 .admin-v54-drawer select,
.admin-pro-v54 .admin-v54-drawer textarea { min-height: 39px; border-color: #d4dfec; background: #f9fbfd; }
.admin-pro-v54 .admin-v54-drawer-compact { width: min(430px, calc(100vw - 28px)); }
.admin-pro-v54 .admin-v54-recharge-drawer { width: min(790px, calc(100vw - 28px)); }
.admin-pro-v54 .admin-v54-recharge-drawer .credit-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-pro-v54 .admin-v54-recharge-drawer .recharge-workspace { grid-template-columns: 1.15fr .85fr; }

/* Transactions */
.admin-v54-agent-selector { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(300px, 1.25fr); align-items: end; gap: 18px; padding: 17px 19px; }
.admin-v54-agent-selector .notice { grid-column: 1 / -1; margin: 0; }
.admin-v54-selector-copy { display: flex; align-items: center; gap: 12px; }
.admin-v54-selector-copy div { display: grid; gap: 2px; }
.admin-v54-selector-copy strong { color: #12253d; font-size: .84rem; }
.admin-v54-selector-copy small, .admin-v54-agent-selector label > span { color: #687a91; font-size: .65rem; }
.admin-v54-agent-selector label { display: grid; gap: 6px; color: #273b53; font-size: .68rem; font-weight: 700; }
.admin-v54-agent-selector select { min-height: 40px; background: #f9fbfd; }
.admin-pro-v54 .admin-v54-transaction-stats,
.admin-pro-v54 .admin-v54-report-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-pro-v54 .admin-v54-transaction-stats .stat-card,
.admin-pro-v54 .admin-v54-report-stats .stat-card { min-height: 105px; display: flex; align-items: center; gap: 13px; padding: 16px; box-shadow: none; }
.admin-pro-v54 .admin-v54-transaction-stats .stat-card > div,
.admin-pro-v54 .admin-v54-report-stats .stat-card > div { min-width: 0; display: grid; gap: 1px; }
.admin-pro-v54 .admin-v54-transaction-stats .stat-card > div > span,
.admin-pro-v54 .admin-v54-report-stats .stat-card > div > span { color: #60738b; font-size: .61rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.admin-pro-v54 .admin-v54-transaction-stats strong,
.admin-pro-v54 .admin-v54-report-stats strong { overflow: hidden; color: #0b1c33; font-size: 1.34rem; line-height: 1.2; text-overflow: ellipsis; }
.admin-pro-v54 .admin-v54-transaction-stats small,
.admin-pro-v54 .admin-v54-report-stats small { color: #78889c; font-size: .6rem; }
.admin-v54-table-card { overflow: hidden; padding: 0; }
.admin-v54-table-card > .section-head { margin: 0; padding: 18px 19px 14px; border-bottom: 1px solid #dfe7f0; }
.admin-v54-table-card .table-wrap { margin: 0; }
.admin-v54-table-card .agent-table th { color: #617187; background: #f8fafc; font-size: .61rem; text-transform: uppercase; }
.admin-v54-table-card .agent-table td { font-size: .69rem; }

/* Reports */
.admin-v54-report-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: 14px; }
.admin-v54-growth-panel, .admin-v54-recent-panel { min-height: 330px; padding: 19px; }
.admin-v54-total-new { padding: 6px 10px; color: #075fc8; border-radius: 20px; background: #edf5ff; font-size: .74rem; }
.admin-pro-v54 .admin-v54-growth-panel .admin-v50-growth-chart { height: 205px; padding: 18px 8px 0; border: 1px solid #e4ebf3; border-radius: 8px; background: linear-gradient(#f8fbff 1px, transparent 1px); background-size: 100% 25%; }
.admin-pro-v54 .admin-v54-growth-panel .admin-v50-growth-chart i { min-width: 4px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #3d8cf0, #0b62ca); }
.admin-v54-chart-axis { display: flex; justify-content: space-between; padding-top: 7px; color: #78889d; font-size: .61rem; }
.admin-v54-recent-panel .admin-v50-list-row { padding: 11px 2px; border-bottom: 1px solid #e8edf3; }

/* Settings and honest unavailable states */
.admin-v54-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-v54-settings-card { min-height: 225px; padding: 19px; }
.admin-v54-settings-head, .admin-v54-ai-card-top { display: flex; align-items: center; gap: 11px; }
.admin-v54-settings-head > div { min-width: 0; flex: 1; }
.admin-v54-settings-head h2, .admin-v54-ai-card h2, .admin-v54-ai-overview h2 { margin: 0; color: #10233b; font-size: .91rem; }
.admin-v54-settings-head p { margin: 2px 0 0; color: #74849a; font-size: .63rem; }
.admin-v54-state, .admin-v54-page-status { padding: 5px 9px; border: 1px solid #d7e2ee; border-radius: 20px; color: #68798e; background: #f7f9fc; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.admin-v54-state.active { color: #087444; border-color: #bae5cf; background: #eaf9f1; }
.admin-v54-state.unavailable, .admin-v54-page-status { color: #926415; border-color: #eed9a9; background: #fff9e9; }
.admin-v54-unavailable-box { margin-top: 18px; padding: 16px; border: 1px dashed #ccd9e8; border-radius: 8px; background: #f8fafc; }
.admin-v54-unavailable-box strong { color: #20364e; font-size: .77rem; }
.admin-v54-unavailable-box p { margin: 6px 0 0; color: #6b7c92; font-size: .7rem; line-height: 1.6; }
.admin-v54-capability-list { margin: 16px 0 0; padding: 0; list-style: none; }
.admin-v54-capability-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e8edf3; font-size: .68rem; }
.admin-v54-capability-list span { color: #6f7f93; }
.admin-v54-capability-list strong { color: #24384f; text-align: right; }
.admin-v54-integrity-note { display: flex; align-items: center; gap: 14px; padding: 16px 19px; }
.admin-v54-integrity-note strong { color: #19304a; font-size: .78rem; }
.admin-v54-integrity-note p { margin: 3px 0 0; color: #6b7c91; font-size: .68rem; }

/* AI usage */
.admin-v54-ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-v54-ai-card { min-height: 230px; padding: 19px; }
.admin-v54-ai-card-top { justify-content: space-between; margin-bottom: 17px; }
.admin-v54-ai-card h2 { font-size: .94rem; }
.admin-v54-ai-card > p { min-height: 63px; margin: 7px 0 17px; color: #6c7d92; font-size: .7rem; line-height: 1.55; }
.admin-v54-data-placeholder { display: flex; align-items: end; justify-content: space-between; padding-top: 14px; border-top: 1px solid #e5ebf2; }
.admin-v54-data-placeholder span { color: #76879b; font-size: .64rem; }
.admin-v54-data-placeholder strong { color: #a3afbe; font-size: 1.45rem; }
.admin-v54-ai-overview { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr); align-items: center; gap: 28px; padding: 23px; }
.admin-v54-ai-overview p, .admin-v54-ai-overview li { color: #687a90; font-size: .7rem; line-height: 1.6; }
.admin-v54-ai-overview ul { display: grid; gap: 4px; margin: 10px 0 0; padding-left: 18px; }
.admin-v54-ai-visual { height: 150px; display: flex; align-items: end; justify-content: space-around; gap: 8px; padding: 22px 24px 0; border: 1px solid #e0e8f2; border-radius: 9px; background: linear-gradient(180deg, #f7faff, #eef5fd); }
.admin-v54-ai-visual span { width: 9%; border-radius: 5px 5px 0 0; background: #cbdcf2; }
.admin-v54-ai-visual span:nth-child(1), .admin-v54-ai-visual span:nth-child(8) { height: 22%; }
.admin-v54-ai-visual span:nth-child(2), .admin-v54-ai-visual span:nth-child(7) { height: 38%; }
.admin-v54-ai-visual span:nth-child(3), .admin-v54-ai-visual span:nth-child(6) { height: 55%; }
.admin-v54-ai-visual span:nth-child(4) { height: 76%; background: #6da3e3; }
.admin-v54-ai-visual span:nth-child(5) { height: 65%; background: #8d7ce0; }

@media (max-width: 1180px) {
  .admin-agents-page.admin-pro-v54 .admin-stat-grid,
  .admin-pro-v54 .admin-v54-transaction-stats,
  .admin-pro-v54 .admin-v54-report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-v54-report-layout { grid-template-columns: 1fr; }
  .admin-v54-ai-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .admin-pro-v54 .admin-workspace { padding: 18px 14px 26px; }
  .admin-pro-v54 .admin-v50-heading { align-items: flex-start; }
  .admin-v54-agent-selector,
  .admin-v54-settings-grid,
  .admin-v54-ai-grid,
  .admin-v54-ai-overview { grid-template-columns: 1fr; }
  .admin-pro-v54 .admin-v54-drawer,
  .admin-pro-v54 .admin-v54-drawer-compact,
  .admin-pro-v54 .admin-v54-recharge-drawer { width: 100vw; }
  .admin-pro-v54 .admin-v54-drawer .admin-form,
  .admin-pro-v54 .admin-v54-recharge-drawer .recharge-workspace { grid-template-columns: 1fr; }
  .admin-pro-v54 .admin-v54-recharge-drawer .credit-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .admin-agents-page.admin-pro-v54 .admin-stat-grid,
  .admin-pro-v54 .admin-v54-transaction-stats,
  .admin-pro-v54 .admin-v54-report-stats { grid-template-columns: 1fr; }
  .admin-pro-v54 .admin-v54-recharge-drawer .credit-summary-grid { grid-template-columns: 1fr; }
  .admin-v54-settings-head { align-items: flex-start; flex-wrap: wrap; }
}

/* QuoteSuite super-admin feature fixes v55 */
.admin-pro-v55 .admin-dashboard-header {
  min-height: 68px !important;
  margin: 18px 22px 0 !important;
  padding: 10px 15px !important;
  color: #14263d !important;
  border: 1px solid #dbe5f0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(20,48,82,.08) !important;
  opacity: 1 !important;
}
.admin-pro-v55 .admin-v50-menu { color: #425a75 !important; border-color: #d6e0ec !important; background: #f8fafc !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-search { max-width: 540px !important; min-height: 40px !important; border: 1px solid #d6e0ec !important; border-radius: 7px !important; background: #f5f8fc !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-search span { color: #527091 !important; }
.admin-pro-v55 .admin-v50-search input { color: #18304d !important; background: transparent !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-search input::placeholder { color: #8294aa !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-account,
.admin-pro-v55 .admin-v50-account strong { color: #172a43 !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-account small { color: #6d7f96 !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-avatar { color: #0d5fbd !important; border-color: #cbdced !important; background: #eff6ff !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-notification { color: #e7a600 !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-signout { color: #34506e !important; border-color: #d6e0ec !important; background: #fff !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v52-topbar-title,
.admin-pro-v55 .admin-v52-topbar-title strong { color: #172a43 !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v52-topbar-title small { color: #6d7f96 !important; opacity: 1 !important; }

.admin-pro-v55.admin-agents-page .admin-action-group { display: grid !important; grid-template-columns: repeat(2,max-content) !important; gap: 5px !important; }
.admin-pro-v55.admin-agents-page .admin-action-group .btn { min-width: 0 !important; width: auto !important; min-height: 28px !important; padding: 5px 8px !important; white-space: nowrap !important; word-break: normal !important; line-height: 1.15 !important; }
.admin-pro-v55.admin-agents-page .admin-agent-table { min-width: 1180px !important; }
.admin-pro-v55 .adjustment-form { align-self: start; }
.admin-pro-v55 #manualAdjustmentHelp { margin: -3px 0 0; color: #61748b; }
.admin-pro-v55 #manualAdjustmentType { font-weight: 700; }

.ready-master-v51.admin-pro-v55 .ready-v51-editor { width: min(590px,42vw) !important; }
.ready-master-v51.admin-pro-v55 .ready-v51-editor-tabs { overflow-x: auto; scrollbar-width: thin; }
.ready-master-v51.admin-pro-v55 .ready-v51-editor-tabs button { flex: 0 0 auto; padding-inline: 13px; }
.ready-v55-image-source { display: grid; gap: 10px; padding: 14px; border: 1px solid #d8e3ef; border-radius: 9px; background: #f8fbff; }
.ready-v55-field-head strong,
.ready-v55-section-head strong { display: block; color: #132842; font-size: .78rem; }
.ready-v55-field-head small,
.ready-v55-section-head small { display: block; margin-top: 2px; color: #6e8097; font-size: .63rem; }
.ready-v55-image-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.ready-v55-image-actions .btn { min-height: 34px; font-size: .66rem; }
.ready-v55-upload-btn { position: relative; cursor: pointer; }
.ready-v55-upload-btn input { display: none !important; }
.ready-v55-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.ready-v55-day-list,
.ready-v55-pricing-list { display: grid; gap: 12px; }
.ready-v55-day-card,
.ready-v55-pricing-card { display: grid; gap: 12px; padding: 14px; border: 1px solid #d8e3ef; border-radius: 9px; background: #fff; box-shadow: 0 5px 18px rgba(20,48,82,.04); }
.ready-v55-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #e6edf4; }
.ready-v55-card-head > div { display: grid; gap: 1px; }
.ready-v55-card-head span { color: #647891; font-size: .57rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ready-v55-card-head strong { color: #132842; font-size: .82rem; }
.ready-v55-day-images { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.ready-v55-day-image { position: relative; aspect-ratio: 16/10; overflow: hidden; border: 1px solid #d7e2ed; border-radius: 7px; background: #edf3f9; }
.ready-v55-day-image img { width: 100%; height: 100%; object-fit: cover; }
.ready-v55-day-image button { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; color: #fff; border: 0; border-radius: 50%; background: rgba(12,27,47,.78); cursor: pointer; }
.ready-v55-pricing-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ready-v55-pricing-grid label { min-width: 0; }
.ready-v55-check { min-height: 40px; display: flex !important; flex-direction: row !important; align-items: center; gap: 7px !important; padding: 8px 10px; border: 1px solid #d5e0ec; border-radius: 6px; background: #f9fbfd; }
.ready-v55-check input { width: 16px !important; min-height: 16px !important; }
.ready-v55-price-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; color: #fff; border-radius: 7px; background: linear-gradient(135deg,#082b55,#0d63c5); }
.ready-v55-price-summary span { font-size: .65rem; }
.ready-v55-price-summary strong { font-size: .92rem; }
.ready-master-v51.admin-pro-v55 .unsplash-modal { z-index: 300; }

@media (max-width: 980px) {
  .ready-master-v51.admin-pro-v55 .ready-v51-editor { width: min(620px,100vw) !important; }
  .admin-pro-v55 .admin-dashboard-header { margin: 12px 14px 0 !important; }
}
@media (max-width: 620px) {
  .admin-pro-v55 .admin-dashboard-header { grid-template-columns: 38px 1fr auto !important; }
  .admin-pro-v55 .admin-v50-search { grid-column: 1/-1; grid-row: 2; max-width: none !important; }
  .admin-pro-v55 .admin-v50-account > span:not(.admin-v50-avatar) { display: none !important; }
  .ready-v55-pricing-grid,
  .ready-v55-day-images { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .admin-standalone-page .dashboard-topbar { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .admin-standalone-page .admin-stat-grid { grid-template-columns: 1fr; }
  .admin-v52-topbar-title small { display: none; }
}

/* QuoteSuite Admin Ready Package Master premium v51 */
.ready-master-v51 {
  --ready-navy: #061d3d;
  --ready-navy-deep: #04152d;
  --ready-blue: #075bc7;
  --ready-blue-dark: #073f91;
  --ready-text: #17233a;
  --ready-muted: #6b778b;
  --ready-line: #dce4ee;
  --ready-soft: #f5f7fb;
  margin: 0;
  color: var(--ready-text);
  background: var(--ready-soft);
}

.ready-master-v51 [hidden] { display: none !important; }

.ready-master-v51 .ready-v51-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--ready-soft);
}

.ready-master-v51 .ready-v51-sidebar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 610px;
  padding: 0 10px 15px;
  overflow-y: auto;
  color: #d9e5f5;
  background: linear-gradient(180deg, var(--ready-navy) 0%, var(--ready-navy-deep) 100%);
  border-right: 1px solid rgba(255,255,255,.08);
}

.ready-master-v51 .ready-v51-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 72px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ready-master-v51 .ready-v51-brand-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 900;
}

.ready-master-v51 .ready-v51-brand strong,
.ready-master-v51 .ready-v51-edition strong { color: #fff; font-size: 1rem; letter-spacing: -.035em; }
.ready-master-v51 .ready-v51-brand strong span,
.ready-master-v51 .ready-v51-edition strong span { color: #f0b31c; }

.ready-master-v51 .ready-v51-nav {
  display: grid;
  gap: 4px;
  padding: 15px 0;
}

.ready-master-v51 .ready-v51-nav a {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 8px 11px;
  color: #d6e2f2;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .79rem;
  font-weight: 650;
  text-decoration: none;
}

.ready-master-v51 .ready-v51-nav a:hover,
.ready-master-v51 .ready-v51-nav a.active {
  color: #fff;
  background: rgba(47,111,201,.28);
  border-color: rgba(125,170,233,.12);
}

.ready-master-v51 .ready-v51-nav a > span { color: #bdd0e9; text-align: center; }
.ready-master-v51 .ready-v51-edition {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  background: rgba(43,102,182,.13);
}
.ready-master-v51 .ready-v51-edition strong { font-size: .78rem; }
.ready-master-v51 .ready-v51-edition small { color: #afc1d9; font-size: .62rem; }
.ready-master-v51 .ready-v51-logout {
  margin-top: 9px;
  padding: 8px;
  color: #c9d8eb;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.ready-master-v51 .ready-v51-main { min-width: 0; max-width: none; padding: 0; overflow: visible; }
.ready-master-v51 .ready-v51-topbar {
  position: sticky;
  top: 0;
  z-index: 28;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--ready-line);
  background: rgba(255,255,255,.97);
  box-shadow: 0 3px 14px rgba(18,39,70,.05);
}
.ready-master-v51 .ready-v51-menu { color: #43516a; border: 0; background: transparent; font-size: 1.05rem; cursor: pointer; }
.ready-master-v51 .ready-v51-topbar h1 { margin: 0; font-size: 1.18rem; letter-spacing: -.02em; }
.ready-master-v51 .ready-v51-topbar p { margin: 3px 0 0; color: var(--ready-muted); font-size: .7rem; }
.ready-master-v51 .ready-v51-topbar-actions { display: flex; align-items: center; gap: 15px; }
.ready-master-v51 .ready-v51-topbar .btn { min-height: 35px; padding: 8px 13px; border-radius: 5px; font-size: .73rem; }
.ready-master-v51 .ready-v51-topbar .btn.primary { color: #fff; background: linear-gradient(135deg, var(--ready-blue), var(--ready-blue-dark)); border-color: transparent; }
.ready-master-v51 .ready-v51-admin { display: flex; align-items: center; gap: 8px; }
.ready-master-v51 .ready-v51-admin > span:last-child { display: grid; line-height: 1.15; }
.ready-master-v51 .ready-v51-admin strong { font-size: .7rem; }
.ready-master-v51 .ready-v51-admin small { color: var(--ready-muted); font-size: .59rem; }
.ready-master-v51 .ready-v51-avatar { display: grid; place-items: center; width: 30px; height: 30px; color: #315780; border: 1px solid #c6d3e1; border-radius: 50%; font-size: .62rem; font-weight: 800; }

.ready-master-v51 .access-denied { margin: 20px; }
.ready-master-v51 .ready-v51-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  align-items: start;
  min-height: calc(100vh - 72px);
  background: #fff;
}

.ready-master-v51:not(.ready-v51-editor-open) .ready-v51-workspace { grid-template-columns: 1fr; }
.ready-master-v51:not(.ready-v51-editor-open) .ready-v51-editor { display: none; }

.ready-master-v51 .ready-v51-board { min-width: 0; padding: 0 18px 25px; }
.ready-master-v51 .ready-v51-tabs {
  display: flex;
  align-items: center;
  gap: 27px;
  min-height: 58px;
  border-bottom: 1px solid var(--ready-line);
}
.ready-master-v51 .ready-v51-tabs button {
  position: relative;
  align-self: stretch;
  padding: 0 2px;
  color: #617087;
  border: 0;
  background: transparent;
  font-size: .73rem;
  font-weight: 700;
  cursor: pointer;
}
.ready-master-v51 .ready-v51-tabs button.active { color: #0a4da9; }
.ready-master-v51 .ready-v51-tabs button.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #0b5bc7; }
.ready-master-v51 .ready-v51-tabs button span { display: inline-grid; min-width: 18px; margin-left: 3px; padding: 2px 5px; border-radius: 999px; background: #edf2f8; font-size: .59rem; }
.ready-master-v51 .ready-v51-tabs .ready-v51-refresh { align-self: center; margin-left: auto; padding: 7px 9px; border: 1px solid var(--ready-line); border-radius: 5px; }
.ready-master-v51 .ready-v51-tabs .ready-v51-refresh::after { display: none; }

.ready-master-v51 .ready-v51-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) repeat(3, minmax(112px, .45fr)) auto;
  gap: 9px;
  padding: 15px 0;
}
.ready-master-v51 .ready-v51-search { display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #d7e0eb; border-radius: 5px; background: #fff; }
.ready-master-v51 .ready-v51-search span { color: #6e7c91; }
.ready-master-v51 .ready-v51-search input { width: 100%; padding: 9px 0; border: 0; outline: 0; background: transparent; font-size: .72rem; }
.ready-master-v51 .ready-v51-toolbar select { min-width: 0; padding: 8px 27px 8px 9px; border-color: #d7e0eb; border-radius: 5px; background-color: #fff; font-size: .7rem; }
.ready-master-v51 .ready-v51-filter-reset { min-height: 35px; padding: 7px 10px; border-radius: 5px; font-size: .68rem; }
.ready-master-v51 #adminReadyMessage { margin-bottom: 10px; }
.ready-master-v51 .ready-v51-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 0 12px; }
.ready-master-v51 .ready-v51-result-head p { margin: 0; font-size: .75rem; font-weight: 800; }
.ready-master-v51 .ready-v51-result-head small { color: var(--ready-muted); font-size: .62rem; }

.ready-master-v51 .ready-v51-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ready-master-v51 .ready-v51-card { display: block; min-width: 0; overflow: hidden; border: 1px solid var(--ready-line); border-radius: 6px; background: #fff; box-shadow: 0 3px 10px rgba(20,42,75,.05); transition: transform .16s ease, box-shadow .16s ease; }
.ready-master-v51 .ready-v51-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,42,75,.1); }
.ready-master-v51 .ready-v51-card-cover { position: relative; display: block; height: 134px; min-height: 134px; overflow: hidden; background: #dfe8f3; }
.ready-master-v51 .ready-v51-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.ready-master-v51 .ready-v51-cover-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #7890ac; background: linear-gradient(135deg, #dbe7f5, #edf3f9); font-size: 2rem; font-weight: 900; }
.ready-master-v51 .ready-v51-card-cover .status-badge { position: absolute; top: 9px; left: 9px; padding: 3px 7px; border: 1px solid rgba(255,255,255,.55); border-radius: 4px; box-shadow: 0 2px 5px rgba(15,30,52,.12); font-size: .58rem; }
.ready-master-v51 .ready-v51-card-body { padding: 10px; }
.ready-master-v51 .ready-v51-card-body h3 { margin: 0 0 8px; overflow: hidden; font-size: .78rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.ready-master-v51 .ready-v51-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; color: #68768b; font-size: .6rem; }
.ready-master-v51 .ready-v51-card-destination { margin: 6px 0 10px; color: #58667a; font-size: .62rem; }
.ready-master-v51 .ready-v51-card-footer { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; color: #718096; border-top: 1px solid #edf1f5; font-size: .58rem; }
.ready-master-v51 .ready-v51-card-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.ready-master-v51 .ready-v51-card-actions .btn { min-height: 27px; padding: 4px 7px; border-radius: 4px; font-size: .58rem; }
.ready-master-v51 .ready-v51-card-actions .btn.primary { color: #fff; background: #075bc7; border-color: #075bc7; }
.ready-master-v51 .ready-v51-empty { grid-column: 1 / -1; min-height: 200px; border: 1px dashed #ccd7e4; border-radius: 6px; background: #f9fbfd; }

.ready-master-v51 .ready-v51-editor {
  position: sticky;
  top: 72px;
  min-width: 0;
  height: calc(100vh - 72px);
  overflow-y: auto;
  border-left: 1px solid var(--ready-line);
  background: #fff;
}
.ready-master-v51 .ready-v51-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 15px 10px; }
.ready-master-v51 .ready-v51-editor-head h2 { margin: 0; font-size: 1rem; }
.ready-master-v51 .ready-v51-editor-head p { margin: 3px 0 0; color: var(--ready-muted); font-size: .66rem; }
.ready-master-v51 .ready-v51-editor-close { padding: 1px 5px; color: #38465a; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; }
.ready-master-v51 .ready-v51-editor-tabs { display: flex; gap: 22px; padding: 0 15px; border-bottom: 1px solid var(--ready-line); }
.ready-master-v51 .ready-v51-editor-tabs button { position: relative; min-height: 39px; padding: 0; color: #657289; border: 0; background: transparent; font-size: .68rem; font-weight: 700; cursor: pointer; }
.ready-master-v51 .ready-v51-editor-tabs button.active { color: #0a4da9; }
.ready-master-v51 .ready-v51-editor-tabs button.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #0b5bc7; }
.ready-master-v51 .ready-v51-form { display: block; padding: 13px 15px 70px; }
.ready-master-v51 .ready-v51-editor-section { display: grid; gap: 10px; }
.ready-master-v51 .ready-v51-form label { display: grid; gap: 5px; color: #303d52; font-size: .65rem; font-weight: 750; }
.ready-master-v51 .ready-v51-form input,
.ready-master-v51 .ready-v51-form select,
.ready-master-v51 .ready-v51-form textarea { width: 100%; padding: 9px 10px; color: #334155; border: 1px solid #d5dfeb; border-radius: 5px; background: #fff; font-size: .7rem; }
.ready-master-v51 .ready-v51-form textarea { resize: vertical; line-height: 1.45; }
.ready-master-v51 .ready-v51-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ready-master-v51 .required { color: #dc2626; }
.ready-master-v51 .ready-v51-character-note,
.ready-master-v51 .ready-v51-form .field-help { color: var(--ready-muted); font-size: .58rem; font-weight: 500; }
.ready-master-v51 .ready-v51-cover-preview { display: grid; place-items: center; min-height: 96px; overflow: hidden; color: #7c899b; border: 1px dashed #cbd6e3; border-radius: 5px; background: #f7f9fc; font-size: .63rem; }
.ready-master-v51 .ready-v51-cover-preview img { width: 100%; max-height: 155px; object-fit: cover; }
.ready-master-v51 .ready-v51-policy-note { display: grid; gap: 5px; padding: 12px; border: 1px solid #d9e4f1; border-radius: 5px; background: #f4f8fd; }
.ready-master-v51 .ready-v51-policy-note strong { font-size: .68rem; }
.ready-master-v51 .ready-v51-policy-note span { color: var(--ready-muted); font-size: .62rem; line-height: 1.4; }
.ready-master-v51 .ready-v51-actions { position: sticky; right: 0; bottom: 0; left: 0; z-index: 3; display: flex; justify-content: flex-end; gap: 7px; margin: 14px -15px -70px; padding: 11px 15px; border-top: 1px solid var(--ready-line); background: rgba(255,255,255,.98); }
.ready-master-v51 .ready-v51-actions .btn { min-height: 34px; padding: 7px 10px; border-radius: 4px; font-size: .64rem; }
.ready-master-v51 .ready-v51-actions .btn.primary { color: #fff; background: linear-gradient(135deg, var(--ready-blue), var(--ready-blue-dark)); border-color: transparent; }

@media (max-width: 1360px) {
  .ready-master-v51 .ready-v51-workspace { grid-template-columns: minmax(0, 1fr) 360px; }
  .ready-master-v51 .ready-v51-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ready-master-v51 .ready-v51-toolbar { grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(105px, .45fr)); }
  .ready-master-v51 .ready-v51-toolbar #readyDurationFilter { display: none; }
}

@media (max-width: 1080px) {
  .ready-master-v51 .ready-v51-workspace { grid-template-columns: 1fr; }
  .ready-master-v51 .ready-v51-editor { position: relative; top: 0; height: auto; max-height: none; border-top: 1px solid var(--ready-line); border-left: 0; }
  .ready-master-v51 .ready-v51-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .ready-master-v51 .ready-v51-shell { display: block; }
  .ready-master-v51 .ready-v51-sidebar { position: fixed; left: -235px; width: 218px; transition: left .2s ease; }
  .ready-master-v51.ready-v51-nav-open .ready-v51-sidebar { left: 0; box-shadow: 18px 0 40px rgba(2,17,37,.3); }
  .ready-master-v51 .ready-v51-topbar { padding-inline: 12px; }
  .ready-master-v51 .ready-v51-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ready-master-v51 .ready-v51-topbar { grid-template-columns: 28px minmax(0, 1fr) auto; min-height: 64px; padding: 8px 9px; }
  .ready-master-v51 .ready-v51-topbar p,
  .ready-master-v51 .ready-v51-admin { display: none; }
  .ready-master-v51 .ready-v51-topbar .btn { padding: 7px 9px; font-size: .65rem; }
  .ready-master-v51 .ready-v51-board { padding-inline: 10px; }
  .ready-master-v51 .ready-v51-tabs { gap: 13px; overflow-x: auto; }
  .ready-master-v51 .ready-v51-tabs button { white-space: nowrap; }
  .ready-master-v51 .ready-v51-tabs .ready-v51-refresh { display: none; }
  .ready-master-v51 .ready-v51-toolbar { grid-template-columns: 1fr 1fr; }
  .ready-master-v51 .ready-v51-search { grid-column: 1 / -1; }
  .ready-master-v51 .ready-v51-toolbar #readyDurationFilter { display: block; }
  .ready-master-v51 .ready-v51-filter-reset { grid-column: 1 / -1; }
  .ready-master-v51 .ready-v51-grid { grid-template-columns: 1fr; }
  .ready-master-v51 .ready-v51-card-cover { height: 175px; }
  .ready-master-v51 .ready-v51-result-head small { display: none; }
  .ready-master-v51 .ready-v51-editor-tabs { gap: 15px; overflow-x: auto; }
  .ready-master-v51 .ready-v51-form-row { grid-template-columns: 1fr; }
  .ready-master-v51 .ready-v51-actions { flex-wrap: wrap; }
}

/* QuoteSuite super admin dashboard premium v50 */
.admin-pro-v50 {
  --v50-navy: #061d3d;
  --v50-navy-deep: #04152d;
  --v50-blue: #0964d8;
  --v50-text: #17233a;
  --v50-muted: #6c7890;
  --v50-line: #dfe7f1;
  --v50-page: #f5f7fb;
  margin: 0;
  color: var(--v50-text);
  background: var(--v50-page);
}

.admin-pro-v50 [hidden] { display: none !important; }

.admin-pro-v50 .admin-v50-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--v50-page);
}

.admin-pro-v50 .dashboard-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 620px;
  padding: 0 12px 16px;
  overflow-y: auto;
  color: #d8e5f6;
  background: linear-gradient(180deg, var(--v50-navy) 0%, var(--v50-navy-deep) 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
}

.admin-pro-v50 .sidebar-brand {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-pro-v50 .sidebar-brand strong,
.admin-pro-v50 .admin-v50-edition strong {
  color: #fff;
  font-size: 1.22rem;
  letter-spacing: -.035em;
}

.admin-pro-v50 .sidebar-brand strong span,
.admin-pro-v50 .admin-v50-edition strong span {
  color: #f2b31a;
}

.admin-pro-v50 .sidebar-nav {
  display: grid;
  gap: 4px;
  padding: 14px 0;
}

.admin-pro-v50 .sidebar-link {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 8px 11px;
  color: #d8e5f6;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}

.admin-pro-v50 .sidebar-link:hover,
.admin-pro-v50 .sidebar-link.active {
  color: #fff;
  background: rgba(57,118,211,.24);
  border-color: rgba(122,169,238,.12);
}

.admin-pro-v50 .sidebar-link-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #bfd3ef;
  font-size: .9rem;
}

.admin-pro-v50 .admin-v50-edition {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  background: rgba(46,104,185,.13);
}

.admin-pro-v50 .admin-v50-edition strong { font-size: .88rem; }
.admin-pro-v50 .admin-v50-edition small { color: #b7c8df; font-size: .7rem; }

.admin-pro-v50 .sidebar-logout {
  margin-top: 10px;
  padding: 9px 12px;
  color: #c9d7ea;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.admin-pro-v50 .dashboard-main {
  min-width: 0;
  max-width: none;
  padding: 0;
  overflow: visible;
  background: var(--v50-page);
}

.admin-pro-v50 .dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 42px minmax(250px, 430px) 1fr;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  margin: 0;
  padding: 10px 22px;
  color: #fff;
  background: linear-gradient(100deg, #071f42 0%, #061a37 100%);
  border: 0;
  border-radius: 0;
  box-shadow: 0 5px 20px rgba(7,29,61,.16);
}

.admin-pro-v50 .admin-v50-menu,
.admin-pro-v50 .admin-v50-signout {
  color: #dbe8f8;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.admin-pro-v50 .admin-v50-menu { font-size: 1.15rem; }

.admin-pro-v50 .admin-v50-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(157,188,229,.28);
  border-radius: 6px;
  background: rgba(1,13,32,.2);
}

.admin-pro-v50 .admin-v50-search span { color: #91a9c8; }
.admin-pro-v50 .admin-v50-search input {
  width: 100%;
  padding: 0;
  color: #fff;
  border: 0;
  outline: 0;
  background: transparent;
}
.admin-pro-v50 .admin-v50-search input::placeholder { color: #8ea5c4; }

.admin-pro-v50 .admin-v50-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-pro-v50 .admin-v50-account > span:nth-child(3) { display: grid; line-height: 1.15; }
.admin-pro-v50 .admin-v50-account strong { color: #fff; font-size: .78rem; }
.admin-pro-v50 .admin-v50-account small { color: #9fb3cc; font-size: .66rem; }
.admin-pro-v50 .admin-v50-notification { color: #f2b31a; font-size: 1.15rem; }
.admin-pro-v50 .admin-v50-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #dceaff;
  border: 1px solid rgba(179,205,238,.45);
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 800;
}
.admin-pro-v50 .admin-v50-signout { padding: 6px; font-size: .73rem; }

.admin-pro-v50 .access-denied { margin: 22px; }
.admin-pro-v50 .admin-workspace {
  display: grid;
  gap: 14px;
  width: auto;
  max-width: none;
  padding: 18px 20px 34px;
}

.admin-pro-v50 .admin-v50-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.admin-pro-v50 .admin-v50-heading h1 { margin: 0; font-size: 1.42rem; letter-spacing: -.025em; }
.admin-pro-v50 .admin-v50-heading p { margin: 4px 0 0; color: var(--v50-muted); font-size: .84rem; }
.admin-pro-v50 .btn { border-radius: 6px; }
.admin-pro-v50 .btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #0870e7, #0754bd);
  border-color: transparent;
  box-shadow: 0 5px 13px rgba(9,100,216,.2);
}

.admin-pro-v50 .admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.admin-pro-v50 .admin-v50-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 15px;
  border: 1px solid var(--v50-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(25,44,75,.045);
}
.admin-pro-v50 .admin-v50-stat > div { display: grid; gap: 2px; min-width: 0; }
.admin-pro-v50 .admin-v50-stat > div > span { color: #3f4b61; font-size: .78rem; font-weight: 700; }
.admin-pro-v50 .admin-v50-stat strong { color: #152138; font-size: 1.45rem; line-height: 1.1; }
.admin-pro-v50 .admin-v50-stat small { color: var(--v50-muted); font-size: .68rem; }
.admin-pro-v50 .admin-v50-stat-icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
}
.admin-pro-v50 .stat-total .admin-v50-stat-icon { background: #0964d8; }
.admin-pro-v50 .stat-active .admin-v50-stat-icon { background: #38ae64; }
.admin-pro-v50 .stat-suspended .admin-v50-stat-icon { background: #e9a205; }
.admin-pro-v50 .stat-founder .admin-v50-stat-icon { background: #8f50d7; }

.admin-pro-v50 .admin-v50-analytics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(280px, 1.15fr);
  gap: 12px;
}
.admin-pro-v50 .admin-v50-analytics-card,
.admin-pro-v50 .admin-v50-recent-card,
.admin-pro-v50 .panel-card,
.admin-pro-v50 .table-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--v50-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(25,44,75,.04);
}
.admin-pro-v50 .admin-v50-card-head,
.admin-pro-v50 .admin-v50-recent-grid .admin-v50-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin-pro-v50 .admin-v50-card-head h2 { margin: 0; font-size: .88rem; }
.admin-pro-v50 .admin-v50-card-head p { margin: 3px 0 0; color: var(--v50-muted); font-size: .68rem; }
.admin-pro-v50 .admin-v50-card-head > strong { color: #135dca; font-size: 1rem; }
.admin-pro-v50 .admin-v50-card-head a,
.admin-pro-v50 .admin-v50-unavailable a,
.admin-pro-v50 .admin-v50-text-link { color: #0964d8; font-size: .72rem; font-weight: 750; text-decoration: none; }
.admin-pro-v50 .admin-v50-info {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: #718098;
  border: 1px solid #a8b5c7;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 800;
}
.admin-pro-v50 .admin-v50-unavailable {
  display: grid;
  gap: 7px;
  min-height: 112px;
  margin-top: 12px;
  padding: 14px;
  align-content: center;
  border: 1px dashed #cbd7e7;
  border-radius: 6px;
  background: #f8fafc;
}
.admin-pro-v50 .admin-v50-unavailable strong { font-size: .88rem; }
.admin-pro-v50 .admin-v50-unavailable span,
.admin-pro-v50 .admin-v50-unavailable small { color: var(--v50-muted); font-size: .72rem; line-height: 1.45; }

.admin-pro-v50 .admin-v50-growth-chart {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 104px;
  margin-top: 14px;
  padding: 8px 4px 0;
  border-bottom: 1px solid #dce6f2;
  background: linear-gradient(180deg, rgba(237,245,255,.2), rgba(237,245,255,.75));
}
.admin-pro-v50 .admin-v50-growth-chart i {
  flex: 1;
  min-width: 2px;
  max-width: 10px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #1671e8, #83b7f8);
}
.admin-pro-v50 .admin-v50-chart-axis { display: flex; justify-content: space-between; margin-top: 5px; color: #8793a6; font-size: .61rem; }

.admin-pro-v50 .admin-v50-recent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-pro-v50 .admin-v50-list { display: grid; margin-top: 9px; }
.admin-pro-v50 .admin-v50-list-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 7px 2px;
  border-top: 1px solid #edf1f6;
}
.admin-pro-v50 .admin-v50-list-row > span:nth-child(2) { display: grid; min-width: 0; }
.admin-pro-v50 .admin-v50-list-row strong { overflow: hidden; color: #26334a; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-pro-v50 .admin-v50-list-row small { overflow: hidden; color: var(--v50-muted); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-pro-v50 .admin-v50-list-avatar,
.admin-pro-v50 .admin-v50-activity-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: #1768cf;
  border-radius: 50%;
  background: #e9f2ff;
  font-size: .64rem;
  font-weight: 800;
}
.admin-pro-v50 .admin-v50-activity-icon { color: #259452; background: #e7f8ed; font-size: .9rem; }
.admin-pro-v50 .admin-v50-activity-row time { max-width: 132px; color: #7d899c; font-size: .62rem; text-align: right; }
.admin-pro-v50 .admin-v50-empty { padding: 22px 8px; color: var(--v50-muted); font-size: .75rem; text-align: center; }

.admin-pro-v50 .admin-v50-preview-card { padding: 0; overflow: hidden; }
.admin-pro-v50 .admin-v50-preview-card .section-head { margin: 0; padding: 13px 15px; border-bottom: 1px solid var(--v50-line); }
.admin-pro-v50 .admin-v50-preview-card h2 span { color: var(--v50-muted); font-weight: 500; }
.admin-pro-v50 .admin-v50-preview-table { min-width: 780px; }
.admin-pro-v50 .admin-v50-preview-table th,
.admin-pro-v50 .admin-agent-table th { padding: 9px 11px; color: #5f6c80; background: #f8fafc; font-size: .66rem; letter-spacing: .035em; text-transform: uppercase; }
.admin-pro-v50 .admin-v50-preview-table td,
.admin-pro-v50 .admin-agent-table td { padding: 9px 11px; border-top: 1px solid #edf1f6; font-size: .72rem; vertical-align: middle; }
.admin-pro-v50 .status-pill { padding: 3px 7px; border-radius: 999px; font-size: .62rem; }
.admin-pro-v50 .admin-agent-identity { display: grid; gap: 1px; }
.admin-pro-v50 .admin-agent-identity strong { font-size: .73rem; }
.admin-pro-v50 .admin-agent-identity small { color: var(--v50-muted); font-size: .62rem; }

.admin-pro-v50 .admin-create-card,
.admin-pro-v50 #editPanel,
.admin-pro-v50 #resetPanel,
.admin-pro-v50 #rechargePanel,
.admin-pro-v50 #brandingPanel,
.admin-pro-v50 #agentsPanel,
.admin-pro-v50 #settingsPanel { scroll-margin-top: 82px; }
.admin-pro-v50 .admin-create-card { margin-top: 4px; }
.admin-pro-v50 .admin-form input,
.admin-pro-v50 .admin-form select,
.admin-pro-v50 .admin-form textarea { border-color: #d5dfeb; border-radius: 6px; background: #fbfcfe; }
.admin-pro-v50 .admin-agent-table { min-width: 1040px; }
.admin-pro-v50 .admin-action-group { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-pro-v50 .admin-action-group .btn { min-height: 30px; padding: 5px 8px; font-size: .68rem; }
.admin-pro-v50 .admin-table-toolbar { align-items: end; }
.admin-pro-v50 .admin-table-toolbar > p { margin: 0 auto 8px 0; }

@media (max-width: 1220px) {
  .admin-pro-v50 .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-pro-v50 .admin-v50-analytics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-pro-v50 .admin-v50-growth { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .admin-pro-v50 .admin-v50-shell { display: block; }
  .admin-pro-v50 .dashboard-sidebar {
    position: fixed;
    left: -250px;
    width: 232px;
    transition: left .2s ease;
  }
  .admin-pro-v50.admin-v50-nav-open .dashboard-sidebar { left: 0; box-shadow: 18px 0 42px rgba(3,16,35,.28); }
  .admin-pro-v50 .dashboard-topbar { grid-template-columns: 38px minmax(180px, 1fr) auto; padding-inline: 14px; }
  .admin-pro-v50 .admin-v50-account > span:nth-child(3) { display: none; }
}

@media (max-width: 680px) {
  .admin-pro-v50 .dashboard-topbar { grid-template-columns: 34px minmax(120px, 1fr) auto; gap: 7px; min-height: 60px; padding: 8px 10px; }
  .admin-pro-v50 .admin-v50-notification,
  .admin-pro-v50 .admin-v50-signout { display: none; }
  .admin-pro-v50 .admin-workspace { gap: 11px; padding: 13px 10px 24px; }
  .admin-pro-v50 .admin-v50-heading { align-items: flex-start; }
  .admin-pro-v50 .admin-v50-heading h1 { font-size: 1.15rem; }
  .admin-pro-v50 .admin-v50-heading p { font-size: .72rem; }
  .admin-pro-v50 .admin-v50-heading .btn { padding: 8px 10px; font-size: .72rem; white-space: nowrap; }
  .admin-pro-v50 .admin-stat-grid,
  .admin-pro-v50 .admin-v50-analytics,
  .admin-pro-v50 .admin-v50-recent-grid { grid-template-columns: 1fr; }
  .admin-pro-v50 .admin-v50-growth { grid-column: auto; }
  .admin-pro-v50 .admin-v50-stat { min-height: 78px; }
  .admin-pro-v50 .admin-v50-activity-row time { display: none; }
}

.mini-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: #f8fbff;
}

.mini-rich-toolbar .rich-control {
  width: auto;
  min-width: 86px;
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.mini-rich-toolbar .rich-divider {
  width: 1px;
  height: 24px;
  background: #d4e0ec;
}

.mini-rich-toolbar .btn.tiny {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1;
}

.rich-size-small {
  font-size: 0.88em;
}

.rich-size-normal {
  font-size: 1em;
}

.rich-size-large {
  font-size: 1.2em;
  font-weight: 800;
}

.rich-align-left {
  text-align: left;
}

.rich-align-center {
  text-align: center;
}

.rich-align-right {
  text-align: right;
}

.personal-builder-shell .builder-letterhead-card {
  margin: 0;
  box-shadow: none;
}

.personal-builder-page .quote-rendered {
  background: #fff;
  color: #172033;
}

.personal-builder-page .quote-brand-header {
  border-radius: 0;
  border: 0;
  border-bottom: 4px solid var(--quote-primary, #0f766e);
  background: #fff;
}

.personal-builder-page .quote-lite-cover {
  padding: 18px 20px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.personal-builder-page .quote-lite-cover h2 {
  font-size: 27px;
  color: var(--pb-navy);
}

.personal-builder-page .quote-lite-hero {
  max-height: 320px;
  border-radius: 8px;
}

.personal-builder-page .quote-section-lite {
  margin: 14px 20px;
  padding: 14px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: #fff;
}

.personal-builder-page .quote-section-lite h3 {
  margin: 0 0 10px;
  color: var(--pb-blue);
  font-size: 17px;
}

@media (max-width: 1180px) {
  .personal-builder-shell {
    grid-template-columns: 1fr;
  }

  .personal-builder-shell .preview-pane {
    position: static;
    max-height: none;
  }

  .personal-builder-shell .quote-paper {
    min-height: 520px;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .personal-builder-page .topbar,
  .personal-builder-topbar,
  .personal-builder-page .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .personal-builder-shell {
    padding: 10px;
  }

  .personal-builder-shell .field-grid.two,
  .personal-builder-shell .field-grid.three,
  .personal-builder-shell .mini-grid,
  .personal-builder-shell .url-add-box,
  .personal-builder-shell .builder-letterhead-card {
    grid-template-columns: 1fr;
  }

  .personal-builder-shell .day-image-row,
  .personal-builder-shell .hotel-image-row,
  .personal-builder-shell .line-editor-row {
    grid-template-columns: 1fr;
  }

  .personal-builder-shell .day-image-thumb {
    width: 100%;
    height: 170px;
  }

  .personal-builder-page .btn {
    width: 100%;
  }
}

/* QuoteSuite v21: standalone-style quote builder and print/PDF output */
.personal-builder-page .top-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0 12px;
  background: #fff;
  color: #102133;
  font-weight: 900;
}

.personal-builder-page .top-icon-btn.save {
  border-color: #006aa6;
  background: #006aa6;
  color: #fff;
}

.personal-builder-page .top-icon-btn.pdf {
  border-color: #c2410c;
  background: #c2410c;
  color: #fff;
}

.personal-builder-page .top-icon-btn.share {
  border-color: #cbd5e1;
  background: #fff;
}

.personal-builder-page .top-icon-btn.preview {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.theme-picker select {
  min-width: 154px;
  border: 0;
  background: transparent;
  color: #102133;
  font-size: 14px;
  font-weight: 900;
  outline: 0;
  text-transform: none;
}

.icon-disk,
.icon-download,
.icon-share,
.icon-eye {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.icon-disk {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 3h13l1 1v17H4V4l1-1Zm2 2v5h10V5H7Zm10 14v-6H7v6h10Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 3h13l1 1v17H4V4l1-1Zm2 2v5h10V5H7Zm10 14v-6H7v6h10Z'/%3E%3C/svg%3E");
}

.icon-download {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 3h2v10l4-4 1.4 1.4L12 16.8l-6.4-6.4L7 9l4 4V3ZM5 19h14v2H5v-2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 3h2v10l4-4 1.4 1.4L12 16.8l-6.4-6.4L7 9l4 4V3ZM5 19h14v2H5v-2Z'/%3E%3C/svg%3E");
}

.icon-share {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 16.1c-.8 0-1.5.3-2 .9L8.9 12.8c.1-.3.1-.5.1-.8s0-.5-.1-.8L16 7c.5.5 1.2.8 2 .8a3 3 0 1 0-3-3c0 .3.1.5.1.8L8 9.8A3 3 0 1 0 8 14.2l7.1 4.2c-.1.2-.1.5-.1.7a3 3 0 1 0 3-3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 16.1c-.8 0-1.5.3-2 .9L8.9 12.8c.1-.3.1-.5.1-.8s0-.5-.1-.8L16 7c.5.5 1.2.8 2 .8a3 3 0 1 0-3-3c0 .3.1.5.1.8L8 9.8A3 3 0 1 0 8 14.2l7.1 4.2c-.1.2-.1.5-.1.7a3 3 0 1 0 3-3Z'/%3E%3C/svg%3E");
}

.icon-eye {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5c5 0 8.7 4.3 10 7-1.3 2.7-5 7-10 7S3.3 14.7 2 12c1.3-2.7 5-7 10-7Zm0 2C8.5 7 5.8 9.5 4.3 12 5.8 14.5 8.5 17 12 17s6.2-2.5 7.7-5C18.2 9.5 15.5 7 12 7Zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5c5 0 8.7 4.3 10 7-1.3 2.7-5 7-10 7S3.3 14.7 2 12c1.3-2.7 5-7 10-7Zm0 2C8.5 7 5.8 9.5 4.3 12 5.8 14.5 8.5 17 12 17s6.2-2.5 7.7-5C18.2 9.5 15.5 7 12 7Zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6Z'/%3E%3C/svg%3E");
}

.personal-builder-page .nav-mini {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.city-night-row,
.transport-row-card,
.pricing-option-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: #fff;
}

.transport-row-card {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.pricing-option-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 136px 136px auto;
}

.pricing-final-amount {
  font-weight: 900;
}

.pricing-final-amount strong {
  font-weight: 950;
}

.pricing-calculator-card {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: stretch;
  margin: 12px 0 16px;
}

.pricing-calculator-fields,
.pricing-summary-card {
  border: 1px solid #d9e4f2;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  padding: 16px;
}

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

.pricing-calculator-head strong {
  display: block;
  color: #102133;
  font-size: 18px;
  font-weight: 900;
}

.pricing-calculator-head p {
  margin: 3px 0 0;
  color: #5f6f86;
  font-size: 13px;
}

.soft-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #eef6ff;
  color: #075985;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.pricing-setting-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inline-input-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.tiny-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #42526a;
  font-size: 12px;
  font-weight: 800;
}

.tiny-check input {
  width: auto;
  min-height: auto;
}

.pricing-summary-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.summary-label,
.quote-summary-label {
  color: #718096;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-summary-row,
.quote-pricing-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 0;
  color: #475569;
}

.pricing-summary-row strong,
.quote-pricing-summary-row strong {
  color: #111827;
  white-space: nowrap;
}

.pricing-summary-total,
.quote-pricing-grand {
  margin-top: auto;
  border-top: 1px solid #cbd5e1;
  padding-top: 14px;
}

.pricing-summary-total span,
.quote-pricing-grand span {
  display: block;
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-summary-total strong,
.quote-pricing-grand strong {
  display: block;
  margin-top: 4px;
  color: #4f46e5;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.pricing-summary-card small {
  color: #718096;
  font-size: 12px;
}

.pricing-option-heading {
  display: block;
  margin-bottom: 12px;
}

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

.unsplash-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.unsplash-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}

.unsplash-dialog {
  position: relative;
  width: min(1120px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.22);
  padding: 24px;
}

.unsplash-dialog-head,
.unsplash-search-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.unsplash-dialog-head h2 {
  margin: 4px 0;
}

.unsplash-search-row {
  align-items: center;
  margin: 18px 0 12px;
}

.unsplash-search-row input {
  flex: 1;
  min-width: 0;
}

.unsplash-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.unsplash-photo-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.unsplash-photo-card button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.unsplash-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.unsplash-photo-card span {
  display: inline-block;
  margin: 10px 12px 0;
  color: var(--primary);
  font-weight: 800;
}

.unsplash-photo-card p {
  margin: 4px 12px 12px;
  color: var(--muted);
  font-size: 12px;
}

.legacy-pricing-block {
  margin-top: 18px;
  border-top: 1px dashed #cbd5e1;
  padding-top: 16px;
}

.legacy-pricing-block .section-subtitle {
  margin-bottom: 10px;
}

.quote-pricing-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 20px;
  margin-bottom: 18px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.hotel-option-card {
  border-left: 4px solid #006aa6;
}

.hotel-row-card {
  border-left: 3px solid #c2410c;
}

.mini-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.personal-builder-page .mini-rich-toolbar {
  align-items: center;
  gap: 6px;
  padding: 8px;
  margin: 8px 0 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.rich-toolbar-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rich-tool-btn {
  display: inline-flex;
  min-width: 34px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #d7e2ef;
  border-radius: 9px;
  padding: 5px 7px;
  color: #172033;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.rich-tool-btn:hover,
.rich-tool-btn:focus {
  border-color: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.rich-tool-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.personal-builder-page .mini-rich-toolbar .rich-divider {
  width: 1px;
  height: 24px;
  margin: 0 2px;
  background: #d7e2ef;
}

.wysiwyg-source {
  display: none !important;
}

.wysiwyg-editor {
  width: 100%;
  min-height: 126px;
  border: 1px solid #cbd5df;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  line-height: 1.55;
  background: #ffffff;
  overflow: auto;
}

.wysiwyg-editor:empty::before {
  content: attr(data-placeholder);
  color: #8b98aa;
  font-style: italic;
  pointer-events: none;
}

.wysiwyg-editor:focus {
  outline: 3px solid rgba(37, 99, 235, 0.16);
  border-color: var(--primary);
}

.wysiwyg-editor p {
  margin: 0 0 8px;
}

.wysiwyg-editor ul,
.wysiwyg-editor ol {
  margin: 0 0 8px 20px;
  padding: 0;
}

.wysiwyg-editor a {
  color: #2563eb;
  font-weight: 750;
  text-decoration: underline;
}

.wysiwyg-editor mark {
  border-radius: 4px;
  padding: 0 3px;
  background: #fff3b0;
}

.mini-grid .wysiwyg-editor {
  min-height: 104px;
}

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

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.preview-modal[hidden],
.print-quote-host {
  display: none;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 22px;
}

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

.preview-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, 96vw);
  max-height: 92vh;
  border: 1px solid #d8e4ef;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.preview-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #d8e4ef;
  background: #fff;
}

.preview-dialog-head h2 {
  margin: 0;
}

.preview-modal-paper {
  max-height: calc(92vh - 92px);
  overflow: auto;
  margin: 0;
  padding: 22px;
  background: #eef3f8;
}

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 31, .46);
}

.share-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 33, 51, .25);
}

.share-dialog-head,
.share-link-row,
.share-actions-grid {
  display: flex;
  gap: 10px;
}

.share-dialog-head {
  align-items: center;
  justify-content: space-between;
}

.share-dialog-head h2 {
  margin: 0;
  font-size: 20px;
}

.share-link-row input {
  min-width: 0;
  flex: 1;
}

.share-actions-grid {
  flex-wrap: wrap;
}

.personal-builder-shell .ai-import-section {
  border-color: #b9ded6;
  background: #f7fffd;
  gap: 10px;
  padding-block: 12px;
}

.ai-import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: start;
}

.ai-import-layout > label {
  align-self: start;
}

.ai-import-layout textarea {
  min-height: 150px;
  max-height: 220px;
  resize: vertical;
}

.ai-import-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  justify-content: flex-start;
  padding: 11px;
  border: 1px solid #d9e8e4;
  border-radius: 8px;
  background: #fff;
}

.ai-import-actions .field-note {
  margin: 4px 0;
}

.ai-attachment-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e0ece9;
  border-radius: 8px;
  background: #f8fcfb;
}

.ai-attachment-panel label {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.ai-attachment-panel input[type="file"],
.ai-attachment-panel input[type="url"] {
  width: 100%;
  min-width: 0;
  font-size: 12px;
}

.ai-attachment-list {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ai-attachment-list strong {
  color: var(--text);
}

.ai-import-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-import-status {
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef7ff;
}

.ai-validation-note {
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: -6px;
}

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

.ai-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ai-import-shell {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 35% 72%, rgba(34, 211, 238, 0.16), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.16), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 48%, #f4efff 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ai-import-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.ai-main-badge,
.ai-direct-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.ai-main-badge {
  width: 46px;
  height: 46px;
  font-size: 22px;
}

.ai-direct-badge {
  width: 42px;
  height: 42px;
}

.ai-import-header h2,
.ai-direct-card h3 {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
}

.ai-import-header h2 {
  font-size: 24px;
}

.ai-import-header p,
.ai-direct-card p {
  margin: 4px 0 0;
  color: #64748b;
  font-weight: 700;
  line-height: 1.45;
}

.ai-import-shell .ai-import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.44fr);
  gap: 24px;
  align-items: stretch;
}

.ai-paste-panel {
  display: grid;
  align-content: stretch;
  min-width: 0;
}

.ai-paste-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.ai-inline-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #eaf4ff;
  color: #2563eb;
  font-size: 10px;
  font-weight: 900;
}

.ai-import-shell .ai-paste-textarea {
  min-height: 210px;
  max-height: 260px;
  padding: 24px;
  border: 1px solid rgba(59, 130, 246, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 0 34px rgba(59, 130, 246, 0.16);
  color: #0f172a;
  font-size: 15px;
  line-height: 1.6;
}

.ai-import-shell .ai-paste-textarea::placeholder {
  color: #8794a9;
  font-style: italic;
}

.ai-paste-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  color: #50617a;
  font-size: 13px;
  font-weight: 800;
}

.ai-paste-meta p {
  margin: 0;
}

.ai-count-pill {
  white-space: nowrap;
  color: #0f1f3a;
}

.ai-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.ai-feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.ai-feature-card > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 900;
}

.ai-feature-card.blue > span {
  background: #e7f0ff;
  color: #2563eb;
}

.ai-feature-card.purple > span {
  background: #f0eaff;
  color: #7c3aed;
}

.ai-feature-card.teal > span {
  background: #e4fbf6;
  color: #0f9f8e;
}

.ai-feature-card strong,
.ai-feature-card small {
  display: block;
}

.ai-feature-card strong {
  color: #2563eb;
  font-size: 12px;
}

.ai-feature-card small {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.ai-direct-card {
  position: relative;
  display: grid;
  align-content: stretch;
  gap: 11px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.ai-sparkle {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(139, 92, 246, 0.36);
  font-size: 34px;
}

.ai-direct-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-right: 34px;
}

.ai-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chip-row span {
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: #315fb8;
  font-size: 12px;
  font-weight: 900;
}

.ai-chip-row span:nth-child(2) {
  background: rgba(139, 92, 246, 0.1);
  color: #6d4cc2;
}

.ai-chip-row span:nth-child(3) {
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
}

.ai-upload-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: #0f172a;
  font-weight: 900;
}

.ai-upload-head small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.ai-upload-dropzone {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 82px;
  padding: 14px;
  border: 1px dashed rgba(59, 130, 246, 0.58);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.72);
  color: #334155;
  text-align: center;
  cursor: pointer;
}

.ai-upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ai-upload-icon {
  color: #3b82f6;
  font-weight: 900;
}

.ai-upload-dropzone small {
  color: #2563eb;
  font-weight: 800;
}

.ai-url-label {
  display: grid;
  gap: 6px;
  color: #0f172a;
  font-weight: 900;
}

.ai-url-label small {
  color: #64748b;
  font-weight: 700;
}

.ai-url-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.ai-url-input-wrap input {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ai-read-action,
.ai-primary-action,
.ai-secondary-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-family: inherit;
  cursor: pointer;
}

.ai-read-action {
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.68);
  color: #1e293b;
}

.ai-read-action span:nth-child(2),
.ai-primary-action span:nth-child(2),
.ai-secondary-action span:nth-child(2) {
  display: grid;
  flex: 1;
  text-align: left;
}

.ai-read-action small,
.ai-primary-action small,
.ai-secondary-action small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
}

.ai-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.ai-primary-action {
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid rgba(96, 165, 250, 0.55);
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  color: #fff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.ai-primary-action strong {
  font-size: 16px;
}

.ai-primary-action small {
  color: rgba(255, 255, 255, 0.9);
}

.ai-secondary-action {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.66);
  color: #0f172a;
}

.ai-secure-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.ai-secure-foot a {
  color: #2563eb;
  text-decoration: none;
}

.ai-inline-icon svg,
.ai-meta-icon svg,
.ai-feature-card > span svg,
.ai-upload-icon svg,
.ai-url-icon svg,
.ai-action-icon svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.ai-meta-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  margin-right: 6px;
  color: #2563eb;
  vertical-align: -3px;
}

.ai-feature-card > span {
  font-size: 18px;
}

.ai-upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 2px;
  color: #3b82f6;
  font-size: 42px;
}

.ai-url-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #64748b;
  font-size: 20px;
  flex: 0 0 auto;
}

.ai-action-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: #2563eb;
  font-size: 19px;
  flex: 0 0 auto;
}

.ai-primary-action .ai-action-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.ai-secondary-action .ai-action-icon {
  background: #eef2ff;
  color: #64748b;
}

@media (max-width: 1180px) {
  .ai-import-shell .ai-import-layout {
    grid-template-columns: 1fr;
  }

  .ai-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ai-import-shell {
    padding: 18px;
    border-radius: 18px;
  }

  .ai-import-header {
    align-items: flex-start;
  }

  .ai-import-header h2 {
    font-size: 23px;
  }

  .ai-feature-grid,
  .ai-action-row {
    grid-template-columns: 1fr;
  }

  .ai-paste-meta,
  .ai-upload-head,
  .ai-secure-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-import-shell .ai-paste-textarea {
    min-height: 260px;
    padding: 20px;
  }
}

.ai-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 31, .52);
}

.ai-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(86vh, 840px);
  overflow: auto;
  display: grid;
  gap: 16px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 33, 51, .28);
}

.ai-preview-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.ai-preview-head h2,
.ai-preview-grid h3 {
  margin: 0;
}

.ai-preview-head p {
  margin: 4px 0 0;
  color: #607086;
}

.ai-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 14px;
}

.ai-preview-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ai-preview-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  background: #fbfdff;
}

.ai-preview-item strong {
  color: #122033;
}

.ai-preview-item span,
.ai-preview-item small {
  color: #56657a;
}

.ai-preview-item.warning {
  border-color: #ffd6d6;
  background: #fff7f7;
}

.ai-preview-item.caution {
  border-color: #ffe4b5;
  background: #fffaf0;
}

.ai-json-preview {
  border: 1px solid #dce6f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdff;
}

.ai-json-preview summary {
  cursor: pointer;
  font-weight: 800;
}

.ai-json-preview pre {
  max-height: 280px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #101828;
  color: #f8fafc;
  font-size: 12px;
  white-space: pre-wrap;
}

.ai-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .ai-import-layout,
  .ai-preview-grid {
    grid-template-columns: 1fr;
  }

  .ai-preview-dialog {
    max-height: 90vh;
  }
}

.personal-builder-page .quote-paper {
  background: #f7f9fb;
}

.standalone-quote-rendered {
  display: block;
  width: 100%;
  background: #fff;
  color: #122033;
  font-size: 13px;
}

.quote-theme-luxury {
  --quote-primary: #7a4b00 !important;
  --quote-accent: #b8860b !important;
  color: #21170c;
}

.quote-theme-modern {
  --quote-primary: #0f766e !important;
  --quote-accent: #2563eb !important;
  color: #0f172a;
}

.quote-theme-compact {
  --quote-primary: #1f2937 !important;
  --quote-accent: #475569 !important;
  font-size: 12px;
}

.quote-theme-editorial {
  --quote-primary: #7c2d12 !important;
  --quote-accent: #c2410c !important;
  color: #24160f;
}

.quote-theme-luxury .tour-cover {
  background-position: center;
}

.quote-theme-luxury .quote-section-title,
.quote-theme-luxury .hotel-section-title {
  color: #7a4b00;
  letter-spacing: .04em;
}

.quote-theme-modern .letterhead {
  border-bottom: 4px solid #0f766e;
}

.quote-theme-modern .tour-cover {
  border-radius: 0 0 22px 22px;
}

.quote-theme-compact .letterhead {
  padding: 14px 18px 10px;
}

.quote-theme-compact .tour-cover {
  min-height: 260px;
}

.quote-theme-compact .quote-section {
  padding: 14px 18px;
}

.quote-theme-compact .day-card {
  padding: 10px 0;
}

.quote-theme-editorial {
  font-family: Georgia, "Times New Roman", serif;
}

.quote-theme-editorial .letterhead,
.quote-theme-editorial .quote-section,
.quote-theme-editorial .quote-lite-footer {
  background: #fffaf3;
}

.quote-theme-editorial .tour-cover h1,
.quote-theme-editorial .stay-copy h4 {
  font-family: Georgia, "Times New Roman", serif;
}

.standalone-quote-rendered .letterhead {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #e5edf5;
  background: #fff;
}

.standalone-quote-rendered .letterhead-logo {
  display: grid;
  flex: 0 0 auto;
  width: 92px;
  height: 74px;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.standalone-quote-rendered .letterhead-logo img {
  max-width: 92px;
  max-height: 74px;
  object-fit: contain;
}

.standalone-quote-rendered .letterhead-logo span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 10px;
  background: var(--quote-primary);
  color: #fff;
  font-weight: 900;
}

.standalone-quote-rendered .letterhead h2 {
  margin: 0 0 4px;
  color: #102133;
  font-size: 22px;
}

.standalone-quote-rendered .letterhead p {
  margin: 2px 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.tour-cover {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(120deg, #06324f, #006aa6);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.tour-cover::before {
  content: none;
}

.tour-cover.no-image {
  background-image: linear-gradient(120deg, #06324f, #006aa6) !important;
}

.tour-cover-inner {
  width: 100%;
  padding: 44px 28px 30px;
  background: transparent;
}

.tour-cover h1 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  color: #fff;
}

.quote-rendered .tour-cover h1,
.quote-rendered .tour-cover .prepared-line,
.quote-rendered .tour-cover .prepared-line span,
.quote-rendered .tour-cover .prepared-line strong,
.quote-rendered .tour-cover .reference-line,
.quote-rendered .tour-cover .reference-line strong,
.quote-rendered .tour-cover .cover-meta-row {
  color: #fff !important;
  -webkit-text-stroke: .35px rgba(0, 0, 0, .92);
  paint-order: stroke fill;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .98), 0 2px 7px rgba(0, 0, 0, .9);
}

.quote-rendered .tour-cover h1 {
  -webkit-text-stroke: .7px rgba(0, 0, 0, .96);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 1), 0 3px 9px rgba(0, 0, 0, .92);
}

.quote-rendered .tour-cover .cover-meta-row svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .95));
}

.prepared-line,
.reference-line {
  margin-top: 7px;
  font-size: 15px;
}

.prepared-line span {
  opacity: .82;
}

.tour-cover-rule {
  width: 100%;
  height: 1px;
  margin: 16px 0;
  background: rgba(255,255,255,.42);
}

.cover-meta {
  display: grid;
  gap: 9px;
  font-size: 16px;
  font-weight: 900;
}

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

.cover-meta-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  padding: 12px 20px 0;
}

.hero-gallery img {
  width: 100%;
  height: 110px;
  border-radius: 6px;
  object-fit: cover;
}

.quote-section {
  margin: 18px 24px;
  break-inside: avoid;
}

.section-heading {
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 2px solid #e2e8f0;
  color: #006aa6;
  font-size: 18px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.section-heading.orange {
  color: #b36a00;
}

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

.brief-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.brief-row > strong {
  color: #006aa6;
}

.brief-row p {
  margin: 5px 0 0;
}

.note-box {
  margin-bottom: 12px;
  border-left: 4px solid #f2b84b;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff7df;
  color: #66460f;
}

.note-box p {
  margin: 4px 0 0;
}

.small-note {
  margin-top: 10px;
  margin-bottom: 0;
}

.day-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 88px;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e8eef5;
  break-inside: avoid;
}

.day-card:last-child {
  border-bottom: 0;
}

.day-pill {
  display: inline-grid;
  min-width: 62px;
  place-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: #f0f4f8;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.day-title {
  margin: 0;
  color: #1f3657;
  font-size: 18px;
}

.day-date {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.day-content {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
}

.day-card.no-day-images .day-content {
  grid-template-columns: 1fr;
}

.day-image-stack {
  display: grid;
  gap: 8px;
  align-content: start;
}

.day-image-stack figure {
  margin: 0;
}

.day-image-stack img {
  display: block;
  width: 150px;
  height: 98px;
  border-radius: 6px;
  object-fit: cover;
}

.day-image-stack figcaption {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.day-plan p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.meal-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  border-radius: 6px;
  padding: 8px 11px;
  background: #fff3e7;
  color: #9a3412;
  font-weight: 900;
}

.hotel-option-block {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.hotel-option-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
  color: #102133;
  font-weight: 900;
}

.hotel-option-heading span {
  color: #b36a00;
}

.stay-card {
  border: 1px solid #d8e4ef;
  background: #fff;
  break-inside: avoid;
}

.stay-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #00527f, #006aa6);
  color: #fff;
  font-size: 16px;
}

.stay-banner span {
  font-size: 12px;
  font-weight: 900;
}

.hotel-row-display {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.hotel-row-display.no-hotel-image {
  grid-template-columns: 1fr;
}

.hotel-row-display-image img,
.stay-image-placeholder {
  display: block;
  width: 120px;
  height: 92px;
  border-radius: 4px;
  object-fit: cover;
  background: #e7edf4;
}

.stay-stars {
  margin-bottom: 4px;
  color: #f59e0b;
  font-weight: 900;
}

.stay-copy h4 {
  margin: 0 0 7px;
  color: #2d1f16;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.stay-detail-row {
  color: #64748b;
  font-size: 13px;
}

.hotel-extra-images {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.hotel-extra-images img {
  width: 72px;
  height: 58px;
  border-radius: 4px;
  object-fit: cover;
}

.transport-card {
  margin-bottom: 14px;
}

.transport-card-body {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.transport-row-display {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  background: #f8fafc;
}

.transport-row-display b {
  color: #006aa6;
}

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

.info-block {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.info-block h4,
.pricing-group-display h4 {
  margin: 0 0 8px;
  color: #102133;
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.quote-table th,
.quote-table td {
  border: 1px solid #d8e4ef;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.quote-table th {
  background: #f0f5f9;
  color: #102133;
}

.quote-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.quote-lite-footer {
  margin: 18px 24px 24px;
  border-top: 2px solid var(--quote-accent);
  padding-top: 12px;
}

mark {
  border-radius: 3px;
  padding: 0 3px;
  background: #fff3b0;
}

.rich-grey {
  color: #64748b;
}

.rich-orange {
  color: #c2410c;
  font-weight: 800;
}

.rich-blue {
  color: #006aa6;
  font-weight: 800;
}

.transport-note {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .pricing-calculator-card,
  .quote-pricing-summary {
    grid-template-columns: 1fr;
  }

  .pricing-setting-grid {
    grid-template-columns: 1fr;
  }

  .pricing-summary-total strong,
  .quote-pricing-grand strong {
    font-size: 24px;
  }

  .city-night-row,
  .transport-row-card,
  .pricing-option-row,
  .transport-row-display,
  .brief-row,
  .day-card,
  .day-content,
  .hotel-row-display,
  .inclusion-grid,
  .terms-grid {
    grid-template-columns: 1fr;
  }

  .day-content {
    grid-column: 1 / -1;
  }

  .day-date {
    text-align: left;
  }

  .day-image-stack img,
  .hotel-row-display-image img,
  .stay-image-placeholder {
    width: 100%;
    height: auto;
    max-height: 220px;
  }
}

@media (max-width: 920px) {
  .public-quote-page .public-quote-shell {
    width: min(100% - 22px, 760px);
    padding-top: 16px;
  }

  .public-quote-layout {
    grid-template-columns: 1fr;
  }

  .public-quote-actions-card {
    position: static;
    order: -1;
  }

  .public-quote-main-head h1 {
    font-size: 28px;
  }
}

@page {
  size: A4;
  margin: 8mm;
}

@media print {

  .personal-builder-page {
    background: #fff !important;
  }

  .personal-builder-topbar,
  .personal-builder-shell .editor-pane,
  .personal-builder-shell .preview-toolbar,
  .global-status,
  .share-modal,
  .preview-modal,
  .access-denied {
    display: none !important;
  }

  .print-quote-host {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .personal-builder-shell {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .personal-builder-shell .preview-pane {
    position: static !important;
    max-height: none !important;
    display: none !important;
  }

  .personal-builder-shell .quote-paper {
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .public-quote-page,
  .public-quote-page .public-quote-shell,
  .public-quote-card,
  .public-quote-layout,
  .public-quote-paper {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .public-quote-main-head,
  .public-quote-actions-card,
  .public-quote-actions,
  #publicQuoteMessage {
    display: none !important;
  }

  .standalone-quote-rendered {
    font-size: 12px;
  }

  .tour-cover {
    min-height: 250px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .tour-cover h1 {
    font-size: 38px;
  }

  .quote-section,
  .day-card,
  .stay-card,
  .pricing-group-display,
  .info-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .day-card {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) 78px !important;
    gap: 10px !important;
    padding: 12px 0 !important;
  }

  .day-pill {
    min-width: 54px !important;
    padding: 5px 10px !important;
  }

  .day-title {
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  .day-date {
    text-align: right !important;
    font-size: 11px !important;
  }

  .day-content {
    grid-column: 2 / -1 !important;
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: start !important;
  }

  .day-card.no-day-images .day-content {
    grid-template-columns: 1fr !important;
  }

  .day-plan p {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .stay-banner,
  .transport-banner {
    background: #006aa6 !important;
    color: #fff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .stay-banner strong,
  .stay-banner span,
  .transport-banner strong,
  .transport-banner span {
    color: #fff !important;
  }

  .hotel-row-display {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .hotel-row-display.no-hotel-image {
    grid-template-columns: 1fr !important;
  }

  .transport-row-display {
    display: grid !important;
    grid-template-columns: 1.25fr 1.1fr 1fr 1fr !important;
  }

  .inclusion-grid,
  .terms-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .day-image-stack img {
    width: 132px !important;
    height: 88px !important;
    object-fit: cover !important;
  }

  .hotel-row-display-image img {
    width: 112px !important;
    height: 84px !important;
    object-fit: cover !important;
  }

.hero-gallery img {
    height: 90px !important;
    object-fit: cover !important;
  }
}

.import-helper-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.08), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #f4f7ff 100%);
}

.quote-import-search-shell,
.customer-lookup-box {
  position: relative;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.customer-lookup-box {
  margin-bottom: 10px;
}

.quote-import-search-shell input,
.customer-lookup-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
  font-weight: 700;
  color: #0f172a;
}

.lookup-results {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  z-index: 20;
}

.lookup-result-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #f8fbff);
  color: #0f172a;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.lookup-result-btn:hover {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.lookup-result-btn strong,
.lookup-result-btn small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-result-btn strong {
  font-size: 14px;
  line-height: 1.25;
}

.lookup-result-btn small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 3px;
}

.lookup-result-btn.import {
  grid-template-columns: 72px minmax(0, 1fr);
}

.lookup-thumb {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  color: #1d4ed8;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.lookup-result-btn.import .lookup-thumb {
  width: 72px;
  height: 54px;
}

.lookup-thumb.image {
  overflow: hidden;
  background: #e2e8f0;
}

.lookup-thumb.image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lookup-empty {
  border: 1px dashed rgba(148, 163, 184, 0.44);
  border-radius: 14px;
  color: #64748b;
  padding: 14px;
  text-align: center;
}

.lookup-empty.error {
  border-color: rgba(220, 38, 38, 0.28);
  color: #b91c1c;
  background: #fff1f2;
}

@media (max-width: 760px) {
  .lookup-result-btn.import,
  .lookup-result-btn {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .lookup-result-btn.import .lookup-thumb,
  .lookup-thumb {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 760px) {
  .unsplash-modal {
    padding: 12px;
  }

  .unsplash-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 16px;
  }

  .unsplash-dialog-head,
  .unsplash-search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .unsplash-results-grid {
    grid-template-columns: 1fr;
  }
}

/* QuoteSuite admin panel polish v48 */
.admin-dashboard-v2 {
  --admin-navy: #071b35;
  --admin-blue: #2563eb;
  --admin-sky: #0ea5e9;
  --admin-violet: #7c3aed;
  --admin-gold: #c98a12;
  --admin-card: rgba(255, 255, 255, 0.96);
  --admin-border: rgba(148, 163, 184, 0.26);
  --admin-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 82% 0%, rgba(124, 58, 237, 0.13), transparent 28rem),
    radial-gradient(circle at 25% 8%, rgba(14, 165, 233, 0.1), transparent 24rem),
    linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
}

.admin-dashboard-v2 .dashboard-sidebar {
  padding: 22px 18px;
  background:
    radial-gradient(circle at 82% 8%, rgba(37, 99, 235, 0.24), transparent 14rem),
    linear-gradient(180deg, var(--admin-navy) 0%, #061426 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.admin-dashboard-v2 .sidebar-brand {
  gap: 14px;
  padding: 0 4px 18px;
}

.admin-dashboard-v2 .sidebar-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 48%, #7c3aed 100%);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.admin-dashboard-v2 .sidebar-brand strong {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.admin-dashboard-v2 .sidebar-brand span {
  color: rgba(226, 232, 240, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-dashboard-v2 .sidebar-nav {
  gap: 7px;
}

.admin-dashboard-v2 .sidebar-link {
  min-height: 48px;
  gap: 11px;
  border-radius: 14px;
  padding: 11px 12px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
  letter-spacing: -0.005em;
}

.admin-dashboard-v2 .sidebar-link-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 900;
}

.admin-dashboard-v2 .sidebar-link:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.08);
}

.admin-dashboard-v2 .sidebar-link.active {
  border-color: rgba(147, 197, 253, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 58%, #7c3aed 100%);
}

.admin-dashboard-v2 .sidebar-link.active .sidebar-link-icon {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.admin-dashboard-v2 .dashboard-main {
  gap: 18px;
  padding: 22px;
}

.admin-dashboard-v2 .dashboard-topbar {
  margin-bottom: 0;
  border: 1px solid var(--admin-border);
  border-radius: 22px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--admin-shadow);
  backdrop-filter: blur(14px);
}

.admin-dashboard-v2 .admin-dashboard-header h1 {
  margin: 3px 0 6px;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.admin-dashboard-v2 .topbar-actions .btn,
.admin-dashboard-v2 .button-row .btn {
  min-height: 42px;
  border-radius: 13px;
  font-weight: 900;
}

.admin-dashboard-v2 .admin-workspace {
  gap: 18px;
}

.admin-dashboard-v2 .dashboard-card,
.admin-dashboard-v2 .panel-card,
.admin-dashboard-v2 .table-card {
  border: 1px solid var(--admin-border);
  border-radius: 22px;
  background: var(--admin-card);
  box-shadow: var(--admin-shadow);
}

.admin-dashboard-v2 .admin-command-card {
  min-height: 188px;
  border-color: rgba(37, 99, 235, 0.18);
  padding: 28px;
  background:
    radial-gradient(circle at 95% 8%, rgba(201, 138, 18, 0.22), transparent 13rem),
    radial-gradient(circle at 55% 16%, rgba(124, 58, 237, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, #eef7ff 54%, #f7f1ff 100%);
}

.admin-dashboard-v2 .admin-command-card h2 {
  max-width: 820px;
  color: #081a33;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.admin-dashboard-v2 .admin-command-card p {
  max-width: 820px;
  color: #52627a;
  font-size: 15px;
}

.admin-dashboard-v2 .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: #075985;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-dashboard-v2 .hero-kicker::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  content: "";
}

.admin-dashboard-v2 .admin-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-dashboard-v2 .admin-stat-grid .summary-card {
  min-height: 122px;
  border-radius: 20px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0) 56%),
    #ffffff;
}

.admin-dashboard-v2 .admin-stat-grid .summary-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-dashboard-v2 .admin-stat-grid .summary-card strong {
  margin-top: 10px;
  color: #0f172a;
  font-size: 34px;
  letter-spacing: -0.035em;
}

.admin-dashboard-v2 .stat-card::after {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.14)),
    rgba(239, 246, 255, 0.9);
}

.admin-dashboard-v2 .section-head {
  gap: 16px;
  margin-bottom: 18px;
}

.admin-dashboard-v2 .section-head h2 {
  color: #0f172a;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.admin-dashboard-v2 .section-head h3 {
  color: #0f172a;
  font-size: 18px;
}

.admin-dashboard-v2 .admin-form {
  gap: 16px;
}

.admin-dashboard-v2 .admin-form label,
.admin-dashboard-v2 .admin-table-toolbar label {
  color: #1e293b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.01em;
}

.admin-dashboard-v2 input,
.admin-dashboard-v2 select,
.admin-dashboard-v2 textarea {
  border-color: #cbd8ea;
  border-radius: 13px;
  background: #fbfdff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-dashboard-v2 input:focus,
.admin-dashboard-v2 select:focus,
.admin-dashboard-v2 textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: 0;
}

.admin-dashboard-v2 .admin-table-toolbar {
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 230px);
  border-color: rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.admin-dashboard-v2 .responsive-table {
  border: 1px solid rgba(203, 216, 234, 0.8);
  border-radius: 18px;
  overflow: auto;
}

.admin-dashboard-v2 .admin-agent-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-dashboard-v2 .admin-agent-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f6fd;
  color: #475569;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-dashboard-v2 .admin-agent-table td {
  border-bottom-color: rgba(226, 232, 240, 0.9);
  color: #172033;
  vertical-align: middle;
}

.admin-dashboard-v2 .admin-agent-identity strong {
  color: #0f172a;
  font-size: 13px;
}

.admin-dashboard-v2 .status-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-dashboard-v2 .admin-action-group {
  gap: 6px;
}

.admin-dashboard-v2 .admin-action-group .btn {
  flex: 1 1 86px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
}

.admin-dashboard-v2 .admin-focus-panel {
  border-color: rgba(37, 99, 235, 0.2);
  background:
    radial-gradient(circle at 95% 6%, rgba(14, 165, 233, 0.12), transparent 16rem),
    #ffffff;
}

.admin-dashboard-v2 .admin-recharge-layout {
  gap: 16px;
}

.admin-dashboard-v2 .recharge-form,
.admin-dashboard-v2 .admin-branding-logo-panel,
.admin-dashboard-v2 .adjustment-form {
  border: 1px solid rgba(203, 216, 234, 0.85);
  border-radius: 18px;
  padding: 18px;
  background: #fbfdff;
}

.admin-dashboard-v2 .plan-button-row {
  gap: 8px;
}

.admin-dashboard-v2 .plan-button-row .btn {
  border-radius: 999px;
}

.admin-dashboard-v2 .branding-logo-panel {
  align-items: center;
  margin-bottom: 16px;
}

.admin-dashboard-v2 .logo-preview-box {
  width: 122px;
  height: 122px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

.admin-dashboard-v2 .empty-state {
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

@media (max-width: 1180px) {
  .admin-dashboard-v2 .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .admin-dashboard-v2 .dashboard-sidebar {
    height: auto;
  }

  .admin-dashboard-v2 .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-v2 .admin-command-card {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .admin-dashboard-v2 .dashboard-main {
    padding: 14px;
  }

  .admin-dashboard-v2 .dashboard-topbar {
    padding: 18px;
  }

  .admin-dashboard-v2 .sidebar-nav,
  .admin-dashboard-v2 .admin-stat-grid,
  .admin-dashboard-v2 .admin-table-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-v2 .admin-command-card h2 {
    font-size: 28px;
  }
}
/* QuoteSuite admin panel rebuild v49 */
.admin-pro-v49,
.ready-master-v49 {
  background: #eef4fb;
  color: #0f172a;
}

.admin-pro-v49 .admin-v49-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: #eef4fb;
}

.admin-pro-v49 .dashboard-sidebar,
.ready-master-v49 .ready-v49-sidebar {
  background: linear-gradient(180deg, #061d3d 0%, #08264d 55%, #03182f 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 18px 0 50px rgba(15,23,42,.12);
}

.admin-pro-v49 .sidebar-brand,
.ready-master-v49 .ready-v49-brand {
  padding: 18px 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.admin-pro-v49 .sidebar-brand strong,
.ready-master-v49 .ready-v49-brand strong {
  color: #fff;
  letter-spacing: -.02em;
}

.admin-pro-v49 .sidebar-brand span,
.ready-master-v49 .ready-v49-brand span {
  color: rgba(226,232,240,.76);
}

.admin-pro-v49 .sidebar-link {
  border-radius: 12px;
  color: #dbeafe;
}

.admin-pro-v49 .sidebar-link.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 12px 30px rgba(37,99,235,.28);
}

.admin-pro-v49 .dashboard-main {
  padding: 22px 24px 36px;
  overflow-x: hidden;
}

.admin-pro-v49 .admin-dashboard-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 420px) auto;
  gap: 18px;
  align-items: center;
  min-height: auto;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid #dbe5f2;
  box-shadow: 0 14px 36px rgba(15,23,42,.07);
}

.admin-pro-v49 .admin-v49-title h1 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin: 3px 0;
}

.admin-pro-v49 .admin-v49-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d4e0ef;
  border-radius: 12px;
  background: #f8fbff;
}

.admin-pro-v49 .admin-v49-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
}

.admin-pro-v49 .admin-command-card {
  display: none;
}

.admin-pro-v49 .admin-stat-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-pro-v49 .stat-card {
  position: relative;
  min-height: 124px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dbe5f2;
  box-shadow: 0 12px 32px rgba(15,23,42,.06);
  overflow: hidden;
}

.admin-pro-v49 .stat-card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(124,58,237,.16));
}

.admin-pro-v49 .stat-card span {
  color: #64748b;
  font-size: .78rem;
  letter-spacing: .06em;
}

.admin-pro-v49 .stat-card strong {
  font-size: 2rem;
  margin-top: 10px;
}

.admin-v49-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.admin-v49-insight-card {
  min-height: 136px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dbe5f2;
  box-shadow: 0 12px 32px rgba(15,23,42,.055);
}

.admin-v49-insight-card span {
  display: block;
  color: #64748b;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-v49-insight-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 1.45rem;
}

.admin-v49-insight-card small,
.admin-v49-activity {
  color: #64748b;
}

.admin-v49-activity {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: .88rem;
}

.admin-v49-mini-chart {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 48px;
  margin-top: 14px;
}

.admin-v49-mini-chart i {
  flex: 1;
  min-width: 10px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #3b82f6, #93c5fd);
}

.admin-v49-mini-chart i:nth-child(1) { height: 28%; }
.admin-v49-mini-chart i:nth-child(2) { height: 42%; }
.admin-v49-mini-chart i:nth-child(3) { height: 38%; }
.admin-v49-mini-chart i:nth-child(4) { height: 58%; }
.admin-v49-mini-chart i:nth-child(5) { height: 70%; }
.admin-v49-mini-chart i:nth-child(6) { height: 88%; }

.admin-pro-v49 .dashboard-card,
.admin-pro-v49 .panel-card,
.admin-pro-v49 .table-card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dbe5f2;
  box-shadow: 0 14px 36px rgba(15,23,42,.06);
}

.admin-pro-v49 .admin-form input,
.admin-pro-v49 .admin-form select,
.admin-pro-v49 .admin-form textarea,
.ready-master-v49 input,
.ready-master-v49 select,
.ready-master-v49 textarea {
  border-color: #d4e0ef;
  border-radius: 10px;
  background: #f8fbff;
}

.admin-pro-v49 .admin-agent-table-card {
  overflow: hidden;
}

.admin-pro-v49 .admin-agent-table {
  min-width: 980px;
}

.admin-pro-v49 .admin-agent-table th {
  background: #f5f8fc;
  color: #475569;
  font-size: .76rem;
  letter-spacing: .06em;
}

.admin-pro-v49 .admin-agent-table td {
  vertical-align: middle;
}

.admin-pro-v49 .admin-action-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 7px;
}

.admin-pro-v49 .admin-action-group .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: .8rem;
}

.admin-pro-v49 .btn.primary,
.ready-master-v49 .btn.primary {
  background: linear-gradient(135deg, #0f62fe, #2563eb);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(37,99,235,.22);
}

.ready-master-v49 .ready-v49-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  background: #f2f6fb;
}

.ready-master-v49 .ready-v49-sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
}

.ready-master-v49 .ready-v49-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 20px;
}

.ready-master-v49 .ready-v49-nav {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.ready-master-v49 .ready-v49-nav a,
.ready-master-v49 .ready-v49-logout {
  display: block;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #dbeafe;
  text-align: left;
  text-decoration: none;
  font-weight: 800;
}

.ready-master-v49 .ready-v49-nav a.active {
  background: rgba(37,99,235,.28);
  color: #fff;
}

.ready-master-v49 .ready-v49-logout {
  margin-top: auto;
  border: 1px solid rgba(255,255,255,.14);
}

.ready-master-v49 .ready-v49-main {
  padding: 18px;
  overflow-x: hidden;
}

.ready-master-v49 .ready-v49-topbar,
.ready-master-v49 .ready-v49-board,
.ready-master-v49 .ready-v49-editor {
  border: 1px solid #dbe5f2;
  background: rgba(255,255,255,.94);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(15,23,42,.06);
}

.ready-master-v49 .ready-v49-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.ready-master-v49 .ready-v49-topbar h1,
.ready-master-v49 .ready-v49-board h2,
.ready-master-v49 .ready-v49-editor h2 {
  margin: 0;
}

.ready-master-v49 .ready-v49-topbar p,
.ready-master-v49 .ready-v49-board p,
.ready-master-v49 .ready-v49-editor p {
  margin: 4px 0 0;
  color: #64748b;
}

.ready-v49-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  align-items: start;
}

.ready-v49-board,
.ready-v49-editor {
  padding: 18px;
}

.ready-v49-board-head,
.ready-v49-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.ready-v49-tabs,
.ready-v49-editor-tabs {
  display: flex;
  gap: 18px;
  margin: 18px 0;
  border-bottom: 1px solid #e2e8f0;
}

.ready-v49-tabs span,
.ready-v49-editor-tabs span {
  padding: 0 0 10px;
  color: #64748b;
  font-weight: 800;
}

.ready-v49-tabs span.active,
.ready-v49-editor-tabs span.active {
  color: #0f62fe;
  border-bottom: 3px solid #0f62fe;
}

.ready-v49-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px 130px;
  gap: 10px;
  margin-bottom: 14px;
}

.ready-v49-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ready-v49-count {
  font-weight: 800;
}

.ready-v49-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.ready-master-v49 .ready-admin-card {
  display: block;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid #dbe5f2;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15,23,42,.07);
}

.ready-master-v49 .ready-admin-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #dbeafe, #f5f3ff);
}

.ready-master-v49 .ready-admin-body {
  padding: 14px;
}

.ready-master-v49 .ready-package-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ready-master-v49 .ready-package-form .wide {
  grid-column: 1 / -1;
}

.ready-v49-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .admin-pro-v49 .admin-dashboard-header,
  .admin-v49-insight-grid,
  .ready-v49-workspace {
    grid-template-columns: 1fr;
  }

  .ready-v49-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .admin-pro-v49 .admin-v49-shell,
  .ready-master-v49 .ready-v49-shell {
    display: block;
  }

  .admin-pro-v49 .dashboard-sidebar,
  .ready-master-v49 .ready-v49-sidebar {
    position: static;
    min-height: auto;
  }

  .admin-pro-v49 .admin-stat-grid,
  .ready-v49-toolbar {
    grid-template-columns: 1fr;
  }
}

/* QuoteSuite admin v49 final layout hardening */
.admin-pro-v49,
.ready-master-v49 {
  --admin-navy: #061f3f;
  --admin-navy-2: #092b56;
  --admin-blue: #1267df;
  --admin-sky: #eaf4ff;
  --admin-line: #d8e3f2;
  --admin-soft: #f6f9fd;
}

.admin-pro-v49 .admin-v49-shell,
.ready-master-v49 .ready-v49-shell {
  min-height: 100vh;
  background: linear-gradient(135deg, #f6fbff 0%, #eef6ff 48%, #f8fbff 100%);
  color: #0f1f36;
}

.admin-pro-v49 .dashboard-sidebar,
.ready-master-v49 .ready-v49-sidebar {
  background: linear-gradient(180deg, #062044 0%, #05172d 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 18px 0 45px rgba(5,23,45,.16);
}

.admin-pro-v49 .dashboard-main,
.ready-master-v49 .ready-v49-main {
  max-width: none;
  min-width: 0;
  padding: 24px 28px;
  overflow-x: hidden;
}

.admin-pro-v49 .dashboard-topbar,
.ready-master-v49 .ready-v49-topbar {
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 45px rgba(15,31,54,.08);
}

.admin-pro-v49 .admin-dashboard-header {
  align-items: stretch;
}

.admin-pro-v49 .admin-v49-title h1,
.ready-master-v49 .ready-v49-title h1 {
  letter-spacing: -0.02em;
}

.admin-pro-v49 .admin-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-pro-v49 .stat-card {
  min-height: 122px;
  border: 1px solid var(--admin-line);
  background: #fff;
  box-shadow: 0 14px 32px rgba(15,31,54,.07);
}

.admin-pro-v49 .admin-v49-insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-pro-v49 .panel-card,
.admin-pro-v49 .table-card,
.ready-master-v49 .ready-v49-board,
.ready-master-v49 .ready-v49-editor {
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 38px rgba(15,31,54,.07);
}

.admin-pro-v49 .responsive-table {
  width: 100%;
  overflow-x: auto;
}

.admin-pro-v49 .responsive-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-pro-v49 .responsive-table th {
  background: #f4f8fd;
  color: #43526a;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-pro-v49 .responsive-table td {
  border-top: 1px solid #e6edf6;
  vertical-align: middle;
}

.admin-pro-v49 .btn,
.ready-master-v49 .btn {
  border-radius: 10px;
  font-weight: 800;
}

.admin-pro-v49 .btn.primary,
.ready-master-v49 .btn.primary {
  background: linear-gradient(135deg, #0f63d9, #074aa8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(18,103,223,.22);
}

.ready-master-v49 .ready-v49-workspace {
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .7fr);
  align-items: start;
}

.ready-master-v49 .ready-v49-editor {
  position: sticky;
  top: 22px;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
}

.ready-master-v49 .ready-admin-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

.ready-master-v49 .ready-admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15,31,54,.12);
}

.ready-master-v49 .ready-admin-cover img,
.ready-master-v49 .ready-admin-cover {
  min-height: 142px;
  object-fit: cover;
}

.ready-master-v49 .ready-v49-tabs span,
.ready-master-v49 .ready-v49-toolbar,
.ready-master-v49 .ready-package-form input,
.ready-master-v49 .ready-package-form select,
.ready-master-v49 .ready-package-form textarea {
  border-color: var(--admin-line);
}

@media (max-width: 1280px) {
  .admin-pro-v49 .admin-stat-grid,
  .admin-pro-v49 .admin-v49-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ready-master-v49 .ready-v49-workspace {
    grid-template-columns: 1fr;
  }

  .ready-master-v49 .ready-v49-editor {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .admin-pro-v49 .dashboard-main,
  .ready-master-v49 .ready-v49-main {
    padding: 14px;
  }

  .admin-pro-v49 .admin-stat-grid,
  .admin-pro-v49 .admin-v49-insight-grid,
  .ready-master-v49 .ready-v49-grid,
  .ready-master-v49 .ready-package-form {
    grid-template-columns: 1fr;
  }
}

/* QuoteSuite unified Super Admin sidebar v53 - final cascade layer */
.admin-pro-v52 .admin-v50-shell {
  grid-template-columns: 218px minmax(0, 1fr) !important;
}

.admin-pro-v52 .dashboard-sidebar {
  width: auto;
  min-width: 0;
  min-height: 610px;
  padding: 0 10px 15px !important;
  color: #d9e5f5;
  background: linear-gradient(180deg, #061d3d 0%, #04152d 100%) !important;
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: none !important;
}

.admin-pro-v52 .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 72px;
  height: 72px;
  padding: 0 10px !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-pro-v52 .admin-v52-brand-mark {
  display: grid !important;
  flex: 0 0 29px;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  color: #fff !important;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: .78rem !important;
  font-weight: 900;
  line-height: 1;
}

.admin-pro-v52 .sidebar-brand > strong {
  display: inline !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  white-space: nowrap;
}

.admin-pro-v52 .sidebar-brand > strong > span {
  display: inline !important;
  color: #f0b31c !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.admin-pro-v52 .sidebar-nav {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 15px 0;
}

.admin-pro-v52 .sidebar-link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 8px 11px !important;
  color: #d6e2f2 !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: .79rem !important;
  font-weight: 650 !important;
  line-height: 1.2;
}

.admin-pro-v52 .sidebar-link-icon {
  display: inline-grid !important;
  place-items: center;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  color: #bdd0e9 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: .78rem !important;
}

.admin-pro-v52 .sidebar-link:hover {
  color: #fff !important;
  background: rgba(47,111,201,.20) !important;
}

.admin-pro-v52 .sidebar-link.active {
  color: #fff !important;
  background: rgba(47,111,201,.28) !important;
  border-color: rgba(125,170,233,.12) !important;
  box-shadow: none !important;
}

.admin-pro-v52 .admin-v50-edition {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 11px 12px !important;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px !important;
  background: rgba(43,102,182,.13) !important;
}

.admin-pro-v52 .admin-v50-edition strong {
  color: #fff;
  font-size: .78rem;
  letter-spacing: -.03em;
}

.admin-pro-v52 .admin-v50-edition strong span { color: #f0b31c; }
.admin-pro-v52 .admin-v50-edition small { color: #afc1d9; font-size: .62rem; }

.admin-pro-v52 .sidebar-logout {
  width: 100%;
  margin-top: 9px;
  padding: 8px !important;
  color: #c9d8eb !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: .78rem;
}

@media (max-width: 900px) {
  .admin-pro-v52 .admin-v50-shell { display: block; }
  .admin-pro-v52 .dashboard-sidebar {
    position: fixed;
    left: -235px;
    width: 218px;
    transition: left .2s ease;
  }
  .admin-pro-v52.admin-v50-nav-open .dashboard-sidebar {
    left: 0;
    box-shadow: 18px 0 40px rgba(2,17,37,.30) !important;
  }
}

/* v54 final cascade: operational page finish */
.admin-pro-v54 .dashboard-main { background: #f4f7fb !important; }
.admin-pro-v54 .admin-workspace { padding: 24px 28px 32px !important; gap: 18px !important; }
.admin-pro-v54 .dashboard-card,
.admin-pro-v54 .panel-card,
.admin-pro-v54 .summary-card { border: 1px solid #dbe4ef !important; border-radius: 10px !important; background: #fff !important; box-shadow: 0 8px 24px rgba(18,47,82,.045) !important; }
.admin-pro-v54 .admin-v50-heading { align-items: end !important; margin: 2px 0 4px !important; }
.admin-pro-v54 .admin-v50-heading h1 { margin: 2px 0 4px !important; color: #0a1b33 !important; font-size: 1.52rem !important; letter-spacing: -.035em !important; }
.admin-pro-v54 .admin-v50-heading p { color: #62738a !important; font-size: .82rem !important; }
.admin-pro-v54 .admin-v54-refresh { min-height: 36px !important; padding: 7px 14px !important; border-color: #cdd9e8 !important; color: #34506f !important; background: #fff !important; }

.admin-agents-page.admin-pro-v54 #protectedPanel > .admin-stat-grid { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 12px !important; margin-bottom: 0 !important; }
.admin-agents-page.admin-pro-v54 #protectedPanel > .admin-v50-analytics,
.admin-agents-page.admin-pro-v54 #protectedPanel > .admin-v50-recent-grid,
.admin-agents-page.admin-pro-v54 #protectedPanel > .admin-v50-preview-card,
.admin-agents-page.admin-pro-v54 #protectedPanel > #settingsPanel { display: none !important; }
.admin-agents-page.admin-pro-v54 .admin-v50-stat { min-height: 104px !important; display: flex !important; align-items: center !important; gap: 13px !important; padding: 17px !important; box-shadow: none !important; }
.admin-agents-page.admin-pro-v54 .admin-v50-stat::after { display: none !important; }
.admin-agents-page.admin-pro-v54 .admin-v50-stat .admin-v50-stat-icon { width: 39px !important; height: 39px !important; border-radius: 10px !important; }
.admin-agents-page.admin-pro-v54 .admin-v50-stat strong { color: #0a1b33 !important; font-size: 1.55rem !important; }
.admin-agents-page.admin-pro-v54 #agentsPanel { overflow: hidden !important; padding: 0 !important; }
.admin-agents-page.admin-pro-v54 #agentsPanel > .section-head { margin: 0 !important; padding: 18px 19px 14px !important; border-bottom: 1px solid #e3eaf2 !important; }
.admin-agents-page.admin-pro-v54 .admin-table-toolbar { margin: 0 !important; padding: 12px 19px !important; border-bottom: 1px solid #e3eaf2 !important; background: #f9fbfd !important; }
.admin-agents-page.admin-pro-v54 .agent-table th { padding: 10px 11px !important; color: #64758b !important; background: #f8fafc !important; font-size: .61rem !important; text-transform: uppercase !important; }
.admin-agents-page.admin-pro-v54 .agent-table td { padding: 11px !important; color: #24364c !important; border-bottom: 1px solid #edf1f6 !important; font-size: .69rem !important; }
.admin-agents-page.admin-pro-v54 .admin-action-group { flex-wrap: nowrap !important; gap: 4px !important; }
.admin-agents-page.admin-pro-v54 .admin-action-group .btn { min-height: 28px !important; padding: 4px 7px !important; border-radius: 5px !important; font-size: .61rem !important; box-shadow: none !important; }

.admin-pro-v54.admin-v54-drawer-open { overflow: hidden !important; }
.admin-pro-v54.admin-v54-drawer-open::before { content: "" !important; position: fixed !important; inset: 0 !important; z-index: 90 !important; display: block !important; background: rgba(2,16,35,.52) !important; backdrop-filter: blur(2px); }
.admin-pro-v54 .admin-v54-drawer { position: fixed !important; top: 0 !important; right: 0 !important; z-index: 100 !important; display: block !important; width: min(570px,calc(100vw - 28px)) !important; height: 100vh !important; margin: 0 !important; padding: 0 20px 24px !important; overflow: auto !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: -24px 0 60px rgba(4,24,51,.22) !important; }
.admin-pro-v54 .admin-v54-drawer[hidden] { display: none !important; }
.admin-pro-v54 .admin-v54-drawer > .section-head { position: sticky !important; top: 0 !important; z-index: 3 !important; margin: 0 -20px 18px !important; padding: 18px 20px 14px !important; border-bottom: 1px solid #dfe7f0 !important; background: rgba(255,255,255,.97) !important; }
.admin-pro-v54 .admin-v54-drawer .admin-form { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 13px !important; }
.admin-pro-v54 .admin-v54-drawer input,
.admin-pro-v54 .admin-v54-drawer select,
.admin-pro-v54 .admin-v54-drawer textarea { min-height: 39px !important; border-color: #d4dfec !important; background: #f9fbfd !important; }
.admin-pro-v54 .admin-v54-drawer-compact { width: min(430px,calc(100vw - 28px)) !important; }
.admin-pro-v54 .admin-v54-recharge-drawer { width: min(790px,calc(100vw - 28px)) !important; }
.admin-pro-v54 .admin-v54-recharge-drawer .credit-summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
.admin-pro-v54 .admin-v54-recharge-drawer .recharge-workspace { grid-template-columns: 1.15fr .85fr !important; }

.admin-pro-v54 .admin-v54-agent-selector { display: grid !important; grid-template-columns: minmax(230px,.75fr) minmax(300px,1.25fr) !important; align-items: end !important; gap: 18px !important; padding: 17px 19px !important; }
.admin-pro-v54 .admin-v54-agent-selector .notice { grid-column: 1/-1 !important; }
.admin-pro-v54 .admin-v54-transaction-stats,
.admin-pro-v54 .admin-v54-report-stats { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 12px !important; }
.admin-pro-v54 .admin-v54-transaction-stats .stat-card,
.admin-pro-v54 .admin-v54-report-stats .stat-card { min-height: 105px !important; display: flex !important; align-items: center !important; gap: 13px !important; padding: 16px !important; box-shadow: none !important; }
.admin-pro-v54 .admin-v54-table-card { overflow: hidden !important; padding: 0 !important; }
.admin-pro-v54 .admin-v54-table-card > .section-head { margin: 0 !important; padding: 18px 19px 14px !important; border-bottom: 1px solid #dfe7f0 !important; }
.admin-pro-v54 .admin-v54-report-layout { display: grid !important; grid-template-columns: minmax(0,1.35fr) minmax(320px,.85fr) !important; gap: 14px !important; }
.admin-pro-v54 .admin-v54-growth-panel,
.admin-pro-v54 .admin-v54-recent-panel { min-height: 330px !important; padding: 19px !important; }
.admin-pro-v54 .admin-v54-growth-panel .admin-v50-growth-chart { height: 205px !important; padding: 18px 8px 0 !important; border: 1px solid #e4ebf3 !important; border-radius: 8px !important; background-color: #f8fbff !important; }

.admin-pro-v54 .admin-v54-settings-grid { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 14px !important; }
.admin-pro-v54 .admin-v54-settings-card { min-height: 225px !important; padding: 19px !important; }
.admin-pro-v54 .admin-v54-integrity-note { display: flex !important; align-items: center !important; gap: 14px !important; padding: 16px 19px !important; }
.admin-pro-v54 .admin-v54-ai-grid { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 14px !important; }
.admin-pro-v54 .admin-v54-ai-card { min-height: 230px !important; padding: 19px !important; }
.admin-pro-v54 .admin-v54-ai-overview { display: grid !important; grid-template-columns: minmax(260px,.8fr) minmax(360px,1.2fr) !important; align-items: center !important; gap: 28px !important; padding: 23px !important; }

@media (max-width: 1180px) {
  .admin-agents-page.admin-pro-v54 #protectedPanel > .admin-stat-grid,
  .admin-pro-v54 .admin-v54-transaction-stats,
  .admin-pro-v54 .admin-v54-report-stats { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .admin-pro-v54 .admin-v54-report-layout { grid-template-columns: 1fr !important; }
  .admin-pro-v54 .admin-v54-ai-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 760px) {
  .admin-pro-v54 .admin-workspace { padding: 18px 14px 26px !important; }
  .admin-pro-v54 .admin-v50-heading { align-items: flex-start !important; }
  .admin-pro-v54 .admin-v54-agent-selector,
  .admin-pro-v54 .admin-v54-settings-grid,
  .admin-pro-v54 .admin-v54-ai-grid,
  .admin-pro-v54 .admin-v54-ai-overview { grid-template-columns: 1fr !important; }
  .admin-pro-v54 .admin-v54-drawer,
  .admin-pro-v54 .admin-v54-drawer-compact,
  .admin-pro-v54 .admin-v54-recharge-drawer { width: 100vw !important; }
  .admin-pro-v54 .admin-v54-drawer .admin-form,
  .admin-pro-v54 .admin-v54-recharge-drawer .recharge-workspace { grid-template-columns: 1fr !important; }
}
@media (max-width: 520px) {
  .admin-agents-page.admin-pro-v54 #protectedPanel > .admin-stat-grid,
  .admin-pro-v54 .admin-v54-transaction-stats,
  .admin-pro-v54 .admin-v54-report-stats { grid-template-columns: 1fr !important; }
}

/* v55 final cascade */
.admin-pro-v55 .admin-dashboard-header { min-height: 68px !important; margin: 18px 22px 0 !important; padding: 10px 15px !important; color: #14263d !important; border: 1px solid #dbe5f0 !important; border-radius: 10px !important; background: #fff !important; box-shadow: 0 10px 30px rgba(20,48,82,.08) !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-menu { color: #425a75 !important; border-color: #d6e0ec !important; background: #f8fafc !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-search { max-width: 540px !important; min-height: 40px !important; border: 1px solid #d6e0ec !important; border-radius: 7px !important; background: #f5f8fc !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-search input { color: #18304d !important; background: transparent !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-search input::placeholder { color: #8294aa !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-account,
.admin-pro-v55 .admin-v50-account strong { color: #172a43 !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-account small { color: #6d7f96 !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-avatar { color: #0d5fbd !important; border-color: #cbdced !important; background: #eff6ff !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-notification { color: #e7a600 !important; opacity: 1 !important; }
.admin-pro-v55 .admin-v50-signout { color: #34506e !important; border-color: #d6e0ec !important; background: #fff !important; opacity: 1 !important; }
.admin-pro-v55.admin-agents-page .admin-action-group { display: grid !important; grid-template-columns: repeat(2,max-content) !important; gap: 5px !important; }
.admin-pro-v55.admin-agents-page .admin-action-group .btn { width: auto !important; min-width: 0 !important; min-height: 28px !important; padding: 5px 8px !important; white-space: nowrap !important; word-break: normal !important; line-height: 1.15 !important; }
.admin-pro-v55.admin-agents-page .admin-agent-table { min-width: 1180px !important; }
.ready-master-v51.admin-pro-v55 .ready-v51-editor { width: min(590px,42vw) !important; }
.ready-master-v51.admin-pro-v55 .ready-v51-editor-tabs { overflow-x: auto !important; }
.ready-master-v51.admin-pro-v55 .ready-v51-editor-tabs button { flex: 0 0 auto !important; padding-inline: 13px !important; }
.ready-master-v51.admin-pro-v55 .unsplash-modal { z-index: 300 !important; }
@media (max-width: 980px) {
  .ready-master-v51.admin-pro-v55 .ready-v51-editor { width: min(620px,100vw) !important; }
  .admin-pro-v55 .admin-dashboard-header { margin: 12px 14px 0 !important; }
}
@media (max-width: 620px) {
  .admin-pro-v55 .admin-dashboard-header { grid-template-columns: 38px 1fr auto !important; }
  .admin-pro-v55 .admin-v50-search { grid-column: 1/-1 !important; grid-row: 2 !important; max-width: none !important; }
}

/* v83 destination-led Ready Package master and agent enquiries */
body.ready-v83-modal-open { overflow: hidden !important; }
.ready-master-v51 .ready-v83-view-tabs { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 18px; padding: 5px; border: 1px solid #dce6f1; border-radius: 10px; background: #f4f7fb; }
.ready-master-v51 .ready-v83-view-tabs button { min-height: 38px; padding: 8px 15px; color: #60738c; font: inherit; font-size: 13px; font-weight: 750; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.ready-master-v51 .ready-v83-view-tabs button span { display: inline-grid; min-width: 23px; height: 23px; margin-left: 6px; padding: 0 6px; place-items: center; color: #546b86; font-size: 11px; border-radius: 999px; background: #e5ebf3; }
.ready-master-v51 .ready-v83-view-tabs button.active { color: #fff; background: #1669d9; box-shadow: 0 6px 15px rgba(22,105,217,.2); }
.ready-master-v51 .ready-v83-view-tabs button.active span { color: #1458ae; background: #fff; }
.ready-master-v51 .ready-v83-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.ready-master-v51 .ready-v83-section-head h2 { margin: 0 0 4px; color: #132a46; font-size: 22px; }
.ready-master-v51 .ready-v83-section-head p { margin: 0; color: #718299; font-size: 13px; }
.ready-master-v51 .ready-v83-destination-select { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; }
.ready-master-v51 .ready-v83-destination-select label { margin: 0; }
.ready-master-v51 .ready-v83-destination-select > .btn { min-height: 42px; margin-bottom: 18px; white-space: nowrap; }
.ready-master-v51 .ready-v51-card-destination { display: grid; gap: 3px; margin: 7px 0 0; }
.ready-master-v51 .ready-v51-card-destination strong { color: #153252; font-size: 13px; }
.ready-master-v51 .ready-v51-card-destination span { color: #72839a; font-size: 12px; }

.ready-master-v51 .ready-v83-destination-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.ready-master-v51 .ready-v83-destination-card { min-width: 0; overflow: hidden; border: 1px solid #dbe5f0; border-radius: 12px; background: #fff; box-shadow: 0 9px 25px rgba(25,53,87,.07); }
.ready-master-v51 .ready-v83-destination-cover { position: relative; min-height: 210px; overflow: hidden; color: #fff; background: linear-gradient(135deg,#123b74,#2178d9); }
.ready-master-v51 .ready-v83-destination-cover > img { width: 100%; height: 210px; object-fit: cover; display: block; }
.ready-master-v51 .ready-v83-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(5,21,44,.06) 20%,rgba(5,24,50,.86) 100%); }
.ready-master-v51 .ready-v83-destination-cover > div { position: absolute; right: 18px; bottom: 17px; left: 18px; z-index: 1; }
.ready-master-v51 .ready-v83-destination-cover h3 { margin: 0 0 6px; color: #fff; font-size: 25px; line-height: 1.12; }
.ready-master-v51 .ready-v83-destination-cover strong { display: inline-flex; padding: 6px 10px; font-size: 12px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: rgba(8,32,67,.48); backdrop-filter: blur(7px); }
.ready-master-v51 .ready-v83-destination-status { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 6px 10px; color: #155f42; font-size: 11px; font-weight: 800; text-transform: uppercase; border-radius: 999px; background: #dff8eb; }
.ready-master-v51 .ready-v83-destination-letter { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.88); font-family: Georgia,serif; font-size: 76px; }
.ready-master-v51 .ready-v83-destination-card > p { min-height: 58px; margin: 0; padding: 15px 17px 7px; color: #667991; font-size: 13px; line-height: 1.45; }
.ready-master-v51 .ready-v83-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 58px; padding: 10px 17px 15px; }
.ready-master-v51 .ready-v83-card-actions .muted { margin-right: auto; font-size: 11px; line-height: 1.4; }

.ready-master-v51 .ready-v83-enquiry-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.ready-master-v51 .ready-v83-enquiry-card { display: grid; gap: 10px; padding: 17px; border: 1px solid #dce5ef; border-radius: 10px; background: #fff; box-shadow: 0 7px 20px rgba(22,50,82,.05); cursor: pointer; }
.ready-master-v51 .ready-v83-enquiry-card:hover { border-color: #9fc4ee; box-shadow: 0 10px 25px rgba(22,105,217,.09); }
.ready-master-v51 .ready-v83-enquiry-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ready-master-v51 .ready-v83-enquiry-card h3 { margin: 0; color: #152d4b; font-size: 16px; }
.ready-master-v51 .ready-v83-enquiry-card p { display: grid; gap: 3px; margin: 0; color: #71839a; font-size: 12px; }
.ready-master-v51 .ready-v83-enquiry-card .btn { justify-self: start; }
.ready-master-v51 .ready-v83-enquiry-status { display: inline-flex; padding: 5px 9px; color: #0f5eb9; font-size: 10px; font-weight: 850; text-transform: uppercase; border-radius: 999px; background: #e8f2ff; }
.ready-master-v51 .ready-v83-enquiry-status.reviewed { color: #8b5a04; background: #fff1cc; }
.ready-master-v51 .ready-v83-enquiry-status.responded { color: #14704d; background: #dcf7e9; }
.ready-master-v51 .ready-v83-enquiry-status.closed { color: #64758a; background: #e9eef4; }

.ready-master-v51 .ready-v83-modal[hidden] { display: none !important; }
.ready-master-v51 .ready-v83-modal { position: fixed; inset: 0; z-index: 410; display: grid; padding: 28px; place-items: center; }
.ready-master-v51 .ready-v83-modal-backdrop { position: absolute; inset: 0; background: rgba(7,27,53,.72); backdrop-filter: blur(4px); }
.ready-master-v51 .ready-v83-dialog { position: relative; z-index: 1; width: min(690px,calc(100vw - 36px)); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid #d8e3ef; border-radius: 13px; background: #fff; box-shadow: 0 28px 75px rgba(7,27,53,.28); }
.ready-master-v51 .ready-v83-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 21px 23px 17px; border-bottom: 1px solid #e2e9f2; }
.ready-master-v51 .ready-v83-dialog-head span { color: #1769d7; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.ready-master-v51 .ready-v83-dialog-head h2 { margin: 4px 0; color: #102946; font-size: 23px; }
.ready-master-v51 .ready-v83-dialog-head p { margin: 0; color: #74869b; font-size: 12px; }
.ready-master-v51 .ready-v83-dialog-head > button { width: 38px; height: 38px; flex: 0 0 38px; color: #4d6178; font-size: 22px; border: 1px solid #d9e3ed; border-radius: 8px; background: #fff; cursor: pointer; }
.ready-master-v51 .ready-v83-destination-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 21px 23px 0; }
.ready-master-v51 .ready-v83-destination-form label { display: grid; gap: 7px; color: #203851; font-size: 12px; font-weight: 750; }
.ready-master-v51 .ready-v83-destination-form label:has(textarea),
.ready-master-v51 .ready-v83-destination-upload,
.ready-master-v51 .ready-v83-destination-preview,
.ready-master-v51 .ready-v83-dialog-actions { grid-column: 1/-1; }
.ready-master-v51 .ready-v83-destination-form input,
.ready-master-v51 .ready-v83-destination-form textarea,
.ready-master-v51 .ready-v83-destination-form select,
.ready-master-v51 .ready-v83-dialog-actions select { width: 100%; min-height: 43px; padding: 10px 12px; color: #18314e; font: inherit; border: 1px solid #ccd9e8; border-radius: 7px; background: #fbfdff; }
.ready-master-v51 .ready-v83-destination-upload { display: flex; align-items: center; gap: 10px; }
.ready-master-v51 .ready-v83-destination-preview { display: grid; min-height: 185px; overflow: hidden; place-items: center; color: #7c8da2; border: 1px dashed #a9c7e9; border-radius: 10px; background: #f4f8fc; }
.ready-master-v51 .ready-v83-destination-preview img { width: 100%; height: 220px; object-fit: cover; display: block; }
.ready-master-v51 .ready-v83-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 7px; padding: 16px 23px 20px; border-top: 1px solid #e4eaf2; }
.ready-master-v51 .ready-v83-dialog-actions select { width: auto; min-width: 150px; margin-right: auto; }
.ready-master-v51 .ready-v83-enquiry-dialog { width: min(790px,calc(100vw - 36px)); }
.ready-master-v51 .ready-v83-enquiry-detail { padding: 21px 23px; }
.ready-master-v51 .ready-v83-enquiry-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ready-master-v51 .ready-v83-enquiry-detail-grid > div { display: grid; gap: 4px; padding: 12px 13px; border: 1px solid #e0e7f0; border-radius: 8px; background: #f8fafc; }
.ready-master-v51 .ready-v83-enquiry-detail-grid span,
.ready-master-v51 .ready-v83-special-request > span { color: #75869a; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ready-master-v51 .ready-v83-enquiry-detail-grid strong { color: #18304c; font-size: 13px; overflow-wrap: anywhere; }
.ready-master-v51 .ready-v83-special-request { margin-top: 13px; padding: 14px; border: 1px solid #dfe8f2; border-radius: 8px; }
.ready-master-v51 .ready-v83-special-request p { margin: 6px 0 0; color: #425a74; white-space: pre-wrap; }

@media (max-width: 1050px) {
  .ready-master-v51 .ready-v83-destination-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .ready-master-v51 .ready-v83-section-head { align-items: flex-start; flex-direction: column; }
  .ready-master-v51 .ready-v83-destination-grid,
  .ready-master-v51 .ready-v83-enquiry-list,
  .ready-master-v51 .ready-v83-destination-form,
  .ready-master-v51 .ready-v83-enquiry-detail-grid { grid-template-columns: 1fr; }
  .ready-master-v51 .ready-v83-destination-select { grid-template-columns: 1fr; }
  .ready-master-v51 .ready-v83-destination-select > .btn { margin-bottom: 0; }
  .ready-master-v51 .ready-v83-modal { padding: 10px; }
  .ready-master-v51 .ready-v83-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .ready-master-v51 .ready-v83-dialog-head,
  .ready-master-v51 .ready-v83-enquiry-detail { padding: 17px; }
  .ready-master-v51 .ready-v83-destination-form { padding: 17px 17px 0; }
  .ready-master-v51 .ready-v83-dialog-actions { flex-wrap: wrap; padding: 14px 17px 17px; }
  .ready-master-v51 .ready-v83-dialog-actions select { width: 100%; margin: 0; }
}

/* v85 premium Ready Package library + centered package editor */
.ready-master-v51.ready-v51-editor-open { overflow: hidden !important; }
.ready-master-v51.ready-v51-editor-open::before { content: ""; position: fixed; inset: 0; z-index: 390; background: rgba(7,27,53,.72); backdrop-filter: blur(4px); }
.ready-master-v51.ready-v51-editor-open .ready-v51-workspace { grid-template-columns: 1fr !important; }
.ready-master-v51.admin-pro-v55.ready-v51-editor-open .ready-v51-editor {
  position: fixed !important;
  z-index: 400 !important;
  top: 50% !important;
  left: 50% !important;
  width: min(1080px,calc(100vw - 44px)) !important;
  height: min(850px,calc(100vh - 44px)) !important;
  max-height: calc(100vh - 44px) !important;
  overflow-y: auto !important;
  transform: translate(-50%,-50%) !important;
  border: 1px solid #d6e1ed !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 30px 85px rgba(6,25,50,.34) !important;
}
.ready-master-v51.ready-v51-editor-open .ready-v51-editor-head { position: sticky; top: 0; z-index: 8; padding: 20px 23px 14px; border-bottom: 1px solid #e2e9f2; background: #fff; }
.ready-master-v51.ready-v51-editor-open .ready-v51-editor-head h2 { color: #102946; font-size: 22px; }
.ready-master-v51.ready-v51-editor-open .ready-v51-editor-head p { font-size: 12px; }
.ready-master-v51.ready-v51-editor-open .ready-v51-editor-close { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid #d9e3ed; border-radius: 8px; background: #fff; }
.ready-master-v51.ready-v51-editor-open .ready-v51-editor-tabs { position: sticky; top: 73px; z-index: 7; gap: 26px; padding: 0 23px; background: #fff; }
.ready-master-v51.ready-v51-editor-open .ready-v51-editor-tabs button { min-height: 46px; font-size: 12px; }
.ready-master-v51.ready-v51-editor-open .ready-v51-form { padding: 20px 23px 78px; }
.ready-master-v51.ready-v51-editor-open .ready-v51-editor-section { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.ready-master-v51.ready-v51-editor-open .ready-v51-form label { font-size: 12px; }
.ready-master-v51.ready-v51-editor-open .ready-v51-form input,
.ready-master-v51.ready-v51-editor-open .ready-v51-form select,
.ready-master-v51.ready-v51-editor-open .ready-v51-form textarea { min-height: 43px; padding: 10px 12px; font-size: 13px; border-radius: 7px; background: #fbfdff; }
.ready-master-v51.ready-v51-editor-open .ready-v51-form textarea { min-height: 110px; }
.ready-master-v51.ready-v51-editor-open .ready-v51-actions { margin-right: -23px; margin-left: -23px; padding: 14px 23px; }

.ready-master-v51 .ready-v51-grid { grid-template-columns: repeat(5,minmax(0,1fr)) !important; gap: 14px !important; }
.ready-master-v51 .ready-v85-package-card { border-radius: 11px; box-shadow: 0 7px 22px rgba(21,48,80,.07); }
.ready-master-v51 .ready-v85-package-cover { height: 176px; min-height: 176px; }
.ready-master-v51 .ready-v85-card-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top,rgba(7,24,54,.94),rgba(7,24,54,.28) 58%,rgba(7,24,54,.06)); }
.ready-master-v51 .ready-v85-status,
.ready-master-v51 .ready-v85-trip-type,
.ready-master-v51 .ready-v85-duration { position: absolute; z-index: 2; width: auto; padding: 5px 8px; color: #fff; font-size: 9px; font-weight: 850; line-height: 1; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; box-shadow: 0 4px 12px rgba(7,24,54,.18); backdrop-filter: blur(7px); }
.ready-master-v51 .ready-v85-status { top: 10px; left: 10px; text-transform: uppercase; background: rgba(21,101,216,.86); }
.ready-master-v51 .ready-v85-status.draft { background: rgba(102,116,136,.86); }
.ready-master-v51 .ready-v85-status.archived { background: rgba(93,64,55,.84); }
.ready-master-v51 .ready-v85-trip-type { top: 39px; left: 10px; background: rgba(80,70,211,.82); }
.ready-master-v51 .ready-v85-duration { top: 10px; right: 10px; background: rgba(11,42,86,.82); }
.ready-master-v51 .ready-v85-package-overlay { position: absolute; right: 13px; bottom: 13px; left: 13px; z-index: 2; color: #fff; }
.ready-master-v51 .ready-v85-package-overlay h3 { margin: 0; overflow: hidden; color: #fff; font-size: 17px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ready-master-v51 .ready-v85-package-overlay p { margin: 4px 0 0; overflow: hidden; color: rgba(255,255,255,.88); font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.ready-master-v51 .ready-v85-package-body { padding: 10px; }
.ready-master-v51 .ready-v85-package-meta { display: grid; gap: 3px; padding-bottom: 9px; border-bottom: 1px solid #e7edf4; }
.ready-master-v51 .ready-v85-package-meta strong { overflow: hidden; color: #18314e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ready-master-v51 .ready-v85-package-meta span { color: #71839a; font-size: 9px; }
.ready-master-v51 .ready-v85-package-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.ready-master-v51 .ready-v85-package-actions .btn { width: 100%; min-height: 31px; font-size: 10px; }

.ready-master-v51 .ready-v83-destination-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.ready-master-v51 .ready-v83-destination-cover { min-height: 176px; }
.ready-master-v51 .ready-v83-destination-cover > img { height: 176px; }
.ready-master-v51 .ready-v83-destination-cover h3 { font-size: 19px; }
.ready-master-v51 .ready-v85-destination-market { position: absolute; top: 44px; right: 12px; z-index: 2; padding: 5px 8px; color: #fff; font-size: 9px; font-weight: 800; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(11,42,86,.76); backdrop-filter: blur(6px); }
.ready-master-v51 .ready-v85-destination-market.pending { color: #714d08; border-color: #f3d99b; background: rgba(255,239,199,.94); }

@media (max-width: 1450px) {
  .ready-master-v51 .ready-v51-grid,
  .ready-master-v51 .ready-v83-destination-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
}
@media (max-width: 1120px) {
  .ready-master-v51 .ready-v51-grid,
  .ready-master-v51 .ready-v83-destination-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}
@media (max-width: 820px) {
  .ready-master-v51 .ready-v51-grid,
  .ready-master-v51 .ready-v83-destination-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .ready-master-v51.ready-v51-editor-open .ready-v51-editor-section { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ready-master-v51 .ready-v51-grid,
  .ready-master-v51 .ready-v83-destination-grid { grid-template-columns: 1fr !important; }
  .ready-master-v51.admin-pro-v55.ready-v51-editor-open .ready-v51-editor { width: calc(100vw - 16px) !important; height: calc(100vh - 16px) !important; max-height: calc(100vh - 16px) !important; }
  .ready-master-v51.ready-v51-editor-open .ready-v51-editor-head { padding: 16px; }
  .ready-master-v51.ready-v51-editor-open .ready-v51-editor-tabs { top: 68px; padding: 0 16px; overflow-x: auto; }
  .ready-master-v51.ready-v51-editor-open .ready-v51-form { padding: 16px 16px 74px; }
}

/* v86 destination-first Ready Package administration */
.ready-master-v51 .ready-v86-tour-layer-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 16px; padding: 16px 18px; border: 1px solid #dbe6f2; border-radius: 11px; background: linear-gradient(135deg,#f8fbff,#f2f7fd); }
.ready-master-v51 .ready-v86-tour-layer-head[hidden] { display: none !important; }
.ready-master-v51 .ready-v86-tour-layer-head span { color: #1769d7; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.ready-master-v51 .ready-v86-tour-layer-head h2 { margin: 4px 0 3px; color: #132b48; font-size: 21px; }
.ready-master-v51 .ready-v86-tour-layer-head p { margin: 0; color: #71839a; font-size: 12px; }
.ready-master-v51 #readyDestinationFilter { display: none; }

.ready-master-v51 .ready-v86-destination-card .ready-v83-destination-cover h3 { margin: 0; }
.ready-master-v51 .ready-v86-tour-count { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; padding: 6px 9px; color: #fff; font-size: 10px; font-weight: 850; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(37,99,235,.88); box-shadow: 0 5px 14px rgba(7,24,54,.2); backdrop-filter: blur(7px); }
.ready-master-v51 .ready-v86-destination-card .ready-v85-destination-market { top: 12px; right: 12px; }
.ready-master-v51 .ready-v86-destination-card .ready-v83-card-actions { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); min-height: 0; padding: 10px; }
.ready-master-v51 .ready-v86-destination-card .ready-v83-card-actions .btn { width: 100%; min-height: 34px; padding: 7px 8px; font-size: 10px; white-space: nowrap; }

.ready-master-v51 .ready-v86-package-card { overflow: hidden; border-radius: 11px; box-shadow: 0 7px 22px rgba(21,48,80,.07); }
.ready-master-v51 .ready-v86-package-cover { height: 176px; min-height: 176px; }
.ready-master-v51 .ready-v86-package-cover .ready-v85-trip-type { top: 10px; left: 10px; }
.ready-master-v51 .ready-v86-package-body { padding: 10px; }
.ready-master-v51 .ready-v86-package-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.ready-master-v51 .ready-v86-package-actions .btn { width: 100%; min-height: 32px; padding: 6px 7px; font-size: 9px; white-space: nowrap; }
.ready-master-v51 .ready-v86-package-actions .btn:first-child { grid-column: 1/-1; }
.ready-master-v51 .ready-v86-package-actions .btn:disabled { opacity: .48; cursor: not-allowed; }

.ready-master-v51 .ready-v83-enquiry-list { display: block; overflow-x: auto; }
.ready-master-v51 .ready-v86-enquiry-table { min-width: 1040px; overflow: hidden; border: 1px solid #dce5ef; border-radius: 11px; background: #fff; box-shadow: 0 7px 20px rgba(22,50,82,.05); }
.ready-master-v51 .ready-v86-enquiry-head,
.ready-master-v51 .ready-v86-enquiry-row { display: grid; grid-template-columns: 105px minmax(185px,1.25fr) minmax(190px,1.15fr) 90px minmax(170px,1fr) 105px 105px; align-items: center; gap: 13px; }
.ready-master-v51 .ready-v86-enquiry-head { min-height: 45px; padding: 0 15px; color: #61758e; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; background: #f5f8fc; border-bottom: 1px solid #dce5ef; }
.ready-master-v51 .ready-v86-enquiry-row { min-height: 68px; padding: 10px 15px; color: #243d59; font-size: 12px; border-bottom: 1px solid #e5ebf2; }
.ready-master-v51 .ready-v86-enquiry-row:last-child { border-bottom: 0; }
.ready-master-v51 .ready-v86-enquiry-row:hover { background: #f8fbff; }
.ready-master-v51 .ready-v86-enquiry-row > div { min-width: 0; }
.ready-master-v51 .ready-v86-enquiry-row strong,
.ready-master-v51 .ready-v86-enquiry-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ready-master-v51 .ready-v86-enquiry-row strong { color: #17304d; font-size: 12px; }
.ready-master-v51 .ready-v86-enquiry-row small { margin-top: 4px; color: #71839a; font-size: 10px; }
.ready-master-v51 .ready-v86-enquiry-row .btn { width: 100%; min-height: 31px; font-size: 10px; }

.ready-master-v51.ready-v51-editor-open .unsplash-modal { z-index: 520 !important; }

@media (max-width: 720px) {
  .ready-master-v51 .ready-v86-tour-layer-head { align-items: flex-start; flex-direction: column; }
  .ready-master-v51 .ready-v86-tour-layer-head .btn { width: 100%; }
}

/* v97 manual UPI / bank recharge verification */
.admin-pro-v54 .admin-recharge-requests { display: grid; gap: 16px; padding: 0; overflow: hidden; }
.admin-pro-v54 .admin-recharge-heading { margin: 0; padding: 18px 19px 14px; border-bottom: 1px solid #dfe7f0; }
.admin-pro-v54 .admin-recharge-heading h2 { margin: 3px 0; color: #142c49; font-size: 20px; }
.admin-pro-v54 .admin-recharge-heading p { margin: 0; }
.admin-pro-v54 .admin-recharge-requests > .notice { margin: 0 19px; }
.admin-pro-v54 .admin-recharge-stats { grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; padding: 0 19px; }
.admin-pro-v54 .admin-recharge-stats .stat-card { min-height: 94px; }
.admin-pro-v54 .admin-recharge-filters { display: grid; grid-template-columns: minmax(260px,1fr) minmax(180px,.4fr) minmax(180px,.4fr); gap: 12px; padding: 0 19px; }
.admin-pro-v54 .admin-recharge-filters label { display: grid; gap: 6px; color: #41556e; font-size: 11px; font-weight: 750; }
.admin-pro-v54 .admin-recharge-filters input,
.admin-pro-v54 .admin-recharge-filters select { min-height: 41px; border: 1px solid #d5dfeb; border-radius: 8px; padding: 8px 11px; color: #213a57; background: #f9fbfd; }
.admin-pro-v54 .admin-recharge-table-wrap { margin: 0; border-top: 1px solid #dfe7f0; }
.admin-pro-v54 .admin-recharge-table-wrap .agent-table { min-width: 1120px; }
.admin-pro-v54 .admin-recharge-table-wrap th { color: #617187; background: #f8fafc; font-size: 10px; text-transform: uppercase; }
.admin-pro-v54 .admin-recharge-table-wrap td { font-size: 11px; vertical-align: top; }
.admin-pro-v54 .admin-recharge-table-wrap td strong,
.admin-pro-v54 .admin-recharge-table-wrap td small { display: block; }
.admin-pro-v54 .admin-recharge-table-wrap td small { margin-top: 4px; color: #71839a; font-size: 9px; }
.admin-pro-v54 .admin-recharge-review-btn { min-height: 31px; padding: 5px 10px; white-space: nowrap; }
.admin-pro-v54 .admin-recharge-empty { padding: 24px; color: #71839a; text-align: center; }
.admin-recharge-status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; color: #52667e; background: #eef2f7; font-size: 9px; font-weight: 800; white-space: nowrap; }
.admin-recharge-status.pending_verification { color: #8a4b08; background: #fff1d6; }
.admin-recharge-status.approved { color: #067647; background: #d8f8e8; }
.admin-recharge-status.rejected,
.admin-recharge-status.cancelled { color: #b42318; background: #fee8e7; }

body.admin-recharge-modal-open { overflow: hidden; }
.admin-recharge-modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 24px; }
.admin-recharge-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(7,25,52,.7); backdrop-filter: blur(5px); }
.admin-recharge-dialog { position: relative; width: min(880px,100%); max-height: calc(100vh - 48px); display: grid; grid-template-rows: auto minmax(0,1fr) auto; border: 1px solid #d6e0eb; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(5,24,52,.32); overflow: hidden; }
.admin-recharge-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid #dfe7f0; }
.admin-recharge-dialog > header span { color: #1769d7; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.admin-recharge-dialog > header h2 { margin: 4px 0 0; color: #132b48; font-size: 22px; }
.admin-recharge-close { width: 40px; height: 40px; border: 1px solid #d3deea; border-radius: 10px; color: #536880; background: #fff; font-size: 25px; cursor: pointer; }
.admin-recharge-dialog-body { overflow-y: auto; padding: 22px; background: #f6f8fb; }
.admin-recharge-review-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.admin-recharge-review-summary > div { padding: 15px; border: 1px solid #dbe4ef; border-radius: 11px; background: #fff; }
.admin-recharge-review-summary span,
.admin-recharge-review-summary strong { display: block; }
.admin-recharge-review-summary span { color: #71839a; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.admin-recharge-review-summary strong { margin-top: 6px; color: #142c49; font-size: 19px; }
.admin-recharge-review-details { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid #dbe4ef; border-radius: 11px; background: #fff; overflow: hidden; }
.admin-recharge-review-details > div { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e4eaf1; }
.admin-recharge-review-details > div:nth-child(odd) { border-right: 1px solid #e4eaf1; }
.admin-recharge-review-details dt { color: #71839a; font-size: 10px; }
.admin-recharge-review-details dd { min-width: 0; margin: 0; color: #243d59; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.admin-recharge-proof-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px; border: 1px solid #dbe4ef; border-radius: 11px; background: #fff; }
.admin-recharge-proof-row > span { color: #435a74; font-size: 11px; font-weight: 800; }
.admin-recharge-no-proof { color: #71839a !important; font-weight: 500 !important; }
.admin-recharge-dialog > footer { display: grid; gap: 13px; padding: 17px 22px; border-top: 1px solid #dfe7f0; background: #fff; }
.admin-recharge-dialog > footer label { display: grid; gap: 6px; color: #354b64; font-size: 11px; font-weight: 750; }
.admin-recharge-dialog > footer textarea { width: 100%; resize: vertical; border: 1px solid #d5dfeb; border-radius: 8px; padding: 10px; color: #213a57; font: inherit; }
.admin-recharge-dialog > footer > div { display: flex; justify-content: flex-end; gap: 9px; }

@media (max-width: 1050px) {
  .admin-pro-v54 .admin-recharge-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-pro-v54 .admin-recharge-filters { grid-template-columns: 1fr 1fr; }
  .admin-pro-v54 .admin-recharge-filters label:first-child { grid-column: 1/-1; }
}
@media (max-width: 700px) {
  .admin-pro-v54 .admin-recharge-stats,
  .admin-pro-v54 .admin-recharge-filters,
  .admin-recharge-review-summary,
  .admin-recharge-review-details { grid-template-columns: 1fr; }
  .admin-pro-v54 .admin-recharge-filters label:first-child { grid-column: auto; }
  .admin-recharge-modal { padding: 8px; align-items: end; }
  .admin-recharge-dialog { max-height: calc(100vh - 16px); border-radius: 14px; }
  .admin-recharge-review-details > div:nth-child(odd) { border-right: 0; }
  .admin-recharge-proof-row { align-items: flex-start; flex-direction: column; }
  .admin-recharge-dialog > footer > div { flex-direction: column-reverse; }
  .admin-recharge-dialog > footer .btn { width: 100%; }
}
/* QuoteSuite notifications, support and report controls (v122) */
.qs-notification-shell{position:relative;margin-left:auto;z-index:90}.qs-notification-bell{position:relative;width:44px;height:44px;border:1px solid #dbe4f0;border-radius:13px;background:#fff;color:#17396d;font-size:18px;cursor:pointer}.qs-notification-bell span{position:absolute;right:-5px;top:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font:700 11px/20px Arial;text-align:center}.qs-notification-panel{position:absolute;right:0;top:52px;width:min(390px,calc(100vw - 24px));max-height:520px;overflow:auto;background:#fff;border:1px solid #dce5f2;border-radius:18px;box-shadow:0 22px 60px rgba(15,36,72,.2)}.qs-notification-panel>header{display:flex;justify-content:space-between;align-items:center;padding:18px;border-bottom:1px solid #e9eef6}.qs-notification-panel>header strong,.qs-notification-panel>header small{display:block}.qs-notification-panel>header small{margin-top:3px;color:#71809a}.qs-notification-panel>header button{border:0;background:none;color:#2563eb;font-weight:700;cursor:pointer}.qs-notification-item{width:100%;display:grid;grid-template-columns:10px 1fr;gap:10px;padding:14px 18px;border:0;border-bottom:1px solid #eef2f7;background:#fff;text-align:left;cursor:pointer}.qs-notification-item:hover,.qs-notification-item.unread{background:#f5f8ff}.qs-notification-dot{width:8px;height:8px;margin-top:5px;border-radius:50%;background:#cbd5e1}.qs-notification-item.unread .qs-notification-dot{background:#2563eb}.qs-notification-item strong,.qs-notification-item small,.qs-notification-item time{display:block}.qs-notification-item strong{color:#10244a}.qs-notification-item small{margin-top:4px;color:#5e6d85;line-height:1.4}.qs-notification-item time{margin-top:6px;color:#94a3b8;font-size:11px}.qs-notification-empty{padding:30px;text-align:center;color:#71809a}.qs-support-launch{position:fixed;right:24px;bottom:24px;z-index:75;border:0;border-radius:999px;padding:13px 20px;background:#0b2f6b;color:#fff;font-weight:800;box-shadow:0 12px 34px rgba(11,47,107,.28);cursor:pointer}.qs-support-modal[hidden]{display:none}.qs-support-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px}.qs-support-backdrop{position:absolute;inset:0;border:0;background:rgba(8,20,43,.62)}.qs-support-modal>section{position:relative;width:min(600px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:22px;box-shadow:0 28px 90px rgba(0,0,0,.28)}.qs-support-modal>section>header{display:flex;justify-content:space-between;align-items:flex-start;padding:24px 26px;border-bottom:1px solid #e7edf5}.qs-support-modal h2{margin:5px 0 0;color:#0d234b}.qs-support-modal header small{color:#526cff;font-weight:800;letter-spacing:.12em}.qs-support-modal header button{border:0;background:#f1f5f9;width:38px;height:38px;border-radius:50%;font-size:24px;cursor:pointer}.qs-support-modal form{display:grid;gap:16px;padding:24px 26px}.qs-support-modal label{display:grid;gap:7px;color:#1c2b48;font-weight:700}.qs-support-modal input,.qs-support-modal select,.qs-support-modal textarea{width:100%;box-sizing:border-box;border:1px solid #d7e0ed;border-radius:11px;padding:12px;font:inherit;color:#17233f}.qs-support-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.qs-report-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.qs-report-filters label{display:grid;gap:6px;font-weight:700;color:#334155}.qs-report-filters input{border:1px solid #dbe3ee;border-radius:10px;padding:10px 12px}.qs-report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.qs-report-metric{padding:18px;border:1px solid #e0e7f1;border-radius:16px;background:#fff}.qs-report-metric small,.qs-report-metric strong{display:block}.qs-report-metric strong{margin-top:8px;font-size:28px;color:#0b2f6b}@media(max-width:760px){.qs-notification-panel{position:fixed;right:12px;top:70px}.qs-support-launch{right:14px;bottom:14px}.qs-support-grid,.qs-report-metrics{grid-template-columns:1fr 1fr}}@media(max-width:460px){.qs-support-grid,.qs-report-metrics{grid-template-columns:1fr}}
.qs-v123-plan-upgrade {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e6eaf2;
  align-items: end;
}

.qs-v123-plan-action { justify-content: flex-end; }
.qs-v88-status.pending_approval { color: #9a5b00; background: #fff3d6; }

/* QuoteSuite v135: professional AeroDataBox flight itinerary cards. */
.quote-rendered .flight-itinerary-card {
  overflow: hidden;
  margin: 0 0 14px;
  border: 1px solid #d9e4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(18, 43, 78, .06);
  page-break-inside: avoid;
}

.quote-rendered .flight-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e4ebf3;
  background: #f8fbff;
}

.quote-rendered .flight-airline-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--quote-primary, #075985);
  color: #fff;
  font-size: 19px;
  line-height: 1;
}
.quote-rendered .flight-airline-mark b { font: inherit; }
.quote-rendered .flight-airline-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: inherit;
  object-fit: contain;
  background: #fff;
}

.quote-rendered .flight-card-head > div { display: grid; gap: 2px; min-width: 0; }
.quote-rendered .flight-card-head strong { color: #14233c; font-size: 15px; line-height: 1.25; }
.quote-rendered .flight-card-head small { color: #6b7a90; font-size: 11px; }
.quote-rendered .flight-status {
  padding: 5px 9px;
  border: 1px solid #bcd7c8;
  border-radius: 999px;
  background: #ecfdf3;
  color: #087443;
  font-size: 10px;
  font-weight: 800;
  text-transform: capitalize;
}

.quote-rendered .flight-route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, .85fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px 20px;
}

.quote-rendered .flight-stop { display: grid; gap: 4px; }
.quote-rendered .flight-stop-arrival { text-align: right; }
.quote-rendered .flight-time { color: #14233c; font-size: 12px; font-weight: 800; }
.quote-rendered .flight-stop > strong { color: var(--quote-primary, #075985); font-size: 24px; line-height: 1; }
.quote-rendered .flight-stop > small { min-height: 28px; color: #465871; font-size: 11px; line-height: 1.3; }
.quote-rendered .flight-stop > em { color: #718096; font-size: 10px; font-style: normal; }
.quote-rendered .flight-journey {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 5px;
  color: var(--quote-primary, #075985);
  text-align: center;
}
.quote-rendered .flight-journey > span { border-top: 1px dashed #9fb2ca; }
.quote-rendered .flight-journey > b { font-size: 17px; transform: rotate(0deg); }
.quote-rendered .flight-journey > small { grid-column: 1 / -1; color: #718096; font-size: 10px; }

@media (max-width: 640px) {
  .quote-rendered .flight-card-head { grid-template-columns: 38px minmax(0, 1fr); padding: 10px 12px; }
  .quote-rendered .flight-status { grid-column: 2; justify-self: start; }
  .quote-rendered .flight-route-grid { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .quote-rendered .flight-stop-arrival { text-align: left; }
  .quote-rendered .flight-journey { grid-template-columns: 24px auto 1fr; justify-content: start; text-align: left; }
  .quote-rendered .flight-journey > small { grid-column: auto; }
}

@media print {
  .quote-rendered .flight-itinerary-card { box-shadow: none; }
}
