* {
  box-sizing: border-box;
}

:root {
  --accent: #008f84;
  --accent-dark: #007267;
  --blue: #2563eb;
  --amber: #f59e0b;
  --ink: #152033;
  --muted: #667085;
  --line: #e4e7ec;
  --soft-line: #eef2f6;
  --surface: #ffffff;
  --page: #f7fafb;
  --dashboard-accent: #008f84;
  --dashboard-accent-dark: #007267;
  --dashboard-soft: #e9f8f6;
  --dashboard-wash: #f3fbf9;
  --dashboard-line: #cfe7e3;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.toolbar-card a {
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

button:hover,
.toolbar-card a:hover {
  background: var(--accent-dark);
}

input,
select,
textarea {
  min-height: 38px;
  width: 100%;
  border: 1px solid #d7dde5;
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 143, 132, 0.12);
  outline: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top left, #e8fbf8, transparent 34%), var(--page);
}

.login-panel {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(21, 32, 51, 0.08);
}

.login-brand {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 16px;
}

.login-brand span {
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.login-panel h1 {
  margin: 0 0 8px;
}

.login-panel p,
.error,
.muted {
  color: var(--muted);
}

.stack,
.stack-form {
  display: grid;
  gap: 12px;
}

.stack label {
  display: grid;
  gap: 6px;
}

.error {
  color: #b42318;
  margin: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}

aside {
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 24px 18px;
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 26px;
}

nav {
  display: grid;
  gap: 6px;
}

.nav-link {
  display: block;
  border-radius: 8px;
  color: #526071;
  text-decoration: none;
  padding: 10px 12px;
}

.nav-link.active,
.nav-link:hover {
  background: #e9f8f6;
  color: var(--accent-dark);
}

.nav-link.disabled {
  opacity: 0.55;
}

main {
  min-width: 0;
  padding: 22px 26px 34px;
}

.topbar,
.page-header,
.toolbar-card,
.panel header,
.list-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  align-items: center;
  margin-bottom: 18px;
}

.topbar span,
.page-header span,
.toolbar-card span,
.list-panel header span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.page-header {
  margin-bottom: 10px;
}

.page-header h1 {
  margin: 2px 0 0;
  font-size: 24px;
  letter-spacing: 0;
}

.page-header p {
  max-width: 720px;
  margin: 4px 0 0;
  color: var(--muted);
}

.itinerary-editor-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.editor-header-nav {
  display: flex;
  align-items: center;
}

.editor-back-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.editor-back-button::before {
  content: "‹";
  margin-right: 6px;
  font-size: 18px;
  line-height: 1;
}

.page-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

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

.summary-grid article,
.toolbar-card,
.panel,
.workflow-board > article,
.asset-board article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(21, 32, 51, 0.04);
}

.summary-grid b,
.metrics b {
  display: block;
  font-size: 30px;
}

.toolbar-card {
  align-items: center;
  margin-bottom: 16px;
}

.workflow-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.workflow-board > article {
  min-height: 230px;
}

.flow-head > b {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #0eaaa0);
  color: #fff;
}

.flow-head h2 {
  margin: 12px 0 8px;
}

.drawer-head img,
.resource-picker-preview img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.timeline-sample,
.checklist,
.publish-checks {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.timeline-sample span,
.checklist span,
.publish-checks span,
.filter-row span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--accent-dark);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.qr-card {
  display: grid;
  min-height: 80px;
  place-items: center;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  color: var(--accent-dark);
  font-weight: 800;
}

.qr-code {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, 7px);
  gap: 3px;
  width: fit-content;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5edf0;
}

.qr-code i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: #eef3f6;
}

.qr-code i.on {
  background: #111827;
}

.qr-code b {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 2px 4px;
  border-radius: 3px;
  background: #111827;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

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

.resource-ledger {
  display: grid;
  gap: 14px;
  align-items: start;
}

.resource-ledger [hidden] {
  display: none !important;
}

.resource-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.itinerary-builder {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(320px, 380px);
  gap: 16px;
  align-items: start;
}

.itinerary-ai-home,
.itinerary-home-page,
.itinerary-editor-page {
  display: grid;
  gap: 16px;
}

.itinerary-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 24px;
  align-items: start;
  padding-bottom: 84px;
}

.itinerary-home-actions {
  display: grid;
  gap: 14px;
}

.itinerary-home-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.itinerary-action-card {
  display: grid;
  gap: 5px;
  min-height: 76px;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 16px;
  text-align: center;
  text-decoration: none;
  place-items: center;
}

.itinerary-action-card.primary {
  border-color: rgba(0, 143, 132, 0.28);
  background: linear-gradient(135deg, var(--accent-dark), #12a99c);
  color: #fff;
}

.itinerary-action-card[disabled] {
  border-color: #d9dee7;
  background: #f2f4f7;
  color: #8b96a8;
  cursor: not-allowed;
  opacity: 1;
}

.itinerary-action-card[disabled]:hover {
  background: #f2f4f7;
  color: #8b96a8;
}

.itinerary-action-card mark {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 2px 8px;
  font-size: 12px;
}

.itinerary-home-list {
  padding: 14px;
}

.itinerary-ai-home {
  display: grid;
  gap: 34px;
  min-height: calc(100vh - 118px);
  margin: -22px -24px -34px;
  padding: 12px 24px 46px;
  background: linear-gradient(180deg, #fff 0%, #fbfefd 72%, #eef8f7 100%);
  border-top: 1px solid #e4efee;
}

.ai-quote-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 34px;
}

.ai-quote-topbar p {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
  text-align: center;
}

.ai-quote-back,
.ai-resource-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.ai-quote-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  font-size: 16px;
}

.ai-quote-back span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  border: 1px solid #b9deda;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.ai-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  border: 1px solid #b9deda;
  border-radius: 7px;
  background: #e9f8f6;
  color: var(--accent-dark);
  padding: 7px 11px;
  font-size: 13px;
}

.ai-resource-link span {
  width: 18px;
  height: 14px;
  border-radius: 3px 3px 2px 2px;
  background: var(--accent);
  position: relative;
}

.ai-resource-link span::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 2px;
  width: 8px;
  height: 5px;
  border-radius: 3px 3px 0 0;
  background: #75cfc7;
}

.ai-quote-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 18px;
  text-align: center;
}

.ai-quote-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-dark), #27c5b8);
  position: relative;
  box-shadow: 0 16px 34px rgba(0, 143, 132, 0.22);
}

.ai-quote-icon::before {
  content: "";
  position: absolute;
  inset: 15px 17px 17px 17px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 5px;
}

.ai-quote-icon::after {
  content: "✦";
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.ai-quote-hero h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.ai-quote-hero mark {
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 3px 6px;
  font-size: 11px;
  vertical-align: middle;
}

.ai-quote-hero p {
  margin: 6px 0 0;
  color: #475467;
  font-size: 14px;
}

.ai-quote-workspace {
  display: grid;
  width: min(810px, calc(100vw - 64px));
  justify-self: center;
}

.ai-conversation-panel {
  gap: 0;
  overflow: hidden;
  border: 1px solid #e4eaf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(21, 32, 51, 0.08);
}

.ai-quote-messages {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.ai-conversation-panel .ai-quote-messages {
  max-height: 300px;
  padding: 18px 18px 12px;
}

.ai-quote-messages:empty {
  display: none;
}

.ai-conversation-panel .ai-quote-messages:empty {
  display: block;
  padding: 0;
}

.ai-bubble {
  max-width: 82%;
  border-radius: 12px;
  border: 1px solid #e8edf5;
  background: #fff;
  padding: 10px 12px;
}

.ai-bubble p,
.ai-bubble strong {
  display: block;
  margin: 0;
}

.ai-bubble p {
  margin-top: 4px;
  color: #526071;
  white-space: pre-line;
}

.ai-bubble.user {
  justify-self: end;
  background: #eef8f6;
}

.ai-bubble button {
  margin-top: 12px;
  min-height: 34px;
  border-radius: 7px;
  background: var(--accent);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

.ai-bubble button:hover {
  background: var(--accent-dark);
}

.ai-bubble button:disabled,
.ai-bubble button:disabled:hover {
  cursor: wait;
  background: #a7b1c2;
  color: #fff;
}

.ai-bubble-loading {
  border-color: #b9deda;
  background: #f2fbfa;
}

.ai-typing-dots {
  display: inline-flex;
  gap: 4px;
  margin-top: 8px;
}

.ai-typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  animation: aiTypingPulse 1s ease-in-out infinite;
}

.ai-typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes aiTypingPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.ai-quote-composer {
  display: grid;
  gap: 8px;
  min-height: 168px;
  border: 0;
  border-top: 1px solid #ebeef4;
  border-radius: 0;
  background: #fff;
  padding: 18px 18px 14px;
  box-shadow: none;
}

.ai-quote-composer.is-generating {
  background: #f8fcfb;
}

.ai-quote-composer label {
  color: #98a2b3;
  font-weight: 700;
}

.ai-quote-composer textarea {
  min-height: 68px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  resize: none;
}

.ai-quote-composer textarea:focus {
  box-shadow: none;
}

.ai-quote-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ai-quote-actions button {
  min-height: 36px;
}

.ai-send-button {
  background: var(--accent);
}

.ai-send-button:hover {
  background: var(--accent-dark);
}

.ai-send-button:disabled,
.ai-send-button:disabled:hover {
  cursor: wait;
  background: #76bcb5;
  opacity: 0.82;
}

.ai-recent-quotes {
  display: grid;
  gap: 14px;
  width: min(810px, calc(100vw - 64px));
  justify-self: center;
  margin-top: 22px;
}

.ai-recent-quotes > span {
  color: #98a2b3;
  font-weight: 700;
  font-size: 13px;
}

.ai-recent-quotes div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-recent-quotes button {
  min-height: 32px;
  border: 1px solid #d5e9e6;
  border-radius: 9px;
  background: #eef8f6;
  color: var(--accent-dark);
  padding: 7px 15px;
  font-size: 13px;
}

.ai-recent-quotes button:hover {
  background: #dff3f0;
}

.itinerary-main {
  display: grid;
  gap: 12px;
}

.itinerary-side {
  display: grid;
  gap: 12px;
}

.editor-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--soft-line);
  padding: 10px;
}

.editor-tabs button {
  border-radius: 8px;
  border: 0;
  background: #f2f4f7;
  color: #667085;
  padding: 10px;
  text-align: center;
  font-weight: 800;
}

.editor-tabs .active {
  background: var(--accent);
  color: #fff;
}

.editor-tab-panel:not(.active) {
  display: none;
}

.editor-schedule-panel {
  display: grid;
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.itinerary-edit-column {
  display: grid;
  gap: 16px;
}

.itinerary-basic-card,
.itinerary-more-card,
.itinerary-days-card,
.editor-placeholder,
.share-settings-panel,
.quote-settings-panel {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.itinerary-basic-card h2,
.itinerary-more-card h2,
.itinerary-days-card h2,
.share-settings-panel h2,
.quote-settings-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.share-settings-panel {
  display: grid;
  gap: 18px;
  min-height: 280px;
}

.quote-settings-panel {
  display: grid;
  gap: 22px;
  min-height: 280px;
}

.editor-tab-panel.share-settings-panel:not(.active),
.editor-tab-panel.quote-settings-panel:not(.active) {
  display: none;
}

.share-settings-panel header p,
.quote-settings-panel header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.share-settings-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.share-settings-panel > header h2 {
  margin-bottom: 8px;
}

.share-settings-panel > header > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #edf7f6;
  color: var(--accent-dark);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.share-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
}

.share-action-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-height: 238px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
}

.share-action-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.share-action-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.share-action-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.share-action-icon.pdf {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.share-action-icon.pdf::before {
  content: "PDF";
}

.share-action-icon.h5 {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
}

.share-action-icon.h5::before {
  content: "H5";
}

.share-action-icon.poster {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.share-action-icon.poster::before {
  content: "海报";
}

.share-action-card label {
  display: flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid #d9e8e6;
  border-radius: 8px;
  background: #f8fbfb;
  color: #526071;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
}

.share-action-card a,
.share-action-card label span {
  color: inherit;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-action-card a:hover {
  color: var(--accent-dark);
}

.share-action-card button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.share-action-card button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.share-settings-message {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.quote-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px);
  gap: 16px;
  align-items: stretch;
}

.quote-plan-card {
  display: grid;
  gap: 14px;
  min-height: 150px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.quote-plan-card:hover {
  background: #f8fcfb;
  border-color: rgba(0, 143, 132, 0.22);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.quote-plan-card.active {
  background: #f2fbfa;
  border-color: rgba(0, 143, 132, 0.38);
  box-shadow: 0 12px 24px rgba(0, 143, 132, 0.1);
}

.quote-plan-card:focus-visible {
  outline: 2px solid rgba(0, 143, 132, 0.34);
  outline-offset: 3px;
}

.quote-plan-card header,
.quote-plan-card dl div,
.quote-plan-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quote-plan-card header {
  justify-content: flex-start;
}

.quote-plan-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.quote-plan-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.quote-plan-card dt {
  color: var(--muted);
  font-size: 12px;
}

.quote-plan-card dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.quote-plan-card dl div:last-child dd {
  color: var(--accent);
}

.quote-plan-card footer b {
  color: var(--muted);
  font-size: 12px;
}

.quote-total-button {
  min-height: auto;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 4px 0;
  font-size: 12px;
  font-weight: 800;
}

.quote-total-button:hover,
.quote-total-button:focus-visible {
  background: transparent;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.basic-itinerary-form,
.more-itinerary-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.basic-itinerary-form label,
.more-itinerary-form label,
.day-edit-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.basic-itinerary-form input,
.more-itinerary-form textarea,
.day-edit-card input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--text);
  background: #fff;
}

.more-itinerary-form textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.day-overnight-line {
  display: grid;
  grid-template-columns: auto minmax(220px, 380px);
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.day-overnight-line input {
  min-width: 0;
}

.day-edit-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfbff;
}

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

.day-spot-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 210px auto auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.spot-picker-field {
  display: block;
}

.time-range-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.time-range-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.day-spot-row button,
.add-spot-button {
  min-height: 40px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.day-spot-row .danger-link {
  color: #d92d20;
}

.add-spot-button {
  justify-self: start;
  padding: 0 14px;
  color: var(--accent);
}

.day-edit-card header,
.itinerary-days-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.day-edit-card header span,
.itinerary-days-card header span,
.editor-helper-text {
  color: var(--muted);
  font-size: 13px;
}

.editor-helper-text {
  margin: 0 0 12px;
}

.editor-day-grid {
  display: grid;
  gap: 14px;
}

.itinerary-preview-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  border-left: 3px solid var(--accent);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.itinerary-preview-shell {
  position: sticky;
  top: 96px;
}

.itinerary-preview-panel header {
  border-bottom: 1px solid var(--soft-line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.itinerary-preview-panel header span {
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.itinerary-preview-panel h2 {
  margin: 6px 0;
  font-size: 22px;
}

.itinerary-preview-panel p {
  margin: 0;
  color: #475467;
  line-height: 1.7;
}

.preview-subtabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.preview-subtabs button {
  min-height: 36px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #f7f7fb;
  color: var(--muted);
  font-weight: 800;
}

.preview-subtabs button.active {
  border-color: rgba(0, 150, 136, 0.22);
  background: rgba(0, 150, 136, 0.1);
  color: var(--accent);
}

.preview-tab-panel:not(.active) {
  display: none;
}

.preview-quote-detail {
  display: grid;
  gap: 14px;
}

.preview-quote-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-quote-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--muted);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.preview-quote-tabs button.active {
  background: #efe7ff;
  color: #7c3aed;
}

.preview-quote-plan:not(.active) {
  display: none;
}

.preview-quote-plan {
  display: grid;
  gap: 12px;
}

.preview-quote-plan-head {
  border: 1px solid rgba(0, 143, 132, 0.24);
  border-radius: 7px;
  color: var(--accent-dark);
  padding: 10px 12px;
  margin: 0;
}

.quote-plan-head-solid {
  background: #e9f7f5;
}

.quote-plan-head-readable {
  box-shadow: inset 3px 0 0 var(--accent);
}

.preview-quote-plan-head span {
  color: inherit;
  font-size: 13px;
}

.itinerary-preview-panel .preview-quote-plan-head span {
  color: var(--accent-dark);
}

.preview-quote-category {
  display: grid;
  gap: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 12px;
}

.preview-quote-category h3 {
  margin: 0;
  font-size: 15px;
}

.preview-quote-items {
  display: grid;
  gap: 8px;
}

.preview-quote-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 7px;
  background: #f8fafc;
  padding: 10px 12px;
}

.preview-quote-item div {
  display: grid;
  gap: 3px;
}

.preview-quote-item span,
.preview-quote-item small {
  color: var(--muted);
  font-size: 12px;
}

.preview-quote-item b {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}

.preview-more-info {
  display: grid;
  gap: 10px;
}

.preview-more-info-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}

.preview-more-info-item strong {
  color: var(--accent-dark);
  font-size: 13px;
}

.preview-more-info-item p {
  font-size: 13px;
}

.preview-timeline {
  display: grid;
  gap: 14px;
}

.preview-day-card {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--soft-line);
  padding-bottom: 14px;
}

.preview-day-card header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-day-card header span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #efe7ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.preview-spot-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfbff;
}

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

.preview-spot-card small {
  color: var(--muted);
  line-height: 1.6;
}

.quote-total-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.44);
  padding: 18px;
}

