:root {
  --accent: #287153;
  --accent-soft: #e2efe8;
  --accent-ink: #15523a;
  --pf01-topbar-height: 64px;
}

.demo-topbar {
  min-height: var(--pf01-topbar-height);
  background: rgba(255, 255, 255, 0.99);
}

.boundary-note.pf01-ai-boundary {
  position: sticky;
  top: var(--pf01-topbar-height);
  z-index: 29;
  font-size: 13.5px;
}

.boundary-copy-compact {
  display: none;
}

.evidence-chip {
  display: grid;
  gap: 2px;
}

.generator-help {
  margin: -6px 2px 8px;
  color: var(--muted);
  font-size: 11px;
}

.toolbar-actions {
  flex-wrap: wrap;
}

.custom-composer {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1.8fr);
  gap: 12px 20px;
  margin: 10px 0 12px;
  padding: 15px;
  border: 1px solid #b9cbbf;
  background: #f7faf8;
}

.custom-composer-copy .eyebrow {
  margin-bottom: 4px;
}

.custom-composer-copy h2 {
  margin: 0;
  font-size: 18px;
}

.custom-composer-copy p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.custom-inquiry-form {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 142px;
  align-items: end;
  gap: 10px;
}

.custom-message-field .textarea {
  min-height: 70px;
  max-height: 140px;
}

.custom-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.custom-message-meta span:last-child {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.custom-submit {
  width: 100%;
  min-height: 44px;
}

.custom-inquiry-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.custom-inquiry-status.is-error {
  color: var(--danger);
  font-weight: 800;
}

.custom-inquiry-status.is-success {
  color: var(--accent-ink);
  font-weight: 800;
}

.ticket-list {
  display: grid;
  max-height: 520px;
  overflow-y: auto;
}

.ticket-item {
  display: grid;
  width: 100%;
  min-height: 78px;
  gap: 5px;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  text-align: left;
}

.ticket-item:last-child {
  border-bottom: 0;
}

.ticket-item:hover {
  background: var(--surface-soft);
}

.ticket-item[aria-current="true"] {
  box-shadow: inset 4px 0 0 var(--accent);
  background: var(--accent-soft);
}

.ticket-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ticket-item strong {
  font-size: 12px;
}

.ticket-item p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-message {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.customer-message span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-message p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.65;
}

.classification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 4px;
  border: 1px solid var(--line);
}

.classification-grid div {
  min-width: 0;
  padding: 11px;
  border-right: 1px solid var(--line);
}

.classification-grid div:last-child {
  border-right: 0;
}

.classification-grid dt {
  color: var(--muted);
  font-size: 10px;
}

.classification-grid dd {
  overflow: hidden;
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-field {
  margin-top: 14px;
}

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

.queue-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.queue-list li:last-child {
  border-bottom: 0;
}

.queue-list b {
  font-size: 12px;
}

.export-panel {
  margin-top: 14px;
}

@media (max-width: 480px) {
  .classification-grid {
    grid-template-columns: 1fr;
  }

  .classification-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .classification-grid div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 780px) {
  .boundary-note.pf01-ai-boundary {
    font-size: 13px;
  }

  .custom-composer {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .custom-inquiry-form {
    grid-template-columns: 1fr;
  }

  .custom-message-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .toolbar-actions .button {
    min-width: min(100%, 180px);
  }

  .generator-help {
    margin-top: -4px;
  }
}

@media (max-width: 480px) {
  .boundary-note.pf01-ai-boundary {
    top: var(--pf01-topbar-height);
    font-size: 13px;
  }

  .boundary-copy-wide {
    display: none;
  }

  .boundary-copy-compact {
    display: inline;
  }
}
