#compose-route, .rc-publish {
  min-height: 46px;
  padding: .6rem 1.1rem;
  border: 3px double #c1b795;
  border-radius: 2px;
  color: var(--paper);
  background: var(--green);
  font: 650 .94rem/1.25 var(--sans);
}
#compose-route:hover, .rc-publish:not(:disabled):hover { background: #254e43; color: white }
#route-composer {
  width: min(46rem, calc(100% - 2rem));
  max-width: 100%;
  max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 8px 40px #192e2840;
}
#route-composer::backdrop { background: #152d2580 }
.rc-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .3rem .4rem .3rem clamp(1rem, 3vw, 1.6rem);
  color: var(--paper);
  background: var(--green);
  border-bottom: 3px double #c3aa74;
}
.rc-head h2 { margin: 0; font: 500 clamp(1.4rem, 3.2vw, 1.8rem)/1.15 var(--serif) }
.rc-head h2:focus { outline: none }
.rc-close { display: grid; flex: none; place-items: center; height: 48px; width: 48px; padding: 0; border: 0; color: inherit }
.rc-close:is(:hover,:focus-visible) { background: #f8f4e822; color: white }
.rc-close:focus-visible { outline-color: var(--paper); outline-offset: -3px }
.rc-form { padding: clamp(1rem, 3vw, 1.6rem) }
.rc-intro { color: var(--sub); font-size: .92rem; max-width: 64ch }
.rc-fold { display: grid; gap: 1.25rem; margin: 1.4rem 0 }
.rc-fold section { min-width: 0 }
.rc-fold h3 { font: 500 1.35rem/1.25 var(--serif); color: var(--green); padding-bottom: .35rem; border-bottom: 1px solid var(--rule) }
.rc-form label { display: block; margin: .85rem 0 .3rem; font: 650 .9rem/1.3 var(--sans) }
.rc-form label small { font: inherit; font-weight: 400; color: var(--sub) }
.rc-form :is(input,textarea,select) { min-width: 0; max-width: 100%; scroll-margin-top: 4.5rem; font: 1rem/1.4 var(--sans) }
.rc-form :is(input:not([type=range]),textarea,select) { display: block; width: 100%; min-height: 46px; padding: .6rem; border: 1px solid #838879; border-radius: 2px; color: var(--ink); background-color: #fffdf5 }
.rc-form textarea { resize: vertical; min-height: 6rem }
.rc-form input[type=time] { width: 10rem }
.rc-hint { margin: .5rem 0; font: .82rem/1.45 var(--sans); color: var(--sub) }
.rc-map { display: block; width: 100%; height: auto; border-block: 1px solid #9aa791; background: #e4eadd; cursor: crosshair; touch-action: manipulation }
.rc-map text { fill: var(--green); font: 15px var(--serif) }
.rc-map polyline { fill: none; stroke: var(--green); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke }
.rc-map circle { stroke: var(--green); fill: var(--paper); stroke-width: 1.3; vector-effect: non-scaling-stroke }
.rc-map .rc-pin { stroke: white; fill: var(--ox); stroke-width: 2 }
.rc-form input[type=range] { display: block; width: 100%; height: 44px; margin: -.15rem 0; accent-color: var(--green); cursor: pointer }
.rc-address { font: 1rem/1.4 var(--serif); color: var(--green) }
.rc-actions { display: flex; justify-content: flex-end; gap: .75rem; align-items: center; padding-top: .85rem; border-top: 3px double var(--rule) }
.rc-actions button, .rc-retry { min-height: 46px }
.rc-publish:disabled { opacity: .55; cursor: not-allowed }
.rc-cancel, .rc-retry { padding: .5rem .8rem; color: var(--green); border: 0; font-weight: 600; text-decoration: underline; text-underline-offset: .2em }
@media (min-width: 700px) {
  .rc-fold { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.6rem }
  .rc-fold section + section { padding-left: 1.6rem; border-left: 1px dashed var(--rule) }
}
@media (max-width: 699px) {
  #route-composer { width: 100%; max-height: calc(100dvh - max(8px, env(safe-area-inset-top))); margin: auto 0 0; border-radius: 9px 9px 0 0; padding-bottom: env(safe-area-inset-bottom) }
  .rc-head, .rc-form { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)) }
}
