.place-editor-tabs { display:none; }
.place-editor-panel { display:contents; }
.place-editor-panel[hidden] { display:none !important; }
.place-editor-section-label { display:none; }
@media (max-width:768px), (max-height:500px) and (max-width:1024px) {
  html body #editModal.compact-place-editor {
    width:min(440px,calc(100vw - var(--pt-safe-left) - var(--pt-safe-right) - 24px)) !important;
    max-height:calc(var(--pt-viewport-height) - var(--pt-safe-top) - var(--pt-safe-bottom) - 24px) !important;
  }
  html body #editModal.compact-place-editor .card {
    padding:16px !important;
    max-height:calc(var(--pt-viewport-height) - var(--pt-safe-top) - var(--pt-safe-bottom) - 24px) !important;
    border-radius:20px !important;
  }
  html body #editModal.compact-place-editor .card > div:first-child {
    margin-bottom:8px !important; padding-bottom:8px !important;
  }
  html body #editModal.compact-place-editor h2 { font-size:17px !important; font-weight:600 !important; letter-spacing:-.4px !important; }
  html body #editModal.compact-place-editor .card > div:first-child button {
    width:32px !important; height:32px !important; min-height:32px !important;
    flex:0 0 32px !important; border-radius:50% !important; box-shadow:none !important;
  }
  html body #editModal.compact-place-editor .place-editor-tabs {
    display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr));
    gap:3px; padding:3px; margin:0 0 14px; border-radius:11px; background:#0c151d;
    flex:0 0 auto;
  }
  html body #editModal.compact-place-editor .place-editor-tabs button {
    display:block !important; min-width:0 !important; width:auto !important;
    min-height:36px !important; height:36px !important; padding:0 2px !important;
    margin:0 !important; border:0 !important; border-radius:8px !important;
    background:transparent !important; box-shadow:none !important;
    font-size:12px !important; font-weight:600 !important; color:#9aadb8 !important;
  }
  html body #editModal.compact-place-editor .place-editor-tabs button[aria-selected="true"] {
    background:#21333a !important; color:#5ce0ba !important;
  }
  html body #editModal.compact-place-editor :is(button,a):focus-visible { outline:2px solid #5ce0ba; outline-offset:2px; }
  html body #editModal.compact-place-editor .modal-content { padding:0 0 4px !important; gap:0 !important; }
  html body #editModal.compact-place-editor .place-editor-panel:not([hidden]) { display:grid; gap:14px; }
  html body #editModal.compact-place-editor .place-editor-section-label { display:block; margin:0 0 -6px; font-size:11px; color:#9aadb8; }
  html body #editModal.compact-place-editor label,
  html body #editModal.compact-place-editor .edit-primary-options > div > div:first-child,
  html body #editModal.compact-place-editor #placeEditorPanel-route > div > div:first-child {
    font-size:11px !important; font-weight:500 !important; letter-spacing:0 !important;
    text-transform:none !important; color:#9aadb8 !important;
  }
  html body #editModal.compact-place-editor .edit-primary-options { grid-template-columns:1fr !important; gap:8px !important; }
  html body #editModal.compact-place-editor :is(.edit-type-field,.edit-status-field) {
    display:grid; grid-template-columns:38px minmax(0,1fr); align-items:center; gap:8px;
  }
  html body #editModal.compact-place-editor :is(.edit-type-field,.edit-status-field) > div:first-child { margin:0 !important; }
  html body #editModal.compact-place-editor .option-group { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:5px !important; }
  html body #editModal.compact-place-editor .option-btn {
    height:32px !important; min-height:32px !important; padding:0 5px !important;
    font-size:11px !important; gap:4px !important; border-radius:8px !important;
    box-shadow:none !important; background:#182631 !important; transform:none !important;
  }
  html body #editModal.compact-place-editor .option-btn.selected { background:#173b3c !important; border:1px solid #39c7aa !important; }
  html body #editModal.compact-place-editor .option-btn svg { width:13px !important; height:13px !important; }
  html body #editModal.compact-place-editor #legacyTypeHint { grid-column:1 / -1; }
  html body #editModal.compact-place-editor :is(input,textarea) {
    font-size:16px !important; border-radius:9px !important; padding:8px 10px !important;
  }
  html body #editModal.compact-place-editor input:not([type="file"]) { height:42px !important; min-height:42px !important; min-width:0 !important; }
  html body #editModal.compact-place-editor #markerDescription { min-height:88px !important; }
  html body #editModal.compact-place-editor .editor-position-row { margin:0 !important; gap:6px; font-size:10px !important; }
  html body #editModal.compact-place-editor :is(.btn-small,.filter-btn,.add-btn,#wikilocGpxBtn) {
    width:auto !important; min-width:0 !important; height:auto !important; min-height:34px !important;
    padding:6px 10px !important; font-size:12px !important; font-weight:500 !important;
    border-radius:9px !important; box-shadow:none !important; gap:5px !important;
  }
  html body #editModal.compact-place-editor .modal-accordion { border-radius:9px !important; }
  html body #editModal.compact-place-editor .accordion-header { padding:10px !important; font-size:12px !important; }
  html body #editModal.compact-place-editor .accordion-body { padding:10px !important; }
  html body #editModal.compact-place-editor :is(#photoAccordion,#gpxAccordion,.visit-editor) {
    background:transparent !important; border:0 !important; padding:0 !important; overflow:visible !important;
  }
  html body #editModal.compact-place-editor :is(#photoAccordion,#gpxAccordion,.visit-editor) > summary { display:none !important; }
  html body #editModal.compact-place-editor :is(#photoAccordion,#gpxAccordion) > .accordion-body,
  html body #editModal.compact-place-editor .visit-editor > .visit-editor-body { padding:0 !important; margin:0 !important; }
  html body #editModal.compact-place-editor .photo-actions-row { display:grid !important; grid-template-columns:1fr !important; gap:12px !important; }
  html body #editModal.compact-place-editor #uploadPhotoBtn { justify-self:start; }
  html body #editModal.compact-place-editor .url-input-group { display:grid !important; grid-template-columns:minmax(0,1fr) auto; min-width:0 !important; gap:7px !important; }
  html body #editModal.compact-place-editor #markerImageUrlInput { grid-column:1 / -1; }
  html body #editModal.compact-place-editor #markerImageCaptionInput { width:100% !important; }
  html body #editModal.compact-place-editor .visit-editor-fields { grid-template-columns:1fr !important; }
  html body #editModal.compact-place-editor .modal-actions { margin-top:14px !important; padding-top:12px !important; gap:6px !important; flex-wrap:nowrap !important; }
  html body #editModal.compact-place-editor .modal-actions button { min-height:38px !important; padding:7px 12px !important; font-size:12px !important; }
  html body #editModal.compact-place-editor .modal-actions .add-btn { margin-left:auto !important; min-width:78px !important; background:#11a988 !important; font-weight:600 !important; }
  html body #editModal.compact-place-editor .modal-actions svg { width:14px !important; height:14px !important; }
}
