* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #1e293b;
  background: #f8fafc;
}

.container {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem;
}

.page {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-height: 100vh;
}

.card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 100%;
}

.page-title {
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.input,
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-family: inherit;
}

.input:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input:disabled,
input:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s;
  background-color: #f3f4f6;
  color: #333;
  font-family: inherit;
}

.btn:hover {
  background-color: #e5e7eb;
}

.btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  color: white;
}

.btn-primary {
  background-color: #0f172a;
  color: white;
  border-color: #0f172a;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #1e293b;
}

.btn-primary:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1;
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: #cbd5e1;
}

.error-message {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.success-message {
  background-color: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 2rem;
}

.loading .spinner {
  margin-bottom: 1rem;
}

.loading-text {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
}

.request-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
}

.request-id {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.request-status {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.request-actions {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.request-actions .btn {
  -ms-flex: 1;
  flex: 1;
  margin-bottom: 0;
  min-width: 6rem;
}

.taskpane-header {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-align: center;
  align-items: center;
  margin: -1rem -1rem 1.5rem -1rem;
  padding: 1rem;
  background: #1e293b;
  border-radius: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.taskpane-title-container {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-align: flex-start;
  align-items: flex-start;
  gap: 0.05rem;
}

.taskpane-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.taskpane-version {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.menu-button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.menu-button:hover {
  opacity: 0.8;
}

.menu-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
}

.menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: -ms-flexbox;
  display: flex;
  z-index: 10000;
}

.menu-modal.hidden {
  display: none;
}

.menu-overlay {
  -ms-flex: 1;
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.menu-panel {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  max-width: 20rem;
  background: white;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
}

.menu-header {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-align: center;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.menu-header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}

.menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  transition: color 0.2s;
}

.menu-close:hover {
  color: #1f2937;
}

.menu-content {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 0;
  -ms-flex: 1;
  flex: 1;
}

.menu-item {
  background: none;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem;
  text-align: left;
  font-size: 1rem;
  color: #1f2937;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: inherit;
  font-weight: 500;
}

.menu-item:hover {
  background-color: #f9fafb;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-danger {
  color: #dc2626;
}

.menu-item-danger:hover {
  background-color: #fef2f2;
}

.taskpane-content {
  padding: 0.5rem;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.hidden {
  display: none;
}

.debug-info {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 1rem;
  padding: 0.5rem;
  background: #f3f4f6;
  border-radius: 0.25rem;
}

.request-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.request-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.request-details {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.detail-row {
  margin-bottom: 0.25rem;
  color: #4b5563;
}

.detail-row strong {
  font-weight: 600;
  color: #1f2937;
}

.request-content {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 0.25rem;
}

.content-label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.content-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
  white-space: pre-wrap;
  word-break: break-word;
}

.generated-answer {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #f0fdfa;
  border-left: 4px solid #2563eb;
  border-radius: 0.375rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.answer-label {
  font-weight: 700;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.answer-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #1f2937;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-processing {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.badge-failed {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-cancelled {
  background-color: #e5e7eb;
  color: #374151;
}

.badge-treatable {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-untreatable {
  background-color: #f3f4f6;
  color: #374151;
}

.sections-wrapper {
  margin: 1rem 0;
}

.timeline-container {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0;
}

.sections-empty {
  text-align: center;
  padding: 1rem;
  color: #999;
  font-style: italic;
}

.timeline-item {
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

.timeline-marker {
  position: relative;
  width: 2rem;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-align: center;
  align-items: center;
  padding-top: 0.25rem;
}

.timeline-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #d1d5db;
  z-index: 1;
  margin-top: 0.25rem;
}

.timeline-line {
  width: 2px;
  -ms-flex: 1;
  flex: 1;
  background: #e5e7eb;
  margin-top: -0.5rem;
}

.timeline-content {
  -ms-flex: 1;
  flex: 1;
  padding-bottom: 1rem;
}

.timeline-header {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  user-select: none;
  font-size: 0.95rem;
}

.timeline-title {
  color: #1f2937;
  font-weight: 500;
}

.status-success {
  color: #2563eb;
  font-weight: 700;
  font-size: 0.9rem;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
}

.status-processing {
  color: #2563eb;
  font-weight: 700;
  font-size: 0.9rem;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
}

.status-pending {
  color: #9ca3af;
  font-weight: 700;
  font-size: 0.9rem;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
}

.timeline-toggle {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  color: #9ca3af;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
}

.timeline-header.open .timeline-toggle {
  transform: rotate(180deg);
}

.timeline-body {
  padding: 0;
  background: none;
  display: none;
  margin-top: 0.5rem;
}

.timeline-body.open {
  display: block;
}

.json-content {
  margin: 0;
  padding: 0.75rem;
  background: #f9fafb;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #374151;
  overflow-x: auto;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.identify-items {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.75rem;
}

.identify-item {
  font-size: 0.9375rem;
  padding: 0.875rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.75rem;
}

.identify-label {
  font-weight: 700;
  color: #1f2937;
  min-width: 5rem;
}

.identify-value {
  color: #374151;
}

.classify-list {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.75rem;
}

.classify-item {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: flex-start;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  background: white;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  font-size: 0.9375rem;
}

.classify-content {
  color: #374151;
  flex: 1;
  line-height: 1.5;
}

.availability-list {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.875rem;
}

.availability-item {
  padding: 1rem;
  background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  font-size: 0.9375rem;
}

.room-header {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-align: baseline;
  align-items: baseline;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: #1f2937;
  gap: 0.5rem;
}

.occupancy {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.room-desc {
  color: #4b5563;
  margin-bottom: 0.625rem;
  font-size: 0.8125rem;
  font-style: italic;
}

.rates {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid #d1d5db;
}

.rate-item {
  color: #2563eb;
  font-size: 0.8125rem;
  font-weight: 600;
}

.checked-at {
  margin-top: 0.625rem;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: right;
  font-style: italic;
}

.plan-text {
  margin-bottom: 1rem;
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.plan-steps {
  margin-top: 0.75rem;
}

.plan-steps ul {
  padding-left: 1.5rem;
  margin: 0;
}

.plan-steps li {
  color: #374151;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.plan-steps li:before {
  content: '→';
  margin-right: 0.5rem;
  color: #2563eb;
  font-weight: 700;
}

.from-to {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: white;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.from-to-subject {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1e293b;
}

.from-to-subject-icon {
  font-size: 0.875rem;
  color: #64748b;
}

.from-to-fields {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
}

.from-to-field {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: baseline;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.from-to-label {
  color: #64748b;
  flex-shrink: 0;
  font-weight: 500;
}

.from-to-value {
  color: #1e293b;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.from-to-error {
  color: #dc2626;
}

.from-to-icon {
  font-size: 0.875rem;
  margin-right: 0.25rem;
}

.generic-result {
  background: #f3f4f6;
  padding: 0.5rem;
  border-radius: 0.25rem;
  overflow-x: auto;
  font-size: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
}

.request-view {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
}

.request-view-header {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.request-view-header h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
}

.request-meta {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.75rem;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.request-time {
  font-size: 0.8125rem;
  color: #6b7280;
}

.request-actions-header {
  display: -ms-flexbox;
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.request-actions-header .btn {
  margin-bottom: 0;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
}

.btn-reply {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
  font-weight: 600;
}

.btn-reply:hover {
  background-color: #134e4a;
}

.btn-delete {
  background-color: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1;
  font-weight: 500;
}

.btn-delete:hover {
  background-color: #cbd5e1;
}

.form-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #666;
}

.form-footer a {
  color: #3b82f6;
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.message-error {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.message-success {
  background-color: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

textarea.input {
  font-family: inherit;
}

.confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 9999;
}

.confirmation-modal.hidden {
  display: none;
}

.confirmation-modal-content {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  max-width: 24rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.confirmation-modal-content p {
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.confirmation-modal-actions {
  display: -ms-flexbox;
  display: flex;
  gap: 0.75rem;
}

.confirmation-modal-actions .btn {
  -ms-flex: 1;
  flex: 1;
  margin-bottom: 0;
}

.generation-display {
  margin-top: 0.25rem;
  padding: 1.25rem;
  background: white;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.generation-header {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: end;
  justify-content: flex-end;
  z-index: 10;
}

.generation-content {
  color: #1e293b;
  font-size: 0.9375rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
  padding: 0.5rem;
}

.btn-details {
  background-color: #2563eb;
  color: white;
  border: none;
  font-weight: 400;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
}

.btn-details:hover {
  background-color: #134e4a;
}

.details-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  z-index: 10001;
}

.details-drawer.hidden {
  display: none;
}

.details-overlay {
  -ms-flex: 1;
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.details-panel {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 70vh;
  background: white;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
}

.details-header {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-align: center;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
}

.details-header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}

.details-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  transition: color 0.2s;
}

.details-close:hover {
  color: #1f2937;
}

.details-content {
  -ms-flex: 1;
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.sections-inline {
  margin: 1rem 0;
  padding: 1rem;
  background: white;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
}

.status-failed {
  color: #dc2626;
  font-weight: 700;
  font-size: 0.9rem;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
}

.availability-processing {
  padding: 0.75rem;
  background: #f0f9ff;
  border-radius: 0.25rem;
  border: 1px solid #bae6fd;
}

.availability-dates {
  font-weight: 600;
  color: #0369a1;
  margin-bottom: 0.5rem;
}

.availability-loading {
  color: #0284c7;
  font-style: italic;
}

.availability-error {
  padding: 0.75rem;
  background: #fef2f2;
  border-radius: 0.25rem;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.availability-empty {
  padding: 0.75rem;
  background: #fefce8;
  border-radius: 0.25rem;
  border: 1px solid #fef08a;
  color: #854d0e;
  text-align: center;
}

.availability-pending {
  padding: 0.75rem;
  background: #f3f4f6;
  border-radius: 0.25rem;
  color: #6b7280;
  text-align: center;
  font-style: italic;
}

.room-bookable {
  border-left: 3px solid #3b82f6;
}

.room-unavailable {
  border-left: 3px solid #9ca3af;
  opacity: 0.7;
}

.room-name {
  font-weight: 600;
  color: #1f2937;
}

.room-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2563eb;
  margin: 0.375rem 0;
}

.rate-more {
  color: #6b7280;
  font-style: italic;
  font-weight: normal;
}

.generation-error {
  margin-top: 1rem;
  padding: 1rem;
  background: #fef2f2;
  border-radius: 0.375rem;
  border: 1px solid #fecaca;
  color: #991b1b;
  text-align: center;
}

.processing-placeholder {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 2rem;
  margin: 1rem 0;
  background: white;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
}

.processing-placeholder p {
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.9375rem;
}

.btn-retry {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
  font-weight: 600;
}

.btn-retry:hover {
  background-color: #2563eb;
}

.hotel-identified {
  margin: 1rem 0;
  padding: 1rem;
  background: #f0fdf4;
  border-radius: 0.375rem;
  border: 1px solid #86efac;
  color: #166534;
}

.hotel-identified p {
  margin: 0;
  font-size: 0.9375rem;
}

.hotel-identified strong {
  color: #1d4ed8;
}
