.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.natural-planner {
  position: relative;
  margin: 0 0 18px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  color: var(--ui-text);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--ui-brand) 11%, transparent), transparent 35%),
    var(--ui-surface);
  box-shadow: var(--ui-shadow);
}

.natural-planner::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -70px;
  width: 180px;
  height: 180px;
  border: 1px solid color-mix(in srgb, var(--ui-brand) 10%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.natural-planner-dashboard {
  margin-bottom: 20px;
}

.natural-planner-intro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.natural-planner-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--ui-brand);
  background: color-mix(in srgb, var(--ui-brand) 11%, var(--ui-surface));
}

.natural-planner-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.natural-planner-copy {
  min-width: 0;
}

.natural-planner-copy > span,
.natural-planner-copy > strong,
.natural-planner-copy > small {
  display: block;
}

.natural-planner-kicker {
  margin-bottom: 3px;
  color: var(--ui-brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.natural-planner-copy > strong {
  color: var(--ui-text);
  font: 700 16px/1.25 "Manrope", sans-serif;
  letter-spacing: -.25px;
}

.natural-planner-copy > small {
  margin-top: 4px;
  color: var(--ui-muted);
  font-size: 10px;
  line-height: 1.45;
}

.natural-planner-form {
  position: relative;
  z-index: 2;
  margin-top: 15px;
  padding: 6px;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 7px;
  background: var(--ui-surface-soft);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.natural-planner-form:focus-within {
  border-color: color-mix(in srgb, var(--ui-brand) 62%, var(--ui-border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-brand) 10%, transparent);
}

.natural-input-shell {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.natural-planner-form textarea {
  width: 100%;
  min-height: 55px;
  max-height: 150px;
  padding: 10px 54px 10px 11px;
  resize: vertical;
  border: 0 !important;
  border-radius: 9px;
  color: var(--ui-text) !important;
  background: transparent !important;
  box-shadow: none !important;
  font: 500 13px/1.5 "DM Sans", sans-serif;
}

.natural-planner-form textarea:focus {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.natural-voice-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 7px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ui-muted);
  background: var(--ui-surface);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--ui-nav) 8%, transparent);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.natural-voice-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.natural-voice-button:hover:not(:disabled) {
  color: var(--ui-brand);
  border-color: color-mix(in srgb, var(--ui-brand) 45%, var(--ui-border));
}

.natural-voice-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ui-brand) 28%, transparent);
  outline-offset: 2px;
}

.natural-voice-button.is-listening {
  color: #fff;
  border-color: var(--ui-brand);
  background: var(--ui-brand);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--ui-brand) 13%, transparent);
  animation: natural-voice-pulse 1.25s ease-in-out infinite;
}

.natural-voice-button:disabled {
  cursor: not-allowed;
  opacity: .46;
}

@keyframes natural-voice-pulse {
  50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--ui-brand) 5%, transparent); }
}

.natural-planner-form > button,
.natural-primary-action {
  min-width: 142px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--ui-brand);
  cursor: pointer;
  font: 700 11px "DM Sans", sans-serif;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.natural-planner-form > button:hover,
.natural-primary-action:hover {
  transform: translateY(-1px);
  background: var(--ui-brand-hover);
}

.natural-planner-form > button:disabled,
.natural-primary-action:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.natural-planner-form > button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.natural-planner-form > button[aria-busy="true"] svg {
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: natural-planner-spin .7s linear infinite;
}

.natural-planner-form > button[aria-busy="true"] svg path {
  display: none;
}

@keyframes natural-planner-spin { to { transform: rotate(360deg); } }