.quote-total-modal {
  width: min(1080px, calc(100vw - 36px));
  max-height: min(860px, calc(100vh - 36px));
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.quote-editor-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  border-right: 1px solid var(--soft-line);
  background: #f8fafc;
  padding: 18px;
}

.quote-add-version-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(0, 143, 132, 0.24);
  border-radius: 7px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 900;
}

.quote-add-version-button:hover,
.quote-add-version-button:focus-visible {
  border-color: rgba(0, 143, 132, 0.42);
  background: #e9f7f5;
  color: var(--accent-dark);
}

.quote-add-version-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 4px;
}

.quote-add-version-icon::before,
.quote-add-version-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.quote-add-version-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

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

.quote-version-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px;
  text-align: left;
}

.quote-version-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.quote-version-copy strong,
.quote-version-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-version-copy small {
  color: var(--muted);
  font-size: 12px;
}

.quote-version-item[aria-current="true"] {
  border-color: var(--soft-line);
  background: #fff;
  box-shadow: none;
}

.quote-version-item:hover,
.quote-version-item:focus-visible {
  border-color: #b9c4d1;
  background: #f8fafc;
}

.quote-version-current {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.quote-editor-main {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: auto;
  padding: 0 22px 18px;
}

.quote-editor-topbar,
.quote-editor-toolbar,
.quote-category-card header,
.quote-editor-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.quote-editor-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 20px 0 12px;
}

.quote-editor-topbar span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.quote-editor-topbar h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  font-size: 22px;
}

.quote-title-input {
  min-height: 34px;
  width: min(260px, 100%);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.quote-title-edit {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.quote-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quote-title-actions[hidden] {
  display: none;
}

.quote-title-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.quote-title-save {
  border-color: rgba(0, 143, 132, 0.28);
  background: var(--accent);
  color: #fff;
}

.quote-title-cancel {
  background: #fff;
  color: var(--muted);
}

.quote-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border-radius: 18px;
  background: #f3f6f8;
  color: var(--muted);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.quote-modal-close span {
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

.quote-modal-close b {
  font-size: 13px;
}

.quote-modal-close:hover {
  background: #e9eef3;
  color: var(--ink);
}

.quote-editor-toolbar {
  margin-top: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--soft-line);
}

.quote-day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-day-tabs button {
  min-height: 36px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #f7f8fb;
  color: var(--muted);
  padding: 7px 12px;
  font-weight: 900;
}

.quote-day-tabs button {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.quote-day-tabs button small {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
}

.quote-day-tabs button.active,
.quote-day-tabs button:hover {
  border-color: rgba(0, 143, 132, 0.24);
  background: #e9f7f5;
  color: var(--accent-dark);
}

.quote-category-list {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.quote-category-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.quote-category-card header {
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: #f5fbfa;
  padding: 10px 12px;
}

.quote-category-ticket header {
  border-left-color: #f59e0b;
  background: #fff8ed;
}

.quote-category-hotel header {
  border-left-color: var(--accent);
}

.quote-category-card header div {
  display: grid;
  gap: 3px;
}

.quote-category-card header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quote-category-card header b {
  color: var(--ink);
}

.quote-line-table {
  display: grid;
  overflow-x: auto;
}

.quote-line-head,
.quote-line-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) 88px 86px 92px 70px 100px 70px;
  gap: 8px;
  align-items: center;
  min-width: 740px;
}

.quote-hotel-head,
.quote-hotel-row {
  grid-template-columns: minmax(180px, 1.35fr) 78px 112px 108px 78px 78px 54px 76px 54px;
  min-width: 882px;
}

.quote-line-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 0 2px 8px;
}

.quote-line-head i {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 143, 132, 0.14);
  color: var(--accent-dark);
  font-style: normal;
  font-size: 10px;
}

.quote-line-body {
  display: grid;
  gap: 8px;
}

.quote-line-row {
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fbfcfe;
  padding: 9px;
}

.quote-line-row[hidden] {
  display: none !important;
}

.quote-line-row input,
.quote-line-row select,
.quote-editor-summary-bar input,
.quote-editor-summary-bar select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 7px 9px;
  font-weight: 800;
}

.quote-readonly-cell {
  display: flex;
  align-items: center;
  min-height: 38px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  background: #f7fafc;
  color: var(--ink);
  padding: 7px 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-hotel-picker {
  min-width: 0;
}

.quote-hotel-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 7px 9px;
  font-weight: 800;
  text-align: left;
}

.quote-hotel-picker-trigger [data-quote-hotel-picker-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-hotel-picker-trigger:hover,
.quote-hotel-picker-trigger[aria-expanded="true"] {
  border-color: #aeb9c8;
  background: #f8fafc;
  box-shadow: none;
}

.quote-hotel-picker-trigger:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.quote-hotel-picker-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: -4px 2px 0 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.quote-hotel-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.28);
  padding: 20px;
}

.quote-hotel-dialog {
  width: min(680px, calc(100vw - 40px));
  max-height: min(680px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.28);
}

.quote-hotel-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--soft-line);
  padding: 18px 20px;
}

.quote-hotel-dialog-header > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.quote-hotel-dialog-header h3 {
  margin: 0;
  font-size: 20px;
}

.quote-hotel-dialog-header [data-quote-hotel-picker-count] {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quote-hotel-dialog-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
}

.quote-hotel-dialog-search {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--soft-line);
  padding: 16px 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quote-hotel-dialog-search input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 9px 12px;
  color: var(--text);
  font-size: 14px;
}

.quote-hotel-dialog-list {
  min-height: 0;
  overflow-y: auto;
}

.quote-hotel-dialog-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  background: transparent;
  color: var(--text);
  padding: 14px 20px;
  text-align: left;
}

.quote-hotel-dialog-option > span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.quote-hotel-dialog-option strong {
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.quote-hotel-dialog-option small {
  color: var(--muted);
  font-size: 12px;
}

.quote-hotel-dialog-option:hover,
.quote-hotel-dialog-option:focus-visible {
  background: #f3f6f9;
  outline: none;
}

.quote-hotel-dialog-option.active {
  background: #f8fafc;
}

.quote-hotel-current-label {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.quote-hotel-dialog-empty {
  margin: 0;
  padding: 38px 20px;
  color: var(--muted);
  text-align: center;
}

.quote-level-cell {
  justify-content: center;
}

.quote-source-cell {
  justify-content: center;
  border-color: rgba(0, 143, 132, 0.2);
  background: #effaf9;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.quote-line-row strong {
  color: var(--ink);
  font-size: 13px;
}

.quote-line-delete {
  min-height: 38px;
  border: 1px solid rgba(217, 45, 32, 0.22);
  border-radius: 6px;
  background: #fff;
  color: #d92d20;
  padding: 6px 8px;
  font-weight: 900;
}

.quote-add-line-button {
  justify-self: start;
  min-height: 38px;
  border: 1px solid rgba(0, 143, 132, 0.24);
  border-radius: 7px;
  background: #fff;
  color: var(--accent-dark);
  padding: 7px 12px;
  font-weight: 900;
}

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

.quote-edit-itinerary-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--ink);
  padding: 7px 12px;
  font-weight: 900;
}

.quote-edit-itinerary-button:hover {
  background: #eef2f6;
  color: var(--ink);
}

.quote-add-line-button:disabled {
  cursor: not-allowed;
  border-color: var(--line);
  background: #f8fafc;
  color: var(--muted);
}

.quote-empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.quote-editor-summary-bar {
  grid-column: 1 / -1;
  border-top: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 18px;
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.08);
  justify-content: flex-end;
}

.quote-editor-summary-bar .quote-summary-metric {
  display: grid;
  gap: 5px;
  min-width: 110px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quote-summary-price {
  min-width: 128px;
}

.quote-summary-price input {
  min-height: 34px;
  width: 128px;
  padding: 6px 8px;
  font-size: 17px;
  font-weight: 900;
}

.quote-editor-summary-bar strong {
  color: var(--ink);
  font-size: 17px;
}

.quote-editor-summary-bar [data-quote-modal-profit] {
  color: var(--accent-dark);
}

.quote-editor-summary-bar button {
  min-width: 104px;
  border-radius: 8px;
  padding: 11px 18px;
}

.quote-editor-summary-bar .secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.quote-editor-summary-bar .secondary-button:hover {
  background: #f6f8fa;
  color: var(--ink);
}

@media (max-width: 900px) {
  .quote-total-modal {
    grid-template-columns: 1fr;
  }

  .quote-editor-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .quote-version-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-editor-summary-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.spot-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.45);
  padding: 24px;
}

.spot-editor-modal {
  width: min(640px, 100%);
  display: grid;
  gap: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.spot-editor-modal header,
.spot-editor-modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spot-editor-modal label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.spot-editor-modal input,
.spot-editor-modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--text);
}

.spot-editor-modal textarea {
  min-height: 110px;
  resize: vertical;
}

.spot-editor-modal footer button:last-child {
  min-width: 108px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 11px 18px;
  font-weight: 800;
}

.itinerary-editor-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 24px rgba(15, 23, 42, 0.06);
  padding: 12px 28px;
  backdrop-filter: blur(12px);
}

.itinerary-editor-actions button {
  min-width: 132px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  font-weight: 800;
}

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

.route-create-popover summary {
  min-width: 96px;
  justify-content: center;
  white-space: nowrap;
}

.resource-list-head,
.resource-list-head > div,
.resource-table-toolbar,
.resource-table-toolbar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.resource-list-head > div,
.resource-table-toolbar > div {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.resource-list-head h2,
.resource-table-toolbar h2 {
  margin: 0;
}

.resource-list-action {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--brand);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.resource-list-action:hover {
  border-color: #047e73;
  background: #047e73;
  color: #fff;
}

.resource-type-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.resource-type-tabs button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f5f7fb;
  color: var(--muted);
  font-weight: 900;
}

.resource-type-tabs button.active,
.resource-type-tabs button[aria-selected="true"] {
  border-color: rgba(0, 143, 132, 0.28);
  background: #e9f8f6;
  color: var(--accent-dark);
}

.resource-table-toolbar {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.resource-empty-panel {
  display: grid;
  min-height: 300px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.resource-empty-panel h2,
.resource-empty-panel p {
  margin: 0;
}

.resource-empty-panel p {
  max-width: 520px;
  color: var(--muted);
}

.resource-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.resource-filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.date-range-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.date-range-field b {
  color: var(--muted);
  font-size: 12px;
}

.resource-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(21, 32, 51, 0.42);
}

.resource-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1000px, 100%);
  max-height: min(820px, calc(100vh - 56px));
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  padding: 0;
  box-shadow: 0 24px 70px rgba(21, 32, 51, 0.22);
}

.resource-modal-close {
  justify-self: end;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.resource-modal-close:hover {
  background: #f5f7fb;
  color: var(--ink);
}

.resource-modal-panel > .empty-state {
  margin: 24px;
}

.resource-modal-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.resource-modal-topbar span,
.resource-modal-form label {
  color: var(--muted);
  font-weight: 800;
}

.resource-modal-topbar h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.resource-modal-body {
  flex: 1 1 auto;
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 14px 24px 0;
}

.resource-form-error {
  margin: 0;
  border: 1px solid #ffc6c6;
  border-radius: 8px;
  background: #fff5f5;
  color: #b42318;
  padding: 10px 12px;
  font-weight: 800;
}

.resource-modal-section {
  display: grid;
  gap: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.resource-modal-section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.resource-modal-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.resource-modal-section header strong {
  color: var(--muted);
  white-space: nowrap;
}

.resource-modal-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}

.resource-modal-form label {
  display: grid;
  gap: 6px;
}

.resource-location-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
  align-items: stretch;
  gap: 12px;
}

