:root{--bg:#f4f6f8;--panel:#fff;--text:#17212b;--muted:#667085;--line:#e5e7eb;--accent:#173f6b;--s:#6d28d9;--a:#1565c0;--warn:#b54708}
*{box-sizing:border-box}html,body{width:100%;max-width:100%;height:100%;margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;color:var(--text);background:var(--bg);overflow-x:hidden}body{overflow:hidden;overscroll-behavior-x:none}
.app{height:100%;display:grid;grid-template-rows:auto 1fr}.topbar{background:#fff;border-bottom:1px solid var(--line);padding:10px 14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;z-index:1001}.title-wrap{min-width:280px}.title-line{display:flex;align-items:baseline;gap:7px;min-width:0;flex-wrap:wrap}.title{font-size:18px;font-weight:800}.maker-signature{font-size:9px;font-weight:600;color:#98a2b3;letter-spacing:.01em;white-space:nowrap;line-height:1}.subtitle{font-size:12px;color:var(--muted);margin-top:2px;line-height:1.45}.filters{display:flex;gap:7px;align-items:center;flex-wrap:wrap;flex:1}.filters select,.filters button,.filters input[type="date"]{border:1px solid #d0d5dd;background:#fff;border-radius:8px;padding:7px 9px;font-size:12px;color:var(--text);min-height:34px}.toggle{display:inline-flex;align-items:center;gap:5px;border:1px solid #d0d5dd;border-radius:8px;padding:7px 9px;background:#fff;font-size:12px;min-height:34px}.toggle input{margin:0}.count{font-size:12px;color:var(--muted);margin-left:auto;white-space:nowrap}.content{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 365px}#map{width:100%;height:100%;background:#dbe7ef}.panel{background:var(--panel);border-left:1px solid var(--line);padding:18px;overflow-y:auto;overflow-x:hidden;max-width:100%;overscroll-behavior-x:none}.empty{min-height:100%;display:flex;flex-direction:column;justify-content:center;color:var(--muted);line-height:1.6}.qa-box{margin-top:14px;border:1px solid var(--line);border-radius:10px;padding:12px;background:#fafafa;color:#475467;font-size:12px}.qa-title{font-weight:800;color:#344054;margin-bottom:7px}.pending-row{padding:6px 0;border-top:1px solid #eee}.pending-row:first-of-type{border-top:0}.pending-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.detail-sticky{position:sticky;top:-18px;z-index:20;margin:-18px -18px 0;padding:18px 18px 10px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.detail-close{border:0;background:#eef1f4;width:34px;height:34px;min-width:34px;padding:0;border-radius:50%;font-size:20px;line-height:34px;cursor:pointer;color:#344054}.event-title{font-size:21px;font-weight:850;line-height:1.25}.badges,.meta-badges{display:flex;gap:6px;flex-wrap:wrap}.badges{margin:10px 0 0}.meta-badges{margin:12px 0 16px}.badge{border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700;background:#eef2f6}.badge.s{background:#f1eaff;color:#5b21b6}.badge.a{background:#e7f0ff;color:#124f9c}.badge.warn{background:#fff3e8;color:var(--warn)}.badge.scale{background:#ecfdf3;color:#027a48}.subtle{color:#667085;font-size:12px}.scale-note{background:#f0f9ff;color:#0c4a6e}.info{border-top:1px solid var(--line)}.row{display:grid;grid-template-columns:94px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid #f0f1f3;font-size:13px;line-height:1.5}.row>div{min-width:0}.row>div:last-child,.event-title,.note,.pending-id{overflow-wrap:anywhere;word-break:break-word}.key{color:var(--muted)}.note{margin-top:14px;padding:11px;border-radius:10px;background:#fff8e8;font-size:12px;line-height:1.55;color:#7a4b00}.links{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.link{display:inline-block;text-decoration:none;background:var(--accent);color:#fff;padding:9px 12px;border-radius:8px;font-size:12px;font-weight:700}.link.secondary{background:#eef2f6;color:#344054}.marker{width:31px;height:31px;border-radius:50% 50% 50% 8px;transform:rotate(-45deg);display:flex;align-items:center;justify-content:center;border:2px solid white;box-shadow:0 2px 8px rgba(0,0,0,.28)}.marker span{transform:rotate(45deg);font-size:14px}.marker-default{background:#1565c0}.mobile-handle{display:none}.date-range{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;min-width:250px}.date-field{position:relative;display:block;min-width:0}.date-label{position:absolute;left:8px;top:3px;z-index:2;font-size:9px;line-height:1;color:var(--muted);pointer-events:none;white-space:nowrap}.date-field input[type="date"]{width:100%;min-width:0;padding:13px 6px 3px!important;line-height:1.1}.date-field.invalid input[type="date"]{border-color:#d92d20!important;box-shadow:0 0 0 1px #d92d20 inset}.date-field.invalid .date-label{color:#b42318}
.marker-cluster-small,.marker-cluster-medium,.marker-cluster-large{background-color:rgba(23,63,107,.20)}.marker-cluster-small div,.marker-cluster-medium div,.marker-cluster-large div{background-color:rgba(23,63,107,.78);color:white}
@media(max-width:980px){.content{grid-template-columns:minmax(0,1fr) 320px}.filters{width:100%;order:3}.count{margin-left:0}}
@media(max-width:760px){.leaflet-tooltip{display:none!important}body{overflow:hidden}.topbar{padding:9px 9px 7px;gap:7px;max-width:100%;overflow:hidden}.title-wrap{min-width:0;width:100%;max-width:100%}.title{font-size:16px}.subtitle{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.filters{width:100%;min-width:0;display:grid;grid-template-columns:auto auto minmax(0,1.35fr) minmax(0,.85fr);gap:6px;overflow:visible;padding-bottom:0}.filters>*{min-width:0;max-width:100%}.filters select,.filters button,.filters input[type="date"]{width:100%;padding:6px 7px;font-size:11px}.toggle{padding:6px 7px;font-size:11px;justify-content:center}#region{grid-column:1/3}#month{grid-column:3/5}#theme{grid-column:1/3}#scale{grid-column:3/5}.date-range{grid-column:1/5;width:100%;min-width:0;gap:6px}.date-label{left:6px;top:3px;font-size:8.5px}.date-field input[type="date"]{height:34px;padding:13px 4px 2px!important;font-size:10px!important}#resetBtn{grid-column:1/3}.count{grid-column:3/5;justify-self:end;align-self:center;margin-left:0;font-size:11px;white-space:nowrap}.content{display:block;position:relative;min-width:0;overflow:hidden}#map{position:absolute;inset:0}.panel{position:absolute;left:0;right:0;bottom:0;width:100%;max-width:100%;height:46%;min-height:220px;max-height:94%;border-left:0;border-top:1px solid var(--line);border-radius:18px 18px 0 0;box-shadow:0 -4px 18px rgba(0,0,0,.15);padding:6px 16px 18px;z-index:1100;transform:translateY(calc(100% - 28px));transition:transform .22s ease,height .20s ease;overflow-y:auto;overflow-x:hidden;touch-action:pan-y}.panel[data-sheet-state="compact"]{height:46%}.panel[data-sheet-state="medium"]{height:70%}.panel[data-sheet-state="full"]{height:94%}.panel.open{transform:translateY(0)}.panel.dragging{transition:none;user-select:none;-webkit-user-select:none}.mobile-handle{display:block;position:relative;width:100%;height:30px;margin:0 auto 2px;border:0;background:transparent;cursor:ns-resize;touch-action:none;outline:none}.mobile-handle::before{content:"";position:absolute;left:50%;top:9px;width:48px;height:6px;transform:translateX(-50%);border-radius:99px;background:#c7ccd1}.mobile-handle:focus-visible::before{box-shadow:0 0 0 3px rgba(23,63,107,.18)}.detail-close{width:44px;height:44px;min-width:44px;line-height:44px}.detail-sticky{top:-6px;margin:-6px -16px 0;padding:10px 16px 10px;max-width:100%;overflow:hidden}.empty{min-height:190px;justify-content:flex-start;padding-top:10px}.event-title{font-size:19px}.links{max-width:100%}}

/* v1.0.4 detail information architecture */
.content{grid-template-columns:minmax(0,1fr) 440px}
.event-region{margin-top:5px;color:#667085;font-size:13px}
.detail-section{margin-top:18px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}
.section-head h3{margin:0;font-size:14px;line-height:1.2;color:#243242}
.detail-section .info{border:1px solid var(--line);border-radius:12px;padding:0 12px;background:#fff}
.detail-section .info .row:last-child{border-bottom:0}
.program-section{border-top:1px solid #f2f4f7;padding-top:17px}
.program-block+.program-block{margin-top:12px}
.program-block-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;font-size:11px;font-weight:800;color:#475467}
.preview-rule{font-weight:600;color:#98a2b3;font-size:11px}
.program-preview-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.program-preview-list.compact{grid-template-columns:1fr}
.program-day-group+.program-day-group{margin-top:10px}
.program-day-heading{margin:2px 0 7px;padding:7px 9px;border-left:4px solid #173f6b;border-radius:7px;background:#f5f8fb;color:#173f6b;font-size:12.5px;font-weight:900;line-height:1.2}
.program-day-heading.full{margin:0;padding:8px 11px;border-left:0;border-radius:0;background:#eef4f9;font-size:12px}
.program-preview-item{border:1px solid #e4e7ec;border-radius:10px;padding:9px 10px;background:#fcfcfd;min-width:0}
.program-preview-title{font-size:13px;font-weight:800;line-height:1.3;color:#1d2939;overflow-wrap:anywhere}
.program-preview-meta{margin-top:4px;font-size:11.5px;line-height:1.4;color:#667085;overflow-wrap:anywhere}
.program-more{margin-top:10px;width:100%;border:1px solid #d0d5dd;background:#fff;border-radius:9px;padding:9px 10px;font-size:11.5px;font-weight:800;color:#344054;cursor:pointer}
.program-more:hover{background:#f9fafb}
.program-full{margin-top:9px;border:1px solid #e4e7ec;border-radius:11px;overflow:hidden}
.program-full-item{padding:10px 11px;border-top:1px solid #f0f1f3;background:#fff}
.program-full-item:first-child{border-top:0}
.program-full-main{display:flex;justify-content:space-between;gap:8px;font-size:12px;line-height:1.4}
.program-full-main span{flex:none;color:#667085;font-size:11.5px}
.program-full-sub{margin-top:3px;color:#667085;font-size:10.5px;line-height:1.4;overflow-wrap:anywhere}
.program-source{margin-top:5px;color:#667085;font-size:11px}
.program-source a{color:#475467;text-underline-offset:2px}
.empty-card{border:1px dashed #d0d5dd;border-radius:10px;padding:11px;color:#667085;font-size:11.5px;background:#fcfcfd}
.visit-card{border:1px solid #e4e7ec;border-radius:11px;padding:11px 12px;background:#fff;margin-top:8px}
.visit-card:first-of-type{margin-top:0}
.visit-card-title{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:850;color:#344054;margin-bottom:6px}
.visit-item{font-size:12px;line-height:1.55;color:#344054;overflow-wrap:anywhere}
.visit-item+.visit-item{border-top:1px dashed #e4e7ec;padding-top:8px;margin-top:8px}
.status-text{display:inline-block;margin-left:3px;color:#667085;font-size:11.5px}
.route-card{border:1px solid #d7e3ef;border-radius:12px;background:#f8fbff;padding:12px}
.route-primary{font-size:13px;font-weight:850;color:#173f6b}
.route-copy{margin-top:6px;font-size:11px;line-height:1.5;color:#475467}
.route-separate{display:flex;flex-direction:column;gap:3px;margin-top:9px;padding-top:9px;border-top:1px solid #e0eaf3;font-size:10.5px;color:#667085}
.route-separate b{color:#344054}
.route-reference{margin-top:8px;font-size:10px;color:#98a2b3}
.sources-section{padding-bottom:4px}
.sources-section .links{margin-top:10px}
@media(max-width:1100px) and (min-width:761px){.content{grid-template-columns:minmax(0,1fr) 385px}.program-preview-list{grid-template-columns:1fr}}
@media(max-width:760px){.content{display:block}.detail-section{margin-top:15px}.program-preview-list{grid-template-columns:1fr}.section-head{align-items:flex-start}.program-full-main{display:block}.program-full-main span{display:block;margin-top:2px}.route-card{padding:11px}}

/* v1.0.4 mobile full-sheet focus mode */
@media(max-width:760px){
  .app.mobile-sheet-full .topbar{padding-bottom:6px}
  .app.mobile-sheet-full .subtitle,.app.mobile-sheet-full .filters{display:none}
  .app.mobile-sheet-full .title-wrap{width:100%}
  .app.mobile-sheet-full .title{font-size:15px}
}


/* v1.0.4 compact filters + stable mobile detail interaction */
.filter-toggle{border:1px solid #d0d5dd;background:#fff;border-radius:8px;padding:7px 9px;font-size:12px;color:var(--text);min-height:34px;white-space:nowrap;cursor:pointer}
.filter-toggle[aria-pressed="true"]{border-color:#173f6b;background:#eef4f9;color:#173f6b;font-weight:800;box-shadow:0 0 0 1px rgba(23,63,107,.08) inset}
.badge.performer{background:#fff1f3;color:#9f1239}

@media(max-width:760px){
  .topbar{padding:7px 8px 6px;gap:5px}
  .title-wrap{margin-bottom:1px}
  .title{font-size:15px;line-height:1.2}
  .maker-signature{font-size:8.5px}.title-line{gap:5px}
  .subtitle{font-size:10px;line-height:1.25}
  .filters{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;width:100%;align-items:stretch}
  .filters select,.filters button,.filters input[type="date"]{min-height:32px;height:32px;padding:5px 5px;font-size:10px;border-radius:7px}
  #region{grid-column:1/3;grid-row:1}
  #month{grid-column:3/5;grid-row:1}
  #theme{grid-column:5/7;grid-row:1}
  #scale{grid-column:7/9;grid-row:1}
  .date-range{grid-column:1/5;grid-row:2;width:100%;min-width:0;gap:4px}
  .date-label{left:5px;top:2px;font-size:7.5px}
  .date-field input[type="date"]{height:32px;padding:11px 2px 1px!important;font-size:9px!important}
  #performerOnlyBtn{grid-column:5/7;grid-row:2;justify-self:stretch;width:100%;overflow:hidden;text-overflow:ellipsis}
  #resetBtn{grid-column:7/8;grid-row:2;width:100%;padding-left:2px;padding-right:2px}
  .count{grid-column:8/9;grid-row:2;justify-self:end;align-self:center;margin:0;font-size:9px;line-height:1.1;text-align:right;white-space:normal}
  .panel{padding-top:0}
  .mobile-handle{position:sticky;top:0;z-index:40;width:calc(100% + 32px);margin-left:-16px;margin-right:-16px;margin-bottom:0;background:var(--panel);border-radius:0}
  .detail-sticky{top:30px;z-index:30;width:calc(100% + 32px);max-width:none;margin:0 -16px 0;background:var(--panel);backdrop-filter:none;-webkit-backdrop-filter:none}
}


/* v1.1.4 inherits v1.1.3 responsive-card/space-efficiency CSS; card selection detail path is handled in app.js */
.view-shell{min-height:0;position:relative;overflow:hidden}
.view-shell>[hidden]{display:none!important}
.content{height:100%;position:relative}
.view-nav{display:flex;gap:6px;align-items:center}
.view-toggle{border:1px solid #d0d5dd;background:#fff;border-radius:8px;padding:7px 11px;min-height:34px;font-size:12px;font-weight:800;color:#344054;cursor:pointer;white-space:nowrap}
.view-toggle[aria-pressed="true"]{border-color:#173f6b;background:#173f6b;color:#fff}
.home-view{height:100%;overflow-y:auto;overscroll-behavior-y:contain;background:#f5f7fa}
.home-inner{width:min(1680px,calc(100% - 32px));margin:0 auto;padding:24px 0 36px}
.home-list{--home-card-height:200px;display:grid;grid-template-columns:1fr;gap:10px;align-items:stretch}
.home-card{appearance:none;width:100%;height:var(--home-card-height);min-height:var(--home-card-height);overflow:hidden;border:1px solid #e4e7ec;border-radius:14px;background:#fff;text-align:left;padding:14px;cursor:pointer;color:inherit;font:inherit;box-shadow:0 1px 2px rgba(16,24,40,.03);display:flex;flex-direction:column}
.home-card:hover{border-color:#b9c9d9;box-shadow:0 3px 10px rgba(16,24,40,.06)}
.home-card:focus-visible{outline:3px solid rgba(23,63,107,.18);outline-offset:1px}
.home-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.home-date{font-size:12px;font-weight:900;color:#173f6b;margin-bottom:5px;line-height:1.35;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.home-name{font-size:16px;font-weight:850;line-height:1.35;color:#1d2939;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.home-region{margin-top:4px;color:#667085;font-size:12px}
.home-badges{display:flex;justify-content:flex-end;gap:4px;flex-wrap:wrap;max-width:46%}
.home-badges .badge{font-size:10px;padding:4px 7px}
.home-preview{margin-top:4px}.home-program-line{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;min-height:42px;margin-top:3px;padding-top:5px;border-top:1px solid #f0f1f3;font-size:11.5px;line-height:1.5;color:#475467}.home-program-line.is-empty{visibility:hidden}
.home-program-line b{color:#344054}
.home-program-line span{min-width:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.home-empty{grid-column:1/-1;padding:32px;border:1px dashed #d0d5dd;border-radius:12px;background:#fff;color:#667085;text-align:center}
.official-unavailable{display:inline-flex;align-items:center;border:1px solid #e4e7ec;background:#f9fafb;color:#667085;padding:9px 12px;border-radius:8px;font-size:12px;font-weight:700}
@media(min-width:761px){.home-list{--home-card-height:214px;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1080px){.home-list{--home-card-height:210px;grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1500px){.home-list{--home-card-height:206px;grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:980px){.view-nav{order:2}.filters{order:3}}
@media(min-width:761px){
  .content:not(.detail-open){grid-template-columns:minmax(0,1fr)}
  .content:not(.detail-open) .panel{position:absolute;top:12px;right:12px;width:min(320px,calc(100% - 24px));max-height:calc(100% - 24px);border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 18px rgba(16,24,40,.12);padding:12px;background:rgba(255,255,255,.97);z-index:700;overflow:auto}
  .content:not(.detail-open) .empty{min-height:0;justify-content:flex-start}
  .content.detail-open{grid-template-columns:minmax(0,1fr) 440px}
}
@media(max-width:1100px) and (min-width:761px){
  .content.detail-open{grid-template-columns:minmax(0,1fr) 385px}
}
@media(max-width:760px){
  .app.home-mode body{overflow:hidden}
  .title-wrap{width:100%}
  .view-nav{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:4px}
  .view-toggle{height:32px;min-height:32px;padding:5px 7px;font-size:10.5px}
  .home-mode .topbar{padding-bottom:6px}
  .home-inner{width:calc(100% - 16px);padding:12px 0 24px}
  .home-list{grid-template-columns:1fr;gap:7px}
  .home-card{padding:12px;border-radius:11px;height:var(--home-card-height);min-height:var(--home-card-height)}
  .home-name{font-size:15px}
  .home-badges{max-width:42%}
  .home-program-line{grid-template-columns:78px minmax(0,1fr);font-size:11px;margin-top:3px;padding-top:5px}
  .app.mobile-sheet-full .view-nav{display:none}
}


/* v1.1.7 extends v1.1.6 semantic public UI + accessible controls */
.badge.scale.unclassified{background:#f2f4f7;color:#667085}
.scale-help-panel{flex:0 0 100%;width:100%;font-size:11px;color:#475467}
.scale-help-panel[hidden]{display:none!important}
.scale-help-box{width:min(520px,100%);padding:9px 11px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;line-height:1.55}
.date-error{grid-column:1/-1;color:#b42318;font-size:10.5px;line-height:1.35;padding:2px 3px 0}
.date-error[hidden]{display:none!important}
.program-sources{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;padding-top:9px;border-top:1px solid #f0f1f3;font-size:11px}
.program-sources a{color:#475467;text-underline-offset:2px}
@media(max-width:760px){
  .scale-help-panel{order:4;font-size:10.5px}
  .scale-help-box{width:100%;padding:8px 9px}
}


/* v1.3.0: 14-day categorical filters + transient help + visible selected marker */
.marker-selected{width:37px;height:37px;border-width:3px;box-shadow:0 0 0 5px rgba(23,63,107,.28),0 4px 12px rgba(0,0,0,.34);transform:rotate(-45deg) scale(1.08)}
.marker-selected span{font-size:16px}
@media(max-width:760px){
}


/* v1.3.1: consistent filter order + compact 14-day heading + cluster-safe selected overlay */
.selected-marker-pane{pointer-events:none}
@media(max-width:760px){
  .filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;width:100%;align-items:stretch;overflow:visible}
  .filters>*{min-width:0;max-width:100%}
  #region{grid-column:1/3;grid-row:1}
  #theme{grid-column:3/5;grid-row:1}
  #scale{grid-column:5/7;grid-row:1}
  #performerOnlyBtn{grid-column:1/4;grid-row:2;width:100%}
  #month{grid-column:4/7;grid-row:2}
  .date-range{grid-column:1/7;grid-row:3;width:100%;min-width:0;gap:5px}
  #resetBtn{grid-column:1/4;grid-row:4;width:100%}
  .count{grid-column:4/7;grid-row:4;justify-self:end;align-self:center;margin:0;font-size:10px;white-space:nowrap}
}


/* v1.3.2: one shared filter toolbar shell across 14-day/map modes */
.home-mode .filters{display:flex}
.filter-toolbar{display:flex;align-items:center;gap:7px;flex:1 1 760px;min-width:0;flex-wrap:nowrap}
.filter-toolbar>select{flex:0 1 142px;min-width:108px}
#performerOnlyBtn{flex:0 0 104px;white-space:nowrap}
.filter-toggle[aria-pressed="true"]{border-color:#173f6b;background:#eef4f9;color:#173f6b;font-weight:800;box-shadow:0 0 0 1px rgba(23,63,107,.08) inset}
.map-date-controls{display:flex;align-items:center;gap:7px;min-width:0;flex:0 1 382px}
.map-date-controls[hidden]{display:none!important}
#month{flex:0 1 116px;min-width:92px}
.map-date-controls .date-range{flex:1 1 250px;min-width:220px}
.filter-spacer{flex:1 1 auto;min-width:4px}
.filter-utility{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin-left:auto}
.filter-utility #resetBtn{min-width:68px}
.count{color:#475467;font-size:12px;font-weight:800;line-height:1.2;min-width:42px;text-align:right;margin:0;white-space:nowrap}
.home-inner{padding-top:12px}
.scale-help-panel{order:4}

/* v1.5.5: the map toolbar needs its full intrinsic control width;
   reflow before the result-count utility can leave the viewport. */
@media(max-width:1430px) and (min-width:761px){
  .filter-toolbar{width:100%;flex-basis:100%;order:3}
  .filter-toolbar>select{flex:1 1 130px}
  .map-date-controls{flex:1 1 360px}
}

@media(max-width:760px){
  .home-mode .filters,.filters.filter-toolbar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;width:100%;min-width:0;align-items:stretch;overflow:visible;padding-bottom:0;order:3}
  .filter-toolbar>*{min-width:0;max-width:100%}
  .filter-toolbar select,.filter-toolbar button,.filter-toolbar input[type="date"]{width:100%;height:32px;min-height:32px;padding:5px 6px;font-size:10px;border-radius:7px}
  #region{grid-column:1/3;grid-row:1}
  #theme{grid-column:3/5;grid-row:1}
  #scale{grid-column:5/7;grid-row:1}
  #performerOnlyBtn{grid-column:1/4;grid-row:2;width:100%;height:32px;min-height:32px}
  .map-date-controls,.filter-utility{display:contents}
  .map-date-controls[hidden]{display:none!important}
  #month{grid-column:4/7;grid-row:2;width:100%}
  .map-date-controls .date-range{grid-column:1/7;grid-row:3;width:100%;min-width:0;gap:5px}
  .filter-spacer{display:none}
  #resetBtn{grid-column:1/4;grid-row:4;width:100%}
  .count{grid-column:4/7;grid-row:4;justify-self:end;align-self:center;margin:0;font-size:11px;font-weight:800;white-space:nowrap;min-width:0}
  .home-mode #resetBtn{grid-row:3}
  .home-mode .count{grid-row:3}
  .home-inner{padding-top:8px}
  .scale-help-panel{grid-column:1/7;width:100%;order:4}
}

/* v1.3.2 QA refinement: desktop common-control dimensions stay invariant when map dates appear. */
@media(min-width:761px){
  .filter-toolbar{flex-wrap:wrap}
  .filter-toolbar>select{flex:0 0 120px;min-width:120px;width:120px}
  #performerOnlyBtn{flex:0 0 100px;width:100px}
  .map-date-controls{flex:0 0 305px;width:305px}
  #month{flex:0 0 88px;min-width:88px;width:88px}
  .map-date-controls .date-range{flex:0 0 210px;min-width:210px;width:210px}
  @media(max-width:1200px){
    .filter-toolbar{flex-wrap:wrap}
    .filter-toolbar>select{flex:0 0 120px}
    .map-date-controls{flex:0 0 305px}
  }
}
/* v1.3.17 confirmed transport fact rows: readable in 440px details and mobile sheets. */
.transport-card{padding:12px}
.transport-count{margin-left:auto;color:#475467;background:#f2f4f7;padding:2px 7px;border-radius:99px;font-size:10px;font-weight:750}
.transport-entry{padding:10px 0;border-top:1px solid #e9edf1;min-width:0}
.transport-entry:first-of-type{border-top:0}
.transport-entry[hidden]{display:none!important}
.transport-place{font-weight:800;color:#263748;font-size:12.5px;line-height:1.45;margin-bottom:3px;overflow-wrap:anywhere}
.transport-kv{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;padding:3px 0;font-size:11.8px;line-height:1.5;min-width:0}
.transport-key{color:#667085;font-weight:600;white-space:nowrap}
.transport-value{color:#344054;min-width:0;overflow-wrap:anywhere;word-break:break-word}
.transport-alert{color:#8d4b15;background:#fff8ef;border-left:3px solid #d97706;padding:7px 9px;margin:6px 0;border-radius:5px;font-size:11.7px;line-height:1.45;overflow-wrap:anywhere}
.transport-more{width:100%;border:1px solid #d0d5dd;background:#fff;color:#344054;font-size:11.5px;font-weight:800;border-radius:9px;padding:9px 10px;cursor:pointer;margin-top:9px}
.transport-more:hover{background:#f8fafc}
@media(max-width:760px){.transport-card{padding:10px}.transport-kv{grid-template-columns:62px minmax(0,1fr);gap:7px;font-size:11.5px}.transport-place{font-size:12px}.transport-alert{font-size:11px}}

/* v1.4.7: compact, responsive inline performer-to-festival navigation. */
.performer-roster-section{flex:0 0 100%;min-width:0;width:100%;max-width:100%;order:4}
.performer-roster-toggle{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;min-height:36px;border:1px solid #d0d5dd;background:#f8fafc;color:#173f6b;border-radius:9px;padding:8px 12px;font-size:12px;font-weight:750;cursor:pointer;text-align:left}
.performer-roster-toggle[aria-expanded="true"]{border-color:#b7cbe0;background:#eef4f9}
.performer-roster-body{margin-top:6px;max-height:min(46vh,390px);overflow-y:auto;overflow-x:hidden;border:1px solid #e0e6ec;border-radius:10px;background:#fff;padding:9px 12px;overscroll-behavior:contain}
.performer-roster-body[hidden]{display:none!important}
.performer-roster-group{padding:8px 0;border-bottom:1px solid #eff2f5;min-width:0}
.performer-roster-group:last-child{border-bottom:0}
.performer-roster-name{margin:0 0 6px;font-size:13px;font-weight:850;color:#263748;overflow-wrap:anywhere}
.performer-roster-events{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
.performer-roster-link{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;max-width:100%;border:1px solid #d5e0ea;border-radius:9px;background:#fff;color:#344054;padding:8px 10px;text-align:left;font-size:12px;cursor:pointer}
.performer-roster-link:hover,.performer-roster-link:focus-visible{border-color:#3a7fb6;background:#f3f8fc;outline-offset:2px}
.performer-roster-link b{overflow-wrap:anywhere;word-break:break-word}
.performer-roster-meta{font-size:11px;color:#667085;overflow-wrap:anywhere;word-break:break-word}
.performer-roster-empty{font-size:12px;color:#667085;padding:10px 2px}
@media(max-width:760px){.performer-roster-section{grid-column:1/-1;order:4}.performer-roster-toggle{min-height:34px;padding:7px 9px;font-size:11.5px}.performer-roster-body{max-height:35vh;padding:7px 9px}.performer-roster-events{display:block}.performer-roster-link{width:100%;margin-bottom:6px;padding:9px 10px}.performer-roster-name{font-size:12px}}

@media(max-width:760px){.app.mobile-sheet-full .performer-roster-section{display:none}}

/* v1.4.8: performer filter owns the compact roster; never reserve toolbar space while OFF. */
.performer-roster-section[hidden]{display:none!important}
.performer-roster-section{flex:0 0 100%;width:100%;max-width:100%;align-self:flex-start;order:4}
.performer-roster-toggle{min-height:32px;padding:6px 10px;font-size:11.5px;width:min(480px,100%)}
.performer-roster-body{max-height:min(22vh,144px);padding:5px 10px;width:min(480px,100%)}
.performer-roster-group{display:grid;grid-template-columns:minmax(82px,116px) minmax(0,1fr);gap:8px;align-items:start;padding:6px 0}
.performer-roster-name{margin:4px 0 0;font-size:12px}
.performer-roster-events{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
.performer-roster-link{padding:6px 8px;font-size:11.5px;width:100%}
.performer-roster-meta{font-size:10.5px}
@media(max-width:760px){
  .performer-roster-section{flex:0 0 100%;width:100%;max-width:100%}
  .performer-roster-body{max-height:min(18vh,128px);padding:6px 9px}
  .performer-roster-group{grid-template-columns:1fr;gap:4px;padding:6px 0}
  .performer-roster-name{margin:0;font-size:12px}
  .performer-roster-link{padding:8px 9px}
}

/* v1.4.9: anchor the existing inline roster to its filter, not a full-width row.
   Its own scrollport limits displacement of the existing cards/map. */
@media(min-width:761px){
  .performer-roster-section{
    flex:0 0 auto;
    width:min(400px,100%);
    max-width:400px;
    margin-left:var(--roster-anchor-offset,0px);
    order:5;
    align-self:flex-start;
  }
  .performer-roster-toggle{width:100%;min-height:30px;padding:5px 9px}
  .performer-roster-body{width:100%;max-height:88px;margin-top:4px;padding:4px 8px}
  .performer-roster-group{padding:4px 0;gap:6px}
  .performer-roster-link{padding:5px 7px}
}

/* v1.4.10 / user-approved B: three concise names then the existing single scrollport.
   Group details stay inside the roster; no second scrolling region or toolbar reflow. */
.performer-roster-body{max-height:116px;padding:4px 8px;scrollbar-gutter:stable}
.performer-roster-group{display:block;padding:0;border-bottom:1px solid #e9edf1}
.performer-roster-name-toggle{width:100%;min-height:34px;display:flex;align-items:center;gap:7px;padding:6px 4px;border:0;border-radius:5px;background:transparent;text-align:left;cursor:pointer;font-family:inherit;color:#263748}
.performer-roster-name-toggle:hover,.performer-roster-name-toggle:focus-visible{background:#f3f8fc;outline-offset:1px}
.performer-roster-name-text{flex:1;min-width:0;font-size:12px;font-weight:850;line-height:1.4;overflow-wrap:anywhere}
.performer-roster-count{flex:none;font-size:10px;font-weight:650;color:#667085;white-space:nowrap}
.performer-roster-chevron{flex:none;font-size:14px;color:#173f6b;line-height:1}
.performer-roster-events{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;padding:2px 3px 9px;min-width:0}
.performer-roster-events[hidden]{display:none!important}
.performer-roster-link{width:100%;min-width:0}
@media(min-width:761px){.performer-roster-body{max-height:116px;padding:4px 8px}.performer-roster-group{padding:0}.performer-roster-name-toggle{min-height:34px;padding:6px 4px}}
@media(max-width:760px){.performer-roster-body{max-height:116px;padding:4px 8px}.performer-roster-group{display:block;padding:0}.performer-roster-name-toggle{min-height:35px;padding:6px 4px}.performer-roster-events{display:grid;grid-template-columns:minmax(0,1fr)}.performer-roster-link{margin-bottom:0}}
