/* TOUR_CARDS_R1: original public cartolina styles, now shared. */

.ls-tour-cards #toursList.tours-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 18px;
    }
.ls-tour-cards .cartolina {
      position: relative;
      background: linear-gradient(180deg, var(--cartolina-cream) 0%, #fff8ea 100%);
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.6);
      box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 10px 26px rgba(60,40,20,0.12), 0 2px 6px rgba(60,40,20,0.08);
      transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s ease;
    }
.ls-tour-cards .cartolina:hover {
      transform: translateY(-4px);
      box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 18px 38px rgba(60,40,20,0.18), 0 4px 10px rgba(60,40,20,0.10);
    }
.ls-tour-cards .cartolina .cartolina-photo {
      position: relative;
      height: 150px;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;

      background-image:
        radial-gradient(circle at 80% 14%, rgba(255,255,255,0.85), transparent 30%),
        linear-gradient(180deg, #aee3f5 0%, #6fc6df 36%, var(--sea-blue) 70%, #1f9e9a 100%);
    }
.ls-tour-cards .cartolina .cartolina-photo--sea {
      background-image:
        radial-gradient(circle at 78% 16%, rgba(255,255,255,0.85), transparent 28%),
        linear-gradient(180deg, #aee3f5 0%, #6fc6df 34%, var(--sea-blue) 66%, #1f9e9a 100%);
    }
.ls-tour-cards .cartolina .cartolina-photo--mountain,
.ls-tour-cards .cartolina .cartolina-photo--alpine {
      background-image:
        radial-gradient(circle at 22% 16%, rgba(255,221,196,0.9), transparent 32%),
        linear-gradient(180deg, #ffd9c2 0%, #f7b58e 28%, #8aa0c8 60%, #4a5e8c 100%);
    }
.ls-tour-cards .cartolina .cartolina-photo--road,
.ls-tour-cards .cartolina .cartolina-photo--countryside {
      background-image:
        radial-gradient(circle at 80% 12%, rgba(255,247,214,0.95), transparent 30%),
        linear-gradient(180deg, #cfe8f2 0%, #f3e2a8 40%, #d9b65a 66%, #a8843a 100%);
    }
.ls-tour-cards .cartolina .cartolina-photo::after {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(180deg, transparent 52%, rgba(20,14,8,0.32) 100%);
      pointer-events: none;
    }
.ls-tour-cards .cartolina .photo-stamps {
      position: absolute;
      top: 10px; left: 12px; right: 12px;
      display: flex; align-items: center; gap: 7px;
      z-index: 2;
    }
.ls-tour-cards .cartolina .stamp {
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      font-size: 0.7rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 4px 9px;
      border-radius: 999px;
      background: rgba(255,255,255,0.9);
      color: var(--basalt);
      -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
      box-shadow: 0 2px 6px rgba(0,0,0,0.16);
      display: inline-flex; align-items: center; gap: 5px;
      max-width: 52%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
.ls-tour-cards .cartolina .stamp-flag { font-size: 0.9rem; }
.ls-tour-cards .cartolina .stamp-type { background: var(--sun); color: var(--basalt); }
.ls-tour-cards .cartolina .stamp-year { background: rgba(26,20,17,0.78); color: var(--sun-soft); font-family: 'Cinzel', serif; letter-spacing: 0.14em; }
.ls-tour-cards .cartolina .stamp-spacer { flex: 1; }
.ls-tour-cards .cartolina .cartolina-titlewrap {
      position: absolute;
      left: 14px; right: 14px; bottom: 11px;
      z-index: 2;
    }
.ls-tour-cards .cartolina .cartolina-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.7rem;
      letter-spacing: 0.04em;
      line-height: 1;
      color: #fff;
      text-shadow: 0 1px 8px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.5);
    }
.ls-tour-cards .cartolina .cartolina-body { padding: 13px 16px 15px; }
.ls-tour-cards .cartolina .cartolina-meta {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.76rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 9px;
    }
.ls-tour-cards .cartolina .cartolina-desc {
      font-family: 'Playfair Display', serif;
      font-style: italic;
      font-size: 0.95rem;
      line-height: 1.5;
      color: #4a3a2a;
      margin-bottom: 12px;
    }
.ls-tour-cards .cartolina .cartolina-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-bottom: 13px;
      min-height: 26px;
    }
.ls-tour-cards .cartolina .stat {
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      font-size: 0.78rem;
      letter-spacing: 0.04em;
      padding: 4px 10px 4px 8px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #fff;
      border: 1px solid var(--light-border);
      color: var(--basalt);
    }
.ls-tour-cards .cartolina .stat .ico { font-size: 0.85rem; }
.ls-tour-cards .cartolina .stat-hint { background: rgba(10,133,84,0.10); border-color: rgba(10,133,84,0.4); color: #0a6a44; text-transform: uppercase; }
.ls-tour-cards .cartolina .stat-warn { background: rgba(217,168,67,0.16); border-color: var(--saffron); color: #8a6a14; }
.ls-tour-cards .cartolina .stat-days { background: rgba(255,182,39,0.16); border-color: rgba(255,182,39,0.5); }
.ls-tour-cards .cartolina .stat-gpx { background: rgba(10,133,84,0.12); border-color: rgba(10,133,84,0.45); color: #0a6a44; }
.ls-tour-cards .cartolina .stat-km { background: rgba(46,156,202,0.12); border-color: rgba(46,156,202,0.45); color: #1c6a8c; }
.ls-tour-cards .cartolina .stat-up { background: rgba(255,111,89,0.12); border-color: rgba(255,111,89,0.45); color: #c0432f; }
.ls-tour-cards .cartolina .cartolina-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
.ls-tour-cards .cartolina .chip-btn {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 0.92rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      height: 34px;
      padding: 0 14px;
      border: none;
      border-radius: 9px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      line-height: 1;
      white-space: nowrap;
      text-decoration: none;
      transition: transform 0.18s cubic-bezier(.2,.7,.2,1), box-shadow 0.22s ease, filter 0.18s ease;
    }
.ls-tour-cards .cartolina .chip-btn:hover { transform: translateY(-1px); filter: brightness(1.05); text-decoration: none; }
.ls-tour-cards .cartolina .chip-btn:active { transform: translateY(0) scale(0.98); }
.ls-tour-cards .cartolina .chip-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.ls-tour-cards .cartolina .chip-btn .ico { font-size: 0.95rem; }
.ls-tour-cards .cartolina .chip-primary {
      flex: 1 1 auto;
      justify-content: center;
      background: linear-gradient(180deg, #e7773a 0%, var(--la-orange) 100%);
      color: #fff8ea;
      box-shadow: 0 3px 0 #a84d16, 0 4px 10px rgba(217,101,31,0.32);
    }
.ls-tour-cards .cartolina .chip-primary:hover { box-shadow: 0 4px 0 #a84d16, 0 7px 16px rgba(217,101,31,0.4); }
.ls-tour-cards .cartolina .chip-ghost {
      background: #fff;
      color: var(--basalt);
      border: 1.5px solid var(--light-border);
      box-shadow: 0 2px 0 rgba(45,33,26,0.08);
    }
.ls-tour-cards .cartolina .chip-ghost:hover { border-color: var(--green); color: var(--green); }
.ls-tour-cards .cartolina .chip-round {
      width: 34px;
      padding: 0;
      justify-content: center;
      background: #fff;
      border: 1.5px solid var(--light-border);
      color: var(--basalt);
      box-shadow: 0 2px 0 rgba(45,33,26,0.08);
    }
.ls-tour-cards .cartolina .chip-round:hover { border-color: var(--blue); color: var(--blue); }
.ls-tour-cards .cartolina .cartolina-days {
      margin-top: 11px;
      padding-top: 11px;
      border-top: 1px dashed var(--light-border);
    }
.ls-tour-cards .cartolina .days-toggle {
      width: 100%;
      background: none;
      border: none;
      cursor: pointer;
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      font-size: 0.82rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 3px 0;
    }
.ls-tour-cards .cartolina .days-toggle:hover { color: var(--la-orange); }
.ls-tour-cards .cartolina .days-toggle:disabled { opacity: 0.6; cursor: default; }
.ls-tour-cards .cartolina .days-toggle .chev { transition: transform 0.2s ease; }
.ls-tour-cards .cartolina .cartolina-days.open .days-toggle .chev { transform: rotate(180deg); }
.ls-tour-cards .cartolina .days-list {
      margin-top: 10px;
      flex-direction: column;
      gap: 8px;
    }
.ls-tour-cards .cartolina .tour-day-box {
      background: #fff;
      border: 1px solid var(--light-border);
      border-left: 4px solid var(--green);
      border-radius: 10px;
      padding: 11px 13px;
      box-shadow: 0 2px 6px rgba(60,40,20,0.06);
    }
.ls-tour-cards .cartolina .tour-day-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.ls-tour-cards .cartolina .tour-day-num {
      font-family: 'Cinzel', serif;
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--red);
      min-width: 30px;
      letter-spacing: 0.04em;
    }
.ls-tour-cards .cartolina .tour-day-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 800;
      font-size: 1.02rem;
      letter-spacing: 0.03em;
      color: var(--basalt);
    }
.ls-tour-cards .cartolina .tour-day-desc {
      font-family: 'Barlow', sans-serif;
      font-size: 0.84rem;
      line-height: 1.5;
      color: #5a4a3a;
      margin-bottom: 8px;
    }


    @media (max-width: 620px) {
.ls-tour-cards .cartolina .cartolina-photo { height: 134px; }
.ls-tour-cards .cartolina .cartolina-title { font-size: 1.5rem; }
    }


/* Each card owns its palette. Page-specific variables cannot turn its labels invisible. */
.ls-tour-cards .cartolina {--basalt:#1a1411;--cartolina-cream:#FFFCF4;--sea-blue:#36C2B4;--sun:#FFB627;--sun-soft:#FFE3A3;--saffron:#d9a843;--muted:#6b5e4c;--light-border:rgba(45,33,26,.18)}
.ls-tour-cards .cartolina-title {overflow-wrap:anywhere}
html[data-ls-theme="dark"] .ls-tour-cards .cartolina {background:#000;color:#fff;border-color:#444;--muted:#c5c5c5;--light-border:#444}
html[data-ls-theme="dark"] .ls-tour-cards .cartolina :is(.cartolina-desc,.tour-day-title,.tour-day-desc) {color:#fff}
html[data-ls-theme="dark"] .ls-tour-cards .cartolina :is(.stat,.tour-day-box,.chip-ghost,.chip-round) {background:#151515;color:#fff;border-color:#555}
.ls-tour-cards #tourBody.ls-trip-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:18px;align-items:start}
.ls-tour-cards #tourBody > .empty-state {grid-column:1/-1}
.ls-tour-cards .ls-own-tour {margin:0}
.ls-tour-cards .ls-own-tour + .ls-own-tour {margin:0}
.ls-tour-cards .ls-own-tour .ls-tour-cover.folder-image-button {position:absolute;inset:0;width:100%;height:100%;min-height:0;max-width:none;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;overflow:hidden}
.ls-tour-cards .ls-tour-cover > img {display:block;width:100%;height:100%;object-fit:cover}
.ls-tour-cards .ls-tour-cover > .ico {width:30px;height:30px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;opacity:.55}
.ls-tour-cards .ls-own-tour .cartolina-titlewrap,.ls-tour-cards .ls-own-tour .photo-stamps {pointer-events:none}
.ls-tour-cards .ls-own-tour .photo-stamps > .ls-tour-more {pointer-events:auto}
.ls-tour-cards .ls-tour-more {display:grid;place-items:center;flex-shrink:0;width:34px;height:30px;padding:0;border:1px solid #ffffff70;border-radius:8px;background:#1a1411ce;color:#fff;font:700 23px/1 system-ui;cursor:pointer}
.ls-tour-cards .ls-own-tour .cartolina-desc[data-desc-edit] {cursor:text;min-height:1.5em;white-space:pre-wrap;overflow-wrap:anywhere}
.ls-tour-cards .ls-own-tour .cartolina-desc:empty::before {content:'Leírás hozzáadása…';color:var(--muted)}
.ls-tour-cards .ls-own-tour .folder-desc-input {display:none;width:100%;margin-bottom:12px;min-height:90px;border:1px solid var(--light-border);border-radius:8px;padding:10px;background:var(--surface,#fff);color:var(--ink,#1a1a1a);font:inherit}
.ls-tour-cards .ls-own-tour .ls-own-days-list {margin:10px 0 0;padding:0;border:0;gap:10px;flex-direction:column}
.ls-tour-cards .ls-own-tour .ls-trip-day {margin:0;min-width:0}
.ls-tour-cards .ls-trip-day > .folder-header {margin:0;padding:0;gap:8px;align-items:center}
.ls-tour-cards .ls-trip-day .folder-info {min-width:0}
.ls-tour-cards .ls-trip-day .folder-name {white-space:normal;overflow-wrap:anywhere;text-overflow:clip;font-family:'Barlow Condensed',sans-serif;font-weight:800}
.ls-tour-cards .ls-trip-day .folder-meta {white-space:normal;line-height:1.4}
.ls-tour-cards .ls-trip-day > .folder-body {margin:10px 0 0;padding:0;border:0}
.ls-tour-cards .ls-trip-day .folder-desc-area {padding:0;background:transparent}
.ls-tour-cards .ls-trip-day .folder-desc-text {padding:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}
.ls-tour-cards .ls-trip-day .file-item {grid-template-columns:4px minmax(0,1fr) 30px;gap:8px}
.ls-tour-cards .ls-trip-day .file-main {grid-column:2;min-width:0}
.ls-tour-cards .ls-trip-day .file-stats {grid-column:2;grid-row:2;flex-wrap:wrap}
.ls-tour-cards .ls-trip-day .file-side {display:none}
.ls-tour-cards .ls-trip-day .file-menu-dot {grid-column:3;grid-row:1/span 2}
.ls-tour-cards .ls-trip-day .file-accent {grid-row:1/span 2}
.ls-tour-cards .ls-trip-day .file-name {white-space:normal;overflow-wrap:anywhere}
.ls-tour-cards .ls-trip-day-cover.folder-image-preview {display:block;width:100%;height:110px;padding:0;margin:0 0 10px;border:0;border-radius:6px;overflow:hidden;background:transparent;cursor:pointer}
.ls-tour-cards .ls-trip-day-cover[hidden] {display:none!important}
.ls-tour-cards .ls-trip-day-cover img {display:block;width:100%;height:100%;object-fit:cover}
.ls-tour-cards .ls-trip-day .add-row {flex-wrap:wrap;margin-top:10px}
.ls-tour-cards .ls-own-tour > .cartolina-body > .cartolina-actions {align-items:stretch}
.ls-tour-cards .ls-own-tour .chip-btn:focus-visible,.ls-tour-cards .ls-trip-day .folder-header:focus-visible {outline:2px solid var(--green);outline-offset:3px}
.ls-tour-cards .ls-trip-caption {font-size:.82rem;line-height:1.4;color:var(--muted);margin-bottom:12px}
.ls-tour-cards #viewGpx .panel {max-width:1100px;margin:0 auto}
.ls-tour-cards #viewPlans,.ls-tour-cards #viewGpx {display:none}
.ls-tour-cards.view-plans:not(.view-poi) #viewPlans,.ls-tour-cards.view-gpx #viewGpx {display:block}
.ls-tour-cards.view-gpx #viewPoi,.ls-tour-cards.view-poi #explorerRoot {display:none}
.ls-tour-cards:not(.view-plans) [data-trip-action="plans"],.ls-tour-cards.view-poi [data-trip-action="plans"],.ls-tour-cards:not(.view-gpx) [data-trip-action="gpx"] {display:none!important}
.ls-tour-cards:not(.view-poi) [data-trip-action="poi"] {display:none!important}
.ls-tour-cards .tabs {scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
.ls-tour-cards .gpx-library-list .file-item {border-bottom:1px solid var(--line)}
.ls-tour-cards .ls-gpx-origin {display:block;color:var(--muted);font-size:.75rem;margin-top:3px;overflow-wrap:anywhere}
#modalNewFolder .modal-box {max-height:calc(100dvh - 32px);overflow-y:auto}
#modalNewFolder label {display:block;font-weight:600;margin:10px 0 5px}
#modalNewFolder .ls-create-preview {margin:12px 0}
#modalNewFolder .ls-create-preview .cartolina {pointer-events:none}
#modalNewFolder .ls-create-preview :is(.cartolina-stats,.cartolina-actions,.cartolina-days,.cartolina-meta) {display:none}
#modalNewFolder .ls-create-preview .cartolina-body:empty {display:none}
#modalNewFolder .ls-create-preview .cartolina-photo {height:134px}
#modalNewFolder .ls-create-cover {width:100%;font:inherit}
#modalNewFolder .ls-create-description {width:100%;min-height:72px;resize:vertical}
#modalNewFolder .ls-create-status {font-size:.85rem;min-height:1.4em;margin-top:8px}
#lsGpxPicker {box-sizing:border-box;width:min(600px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:20px;border:1px solid var(--line-strong,#ccc);border-radius:14px;background:var(--surface,#fff);color:var(--ink,#111);font:16px/1.4 'Barlow',system-ui,sans-serif}
#lsGpxPicker::backdrop {background:#0008}
#lsGpxPicker h2 {margin:0;font-size:1.25rem;color:inherit}
#lsGpxPicker .ls-picker-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#lsGpxPicker .ls-picker-close {width:38px;height:38px;font:26px/1 system-ui;border:1px solid var(--line-strong,#ccc);border-radius:7px;background:transparent;color:inherit;cursor:pointer}
#lsGpxPicker input {width:100%;padding:10px;border:1px solid var(--line-strong,#ccc);border-radius:8px;background:var(--surface-2,#faf8f2);color:inherit;font:inherit;margin-bottom:12px}
#lsGpxPicker .ls-picker-note,#lsGpxPicker .ls-picker-status {margin:8px 0;font-size:.85rem;color:var(--muted,#666)}
#lsGpxPicker .ls-picker-results {display:grid;gap:8px;max-height:50dvh;overflow:auto}
#lsGpxPicker .ls-picker-row {display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:12px;border:1px solid var(--line-strong,#ccc);border-radius:8px;background:var(--surface-2,#faf8f2);color:inherit;font:inherit;cursor:pointer}
#lsGpxPicker .ls-picker-row small {display:block;color:var(--muted,#666);margin-top:4px}
#lsGpxPicker button:disabled {opacity:.6;cursor:wait}
@media(max-width:620px){.ls-tour-cards .wrap{padding-left:14px;padding-right:14px}.ls-tour-cards #tourBody.ls-trip-grid{grid-template-columns:minmax(0,1fr)}.ls-tour-cards .ls-own-tour .chip-btn{letter-spacing:.06em}.ls-tour-cards .ls-trip-day{padding:10px}.ls-tour-cards .ls-trip-day .file-item{padding-left:0;padding-right:0}}

/* TOUR_PREVIEW_EDIT_R1: preview outside the editor, explicit Save inside it. */
.ls-tour-cards .ls-own-tour .cartolina-photo > .ls-tour-more {position:absolute;left:12px;top:12px;z-index:4;pointer-events:auto}
.ls-tour-cards .ls-own-tour .photo-stamps {padding-left:46px}
.ls-tour-cards .ls-own-tour .cartolina-desc:empty::before {content:none}
.ls-tour-cards .ls-own-tour .cartolina-desc {white-space:pre-wrap;overflow-wrap:anywhere;cursor:default}
.ls-tour-cards .ls-own-tour .ls-trip-day-cover {cursor:default}
.ls-tour-editor {--edit-bg:#f7f3ec;--edit-fg:#241d15;--edit-field:#fff;--edit-border:#c9c0b2;position:fixed;inset:0;margin:auto;padding:0;width:min(760px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(860px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--edit-border);border-radius:18px;background:var(--edit-bg);color:var(--edit-fg);overflow:hidden;font-family:inherit;box-sizing:border-box}
html[data-ls-theme="dark"] .ls-tour-editor {--edit-bg:#101010;--edit-fg:#f5f5f5;--edit-field:#1d1d1d;--edit-border:#454545;color-scheme:dark}
.ls-tour-editor::backdrop {background:rgb(0 0 0 / .65)}
.ls-tour-editor > form {display:flex;flex-direction:column;height:100%;min-height:0;margin:0}
.ls-tour-editor-head {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--edit-border);flex:none}
.ls-tour-editor-head h2 {margin:0;font-size:1.4rem;color:inherit}
.ls-tour-editor-head > button {background:none;border:0;color:inherit;font-size:30px;width:44px;height:44px;cursor:pointer;flex:none}
.ls-tour-editor-body {overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:18px 20px;scroll-padding:20px}
.ls-tour-edit-section {padding:0 0 20px;margin:0 0 20px;border-bottom:1px solid var(--edit-border);min-width:0}
.ls-tour-edit-section h3 {margin:0 0 12px;font-size:1.1rem;color:inherit}
.ls-tour-label {display:block;font-size:.9rem;font-weight:600;margin:12px 0;color:inherit;min-width:0}
.ls-tour-field {display:block;width:100%;max-width:100%;box-sizing:border-box;margin-top:6px;padding:10px;border:1px solid var(--edit-border);border-radius:8px;background:var(--edit-field);color:var(--edit-fg);font:inherit;font-size:16px;min-height:44px}
.ls-tour-field[type="file"] {font-size:13px;overflow:hidden}
.ls-tour-edit-cover {display:block;width:100%;height:160px;object-fit:cover;border-radius:10px;margin:12px 0}
.ls-tour-edit-route {display:flex;align-items:center;gap:8px;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--edit-border);font-size:.9rem;min-width:0}
.ls-tour-edit-route span {min-width:0;overflow-wrap:anywhere}
.ls-tour-editor .chip-btn {min-height:44px;white-space:normal;cursor:pointer}
.ls-tour-editor .chip-ghost {color:var(--edit-fg);border:1px solid var(--edit-border);background:var(--edit-field)}
.ls-tour-editor .chip-primary {background:#007b3e;color:#fff;border:1px solid #007b3e}
.ls-tour-editor .ls-tour-delete {color:#d33;border:1px solid currentColor;background:transparent;display:block;margin-top:22px}
.ls-tour-editor-foot {border-top:1px solid var(--edit-border);padding:10px 20px max(12px,env(safe-area-inset-bottom));flex:none;background:var(--edit-bg)}
.ls-tour-editor-foot p {font-size:.85rem;line-height:1.4;margin:0 0 8px;overflow-wrap:anywhere}
.ls-tour-editor-foot p:empty {display:none}
.ls-tour-editor-foot > div {display:flex;justify-content:flex-end;gap:10px}
.ls-tour-editor-foot [data-editor-save] {min-width:112px}
.ls-tour-editor [disabled] {opacity:.6;cursor:wait}
.ls-tour-editor :focus-visible {outline:2px solid #0a9b5b;outline-offset:3px}
@media(max-width:620px){.ls-tour-editor {width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0}.ls-tour-editor-head,.ls-tour-editor-body {padding:12px 14px}.ls-tour-editor-foot {padding-left:14px;padding-right:14px}.ls-tour-edit-route {flex-wrap:wrap}.ls-tour-editor-foot .chip-btn {flex:1}}
.ls-tour-editor .chip-btn {border-radius:12px;padding:10px 14px;font-size:.88rem;font-weight:600;line-height:1.3;font-family:inherit;letter-spacing:0;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.ls-tour-editor .chip-btn:active {transform:translateY(1px)}
/* LS_MY_TOUR_COMPACT_R1: compact editor tools; import/save handlers stay shared. */
.ls-tour-editor input[type="file"][hidden],.ls-tour-edit-link[hidden] {display:none!important}
.ls-tour-edit-tools {display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.ls-tour-cover-tools {margin:10px 0 12px}
.ls-tour-gpx-tools {margin:12px 0 6px}
.ls-tour-tools-title {font-size:.9rem;font-weight:600;margin-right:6px}
.ls-tour-edit-tools .chip-btn {min-height:44px;padding:7px 10px;border-radius:6px;font-size:.85rem;white-space:nowrap}
.ls-tour-edit-tools .chip-btn[aria-expanded="true"] {border-color:var(--edit-fg)}
.ls-tour-edit-link {margin:6px 0 10px;padding:0 0 10px;border-bottom:1px solid var(--edit-border)}
.ls-tour-edit-link .ls-tour-label {margin:8px 0}
.ls-tour-edit-link > .chip-btn {padding:7px 10px;border-radius:6px}
.ls-tour-edit-cover {width:min(240px,100%);height:96px;border-radius:6px;margin:10px 0 6px}
.ls-tour-edit-routes:empty {display:none}
@media(max-width:479px){.ls-tour-tools-title {flex-basis:100%;margin:0 0 2px}.ls-tour-edit-section {padding-bottom:14px;margin-bottom:14px}}