.resource-address-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.resource-map-marker {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #d5e5e3;
  border-radius: 9px;
  background: #f8fbfb;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.resource-map-marker:hover,
.resource-map-marker.is-selecting {
  border-color: #8bcfca;
  background: #f0fbfa;
  box-shadow: 0 0 0 3px rgba(15, 151, 139, 0.08);
}

.resource-map-marker > div:not(.resource-map-canvas) strong,
.resource-map-marker > div:not(.resource-map-canvas) span {
  display: block;
}

.resource-map-marker > div:not(.resource-map-canvas) strong {
  color: var(--ink);
  font-size: 14px;
}

.resource-map-marker > div:not(.resource-map-canvas) span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.map-select-status {
  display: block;
  margin-top: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.resource-map-canvas {
  position: relative;
  min-height: 82px;
  overflow: hidden;
  border: 1px solid #cde2df;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 156, 143, 0.08) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(225deg, rgba(79, 142, 219, 0.08) 25%, transparent 25%) 0 0 / 22px 22px,
    #edf7f6;
  cursor: crosshair;
}

.map-road {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 1px rgba(140, 166, 186, 0.2);
}

.road-horizontal {
  top: 38px;
  left: -8px;
  width: 150px;
  height: 14px;
  transform: rotate(-8deg);
}

.road-vertical {
  top: -14px;
  left: 58px;
  width: 14px;
  height: 120px;
  transform: rotate(11deg);
}

.map-pin {
  position: absolute;
  top: var(--pin-y, 44%);
  left: var(--pin-x, 50%);
  width: 22px;
  height: 22px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(0, 125, 113, 0.28);
  transform: translate(-50%, -100%) rotate(-45deg);
}

.map-pin::after {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  content: "";
}

.resource-media-form {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.resource-media-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.image-upload-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.image-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
}

.image-upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #c8dcda;
  border-radius: 7px;
  background: #f3fbfa;
  color: var(--brand);
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.image-upload-button:hover {
  border-color: var(--brand);
  background: #e6f6f4;
}

.image-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 54px;
  border: 1px dashed #d7e1ea;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}

.image-upload-tile {
  position: relative;
  width: 72px;
  height: 54px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fff;
}

.image-upload-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-upload-tile button {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.image-upload-empty {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.image-upload-field-compact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-upload-field-compact .image-upload-head {
  order: 2;
  flex: 0 0 auto;
}

.image-upload-field-compact .image-upload-button {
  min-height: 36px;
  padding: 0 12px;
}

.image-upload-field-compact .image-upload-list {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 6px;
}

.image-upload-field-compact .image-upload-tile {
  width: 56px;
  height: 42px;
}

.room-maintenance-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
}

.room-maintenance-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-maintenance-actions strong {
  color: var(--muted);
}

.room-add-button {
  min-height: 36px;
  border: 1px solid #b7dedb;
  background: #f0fbfa;
  color: var(--brand);
  font-weight: 900;
}

.room-add-button:hover {
  border-color: var(--brand);
  background: #e4f6f4;
  color: var(--brand);
}

.room-maintenance-new-list {
  display: contents;
}

.room-maintenance-head,
.room-maintenance-row {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) 82px minmax(260px, 1.45fr) 82px 82px 82px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.room-maintenance-head {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.room-maintenance-row {
  color: var(--ink);
  font-weight: 900;
}

.new-room-row {
  background: #fbfefe;
}

.room-maintenance-row + .room-maintenance-row {
  border-top: 1px solid var(--soft-line);
}

.room-maintenance-row input {
  min-width: 0;
}

.room-maintenance-row .image-upload-field {
  min-width: 0;
}

.resource-modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 2px -24px 0;
  border-top: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.95);
  padding: 14px 24px;
  backdrop-filter: blur(10px);
}

.resource-status-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #b9d3d1;
  border-radius: 8px;
  background: #f8fbfb;
  padding: 6px 8px 6px 10px;
}

.resource-status-label {
  color: #475569;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.resource-status-toggle {
  display: inline-flex;
  min-width: 112px;
  min-height: 36px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid #b9c8cf;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 4px 12px 4px 4px;
  color: #334155;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.resource-status-toggle:hover {
  border-color: #0f766e;
  background: #e8f4f3;
}

.resource-status-toggle.active {
  border-color: #047857;
  background: #e7f8f0;
  color: #064e3b;
}

.resource-status-toggle-track {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  flex: 0 0 44px;
  align-items: center;
  border-radius: 999px;
  background: #64748b;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: background 0.18s ease;
}

.resource-status-toggle-thumb {
  position: absolute;
  left: 3px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.28);
  transition: transform 0.18s ease;
}

.resource-status-toggle.active .resource-status-toggle-track {
  background: #059669;
}

.resource-status-toggle.active .resource-status-toggle-thumb {
  transform: translateX(20px);
}

.resource-status-toggle-text {
  min-width: 42px;
  text-align: left;
}

.resource-save-button {
  min-width: 140px;
}

.resource-empty-note {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
}

.resource-modal-panel .inline-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.admin-create-popover {
  position: relative;
}

.admin-create-popover summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 7px;
  padding: 8px 14px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.admin-create-popover summary::-webkit-details-marker {
  display: none;
}

.admin-create-popover[open] .stack-form {
  position: absolute;
  top: 46px;
  right: 0;
  z-index: 5;
  width: min(520px, calc(100vw - 320px));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(21, 32, 51, 0.12);
}

.route-create-popover[open] .stack-form {
  right: auto;
  left: 0;
  width: 280px;
}

.lead-drawer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 16px;
  align-items: start;
}

.lead-overview-row,
.lead-channel-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.lead-overview-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lead-overview-row article,
.lead-channel-strip p {
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: #fbfdfd;
}

.lead-overview-row article {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.lead-overview-row b {
  color: var(--accent-dark);
  font-size: 24px;
}

.lead-overview-row span {
  color: var(--muted);
  font-size: 12px;
}

.lead-channel-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lead-channel-strip p {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 4px 8px;
  align-items: center;
  margin: 0;
  padding: 10px;
}

.lead-channel-strip b {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.form-panel,
.list-panel,
.detail-panel {
  min-width: 0;
}

.list-panel header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mini-calendar,
.resource-picker-preview {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid var(--soft-line);
  border-radius: 9px;
  padding: 12px;
  background: #fbfdfd;
}

.mini-calendar div {
  display: grid;
  gap: 4px;
}

.mini-calendar b {
  color: #87909e;
  text-decoration: line-through;
}

.mini-calendar em {
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 800;
}

.table-state,
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  border-bottom: 1px solid var(--soft-line);
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

tr.selected-row td {
  background: #f0fbf9;
}

tr.selected-row td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

tr.expanded-row td {
  border-bottom: 1px solid var(--soft-line);
  background: #f8fdfc;
  padding: 0 10px 14px;
}

tr.expanded-row .resource-inline-detail {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
}

.price-stack,
.price-row {
  display: grid;
  gap: 2px;
}

.price-stack small {
  color: var(--muted);
  font-size: 12px;
}

.hotel-resource-cell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.hotel-resource-cell img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.hotel-resource-cell strong,
.hotel-resource-cell small,
.hotel-resource-cell span {
  display: block;
}

.hotel-resource-cell small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.hotel-resource-cell span {
  width: fit-content;
  margin-top: 5px;
  border-radius: 999px;
  background: #e9f8f6;
  color: var(--accent-dark);
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}

.price-stack strong,
.price-row strong {
  color: var(--accent-dark);
  font-size: 15px;
}

.list-price {
  color: #8a94a6;
  font-size: 12px;
  text-decoration: line-through;
}

.price-row {
  grid-template-columns: 88px 72px 72px 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--soft-line);
  padding: 8px 0;
}

td button {
  margin: 2px 4px 2px 0;
  padding: 6px 10px;
}

.detail-panel {
  position: sticky;
  top: 22px;
  max-height: calc(100vh - 44px);
  overflow: auto;
  border-color: #d5e5e3;
  box-shadow: 0 12px 30px rgba(21, 32, 51, 0.08);
}

.drawer-head {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.drawer-head img {
  height: 76px;
}

.drawer-head h3,
.drawer-head p,
.detail-panel h4 {
  margin: 0;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.drawer-actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--accent-dark);
  padding: 8px 12px;
  font-weight: 900;
  text-decoration: none;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-panel .inline-form,
.detail-panel .compact-form,
.detail-panel .sub-panel .compact-form {
  grid-template-columns: 1fr;
}

.sub-panel {
  border-top: 1px solid var(--soft-line);
  padding: 12px 0;
}

.sub-panel span,
.price-row small,
.detail-panel p {
  color: var(--muted);
}

.drawer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.drawer-title-row h3 {
  margin: 0;
}

.drawer-title-row span {
  border-radius: 999px;
  background: #fff7ed;
  color: #f97316;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.lead-profile-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  padding: 12px;
  background: #fbfdfd;
}

.lead-profile-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #fdecea;
  color: #b42318;
  font-weight: 900;
}

.lead-profile-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.lead-source-cell {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.lead-source-cell > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #fdecea;
  color: #b42318;
  font-weight: 900;
}

.lead-source-cell strong,
.lead-route-cell strong,
.lead-source-cell small,
.lead-route-cell small {
  display: block;
}

.lead-source-cell small,
.lead-route-cell small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.lead-channel {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}

.timeline-list,
.resource-list,
.child-list,
.event-list {
  padding-left: 18px;
}

.lead-event-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.lead-event-list li {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 10px;
  color: #526071;
}

.lead-event-list b {
  color: var(--muted);
  font-size: 12px;
}

.resource-price-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.resource-price-list li {
  display: grid;
  grid-template-columns: 58px 70px 70px 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 8px;
}

.resource-price-list span {
  color: var(--ink);
  font-weight: 800;
}

.resource-price-list s {
  color: #8a94a6;
}

.resource-price-list b {
  color: var(--accent-dark);
}

.resource-price-list small {
  color: var(--muted);
}

.resource-inline-detail {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--soft-line);
  padding-top: 14px;
}

.resource-inline-detail header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.resource-inline-detail header img {
  width: 72px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.resource-inline-detail header span,
.resource-inline-detail small {
  color: var(--muted);
  font-size: 12px;
}

.resource-inline-detail header strong,
.resource-inline-detail header small {
  display: block;
  margin-top: 3px;
}

.resource-inline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: #fff;
}

.resource-inline-grid div {
  display: grid;
  gap: 5px;
  min-height: 88px;
  align-content: start;
  padding: 11px;
}

.resource-inline-grid div + div {
  border-left: 1px solid var(--soft-line);
}

.resource-inline-grid b,
.resource-inline-grid span,
.resource-inline-prices {
  display: block;
}

.resource-inline-grid b {
  color: var(--muted);
  font-size: 12px;
}

.resource-inline-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.resource-inline-prices s {
  color: #8a94a6;
}

.resource-inline-prices strong {
  color: var(--accent-dark);
  font-size: 18px;
}

.primary-wide {
  width: 100%;
}

.avatar-head {
  grid-template-columns: 54px 1fr;
}

.avatar-head > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: #e8f7f4;
  color: var(--accent-dark);
  font-weight: 900;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
}

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

.pagination button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  padding: 6px 10px;
}

.pagination button:disabled {
  color: #a3acba;
  cursor: not-allowed;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.merchant-topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(420px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 10px 26px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand-block {
  min-width: 0;
}

.brand-home-link {
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
}

.brand-home-link:hover .brand {
  color: var(--accent);
}

.brand-home-link:focus-visible {
  outline: 2px solid rgba(0, 143, 132, 0.28);
  outline-offset: 4px;
}

.brand {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.merchant-topnav nav {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
}

.merchant-topnav .nav-link {
  white-space: nowrap;
  padding: 8px 10px;
}

.topbar {
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
}

.merchant-switch {
  display: flex;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  align-items: center;
  gap: 8px;
}

.merchant-switch::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
}

.merchant-switch i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #e9f8f6;
  color: var(--accent-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.merchant-switch span {
  display: none;
}

.merchant-switch strong {
  display: block;
  color: var(--accent-dark);
  font-size: 13px;
  white-space: nowrap;
}

.notification-bell {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0;
}

.notification-bell:hover,
.notification-bell:focus-visible {
  border-color: #b9deda;
  background: #f5fbfa;
  color: var(--accent-dark);
  outline: none;
}

.notification-bell-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-bell .notification-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  display: grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.user-mini {
  display: grid;
  grid-template-columns: 36px auto;
  column-gap: 8px;
  align-items: center;
}

.account-menu {
  position: relative;
}

.account-menu-trigger {
  grid-template-columns: 36px auto 8px;
  cursor: pointer;
  list-style: none;
  border-radius: 10px;
  padding: 2px 8px 2px 2px;
}

.account-menu-trigger::-webkit-details-marker {
  display: none;
}

.account-menu-trigger::after {
  content: "";
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
  align-self: center;
  margin-left: 2px;
}

.account-menu[open] .account-menu-trigger,
.account-menu-trigger:hover {
  background: #f5fbfa;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 168px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(21, 32, 51, 0.12);
}

.account-menu-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 24px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}

.account-menu .account-menu-item {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #475467;
  padding: 7px 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: default;
}

.account-menu button.account-menu-item {
  cursor: pointer;
}

.account-menu .account-menu-item.danger {
  color: #b42318;
}

.account-menu button.account-menu-item:hover {
  background: #f8fafc;
}

.account-menu button.account-menu-item.danger:hover {
  background: #fff5f5;
}

.user-mini img {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  background: #e9f8f6;
}

.user-mini strong {
  font-size: 13px;
}

.user-mini small {
  color: var(--muted);
  font-size: 12px;
}

main {
  max-width: 1800px;
  margin: 0 auto;
  padding: 14px 24px 24px;
}

.merchant-canvas {
  display: grid;
  gap: 12px;
}

.dashboard-page {
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
}

.dashboard-panel,
.dashboard-metrics article {
  border: 1px solid var(--dashboard-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(21, 32, 51, 0.06);
}

.dashboard-hero {
  display: block;
}

.dashboard-hero h1,
.dashboard-hero p {
  margin: 0;
}

.dashboard-hero h1 {
  font-size: 34px;
  letter-spacing: 0;
  line-height: 1.08;
}

.dashboard-hero p {
  margin-top: 10px;
  color: var(--muted);
}

.dashboard-command-center {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 88px;
  gap: 20px;
  align-items: end;
  border: 1px solid var(--dashboard-line);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 56%, var(--dashboard-wash) 100%);
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(21, 32, 51, 0.08);
}

.dashboard-command-center::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--dashboard-accent) 0%, #8b9d83 58%, #c08e3a 100%);
}

.dashboard-command-copy {
  display: grid;
  gap: 0;
}

