.fc-place-current { gap: 4px; flex-direction: column; align-items: flex-start !important; }
.fc-place-current span { color: var(--muted); font-size: 12px; }
.fc-result:has(.fc-result-list) { grid-template-columns: 1fr; }
.fc-result-list { display: grid !important; gap: 0; padding: 0 !important; overflow: hidden; background: #fff !important; color: #173640 !important; border: 1px solid var(--line); }
.fc-result-list header, .fc-result-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.fc-result-list header { background: #173640; color: #fff; }
.fc-result-list header span { color: #bfe8ef; }
.fc-result-list > div { border-top: 1px solid var(--line); }
.fc-result-list > div span { color: #405f69; text-transform: none; }
.fc-result-list > div strong { margin: 0; color: #173640; font-size: 13px; white-space: nowrap; }
@media (max-width: 600px) {
  .fc-result-list header, .fc-result-list > div { display: grid; }
  .fc-result-list > div strong { white-space: normal; }
}
.fc-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.35fr);
  gap: 18px;
}
.fc-layout > .panel {
  margin: 0;
}
.fc-calculator .form-grid {
  margin-top: 18px;
}
.fc-rate {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3fafb;
}
.fc-rate span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.fc-rate strong {
  color: #173640;
}
.fc-rate button {
  grid-column: 1/-1;
  justify-self: start;
}
.fc-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.fc-result > div {
  padding: 14px;
  border-radius: 12px;
  background: #173640;
  color: #fff;
}
.fc-result span {
  display: block;
  color: #bfe8ef;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.fc-result strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}
.fc-history {
  display: grid;
  gap: 14px;
  max-height: 720px;
  overflow: auto;
}
.fc-history-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.fc-history-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.fc-history-card h4 {
  margin: 2px 0 0;
  color: #173640;
  font-size: 18px;
}
.fc-history-folio {
  margin: 0;
  color: #a12f2a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.fc-history-date {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: right;
}
.fc-history-date svg {
  width: 15px;
}
.fc-history-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f4f8f9;
}
.fc-history-route > div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}
.fc-history-route svg {
  width: 18px;
  flex: 0 0 auto;
  color: #a12f2a;
}
.fc-history-route span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.fc-history-route strong {
  color: #294b55;
  font-size: 12px;
  line-height: 1.4;
}
.fc-history-route .fc-route-arrow {
  color: #7b979f;
}
.fc-history-data,
.fc-history-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.fc-history-data > div,
.fc-history-results > div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.fc-history-data strong {
  color: #294b55;
  font-size: 13px;
}
.fc-history-results > div {
  background: #173640;
  border-color: #173640;
}
.fc-history .fc-history-results small {
  color: #bfe8ef;
}
.fc-history-results strong {
  color: #fff;
  font-size: 16px;
}
.fc-history-results .featured {
  background: #a12f2a;
  border-color: #a12f2a;
}
.fc-history-actions {
  display: flex !important;
  justify-content: flex-end;
  gap: 7px !important;
  margin-top: 0;
}
.fc-history-actions .ghost-btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.fc-history-actions .fc-delete-btn {
  border-color: #e6b8b5;
  color: #8f2924;
}
.fc-history-actions .fc-delete-btn:hover {
  border-color: #a12f2a;
  background: #fff3f2;
}
.fc-cancel-edit {
  justify-self: start;
}
.fc-history span,
.fc-history small {
  color: var(--muted);
  font-size: 12px;
}
.fc-empty {
  padding: 24px;
}
.fc-place-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.fc-fixed-origin {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid #c8dfe4;
  border-radius: 12px;
  background: #f3fafb;
}
.fc-fixed-origin span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.fc-fixed-origin strong {
  color: #173640;
  font-size: 13px;
  line-height: 1.45;
}
.fc-place-field .ghost-btn {
  white-space: nowrap;
  grid-column: 1/-1;
}
.fc-place-current {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fafb;
  color: #526f78;
  grid-column: 1/-1;
}
.fc-place-current[hidden] {
  display: none;
}
.fc-place-current strong {
  color: #173640;
  font-size: 13px;
  line-height: 1.35;
}
.fc-place-field input {
  min-width: 0;
  width: 100%;
  cursor: pointer;
  background: #fff;
}
.fc-calculator .primary-btn span,
.fc-rate-panel .primary-btn span {
  color: #fff;
  opacity: 1;
}
.fc-calculator .primary-btn {
  background: #a12f2a;
  border-color: #a12f2a;
  color: #fff;
}
.fc-calculator .primary-btn:hover {
  background: #842620;
}
.fc-result:has(.fc-result-empty) {
  grid-template-columns: 1fr;
}
.fc-result-empty {
  display: flex !important;
  align-items: center;
  gap: 12px;
  background: #f3fafb !important;
  color: #173640 !important;
  border: 1px dashed #b9d5dc;
}
.fc-result-empty svg {
  color: #a12f2a;
  flex: 0 0 auto;
}
.fc-result-empty strong,
.fc-result-empty span {
  display: block;
  color: #173640;
  text-transform: none;
}
#fcForm .fc-result .fc-result-empty {
  background: #fff !important;
  color: #173640 !important;
}
#fcForm .fc-result .fc-result-empty strong {
  color: #173640 !important;
  opacity: 1 !important;
}
#fcForm .fc-result .fc-result-empty span {
  color: #405f69 !important;
  opacity: 1 !important;
}
#fcForm .fc-result .fc-result-empty > div {
  padding: 0;
  background: transparent;
  color: #173640;
}
.fc-result-empty span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.fc-map-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 31, 38, 0.7);
  backdrop-filter: blur(5px);
}
.fc-map-modal[hidden] {
  display: none;
}
.fc-map-panel {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}
.fc-place-autocomplete {
  margin: 16px 0;
}
.fc-map-search {
  position: relative;
  margin-top: 7px;
}
.fc-map-search input {
  width: 100%;
  padding-right: 42px;
}
.fc-map-search > svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.fc-map-suggestions {
  display: grid;
  gap: 6px;
  max-height: 220px;
  margin-top: 8px;
  overflow: auto;
}
.fc-map-suggestions p {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}
.fc-map-suggestions button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.fc-map-suggestions button:hover {
  border-color: #7eb8c3;
  background: #f3fafb;
}
.fc-map-suggestions button strong {
  color: #173640;
}
.fc-map-suggestions button span {
  color: var(--muted);
  font-size: 12px;
}
.fc-map-canvas {
  height: 350px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #edf4f5;
}
.fc-map-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.fc-map-tools small {
  color: var(--muted);
}
.fc-map-tools .active {
  border-color: #a12f2a;
  background: #fff3f2;
  color: #8f2924;
}
.fc-map-canvas [data-fc-map-view] {
  height: calc(100% - 50px);
}
.fc-map-canvas .placing-marker {
  cursor: crosshair;
}
.fc-map-canvas [data-fc-map-view] {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.fc-rate-panel {
  width: min(520px, 100%);
}
.fc-rate-panel label {
  display: grid;
  gap: 7px;
  margin: 18px 0;
}
.fc-place-selected {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f3fafb;
  color: var(--muted);
}
.fc-place-selected strong {
  color: #173640;
}
.fc-place-selected span {
  font-size: 12px;
}
@media (max-width: 980px) {
  .fc-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .fc-result {
    grid-template-columns: 1fr;
  }
  .fc-history-card header {
    flex-direction: column;
  }
  .fc-history-date {
    text-align: left;
  }
  .fc-history-route {
    grid-template-columns: 1fr;
  }
  .fc-history-route .fc-route-arrow {
    transform: rotate(90deg);
  }
  .fc-history-data,
  .fc-history-results {
    grid-template-columns: 1fr;
  }
  .fc-history-actions {
    justify-content: flex-start;
  }
  .fc-place-field {
    grid-template-columns: 1fr;
  }
  .fc-map-modal {
    padding: 8px;
  }
  .fc-map-panel {
    max-height: calc(100vh - 16px);
    padding: 16px;
  }
  .fc-map-canvas {
    height: 240px;
  }
  .fc-map-tools {
    align-items: flex-start;
    height: 72px;
    flex-direction: column;
  }
  .fc-map-canvas [data-fc-map-view] {
    height: calc(100% - 72px);
  }
}