.natural-planner-examples {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.natural-planner-examples > span {
  color: var(--ui-faint);
  font-size: 9px;
  font-weight: 700;
}

.natural-planner-examples button,
.natural-option-button {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  color: var(--ui-muted);
  background: var(--ui-surface);
  cursor: pointer;
  font: 600 9px "DM Sans", sans-serif;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.natural-planner-examples button:hover,
.natural-option-button:hover {
  color: var(--ui-brand);
  border-color: color-mix(in srgb, var(--ui-brand) 42%, var(--ui-border));
  background: color-mix(in srgb, var(--ui-brand) 5%, var(--ui-surface));
}

.natural-planner-status {
  margin: 12px 2px 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ui-muted);
  background: var(--ui-surface-soft);
  font-size: 10px;
  line-height: 1.45;
}

.natural-planner-status.is-error {
  color: #b44a38;
  background: color-mix(in srgb, var(--ui-brand) 8%, var(--ui-surface));
}

html[data-theme="dark"] .natural-planner-status.is-error { color: #ffb3a4; }

.natural-planner-preview {
  position: relative;
  z-index: 2;
  margin-top: 15px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--ui-brand) 18%, var(--ui-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--ui-brand) 3%, var(--ui-surface));
}

.natural-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.natural-preview-heading > div > span,
.natural-preview-heading > div > strong {
  display: block;
}

.natural-preview-heading > div > span {
  color: var(--ui-brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}

.natural-preview-heading > div > strong {
  margin-top: 5px;
  color: var(--ui-text);
  font: 700 14px/1.35 "Manrope", sans-serif;
}

.natural-review-badge {
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--ui-muted);
  background: var(--ui-surface);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.natural-preview-fields {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.natural-preview-field {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: var(--ui-surface);
}

.natural-preview-field small,
.natural-preview-field strong {
  display: block;
}

.natural-preview-field small {
  color: var(--ui-faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.natural-preview-field strong {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ui-text);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.natural-clarification,
.natural-discovery {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  background: var(--ui-surface);
}

.natural-clarification strong,
.natural-discovery-heading strong,
.natural-discovery-heading span {
  display: block;
}

.natural-clarification strong,
.natural-discovery-heading strong {
  color: var(--ui-text);
  font-size: 11px;
}

.natural-option-list {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.natural-discovery-heading span {
  margin-top: 3px;
  color: var(--ui-muted);
  font-size: 9px;
  line-height: 1.4;
}

.natural-place-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.natural-place {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  display: block;
  color: var(--ui-text);
  background: var(--ui-surface-soft);
  cursor: pointer;
  text-align: left;
  transition: border-color .17s ease, transform .17s ease, background .17s ease;
}

.natural-place:hover,
.natural-place.is-selected {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ui-brand) 55%, var(--ui-border));
}

.natural-place.is-selected {
  background: color-mix(in srgb, var(--ui-brand) 7%, var(--ui-surface));
  box-shadow: inset 3px 0 var(--ui-brand);
}

.natural-place strong,
.natural-place span {
  display: block;
}

.natural-place strong {
  overflow: hidden;
  color: var(--ui-text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.natural-place span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ui-muted);
  font-size: 8px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.natural-preview-note {
  margin: 10px 1px 0;
  color: var(--ui-muted);
  font-size: 9px;
  line-height: 1.45;
}

.natural-preview-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.natural-secondary-action {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ui-border);
  border-radius: 9px;
  color: var(--ui-muted);
  background: var(--ui-surface);
  cursor: pointer;
  font: 700 10px "DM Sans", sans-serif;
}

.natural-primary-action {
  min-height: 36px;
}

.natural-planner.is-applied .natural-planner-preview {
  border-color: color-mix(in srgb, var(--ui-success) 35%, var(--ui-border));
}

@media (max-width: 900px) {
  .natural-preview-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .natural-place-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .natural-planner { padding: 15px; border-radius: 15px; }
  .natural-planner-copy > strong { font-size: 14px; }
  .natural-planner-form { grid-template-columns: 1fr; }
  .natural-planner-form > button { min-height: 42px; }
  .natural-planner-examples { align-items: flex-start; }
  .natural-planner-examples > span { width: 100%; }
  .natural-preview-heading { display: block; }
  .natural-review-badge { margin-top: 9px; }
  .natural-preview-fields,
  .natural-place-list { grid-template-columns: 1fr; }
  .natural-preview-actions { align-items: stretch; flex-direction: column-reverse; }
  .natural-preview-actions button { width: 100%; min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .natural-planner *, .natural-planner *::before, .natural-planner *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