.dashboard-kicker {
  color: var(--dashboard-accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-actions a,
.dashboard-command-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-primary-action {
  border: 1px solid var(--dashboard-accent);
  background: var(--dashboard-accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 143, 132, 0.18);
}

.dashboard-secondary-action {
  border: 1px solid #b9deda;
  background: #fff;
  color: var(--dashboard-accent-dark);
}

.dashboard-command-date {
  position: relative;
  z-index: 1;
  display: grid;
  width: 92px;
  height: 76px;
  place-items: center;
  border-radius: 24px;
  background: var(--dashboard-soft);
  color: var(--dashboard-accent-dark);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  text-decoration: none;
}

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

.dashboard-metrics article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  padding: 18px;
}

.dashboard-metric-mark {
  grid-row: span 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--dashboard-soft);
  color: var(--dashboard-accent-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-metrics span,
.dashboard-task-card footer span,
.dashboard-panel p,
.dashboard-timeline span,
.dashboard-metrics small,
.dashboard-priority header span {
  color: var(--muted);
}

.dashboard-metrics b {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.dashboard-metrics article:nth-child(2) b {
  color: var(--dashboard-accent-dark);
  font-size: 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.dashboard-panel {
  padding: 20px;
}

.dashboard-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-panel h2,
.dashboard-panel p {
  margin: 0;
}

.dashboard-panel p {
  margin-top: 4px;
}

.dashboard-panel header a {
  color: var(--dashboard-accent-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

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

.dashboard-flowline::before {
  content: "";
  position: absolute;
  top: 36px;
  right: 16%;
  left: 16%;
  height: 2px;
  border-radius: 999px;
  background: var(--dashboard-line);
}

.dashboard-task-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 178px;
  border: 1px solid var(--dashboard-line);
  border-radius: 18px;
  padding: 52px 16px 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(21, 32, 51, 0.05);
}

.dashboard-task-mark {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: var(--dashboard-soft);
  color: var(--dashboard-accent-dark);
  font-size: 15px;
  font-weight: 900;
}

.dashboard-task-card.active {
  border-color: #a9dcd5;
  background: linear-gradient(180deg, var(--dashboard-wash) 0%, #ffffff 100%);
}

.dashboard-task-card b {
  font-size: 16px;
}

.dashboard-task-card p {
  line-height: 1.6;
}

.dashboard-task-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  font-size: 13px;
}

.dashboard-task-card footer strong {
  color: var(--dashboard-accent-dark);
  white-space: nowrap;
}

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

.dashboard-priority > header {
  display: grid;
  justify-content: stretch;
  gap: 4px;
}

.dashboard-priority-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-priority-list li {
  display: grid;
  gap: 8px;
  border-radius: 14px;
  background: #f8fbfa;
  padding: 14px;
}

.dashboard-priority-list li:first-child {
  background: var(--dashboard-wash);
}

.dashboard-priority-list b {
  font-size: 15px;
}

.dashboard-priority-list a {
  color: var(--dashboard-accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-timeline li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--dashboard-line);
  padding: 0 0 12px;
}

.dashboard-timeline li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dashboard-timeline b {
  font-size: 14px;
}

.dashboard-timeline span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--dashboard-soft);
  color: var(--dashboard-accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.canvas-title {
  display: none;
}

.canvas-title h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.canvas-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.merchant-canvas .workflow-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  align-items: stretch;
}

.flow-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  min-height: 0;
  padding: 12px;
  border-color: #d9e4e7;
}

.flow-panel:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  z-index: 3;
  width: 31px;
  height: 2px;
  background: var(--accent);
}

.flow-panel:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  right: -24px;
  z-index: 4;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

.flow-head {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
}

.flow-head > b {
  width: 36px;
  height: 36px;
  margin-top: 2px;
  font-size: 20px;
}

.flow-head h2,
.flow-head p {
  margin: 0;
}

.flow-head h2 {
  font-size: 20px;
}

.flow-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.ledger-card,
.resource-rail,
.itinerary-wire,
.publish-panel,
.share-card,
.visit-card,
.lead-drawer-preview {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 32, 51, 0.04);
}

.ledger-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 10px;
}

.ledger-tabs,
.rail-tabs,
.pill-row,
.filter-bar,
.share-actions,
.quick-actions,
.builder-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ledger-tabs span,
.rail-tabs span {
  color: #526071;
  font-size: 12px;
  font-weight: 800;
}

.ledger-tabs .active,
.rail-tabs .active {
  color: var(--accent-dark);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.filter-bar span,
.filter-bar a,
.pill-row span {
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fbfdfd;
  color: #526071;
  padding: 7px 10px;
  font-size: 12px;
  text-decoration: none;
}

.filter-bar a {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.pill-row span:first-child {
  background: #e9f8f6;
  color: var(--accent-dark);
}

.hotel-row {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(120px, 1fr) repeat(4, minmax(50px, auto)) auto;
  gap: 9px;
  align-items: center;
  padding: 10px 38px 10px 10px;
  border: 1px solid var(--soft-line);
  border-radius: 9px;
}

.hotel-row.featured {
  border-color: rgba(0, 143, 132, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 143, 132, 0.08);
}

.hotel-row img {
  width: 50px;
  height: 50px;
  border-radius: 7px;
  object-fit: cover;
}

.hotel-row strong,
.hotel-row small,
.hotel-row span,
.hotel-row dt,
.hotel-row dd {
  display: block;
}

.hotel-row small,
.hotel-row dt {
  color: var(--muted);
  font-size: 11px;
}

.hotel-row span,
.hotel-row em {
  width: fit-content;
  border-radius: 999px;
  background: #e9f8f6;
  color: var(--accent-dark);
  padding: 3px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.hotel-row dl {
  margin: 0;
}

.hotel-row dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.hotel-row .green,
.simple-list strong {
  color: var(--accent-dark);
}

.row-menu {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 28px;
  min-height: 28px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.row-menu:hover {
  background: #eef8f6;
  color: var(--accent-dark);
}

.hotel-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 9px;
  padding: 10px;
  border-radius: 8px;
  background: #fbfdfd;
}

.hotel-detail-grid div {
  display: grid;
  gap: 5px;
}

.hotel-detail-grid b,
.hotel-detail-grid span {
  font-size: 12px;
}

.hotel-detail-grid span {
  color: #526071;
}

.simple-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 44px;
  gap: 9px;
  align-items: center;
  color: #526071;
  font-size: 12px;
}

.simple-list em {
  font-style: normal;
  color: var(--muted);
}

.builder-grid {
  display: grid;
  grid-template-columns: 148px minmax(220px, 1fr) 148px;
  gap: 10px;
  align-items: stretch;
}

.resource-rail,
.itinerary-wire,
.publish-panel,
.share-card,
.visit-card,
.lead-drawer-preview {
  padding: 12px;
}

.resource-rail {
  display: grid;
  gap: 10px;
  align-content: start;
}

.resource-rail h3,
.publish-panel h3,
.share-card h3,
.visit-card h3 {
  margin: 0;
  font-size: 15px;
}

.rail-search {
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  color: #98a2b3;
  padding: 8px;
  font-size: 12px;
}

.resource-rail article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  position: relative;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfdfd;
}

.resource-rail img {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  object-fit: cover;
}

.resource-rail strong,
.resource-rail small,
.resource-rail b {
  display: block;
  font-size: 11px;
}

.resource-rail small {
  color: var(--muted);
}

.resource-rail b {
  grid-column: 2;
  color: #f97316;
}

.resource-rail button,
.publish-panel button,
.share-actions button,
.quick-actions button {
  border: 1px solid #b9deda;
  background: #fff;
  color: var(--accent-dark);
  padding: 8px 9px;
  font-size: 12px;
}

.route-resource-rail article {
  grid-template-columns: 48px minmax(0, 1fr) 32px;
}

.route-resource-rail b {
  grid-column: 2;
}

.route-resource-rail button {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 30px;
  min-width: 0;
  padding: 6px 0;
}

.route-itinerary-wire {
  margin-bottom: 12px;
}

.itinerary-list-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.itinerary-wire {
  display: grid;
  gap: 10px;
  align-content: start;
  background: #f8fbfc;
}

.wire-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.wire-head strong {
  color: var(--ink);
}

.day-card {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
}

.day-card b,
.day-card p,
.child-box strong {
  margin: 0;
  font-size: 12px;
}

.day-card p {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  color: #526071;
}

.day-card span {
  color: var(--muted);
}

.child-box {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 9px;
  background: #fff;
  font-size: 12px;
}

.child-box span,
.child-box a {
  color: #526071;
}

.publish-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.publish-panel ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.publish-panel li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #526071;
  font-size: 12px;
}

.publish-panel li::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.price-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfdfd;
  font-size: 12px;
}

.price-card strong {
  color: #f97316;
}

.builder-actions {
  justify-content: space-between;
}

.builder-actions button:last-child,
.primary-wide {
  background: var(--accent);
  color: #fff;
}

.growth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(185px, 0.95fr);
  grid-template-areas:
    "share lead"
    "visit lead";
  gap: 10px;
  align-items: start;
}

.share-card {
  grid-area: share;
  display: grid;
  gap: 10px;
  align-content: start;
}

.visit-card {
  grid-area: visit;
}

.share-route,
.share-card label {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.share-route span {
  width: fit-content;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}

.share-route small {
  color: #f97316;
}

.share-card label span {
  overflow: hidden;
  color: var(--blue);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-card label button {
  width: fit-content;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 5px 8px;
}

.share-card .qr-card {
  display: grid;
  place-content: center;
  min-height: 112px;
  border: 1px solid var(--soft-line);
  background: #fff;
}

.asset-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr) 360px;
  gap: 14px;
  align-items: start;
}

.asset-main,
.asset-side,
.asset-lead-panel,
.agreement-kit {
  display: grid;
  gap: 14px;
}

.asset-main,
.agreement-kit {
  min-height: 260px;
}

.agreement-kit {
  grid-column: 1 / span 2;
}

.asset-lead-panel {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.asset-share-command,
.asset-channel-panel,
.asset-agreement-flow {
  display: grid;
  gap: 14px;
}

.poster-preview {
  display: grid;
  grid-template-columns: 220px 1fr 92px;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #fbfefd, #ffffff);
}

.poster-preview img {
  width: 220px;
  height: 138px;
  border-radius: 10px;
  object-fit: cover;
}

.poster-preview h3 {
  margin: 8px 0;
  font-size: 24px;
}

.poster-preview p,
.poster-preview span,
.poster-preview small,
.agreement-steps span,
.material-status {
  color: var(--muted);
}

.poster-preview > div > span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

.poster-preview b {
  color: #f97316;
  font-size: 18px;
}

.poster-qr {
  display: grid;
  grid-template-columns: repeat(9, 6px);
  gap: 2px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.poster-qr i {
  width: 6px;
  height: 6px;
}

.poster-qr b {
  right: 8px;
  bottom: 8px;
  background: #111827;
  color: #fff;
}

.share-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
}

.share-link-box label {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 12px;
}

.share-link-box label span {
  overflow: hidden;
  color: var(--blue);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.asset-distribution-row article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfdfd;
}

.asset-distribution-row span,
.asset-distribution-row small,
.asset-visit-list,
.agreement-log span,
.agreement-log small {
  color: var(--muted);
}

.asset-distribution-row strong {
  font-size: 24px;
}

.channel-grid {
  display: grid;
  gap: 10px;
}

.channel-grid article {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  padding: 10px;
  background: #fbfdfd;
}

.channel-grid .channel-icon {
  width: 30px;
  height: 30px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.channel-grid .channel-icon::after {
  display: none;
}

.channel-grid small {
  color: var(--muted);
}

.asset-visit-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asset-visit-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--soft-line);
  padding-top: 8px;
}

.asset-visit-list b {
  color: var(--ink);
  font-size: 12px;
}

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

.agreement-steps article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  padding: 12px;
  background: #fbfdfd;
}

.agreement-steps b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.agreement-log {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
}

.material-status {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.material-status li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.material-status span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
}

.asset-sync-block {
  border-top: 1px solid var(--soft-line);
  padding-top: 12px;
}

.asset-sync-block h3 {
  margin: 0 0 10px;
}

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

.visit-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.visit-card header a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.visit-card p {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: #526071;
  font-size: 12px;
}

.channel-icon {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: #10b981;
}

.channel-icon::after {
  content: "";
  width: 7px;
  height: 5px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.channel-icon.moment {
  background: #22c55e;
}

.channel-icon.redbook {
  background: #ef4444;
}

.channel-icon.douyin {
  background: #111827;
}

.lead-drawer-preview {
  grid-area: lead;
  display: grid;
  gap: 8px;
}

.lead-drawer-preview header,
.lead-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lead-drawer-preview header button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.lead-drawer-preview header em {
  border-radius: 999px;
  background: #fff4e5;
  color: #f97316;
  padding: 3px 8px;
  font-size: 11px;
  font-style: normal;
}

.lead-profile {
  justify-content: flex-start;
}

.lead-profile > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #f5e9e9;
  color: #9a3412;
  font-weight: 900;
}

.lead-profile small {
  display: block;
  color: var(--muted);
}

.lead-source {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.lead-drawer-preview ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #526071;
  font-size: 12px;
}

.lead-drawer-preview textarea {
  min-height: 52px;
}

.quick-actions {
  gap: 6px;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(21, 32, 51, 0.05);
}

.process-strip article {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px 12px;
  padding: 13px 16px;
  border-right: 1px dashed #d5dde7;
}

.process-strip article:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 1;
  width: 20px;
  transform: translateY(-50%);
  background: #fff;
  color: #98a2b3;
  text-align: center;
}

.process-strip article:last-child {
  border-right: 0;
}

.process-strip b {
  grid-row: span 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.process-strip strong {
  font-size: 15px;
}

.process-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-sinks {
  display: none;
}

.table-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.table-filters button,
.table-filters label {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #526071;
  padding: 7px 9px;
  font-weight: 700;
}

.table-filters label {
  display: flex;
  min-width: min(360px, 100%);
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.table-filters input {
  min-height: 28px;
  border: 0;
  padding: 0;
}

.agreement-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 14px;
  align-items: start;
}

.agreement-list-panel,
.agreement-preview-panel {
  display: grid;
  gap: 14px;
}

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

.agreement-record-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 142px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.agreement-record-list article.selected {
  border-color: rgba(0, 143, 132, 0.36);
  background: #f1fbf9;
  box-shadow: inset 3px 0 0 var(--accent);
}

.agreement-record-list strong,
.agreement-record-list small,
.agreement-record-list span,
.agreement-record-list b {
  display: block;
}

.agreement-record-list small,
.agreement-record-list b,
.agreement-summary-card p,
.agreement-summary-card dd {
  color: var(--muted);
}

.agreement-record-list span {
  width: fit-content;
  border-radius: 999px;
  background: #e9f8f6;
  color: var(--accent-dark);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.agreement-summary-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: #fbfdfd;
  padding: 14px;
}

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

.agreement-summary-card p {
  margin: 0;
}

.agreement-summary-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.agreement-summary-card dl > div {
  border-top: 1px solid var(--soft-line);
  padding-top: 10px;
}

.agreement-summary-card dt {
  color: var(--ink);
  font-weight: 900;
}

.agreement-summary-card dd {
  margin: 4px 0 0;
  line-height: 1.6;
}

.agreement-export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.agreement-export-grid button {
  min-height: 44px;
}

.agreement-export-grid button:first-child {
  border: 1px solid #b9deda;
  background: #fff;
  color: var(--accent-dark);
}

.report-workspace {
  display: grid;
  gap: 14px;
}

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

.report-metrics article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(21, 32, 51, 0.04);
}

.report-metrics span,
.report-metrics small {
  color: var(--muted);
}

.report-metrics b {
  font-size: 30px;
  line-height: 1.05;
}

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

.report-grid .panel {
  display: grid;
  gap: 14px;
}

.report-wide {
  grid-column: 1 / -1;
}

.channel-bars {
  display: grid;
  gap: 12px;
}

.channel-bars p {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
}

.channel-bars span {
  color: #526071;
}

.channel-bars b {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f6;
  color: var(--accent-dark);
  padding: 7px 10px;
  font-size: 12px;
  text-align: right;
}

.channel-bars b::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: var(--value);
  background: linear-gradient(90deg, #dff7f3, #9be0d8);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  padding: 10px;
}

.rank-list b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #e9f8f6;
  color: var(--accent-dark);
}

.rank-list strong {
  color: var(--muted);
  font-size: 13px;
}

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

.funnel-row span {
  position: relative;
  display: grid;
  min-height: 72px;
  place-items: center;
  border-radius: 10px;
  background: #e9f8f6;
  color: var(--accent-dark);
  font-weight: 900;
}

.funnel-row span + span::before {
  content: "";
  position: absolute;
  left: -13px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

/* Merchant admin design refresh: operational SaaS surface, refined around the existing teal brand. */
body {
  line-height: 1.55;
}

button,
.toolbar-card a {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(0, 143, 132, 0.16);
  outline-offset: 2px;
}

button:hover,
.toolbar-card a:hover,
.resource-list-action:hover {
  box-shadow: 0 8px 18px rgba(0, 114, 103, 0.16);
  transform: translateY(-1px);
}

input,
select,
textarea {
  border-color: #d8e1e7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.merchant-topnav {
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 18px;
  min-height: 78px;
  box-shadow: 0 10px 30px rgba(21, 32, 51, 0.04);
}

.merchant-primary-nav {
  display: flex;
  min-width: 0;
  gap: 4px;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.merchant-primary-nav::-webkit-scrollbar {
  display: none;
}

.merchant-topnav .nav-link {
  border: 1px solid transparent;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.merchant-topnav .nav-link.active {
  border-color: #cfe7e3;
  background: #eaf8f6;
  box-shadow: 0 8px 18px rgba(0, 143, 132, 0.08);
}

.topbar {
  min-width: max-content;
}

.account-menu-trigger {
  min-width: 94px;
}

.user-mini strong,
.user-mini small {
  white-space: nowrap;
}

main {
  max-width: 1220px;
  padding-top: 20px;
}

.page-header {
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 4px 0 0;
  align-items: flex-end;
}

.page-header h1 {
  font-size: 30px;
  line-height: 1.12;
}

.page-header p {
  font-size: 15px;
}

.panel,
.list-panel,
.detail-panel,
.resource-type-tabs,
.dashboard-panel,
.dashboard-metrics article {
  border-color: #dbe7e5;
  box-shadow: 0 16px 34px rgba(21, 32, 51, 0.055);
}

.table-wrap table {
  table-layout: auto;
}

th {
  background: #fbfdfd;
  color: #667085;
  letter-spacing: 0;
}

tbody tr:hover td {
  background: #f8fcfb;
}

td button,
.resource-list-action,
.page-actions button,
.primary-wide {
  border-radius: 8px;
  min-height: 36px;
  font-weight: 900;
}

.status-badge {
  border: 1px solid #c8eadf;
  background: #eefbf6;
  color: #027a48;
}

.dashboard-page,
.resource-ledger,
.itinerary-home-page,
.lead-drawer-shell,
.asset-workspace,
.agreement-workspace,
.report-workspace {
  max-width: 1180px;
  margin-inline: auto;
}

.dashboard-command-center {
  border-radius: 18px;
  padding: 22px;
}

.dashboard-command-copy p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
}

.dashboard-metric-mark,
.dashboard-task-mark {
  width: auto;
  min-width: 42px;
  padding: 0 9px;
  letter-spacing: 0;
}

.dashboard-task-mark {
  min-width: 40px;
  font-variant-numeric: tabular-nums;
}

.dashboard-metrics article {
  border-radius: 14px;
}

.dashboard-panel,
.dashboard-task-card {
  border-radius: 14px;
}

.dashboard-task-card {
  min-height: 188px;
}

.resource-type-tabs {
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}

.resource-type-tabs button {
  min-height: 44px;
  border: 1px solid transparent;
  background: #f6f8fb;
  color: #475467;
}

.resource-type-tabs button.active,
.resource-type-tabs button[aria-selected="true"] {
  border-color: #b9deda;
  background: #eaf8f6;
  color: var(--accent-dark);
  box-shadow: none;
  transform: none;
}

.resource-table-panel {
  border-radius: 14px;
}

.resource-filter-grid {
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: #fbfdfd;
  padding: 12px;
}

.hotel-resource-cell img {
  border: 1px solid #e4ecef;
}

#hotels table {
  table-layout: fixed;
}

#hotels th:nth-child(1),
#hotels td:nth-child(1) {
  width: 42%;
}

#hotels th:nth-child(2),
#hotels td:nth-child(2) {
  width: 12%;
}

#hotels th:nth-child(3),
#hotels td:nth-child(3) {
  width: 10%;
}

#hotels th:nth-child(4),
#hotels td:nth-child(4) {
  width: 16%;
}

#hotels th:nth-child(5),
#hotels td:nth-child(5) {
  width: 11%;
}

#hotels th:nth-child(6),
#hotels td:nth-child(6) {
  width: 9%;
}

.itinerary-home-header {
  margin-bottom: 12px;
}

.itinerary-home-page {
  gap: 14px;
}

.itinerary-production-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #dbe7e5;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 24px rgba(21, 32, 51, 0.04);
}

.itinerary-production-strip span {
  position: relative;
  display: grid;
  min-height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #f4fbfa;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.itinerary-production-strip span + span::before {
  content: "";
  position: absolute;
  left: -8px;
  width: 8px;
  height: 1px;
  background: #cfe7e3;
}

.itinerary-home-actions {
  gap: 12px;
}

.itinerary-action-card {
  min-height: 140px;
  place-items: start;
  align-content: start;
  text-align: left;
  border-color: #dbe7e5;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(21, 32, 51, 0.05);
}

.itinerary-action-card small {
  width: fit-content;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--accent-dark);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.itinerary-action-card strong {
  font-size: 22px;
  line-height: 1.15;
}

.itinerary-action-card span {
  max-width: 420px;
  color: #5e6b7a;
}

.itinerary-action-card.primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 38%),
    linear-gradient(135deg, #007267, #1ca79b);
  box-shadow: 0 18px 36px rgba(0, 114, 103, 0.2);
}

.itinerary-action-card.primary small {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.itinerary-action-card.primary span {
  color: rgba(255, 255, 255, 0.88);
}

.itinerary-home-list {
  border-radius: 14px;
  padding: 18px;
}

.itinerary-ai-home {
  gap: 24px;
  min-height: calc(100vh - 98px);
  margin: -20px -24px -24px;
  padding: 18px 24px 46px;
}

.ai-quote-topbar,
.ai-quote-hero,
.ai-quote-workspace,
.ai-recent-quotes {
  width: min(920px, 100%);
  margin-inline: auto;
}

.ai-quote-topbar {
  border: 1px solid #dbe7e5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px;
}

.ai-quote-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 6px;
}

.ai-quote-hero h1 {
  font-size: 28px;
}

.ai-quote-workspace {
  border: 1px solid #dbe7e5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(21, 32, 51, 0.08);
}

.ai-quote-messages {
  min-height: 120px;
}

.ai-conversation-panel .ai-quote-messages:empty {
  min-height: 110px;
}

.ai-recent-quotes {
  border: 1px solid #dbe7e5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.ai-recent-quotes div {
  justify-content: flex-start;
}

.asset-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 16px;
}

.asset-main {
  grid-column: 1;
  grid-row: 1;
}

.asset-side {
  grid-column: 2;
  grid-row: 1;
}

.asset-lead-panel {
  grid-column: 2;
  grid-row: 2 / span 2;
}

.agreement-kit {
  grid-column: 1;
  grid-row: 2;
}

.asset-main,
.asset-side,
.asset-lead-panel,
.agreement-kit {
  border-radius: 14px;
  min-width: 0;
}

.poster-preview {
  grid-template-columns: 176px minmax(0, 1fr) 86px;
  border-radius: 14px;
}

.poster-preview img {
  width: 176px;
  height: 126px;
}

.poster-preview h3 {
  margin: 6px 0;
  font-size: 21px;
  line-height: 1.2;
}

.share-link-box {
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
}

.asset-distribution-row article,
.channel-grid article,
.agreement-steps article,
.rank-list li,
.funnel-row span {
  border-radius: 10px;
}

.lead-drawer-shell {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 16px;
}

.lead-overview-row article,
.lead-channel-strip p,
.report-metrics article {
  border-color: #dbe7e5;
  border-radius: 12px;
}

.agreement-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 16px;
}

.agreement-record-list article,
.agreement-summary-card {
  border-radius: 12px;
}

.report-workspace {
  gap: 16px;
}

.report-metrics,
.report-grid {
  gap: 16px;
}

@media (max-width: 1120px) {
  .merchant-topnav {
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-areas:
      "brand account"
      "nav nav";
    row-gap: 8px;
  }

  .brand-block {
    grid-area: brand;
  }

  .merchant-primary-nav {
    grid-area: nav;
    justify-content: flex-start;
  }

  .topbar {
    grid-area: account;
  }
}

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

  .dashboard-actions {
    justify-content: flex-start;
  }

  .dashboard-command-actions {
    justify-content: flex-start;
  }

  .dashboard-command-center {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-command-center::before {
    display: none;
  }

  .dashboard-command-date {
    justify-self: flex-start;
    width: 84px;
    height: 54px;
    border-radius: 18px;
    font-size: 22px;
  }

  .dashboard-metrics,
  .dashboard-flowline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-side-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell,
  .summary-grid,
  .workflow-board,
  .workspace-grid,
  .asset-board,
  .asset-workspace,
  .agreement-workspace,
  .report-metrics,
  .report-grid,
  .resource-ledger,
  .resource-workbench,
  .resource-filter-grid,
  .resource-modal-form,
  .resource-location-editor,
  .resource-map-marker,
  .room-create-form,
  .itinerary-builder,
  .itinerary-editor-layout,
  .basic-itinerary-form,
  .more-itinerary-form,
  .day-overnight-line,
  .day-spot-row,
  .lead-drawer-shell,
  .inline-form {
    grid-template-columns: 1fr;
  }

  aside,
  .detail-panel,
  .itinerary-preview-shell,
  .itinerary-preview-panel {
    position: static;
  }

  main {
    padding: 18px;
  }

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

  .resource-type-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-maintenance-head {
    display: none;
  }

  .room-maintenance-row {
    grid-template-columns: 1fr;
  }

  .image-upload-field-compact {
    align-items: stretch;
  }

	  .page-header,
	  .resource-modal-topbar,
	  .resource-modal-section > header,
	  .toolbar-card {
	    flex-direction: column;
	  }

	  .resource-modal-footer {
	    align-items: stretch;
	    flex-direction: column;
	  }

	  .resource-status-switch {
	    justify-content: space-between;
	  }

	  .resource-status-toggle {
	    justify-content: flex-start;
	  }

  .dashboard-metrics,
  .dashboard-flowline,
  .dashboard-side-stack {
    grid-template-columns: 1fr;
  }

  .dashboard-flowline::before {
    display: none;
  }

  .dashboard-task-card {
    border-left: 1px solid var(--dashboard-line);
  }

  .dashboard-metrics article {
    border-left: 1px solid var(--dashboard-line);
  }

  .dashboard-panel > header {
    flex-direction: column;
  }

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

  .poster-preview,
  .share-link-box,
  .agreement-steps,
  .resource-inline-grid {
    grid-template-columns: 1fr;
  }

  .resource-inline-grid div + div {
    border-top: 1px solid var(--soft-line);
    border-left: 0;
  }

  .poster-preview img {
    width: 100%;
  }

  .flow-panel::before,
  .flow-panel::after {
    display: none;
  }
}

/* Premium merchant console refresh, keeping the existing AI travel teal brand. */
:root {
  --console-ink: #081c1a;
  --console-panel: #ffffff;
  --console-muted: #6c7a86;
  --console-line: #d7e6e3;
  --console-soft: #f2f7f6;
  --console-dark: #061f1d;
  --console-dark-2: #0b322e;
  --console-teal: #00a99a;
  --console-gold: #c08e3a;
}

body {
  background:
    linear-gradient(90deg, rgba(8, 28, 26, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, #f5f9f8 0%, #edf5f3 100%);
  color: var(--console-ink);
}

.merchant-topnav {
  min-height: 82px;
  border-bottom: 1px solid rgba(122, 226, 216, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 35%),
    linear-gradient(135deg, var(--console-dark), var(--console-dark-2) 62%, #073b35);
  box-shadow: 0 18px 44px rgba(6, 31, 29, 0.2);
}

.brand {
  color: #f6fffd;
  font-size: 23px;
  letter-spacing: 0;
}

.brand-home-link:hover .brand {
  color: #b9fff7;
}

.merchant-topnav .nav-link {
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(246, 255, 253, 0.72);
  background: rgba(255, 255, 255, 0.035);
}

.merchant-topnav .nav-link.active,
.merchant-topnav .nav-link:hover {
  border-color: rgba(122, 226, 216, 0.42);
  background: rgba(0, 169, 154, 0.18);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.merchant-switch,
.notification-bell,
.account-menu-trigger {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f6fffd;
}

.merchant-switch i {
  background: rgba(122, 226, 216, 0.16);
  color: #b9fff7;
}

.merchant-switch strong,
.notification-bell:hover,
.notification-bell:focus-visible {
  color: #ffffff;
}

.merchant-switch::after,
.account-menu-trigger::after {
  border-color: rgba(246, 255, 253, 0.66);
}

.notification-bell:hover,
.notification-bell:focus-visible,
.account-menu[open] .account-menu-trigger,
.account-menu-trigger:hover {
  border-color: rgba(122, 226, 216, 0.44);
  background: rgba(0, 169, 154, 0.16);
}

.notification-bell .notification-badge {
  border-color: var(--console-dark);
  background: #7ae2d8;
  color: #052321;
}

.user-mini strong {
  color: #ffffff;
}

.user-mini small {
  color: rgba(246, 255, 253, 0.64);
}

main {
  max-width: 1280px;
  padding: 26px 28px 38px;
}

.page-header {
  max-width: 1200px;
  margin-bottom: 18px;
}

.page-header h1 {
  color: var(--console-ink);
  font-size: 32px;
}

.page-header p {
  color: var(--console-muted);
}

.panel,
.list-panel,
.detail-panel,
.resource-type-tabs,
.dashboard-panel,
.dashboard-metrics article {
  border-color: var(--console-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 42px rgba(8, 28, 26, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.dashboard-page,
.resource-ledger,
.resource-command-band,
.itinerary-home-page,
.lead-drawer-shell,
.asset-command-band,
.asset-workspace,
.agreement-workspace,
.report-workspace {
  max-width: 1200px;
}

.dashboard-page {
  gap: 18px;
}

.dashboard-command-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: stretch;
  min-height: 264px;
  border: 1px solid rgba(122, 226, 216, 0.26);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(0, 169, 154, 0.26), transparent 46%),
    linear-gradient(135deg, #061f1d 0%, #0a2c29 62%, #123e38 100%);
  padding: 0;
  color: #ffffff;
  box-shadow: 0 26px 64px rgba(6, 31, 29, 0.22);
}

.dashboard-command-center::before {
  display: none;
}

.dashboard-command-copy {
  align-content: center;
  gap: 18px;
  padding: 34px;
}

.dashboard-kicker {
  color: #7ae2d8;
}

.dashboard-hero h1 {
  max-width: 560px;
  color: #ffffff;
  font-size: 42px;
}

.dashboard-hero p,
.dashboard-command-pulse dt {
  color: rgba(246, 255, 253, 0.72);
}

.dashboard-command-pulse {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin: 0;
}

.dashboard-command-pulse div {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
  padding: 12px;
}

.dashboard-command-pulse dt,
.dashboard-command-pulse dd {
  margin: 0;
}

.dashboard-command-pulse dd {
  color: #ffffff;
  font-weight: 900;
}

.dashboard-command-actions {
  justify-content: flex-start;
}

.dashboard-primary-action,
.dashboard-secondary-action {
  min-height: 42px;
}

.dashboard-primary-action {
  border-color: transparent;
  background: #7ae2d8;
  color: #052321;
  box-shadow: 0 14px 30px rgba(0, 169, 154, 0.22);
}

.dashboard-secondary-action {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.dashboard-visual-card {
  position: relative;
  display: grid;
  align-content: end;
  min-width: 0;
  min-height: 264px;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  padding: 18px;
  isolation: isolate;
}

.dashboard-visual-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 31, 29, 0.08), rgba(6, 31, 29, 0.72)),
    linear-gradient(90deg, rgba(6, 31, 29, 0.62), transparent);
}

.dashboard-visual-card > div {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(6, 31, 29, 0.62);
  padding: 14px;
  backdrop-filter: blur(10px);
}

.dashboard-visual-card span {
  color: #7ae2d8;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-visual-card strong {
  color: #ffffff;
  font-size: 17px;
}

.dashboard-command-date {
  position: absolute;
  top: 18px;
  right: 18px;
  width: auto;
  height: auto;
  min-width: 86px;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(6, 31, 29, 0.72);
  color: #ffffff;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
}

.dashboard-metrics {
  gap: 14px;
}

.dashboard-metrics article {
  border-radius: 16px;
  border-top: 3px solid var(--console-teal);
  padding: 18px;
}

.dashboard-metric-mark {
  min-width: 46px;
  height: 34px;
  border-radius: 9px;
  background: #082f2b;
  color: #d7fffa;
}

.dashboard-metrics b {
  font-variant-numeric: tabular-nums;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.dashboard-panel,
.dashboard-task-card {
  border-radius: 16px;
}

.dashboard-workflow {
  overflow: hidden;
}

.dashboard-workflow > header {
  border-bottom: 1px solid var(--console-line);
  padding-bottom: 14px;
}

.dashboard-task-card {
  min-height: 210px;
  border-color: var(--console-line);
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.dashboard-task-card.active {
  border-color: rgba(122, 226, 216, 0.28);
  background:
    linear-gradient(135deg, rgba(122, 226, 216, 0.14), transparent 44%),
    #082f2b;
  color: #ffffff;
}

.dashboard-task-card.active p,
.dashboard-task-card.active footer span {
  color: rgba(246, 255, 253, 0.7);
}

.dashboard-task-card.active footer strong {
  color: #7ae2d8;
}

.dashboard-task-card.active .dashboard-task-mark {
  background: #7ae2d8;
  color: #052321;
}

.dashboard-priority-list li {
  border: 1px solid transparent;
  background: #f7fbfa;
}

.dashboard-priority-list li:first-child {
  border-color: rgba(0, 169, 154, 0.18);
  background: #eaf8f6;
}

.resource-command-band,
.asset-command-band,
.itinerary-atelier-hero {
  margin: 0 auto 16px;
  border: 1px solid rgba(122, 226, 216, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(122, 226, 216, 0.16), transparent 42%),
    linear-gradient(135deg, #061f1d, #0b322e);
  color: #ffffff;
  box-shadow: 0 22px 54px rgba(6, 31, 29, 0.16);
}

.resource-command-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.resource-command-band article {
  display: grid;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.resource-command-band span,
.asset-command-band span,
.itinerary-atelier-hero span,
.ai-quote-studio span {
  color: #7ae2d8;
  font-size: 12px;
  font-weight: 900;
}

.resource-command-band b {
  font-size: 17px;
}

.resource-command-band small {
  color: rgba(246, 255, 253, 0.66);
}

.resource-type-tabs {
  border-radius: 16px;
  padding: 10px;
}

.resource-table-panel {
  overflow: hidden;
  border-radius: 16px;
}

.resource-table-toolbar {
  border-bottom: 1px solid var(--console-line);
  padding-bottom: 14px;
}

.resource-filter-grid {
  border-color: var(--console-line);
  background: linear-gradient(180deg, #f9fcfb, #ffffff);
}

#hotels .table-wrap {
  border-radius: 14px;
}

th {
  background: #f4f8f7;
}

.itinerary-atelier-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 18px;
  overflow: hidden;
  padding: 20px;
}

.itinerary-atelier-hero h2,
.asset-command-band h2,
.ai-quote-studio h1 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.15;
}

.itinerary-atelier-hero p,
.asset-command-band p,
.ai-quote-studio p {
  margin: 8px 0 0;
  color: rgba(246, 255, 253, 0.7);
}

.itinerary-atelier-hero a {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border-radius: 999px;
  background: #7ae2d8;
  color: #052321;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
}

.itinerary-atelier-hero figure,
.asset-command-band img,
.ai-quote-studio figure {
  margin: 0;
}

.itinerary-atelier-hero figure {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 16px;
}

.itinerary-atelier-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.itinerary-atelier-hero figcaption,
.ai-quote-studio figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border-radius: 10px;
  background: rgba(6, 31, 29, 0.72);
  color: #ffffff;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.itinerary-production-strip {
  border-radius: 16px;
}

.itinerary-production-strip span {
  min-height: 42px;
  border: 1px solid #e2eeeb;
  background: #f8fcfb;
}

.itinerary-action-card {
  border-radius: 16px;
}

.itinerary-action-card.primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(135deg, #062b28, #0a9589);
}

.itinerary-ai-home {
  gap: 18px;
  min-height: calc(100vh - 108px);
  background:
    linear-gradient(90deg, rgba(8, 28, 26, 0.045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, #f3f8f7 0%, #eaf4f2 100%);
}

.ai-quote-topbar,
.ai-quote-studio,
.ai-quote-layout,
.ai-recent-quotes {
  width: min(1200px, 100%);
}

.ai-quote-topbar {
  border-color: rgba(122, 226, 216, 0.2);
  background: #061f1d;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(6, 31, 29, 0.14);
}

.ai-quote-topbar p,
.ai-quote-back,
.ai-resource-link {
  color: rgba(246, 255, 253, 0.82);
}

.ai-resource-link {
  border-color: rgba(122, 226, 216, 0.24);
  background: rgba(122, 226, 216, 0.1);
}

.ai-quote-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  justify-items: stretch;
  align-items: stretch;
  margin-top: 0;
  border: 1px solid rgba(122, 226, 216, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 169, 154, 0.2), transparent 45%),
    #061f1d;
  padding: 20px;
  box-shadow: 0 22px 54px rgba(6, 31, 29, 0.16);
}

.ai-quote-studio > div {
  display: grid;
  align-content: center;
  gap: 10px;
}

.ai-quote-studio .ai-quote-icon {
  margin: 0;
}

.ai-quote-studio figure {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 16px;
}

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

.ai-quote-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  margin-inline: auto;
}

.ai-quote-brief-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--console-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 18px;
  box-shadow: 0 18px 42px rgba(8, 28, 26, 0.07);
}

.ai-quote-brief-panel h2 {
  margin: 0;
  font-size: 18px;
}

.ai-quote-brief-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-quote-brief-panel li {
  display: grid;
  gap: 3px;
  border: 1px solid #e2eeeb;
  border-radius: 12px;
  background: #f8fcfb;
  padding: 12px;
}

.ai-quote-brief-panel span {
  color: var(--console-muted);
  font-size: 13px;
}

.ai-quote-layout .ai-quote-workspace {
  width: auto;
  margin: 0;
}

.ai-quote-workspace {
  overflow: hidden;
  border-radius: 18px;
}

.ai-quote-messages {
  min-height: 260px;
  background:
    linear-gradient(180deg, #f8fcfb, #ffffff);
}

.ai-conversation-panel .ai-quote-messages:empty {
  min-height: 260px;
}

.ai-quote-composer {
  border-top: 1px solid var(--console-line);
  background: #ffffff;
  padding: 16px;
}

.ai-send-button {
  min-width: 100px;
  background: #061f1d;
}

.ai-recent-quotes {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.asset-command-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  overflow: hidden;
  padding: 18px 18px 18px 22px;
}

.asset-command-band img {
  width: 100%;
  min-height: 150px;
  border-radius: 16px;
  object-fit: cover;
}

.asset-workspace {
  gap: 18px;
}

.asset-main,
.asset-side,
.asset-lead-panel,
.agreement-kit {
  border-radius: 16px;
}

.poster-preview {
  overflow: hidden;
  border-color: rgba(122, 226, 216, 0.24);
  background:
    linear-gradient(135deg, rgba(122, 226, 216, 0.12), transparent 46%),
    #061f1d;
  color: #ffffff;
}

.poster-preview p,
.poster-preview span,
.poster-preview small {
  color: rgba(246, 255, 253, 0.68);
}

.poster-preview > div > span {
  background: rgba(122, 226, 216, 0.14);
  color: #b9fff7;
}

.poster-preview b {
  color: #f7c76d;
}

.poster-preview img {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.share-link-box label,
.asset-distribution-row article,
.channel-grid article,
.agreement-steps article {
  border-color: var(--console-line);
  background: #f8fcfb;
}

.channel-grid .channel-icon {
  background: #061f1d;
  color: #ffffff;
}

.channel-grid .channel-icon.wechat {
  background: #0aa576;
}

.channel-grid .channel-icon.redbook {
  background: #d92d20;
}

.channel-grid .channel-icon.douyin {
  background: #111827;
}

.channel-grid .channel-icon.public {
  background: #0f766e;
}

@media (max-width: 1120px) {
  .merchant-topnav {
    min-height: 96px;
  }

  .merchant-primary-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 1000px) {
  main {
    padding-inline: 20px;
  }

  .dashboard-command-center,
  .itinerary-atelier-hero,
  .ai-quote-studio,
  .ai-quote-layout,
  .asset-command-band,
  .asset-workspace {
    grid-template-columns: 1fr;
  }

  .dashboard-visual-card {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .dashboard-command-pulse,
  .resource-command-band,
  .dashboard-metrics,
  .dashboard-flowline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-lead-panel,
  .agreement-kit,
  .asset-main,
  .asset-side {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .merchant-topnav {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "account"
      "nav";
    padding-inline: 16px;
  }

  .topbar {
    justify-content: flex-start;
  }

  main {
    padding: 18px 14px 28px;
  }

  .dashboard-command-copy {
    padding: 24px;
  }

  .dashboard-command-pulse,
  .dashboard-metrics,
  .dashboard-flowline,
  .resource-command-band,
  .resource-type-tabs,
  .itinerary-production-strip,
  .itinerary-home-actions,
  .asset-distribution-row {
    grid-template-columns: 1fr;
  }

  .dashboard-hero h1 {
    font-size: 34px;
  }

  .itinerary-atelier-hero h2,
  .asset-command-band h2,
  .ai-quote-studio h1 {
    font-size: 25px;
  }
}

/* Commercial SaaS visual pass */
:root {
  --commercial-ink: #111827;
  --commercial-strong: #1f2937;
  --commercial-slate: #475467;
  --commercial-muted: #667085;
  --commercial-line: #e5e7eb;
  --commercial-soft-line: #edf0f5;
  --commercial-page: #f4f6f9;
  --commercial-card: #ffffff;
  --commercial-blue: #2563eb;
  --commercial-blue-soft: #eaf1ff;
  --commercial-gold: #c49a4a;
  --commercial-gold-soft: #fbf3df;
  --commercial-teal: #008f84;
  --commercial-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --commercial-shadow-tight: 0 10px 28px rgba(17, 24, 39, 0.07);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 249, 0.96)),
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.08), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(196, 154, 74, 0.11), transparent 32%),
    var(--commercial-page);
  color: var(--commercial-ink);
}

main {
  color: var(--commercial-ink);
}

.merchant-topnav {
  border-bottom: 1px solid rgba(229, 231, 235, 0.96);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.07);
  color: var(--commercial-ink);
}

.brand {
  color: var(--commercial-ink);
}

.brand::before {
  background: linear-gradient(135deg, var(--commercial-blue), var(--commercial-gold));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.merchant-topnav .nav-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--commercial-slate);
}

.merchant-topnav .nav-link.active,
.merchant-topnav .nav-link:hover {
  border-color: var(--commercial-ink);
  background: var(--commercial-ink);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.14);
}

.merchant-switch,
.notification-bell,
.account-menu-trigger {
  border: 1px solid var(--commercial-line);
  background: #ffffff;
  color: var(--commercial-ink);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.merchant-switch {
  grid-template-columns: 34px auto auto;
}

.merchant-switch span,
.user-mini small {
  color: var(--commercial-muted);
}

.merchant-switch strong,
.user-mini strong {
  color: var(--commercial-ink);
}

.merchant-switch-art {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--commercial-soft-line);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.notification-badge {
  background: var(--commercial-blue);
  color: #ffffff;
}

.account-menu-panel {
  border-color: var(--commercial-line);
  background: #ffffff;
  box-shadow: var(--commercial-shadow);
}

.panel,
.dashboard-panel,
.resource-table-panel,
.resource-empty-panel,
.asset-main,
.asset-side,
.asset-lead-panel,
.agreement-kit,
.agreement-list-panel,
.agreement-preview-panel {
  border: 1px solid var(--commercial-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--commercial-shadow-tight);
}

.page-header {
  color: var(--commercial-ink);
}

.page-header span,
.dashboard-kicker,
.resource-command-band span,
.asset-command-band span,
.itinerary-atelier-hero span,
.ai-quote-studio span {
  color: var(--commercial-blue);
}

.page-header h1,
.dashboard-hero h1,
.resource-command-band b,
.asset-command-band h2,
.itinerary-atelier-hero h2,
.ai-quote-studio h1,
.panel h2 {
  color: var(--commercial-ink);
}

.page-header p,
.dashboard-command-center p,
.asset-command-band p,
.itinerary-atelier-hero p,
.ai-quote-studio p,
.panel span,
.panel small {
  color: var(--commercial-muted);
}

.dashboard-command-center,
.resource-command-band,
.asset-command-band,
.itinerary-atelier-hero,
.ai-quote-studio {
  border: 1px solid rgba(229, 231, 235, 0.98);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 58%, rgba(234, 241, 255, 0.94) 100%);
  color: var(--commercial-ink);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.09);
}

.dashboard-command-center::before {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(196, 154, 74, 0.11)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent);
  opacity: 0.95;
}

.dashboard-command-pulse div,
.report-metrics article,
.share-link-box label,
.asset-distribution-row article,
.channel-grid article,
.lead-channel-strip p,
.agreement-steps article,
.resource-command-band article {
  border: 1px solid var(--commercial-line);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.dashboard-command-pulse dt,
.dashboard-command-pulse dd {
  color: var(--commercial-ink);
}

.dashboard-primary-action,
.resource-list-action,
.room-add-button,
.resource-save-button,
.ai-send-button,
.asset-share-command header button,
.asset-channel-panel header button,
.page-actions button,
.primary-wide {
  border-color: var(--commercial-ink);
  background: var(--commercial-ink);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.14);
}

.dashboard-secondary-action,
.share-link-box button,
.quick-actions button {
  border: 1px solid var(--commercial-line);
  background: #ffffff;
  color: var(--commercial-ink);
}

.dashboard-visual-card {
  border-left: 1px solid var(--commercial-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 247, 251, 0.98)),
    var(--commercial-card);
}

.dashboard-visual-card::after {
  background: linear-gradient(180deg, transparent 44%, rgba(255, 255, 255, 0.9));
}

.dashboard-overview-art,
.itinerary-hero-art,
.ai-quote-art,
.asset-command-art,
.poster-preview-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-command-date {
  border: 1px solid var(--commercial-line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--commercial-ink);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.09);
}

.dashboard-metrics article,
.dashboard-task-card,
.dashboard-priority-list li,
.dashboard-side {
  border: 1px solid var(--commercial-line);
  background: #ffffff;
  box-shadow: var(--commercial-shadow-tight);
}

.dashboard-metric-mark,
.dashboard-task-mark {
  overflow: hidden;
  border: 1px solid var(--commercial-line);
  background: var(--commercial-blue-soft);
  color: transparent;
}

.dashboard-metric-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  padding: 0;
}

.dashboard-task-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  padding: 0;
}

.dashboard-mark-image,
.dashboard-step-image,
.command-band-icon,
.channel-icon-img,
.ai-quote-mini-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.command-band-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--commercial-line);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.dashboard-task-card.active {
  border-color: rgba(37, 99, 235, 0.34);
  background:
    linear-gradient(180deg, rgba(234, 241, 255, 0.92), rgba(255, 255, 255, 0.96));
}

.dashboard-task-card.active .dashboard-task-mark {
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16);
}

.dashboard-task-card footer strong,
.dashboard-priority-list a,
.dashboard-side a {
  color: var(--commercial-blue);
}

.resource-command-band {
  align-items: stretch;
}

.resource-command-band article {
  align-content: start;
  gap: 8px;
  border-radius: 16px;
}

.resource-type-tabs button.active,
.editor-tabs button.active {
  background: var(--commercial-ink);
  color: #ffffff;
}

.resource-table-toolbar,
.asset-share-command header,
.asset-channel-panel header {
  border-bottom-color: var(--commercial-soft-line);
}

.itinerary-atelier-hero figure,
.ai-quote-studio figure {
  overflow: hidden;
  border: 1px solid var(--commercial-line);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.itinerary-atelier-hero figcaption,
.ai-quote-studio figcaption {
  background: rgba(255, 255, 255, 0.9);
  color: var(--commercial-slate);
}

.itinerary-atelier-hero a,
.ai-resource-link {
  background: var(--commercial-ink);
  color: #ffffff;
}

.ai-quote-topbar,
.ai-quote-brief-panel,
.ai-recent-quotes {
  border: 1px solid var(--commercial-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--commercial-shadow-tight);
}

.ai-quote-back,
.ai-quote-topbar p {
  color: var(--commercial-slate);
}

.ai-quote-mini-art {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid var(--commercial-line);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.asset-command-band .asset-command-art {
  width: 100%;
  min-height: 168px;
  border-radius: 18px;
  border: 1px solid var(--commercial-line);
  object-fit: cover;
}

.poster-preview {
  border: 1px solid var(--commercial-line);
  background:
    linear-gradient(135deg, #ffffff, #f8fafc 58%, var(--commercial-gold-soft));
  color: var(--commercial-ink);
  box-shadow: var(--commercial-shadow-tight);
}

.poster-preview p,
.poster-preview span,
.poster-preview small {
  color: var(--commercial-muted);
}

.poster-preview > div > span {
  background: var(--commercial-blue-soft);
  color: var(--commercial-blue);
}

.poster-preview b {
  color: var(--commercial-gold);
}

.poster-preview .poster-preview-art {
  border: 1px solid var(--commercial-line);
  background: #ffffff;
}

.poster-distribution-badge {
  display: inline-grid;
  min-width: 82px;
  place-items: center;
  align-self: end;
  justify-self: end;
  border: 1px solid rgba(196, 154, 74, 0.42);
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 12px;
  color: var(--commercial-ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(196, 154, 74, 0.12);
}

.channel-grid article,
.lead-channel-strip p {
  align-items: center;
}

.channel-icon-img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  border: 1px solid var(--commercial-line);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.07);
}

.lead-channel .channel-icon-img {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: 8px;
}

.lead-profile-card > span {
  background: var(--commercial-blue-soft);
  color: var(--commercial-blue);
}

.report-metrics article b,
.rank-list b {
  color: var(--commercial-ink);
}

.channel-bars b {
  background: linear-gradient(90deg, var(--commercial-blue), var(--commercial-gold));
}

.funnel-row span {
  border-color: var(--commercial-line);
  background: #ffffff;
  color: var(--commercial-ink);
}

@media (max-width: 1000px) {
  .dashboard-visual-card {
    border-top: 1px solid var(--commercial-line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .merchant-switch {
    grid-template-columns: 34px minmax(0, auto) minmax(0, 1fr);
  }

  .dashboard-metric-mark {
    width: 42px;
    height: 42px;
  }

  .dashboard-task-mark {
    width: 52px;
    height: 52px;
  }

  .poster-distribution-badge {
    justify-self: start;
  }
}

/* Dashboard layout refinement */
.dashboard-command-pulse {
  grid-template-columns: minmax(0, 1.2fr) minmax(170px, 0.8fr);
}

.dashboard-command-pulse div {
  align-content: start;
}

.dashboard-route-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.dashboard-route-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid var(--commercial-line);
  border-radius: 999px;
  background: #f8fafc;
  padding: 4px 7px;
  color: var(--commercial-ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-route-steps i {
  position: relative;
  width: 16px;
  height: 1px;
  flex: 0 0 16px;
  background: #cbd5e1;
}

.dashboard-route-steps i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #94a3b8;
  border-right: 1.5px solid #94a3b8;
  transform: translateY(-50%) rotate(45deg);
}

.dashboard-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  border: 1px solid rgba(196, 154, 74, 0.32);
  border-radius: 999px;
  background: var(--commercial-gold-soft);
  padding: 5px 12px;
  color: var(--commercial-ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-visual-card > div {
  border-color: rgba(229, 231, 235, 0.92);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
}

.dashboard-visual-card span {
  color: var(--commercial-blue);
}

.dashboard-visual-card strong {
  color: var(--commercial-ink);
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.dashboard-workflow > header h2,
.dashboard-signal h2,
.dashboard-side h2 {
  color: var(--commercial-ink);
}

.dashboard-task-card.active {
  border-color: rgba(37, 99, 235, 0.34);
  background:
    linear-gradient(180deg, rgba(234, 241, 255, 0.95), rgba(255, 255, 255, 0.98));
  color: var(--commercial-ink);
}

.dashboard-task-card {
  min-height: 232px;
  padding-top: 92px;
}

.dashboard-task-mark {
  top: 18px;
  left: 18px;
}

.dashboard-task-card.active b {
  color: var(--commercial-ink);
}

.dashboard-task-card.active p,
.dashboard-task-card.active footer span {
  color: var(--commercial-muted);
}

.dashboard-task-card.active footer strong {
  color: var(--commercial-blue);
}

.dashboard-signal {
  display: grid;
  gap: 14px;
}

.dashboard-signal > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-signal > header h2 {
  margin: 0;
  font-size: 24px;
}

.dashboard-signal > header span {
  color: var(--commercial-muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-signal-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(234, 241, 255, 0.9), #ffffff 62%);
  padding: 14px;
}

.dashboard-signal-mark {
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--commercial-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
}

.dashboard-signal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-signal-summary small,
.dashboard-signal-summary p {
  margin: 0;
  color: var(--commercial-muted);
}

.dashboard-signal-summary strong {
  display: block;
  margin: 2px 0;
  color: var(--commercial-ink);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.dashboard-signal-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.dashboard-signal-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--commercial-line);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
}

.dashboard-signal-list dt,
.dashboard-signal-list dd {
  margin: 0;
}

.dashboard-signal-list dt {
  color: var(--commercial-slate);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-signal-list dd {
  color: var(--commercial-ink);
  font-size: 13px;
  font-weight: 800;
}

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

@media (max-width: 720px) {
  .dashboard-command-pulse,
  .dashboard-signal-list div {
    grid-template-columns: 1fr;
  }

  .dashboard-route-steps i {
    width: 18px;
    flex-basis: 18px;
  }

  .dashboard-signal-summary {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .dashboard-signal-mark {
    width: 52px;
    height: 52px;
  }
}

/* Page deduplication pass */
.resource-command-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-command-band article {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
}

.resource-command-band article > span,
.resource-command-band article > b,
.resource-command-band article > small {
  grid-column: 2;
}

.resource-command-band .command-band-icon {
  grid-row: 1 / span 3;
}

.itinerary-atelier-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}

.asset-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
}

.asset-main,
.asset-side {
  grid-column: auto;
  grid-row: auto;
}

.asset-share-command {
  min-height: 100%;
}

.asset-distribution-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asset-channel-panel {
  min-height: 100%;
}

.ai-quote-studio > div {
  max-width: 640px;
}

@media (max-width: 1000px) {
  .asset-workspace,
  .resource-command-band,
  .itinerary-atelier-hero {
    grid-template-columns: 1fr;
  }
}

/* Admin page theme coherence pass */
:root {
  --admin-theme-ink: #111827;
  --admin-theme-slate: #475467;
  --admin-theme-muted: #667085;
  --admin-theme-line: #e5e7eb;
  --admin-theme-soft-line: #edf0f5;
  --admin-theme-page: #f4f6f9;
  --admin-theme-blue: #2563eb;
  --admin-theme-blue-soft: #eaf1ff;
  --admin-theme-gold: #c49a4a;
  --admin-theme-gold-soft: #fbf3df;
  --admin-theme-shadow: 0 18px 46px rgba(17, 24, 39, 0.08);
}

.itinerary-ai-home {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 249, 0.98)),
    var(--admin-theme-page);
}

.ai-quote-topbar {
  border-color: var(--admin-theme-line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--admin-theme-ink);
  box-shadow: var(--admin-theme-shadow);
}

.ai-quote-back,
.ai-quote-topbar p {
  color: var(--admin-theme-slate);
}

.ai-resource-link {
  border-color: var(--admin-theme-ink);
  background: var(--admin-theme-ink);
  color: #ffffff;
}

.ai-resource-link span {
  background: var(--admin-theme-gold);
}

.itinerary-atelier-hero {
  min-height: 0;
  padding: 24px 28px;
}

.itinerary-atelier-hero figure {
  min-height: 210px;
  max-height: 260px;
}

.ai-quote-studio {
  min-height: 0;
  padding: 20px 24px;
}

.ai-quote-studio figure {
  min-height: 180px;
  max-height: 220px;
}

.ai-quote-layout {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
}

.ai-quote-layout .ai-quote-workspace {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.ai-quote-workspace {
  grid-template-rows: minmax(300px, 1fr) auto;
  min-height: 468px;
  border: 1px solid var(--admin-theme-line);
  background: #ffffff;
  box-shadow: var(--admin-theme-shadow);
}

.ai-quote-brief-panel {
  border-color: var(--admin-theme-line);
  background: rgba(255, 255, 255, 0.96);
}

.ai-quote-brief-panel li {
  border-color: var(--admin-theme-line);
  background: #f8fafc;
}

.ai-quote-messages,
.ai-conversation-panel .ai-quote-messages,
.ai-conversation-panel .ai-quote-messages:empty {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 300px;
  max-height: none;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.ai-conversation-panel .ai-quote-messages {
  padding: 18px;
}

.ai-conversation-panel .ai-quote-messages:empty {
  padding: 0;
}

.ai-quote-composer {
  min-height: 150px;
  border-color: var(--admin-theme-line);
}

.ai-quote-composer.is-generating {
  background: #f8fafc;
}

.ai-quote-composer label {
  color: var(--admin-theme-muted);
}

.ai-quote-composer textarea {
  min-height: 70px;
  color: var(--admin-theme-ink);
}

.ai-recent-quotes button {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: var(--admin-theme-blue-soft);
  color: var(--admin-theme-blue);
}

.itinerary-list-title {
  display: grid;
  gap: 3px;
}

.itinerary-list-title strong {
  color: var(--admin-theme-ink);
  font-weight: 900;
}

.itinerary-list-title small {
  color: var(--admin-theme-muted);
  font-size: 12px;
  font-weight: 800;
}

.table-wrap button:not(:disabled) {
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: var(--admin-theme-blue-soft);
  color: var(--admin-theme-blue);
  box-shadow: none;
}

.table-wrap button:not(:disabled):hover {
  border-color: var(--admin-theme-blue);
  background: var(--admin-theme-blue);
  color: #ffffff;
}

.pagination button {
  border: 1px solid var(--admin-theme-line);
  background: #ffffff;
  color: var(--admin-theme-slate);
  box-shadow: none;
}

.pagination button:not(:disabled):hover {
  border-color: rgba(37, 99, 235, 0.26);
  background: var(--admin-theme-blue-soft);
  color: var(--admin-theme-blue);
}

tr.selected-row td {
  background: #f6f8fc;
}

tr.selected-row td:first-child {
  box-shadow: inset 3px 0 0 var(--admin-theme-blue);
}

tr.expanded-row td {
  background: #f8fafc;
}

.status-badge {
  border: 1px solid var(--admin-theme-line);
  background: #f3f6fb;
  color: var(--admin-theme-slate);
}

.lead-overview-row b,
.rank-list b {
  color: var(--admin-theme-ink);
}

.rank-list b {
  background: var(--admin-theme-blue-soft);
  color: var(--admin-theme-blue);
}

.agreement-record-list article.selected {
  border-color: rgba(37, 99, 235, 0.28);
  background: #f6f8fc;
  box-shadow: inset 3px 0 0 var(--admin-theme-blue);
}

.agreement-record-list span {
  border: 1px solid rgba(196, 154, 74, 0.28);
  background: var(--admin-theme-gold-soft);
  color: var(--admin-theme-ink);
}

.agreement-summary-card {
  background: #f8fafc;
}

.agreement-export-grid button {
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: var(--admin-theme-blue-soft);
  color: var(--admin-theme-blue);
}

.agreement-export-grid button:first-child {
  border-color: var(--admin-theme-line);
  background: #ffffff;
  color: var(--admin-theme-ink);
}

.agreement-list-panel > header button {
  border-color: var(--admin-theme-ink);
  background: var(--admin-theme-ink);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.14);
}

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

.report-funnel-steps article {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 92px;
  align-content: center;
  border: 1px solid var(--admin-theme-line);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.report-funnel-steps article + article::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -11px;
  width: 10px;
  height: 2px;
  background: #cbd5e1;
}

.report-funnel-steps small {
  color: var(--admin-theme-gold);
  font-size: 12px;
  font-weight: 900;
}

.report-funnel-steps strong {
  color: var(--admin-theme-slate);
  font-size: 13px;
}

.report-funnel-steps b {
  color: var(--admin-theme-ink);
  font-size: 24px;
  line-height: 1;
}

.funnel-row span + span::before {
  content: none;
}

@media (max-width: 900px) {
  .ai-quote-layout {
    grid-template-columns: 1fr;
  }

  .ai-quote-workspace {
    min-height: 440px;
  }

  .report-funnel-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .report-funnel-steps {
    grid-template-columns: 1fr;
  }
}

/* Dashboard annotation refinements */
.dashboard-command-pulse {
  width: min(370px, 100%);
  grid-template-columns: 1fr;
}

.dashboard-command-pulse div {
  min-height: 86px;
}

.dashboard-flowline {
  gap: 14px;
}

.dashboard-flowline::before {
  content: none;
}

.dashboard-task-card {
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto minmax(78px, 1fr) auto;
  gap: 12px 14px;
  min-height: 260px;
  align-content: start;
  padding: 18px;
}

.dashboard-task-mark {
  position: relative;
  top: auto;
  left: auto;
  grid-column: 1;
  grid-row: 1;
  width: 58px;
  height: 58px;
}

.dashboard-task-card > b {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.dashboard-task-card > p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  color: var(--commercial-slate);
  line-height: 1.75;
}

.dashboard-task-card footer {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  border-top: 1px solid var(--commercial-soft-line);
  padding-top: 12px;
}

.dashboard-task-card footer span,
.dashboard-task-card footer strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}

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

  .dashboard-task-card {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-height: 150px;
  }

  .dashboard-task-mark {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .dashboard-task-card > b,
  .dashboard-task-card > p,
  .dashboard-task-card footer {
    grid-column: 2;
  }

  .dashboard-task-card > b {
    grid-row: 1;
  }

  .dashboard-task-card > p {
    grid-row: 2;
  }

  .dashboard-task-card footer {
    grid-row: 3;
    border-top: 0;
    padding-top: 2px;
  }
}

/* AI brief panel annotation refinement */
.ai-quote-brief-panel {
  align-self: start;
  gap: 12px;
  border-color: rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.74);
  padding: 16px 18px;
  box-shadow: none;
}

.ai-quote-brief-panel h2 {
  color: var(--admin-theme-muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.ai-quote-brief-panel ol {
  gap: 0;
  border-top: 1px solid var(--admin-theme-soft-line);
}

.ai-quote-brief-panel li {
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid var(--admin-theme-soft-line);
  border-radius: 0;
  background: transparent;
  padding: 11px 0;
}

.ai-quote-brief-panel li:last-child {
  border-bottom: 0;
}

.ai-quote-brief-panel b {
  color: var(--admin-theme-ink);
  font-size: 14px;
}

.ai-quote-brief-panel span {
  color: var(--admin-theme-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Quote modal annotation refinement */
.quote-total-backdrop {
  background: rgba(17, 24, 39, 0.58);
}

.quote-total-modal {
  width: min(1160px, calc(100vw - 28px));
  max-height: min(880px, calc(100vh - 28px));
  grid-template-columns: 220px minmax(0, 1fr);
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.28);
}

.quote-editor-sidebar {
  gap: 14px;
  border-right: 1px solid var(--admin-theme-line);
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 52%, #f6f7f9 100%);
  padding: 20px 18px;
}

.quote-add-version-button {
  min-height: 42px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 8px;
  background: #ffffff;
  color: var(--admin-theme-blue);
  box-shadow: none;
}

.quote-add-version-button:hover,
.quote-add-version-button:focus-visible {
  border-color: var(--admin-theme-blue);
  background: var(--admin-theme-blue-soft);
  color: var(--admin-theme-blue);
}

.quote-version-list {
  gap: 8px;
}

.quote-version-item {
  min-height: 64px;
  border-color: var(--admin-theme-line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--admin-theme-ink);
  padding: 12px;
  box-shadow: none;
}

.quote-version-copy small {
  color: var(--admin-theme-muted);
}

.quote-version-item[aria-current="true"] {
  border-color: var(--admin-theme-line);
  background: #ffffff;
  box-shadow: none;
}

.quote-version-item:hover,
.quote-version-item:focus-visible {
  border-color: #b8c2cf;
  background: #f8fafc;
}

.quote-version-current {
  color: var(--admin-theme-blue);
}

.quote-editor-main {
  background: #f8fafc;
  padding: 0 18px 18px;
}

.quote-editor-topbar {
  margin-inline: -18px;
  border-bottom: 1px solid var(--admin-theme-soft-line);
  background: rgba(255, 255, 255, 0.98);
  padding: 20px 18px 14px;
}

.quote-editor-topbar span {
  color: var(--admin-theme-muted);
  font-size: 12px;
  letter-spacing: 0;
}

.quote-editor-topbar h2 {
  color: var(--admin-theme-ink);
  font-size: 24px;
  line-height: 1.25;
}

.quote-title-edit,
.quote-title-actions button {
  border-color: var(--admin-theme-line);
  background: #f8fafc;
  color: var(--admin-theme-slate);
}

.quote-title-save {
  border-color: var(--admin-theme-blue);
  background: var(--admin-theme-blue);
  color: #ffffff;
}

.quote-modal-close {
  border: 1px solid transparent;
  background: #f3f5f8;
  color: var(--admin-theme-slate);
}

.quote-modal-close:hover {
  border-color: var(--admin-theme-line);
  background: #ffffff;
  color: var(--admin-theme-ink);
}

.quote-editor-toolbar {
  margin-top: 0;
  border-bottom: 0;
  padding: 14px 0 8px;
}

.quote-day-tabs {
  gap: 7px;
}

.quote-day-tabs button {
  border-color: var(--admin-theme-line);
  background: #ffffff;
  color: var(--admin-theme-slate);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.04);
}

.quote-day-tabs button.active,
.quote-day-tabs button:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: var(--admin-theme-blue-soft);
  color: var(--admin-theme-blue);
}

.quote-category-list {
  gap: 16px;
  padding-top: 8px;
}

.quote-category-card {
  gap: 14px;
  border-color: var(--admin-theme-line);
  border-radius: 10px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.quote-category-card header {
  border-left: 0;
  border-radius: 9px;
  background: #f8fafc;
  padding: 13px 16px;
}

.quote-category-ticket header {
  background: var(--admin-theme-gold-soft);
}

.quote-category-hotel header {
  background: var(--admin-theme-blue-soft);
}

.quote-category-card header strong {
  color: var(--admin-theme-ink);
  font-size: 16px;
}

.quote-category-card header span {
  color: var(--admin-theme-muted);
}

.quote-category-card header b {
  color: var(--admin-theme-ink);
  font-size: 16px;
}

.quote-line-head,
.quote-line-row {
  gap: 7px;
}

.quote-line-head {
  color: var(--admin-theme-muted);
  padding: 0 4px 8px;
}

.quote-line-head i {
  background: rgba(37, 99, 235, 0.12);
  color: var(--admin-theme-blue);
}

.quote-line-body {
  gap: 9px;
}

.quote-line-row {
  border-color: var(--admin-theme-soft-line);
  border-radius: 9px;
  background: #ffffff;
  padding: 9px 10px;
}

.quote-line-row input,
.quote-line-row select,
.quote-editor-summary-bar input,
.quote-editor-summary-bar select,
.quote-readonly-cell {
  border-color: var(--admin-theme-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--admin-theme-ink);
}

.quote-hotel-picker-trigger,
.quote-hotel-dialog {
  border-color: var(--admin-theme-line);
  background: #ffffff;
  color: var(--admin-theme-ink);
}

.quote-hotel-picker-trigger {
  border-radius: 8px;
}

.quote-hotel-picker-trigger:hover,
.quote-hotel-picker-trigger[aria-expanded="true"] {
  border-color: #b8c2cf;
  background: #f8fafc;
  box-shadow: none;
}

.quote-hotel-dialog-option:hover,
.quote-hotel-dialog-option:focus-visible {
  background: #f3f6f9;
}

.quote-hotel-dialog-option.active {
  background: #f8fafc;
}

.quote-hotel-current-label {
  color: var(--admin-theme-blue);
}

.quote-readonly-cell {
  background: #f8fafc;
}

.quote-source-cell {
  border-color: rgba(37, 99, 235, 0.18);
  background: #eff6ff;
  color: var(--admin-theme-blue);
}

.quote-add-line-button {
  border-color: rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: var(--admin-theme-blue);
}

.quote-add-line-button:hover,
.quote-add-line-button:focus-visible {
  background: var(--admin-theme-blue-soft);
}

.quote-edit-itinerary-button {
  border-color: var(--admin-theme-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--admin-theme-ink);
}

.quote-editor-summary-bar {
  border-top: 1px solid var(--admin-theme-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -16px 34px rgba(17, 24, 39, 0.09);
}

.quote-editor-summary-bar .quote-summary-metric {
  color: var(--admin-theme-muted);
}

.quote-editor-summary-bar strong {
  color: var(--admin-theme-ink);
}

.quote-editor-summary-bar [data-quote-modal-profit] {
  color: var(--admin-theme-blue);
}

.quote-editor-summary-bar button {
  border: 1px solid var(--admin-theme-ink);
  background: var(--admin-theme-ink);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.16);
}

.quote-editor-summary-bar button:hover,
.quote-editor-summary-bar button:focus-visible {
  border-color: var(--admin-theme-blue);
  background: var(--admin-theme-blue);
}

/* Quote modal responsive layout */
@media (max-width: 1120px) {
  .quote-total-backdrop {
    padding: 10px;
  }

  .quote-total-modal {
    width: min(1160px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .quote-editor-sidebar {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--admin-theme-line);
    background: #ffffff;
    padding: 10px 14px;
  }

  .quote-add-version-button {
    min-height: 48px;
    padding-inline: 14px;
  }

  .quote-version-list {
    display: flex;
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .quote-version-item {
    flex: 0 0 190px;
    min-height: 48px;
    padding: 8px 10px;
  }

  .quote-editor-main {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding: 0 14px 14px;
  }

  .quote-editor-topbar {
    margin-inline: -14px;
    padding: 14px;
  }

  .quote-editor-toolbar {
    padding-top: 10px;
  }

  .quote-category-card {
    padding: 14px;
  }

  .quote-hotel-head,
  .quote-hotel-row {
    grid-template-columns: minmax(172px, 1.35fr) 72px 106px 102px 72px 72px 50px 72px 50px;
    min-width: 842px;
  }

  .quote-editor-summary-bar {
    grid-column: 1;
    grid-row: 3;
  }
}

@media (max-width: 640px) {
  .quote-total-backdrop {
    padding: 6px;
  }

  .quote-total-modal {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    border-radius: 8px;
  }

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

  .quote-add-version-button {
    justify-self: start;
  }

  .quote-editor-summary-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 12px;
  }

  .quote-editor-summary-bar .quote-summary-metric,
  .quote-summary-price,
  .quote-summary-price input {
    min-width: 0;
    width: 100%;
  }

  .quote-editor-summary-bar button {
    grid-column: 1 / -1;
  }
}

/* Flat selection accents */
.itinerary-preview-panel {
  border-left: 0;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.quote-plan-head-readable,
tr.selected-row td:first-child,
.agreement-record-list article.selected {
  box-shadow: none;
}
