/* スクショ演出スタジオ — local creative workspace */
:root{color-scheme:light;--paper:#f8f7f4;--surface:#fff;--soft:#eeeee8;--line:#dedfd6;--ink:#303b37;--muted:#68736c;--accent:#a94e3c;--accent-soft:#f5e7e1;--gold:#b59a60;--font:'Yu Gothic UI','Hiragino Sans',Meiryo,sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{background:var(--paper);color:var(--ink);font:13px/1.65 var(--font);-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}button,select{cursor:pointer}button,select,input{outline-offset:3px}:focus-visible{outline:2px solid var(--accent)}button:disabled{opacity:.4;cursor:not-allowed}h1,h2,h3,p{margin:0}[hidden],.hidden{display:none!important}button{transition:background .16s,border-color .16s,box-shadow .16s}a{color:var(--accent)}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:#c6cbc1;border-radius:10px;border:2px solid var(--paper)}
.app-shell{height:100dvh;display:flex;flex-direction:column}.btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:37px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:7px 13px;font-size:12px;font-weight:500;white-space:nowrap}.btn:hover{background:#f1f1eb;border-color:#b6beb2}.btn-primary,.btn-export-accent{color:#fff;background:var(--accent);border-color:var(--accent)}.btn-primary:hover,.btn-export-accent:hover{background:#8e3e2f;border-color:#8e3e2f}.btn-ghost{background:transparent;border-color:transparent}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8d9e78;flex-shrink:0}
.workspace{display:grid;grid-template-columns:280px minmax(0,1fr) 330px;min-height:0;flex:1}.panel{overflow:auto;min-height:0;background:var(--paper);scrollbar-gutter:stable}.panel-left{border-right:1px solid var(--line)}.panel-right{border-left:1px solid var(--line);scroll-padding-top:56px}.panel-section{padding:22px 19px;border-bottom:1px solid var(--line)}.section-header{display:flex;align-items:center;gap:9px;margin-bottom:16px}.section-step{display:inline-grid;place-items:center;width:23px;height:23px;border:1px solid #ddc9bf;border-radius:6px;color:var(--accent);font:11px Georgia,serif;flex-shrink:0}.section-title{font-size:13px;font-weight:600}.section-note{color:var(--muted);font-size:11px;line-height:1.85;margin:-5px 0 17px}.source-card{padding:13px;border:1px dashed #bcc3b6;border-radius:9px;background:#f0f1e9;display:flex;flex-direction:column;gap:4px}.eyebrow{font-size:9px;letter-spacing:.18em;color:var(--muted);font-weight:600}.source-card strong{font-weight:600;font-size:12px;overflow-wrap:anywhere}#sourceDimensions,.source-card small{font-size:10px;color:var(--muted)}.btn-source{width:100%;margin-top:8px;justify-content:space-between;padding:7px 10px}.sample-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-items:start;gap:8px 12px;margin:11px 0 22px}.btn-link{padding:0;border:0;background:transparent;color:var(--accent);font-size:11px;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
.control-group{margin:0 0 19px;min-width:0}.control-label{display:block;font-size:11px;font-weight:500;margin-bottom:7px}.control-select,.control-input,.anno-item-controls select{width:100%;min-width:0;border:1px solid var(--line);border-radius:6px;background:#fff;padding:8px 9px;font-size:11px;line-height:1.6}select:hover,input[type=text]:hover{border-color:#aab6a4}.resolution-readout{font-size:10px;color:var(--muted);margin-top:5px;font-variant-numeric:tabular-nums}.segmented-control{display:flex;gap:3px;padding:3px;background:#eaece4;border:1px solid var(--line);border-radius:7px}.seg-btn{flex:1;padding:6px 3px;font-size:11px;background:transparent;border:1px solid transparent;border-radius:5px;color:var(--muted)}.seg-btn.active{border-color:#d8dcd1;background:#fff;color:var(--ink);box-shadow:0 1px 4px #29372d0d}.slider-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:11px}.slider-val{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
input[type=range]{--progress:50%;appearance:none;width:100%;height:22px;margin:0;background:transparent;cursor:pointer;min-width:0}input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:8px;background:linear-gradient(to right,var(--gold) var(--progress),#dde1d5 var(--progress))}input[type=range]::-webkit-slider-thumb{appearance:none;width:15px;height:15px;margin-top:-5.5px;border:2px solid var(--gold);border-radius:50%;background:#fff;box-shadow:0 1px 3px #29362b25}input[type=range]::-moz-range-track{height:4px;border-radius:8px;background:#dde1d5}input[type=range]::-moz-range-progress{background:var(--gold);height:4px}input[type=range]::-moz-range-thumb{width:12px;height:12px;border:2px solid var(--gold);border-radius:50%;background:#fff}input[type=checkbox]{accent-color:var(--accent);width:14px;height:14px}.dual-slider-row,.control-row-2col,.citation-subcontrols{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}.control-row-2col .slider-header{display:block}.control-row-2col .slider-val{display:block;margin-top:3px}.citation-subcontrols{grid-template-columns:1fr;gap:6px;margin-top:7px}.inline-control{display:flex;justify-content:space-between;align-items:center;font-size:12px}.color-picker{width:40px;height:32px;padding:2px;background:#fff;border:1px solid var(--line);border-radius:5px}.phase-dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:7px}.dot-intro{background:#8c9b84}.dot-popup{background:#b48567}.dot-action{background:#bda456}.dot-outro{background:#849d9d}
.center-stage{min-width:0;min-height:0;overflow:auto;padding:25px 26px 19px;background:#eeeee9}.stage-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.stage-heading h1{font-size:21px;font-weight:600;letter-spacing:.06em;margin-top:5px}.stage-heading p{color:var(--muted);font-size:11px;margin-top:6px}.demo-tag{font-size:10px;border:1px solid #d8dbd0;padding:5px 10px;border-radius:5px;color:var(--muted);white-space:nowrap}.tool-ribbon{margin-bottom:16px}.tool-mode-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,194px);gap:8px}.tool-mode-btn{display:flex;align-items:center;gap:10px;text-align:left;padding:12px 13px;border:1px solid #d4d9cc;border-radius:8px;background:#f8f8f5;min-width:0}.tool-mode-btn:hover{border-color:#a5b19d;background:#fff}.tool-mode-btn.active{border-color:var(--accent);background:#fcf6f1;box-shadow:0 0 0 1px #a94e3c09}.tool-mode-btn.active .tool-icon{color:var(--accent)}.tool-icon{font:24px Georgia,serif;color:#73816a}.tool-btn-text{min-width:0}.tool-btn-text strong{display:block;font-size:12px;font-weight:600}.tool-btn-text small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.tool-suboptions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}.subopt-panel{display:flex;flex-wrap:wrap;align-items:center;gap:9px 14px;flex:1}.subopt-item{display:flex;align-items:center;gap:6px;min-width:0}.subopt-item label{font-size:10px;color:var(--muted);white-space:nowrap}.subopt-item select{width:auto;max-width:200px;padding:5px 7px;font-size:10px}.subopt-item input[type=range]{width:62px}.subopt-val{font-size:10px;font-variant-numeric:tabular-nums}.subopt-hint{width:100%;font-size:10px;color:var(--muted)}.guide-toggle-wrap{margin-left:auto}.checkbox-label{display:inline-flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap;cursor:pointer}
.preview-shell{background:#252e2a;border:1px solid #35413a;border-radius:11px;overflow:hidden;box-shadow:0 8px 18px #303b3712}.preview-toolbar,.preview-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;color:#c2cbbd;font-size:10px}.preview-toolbar{border-bottom:1px solid #3d483f}.preview-toolbar>span:first-child{display:flex;gap:7px;align-items:center}.preview-toolbar .status-dot{background:#cbcf9e}.canvas-viewport{position:relative;padding:21px;display:grid;place-items:center;background:radial-gradient(ellipse at top,#3c463d,#242c28);min-width:0}.canvas-container{width:100%;display:grid;place-items:center;min-width:0}#previewCanvas{display:block;max-width:100%;height:auto;max-height:58dvh;object-fit:contain;box-shadow:0 8px 20px #1119;cursor:crosshair;touch-action:none}.preview-footer{border-top:1px solid #3d483f;font-size:9px;color:#b2bfb1}.drop-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#253c32e8;color:#fff;z-index:20;pointer-events:none}.drop-overlay-box{padding:28px;text-align:center;border:1px dashed #aebb9e;border-radius:12px;margin:16px}.drop-icon{font-size:35px}.drop-overlay p{margin-top:10px}
.timeline-bar{margin-top:15px;display:flex;flex-wrap:wrap;align-items:center;gap:13px;padding:12px 14px;background:#f8f8f4;border:1px solid #d9ddd1;border-radius:9px}.playback-controls{display:flex;align-items:center;gap:5px}.btn-icon{width:28px;height:30px;border:0;border-radius:6px;background:transparent;color:var(--muted)}.btn-icon:hover{background:#e7e9df}.btn-play{background:#39463c;color:#fff;border:0;border-radius:6px;min-height:31px;padding:5px 10px;font-size:11px}.btn-play:hover{background:#53634e}.loop-toggle{margin-left:5px}.timeline-track-area{flex:1;min-width:150px}.phase-bar{display:flex;height:17px;overflow:hidden;border-radius:4px}.phase-seg{overflow:hidden;white-space:nowrap;text-align:center;font-size:8px;color:#fff}.seg-intro{background:#76886c}.seg-popup{background:#ac7b5d}.seg-action{background:#a18b4d}.seg-outro{background:#6c8784}.timeline-scrubber{display:block;height:18px!important}.timecode-box{color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}.timecode-sep{margin:0 3px}.progress-pct{display:none}.workflow-note{display:flex;align-items:center;justify-content:center;gap:9px;font-size:11px;margin:29px 0 14px;color:#53604e}.workflow-number{font:italic 13px Georgia,serif;color:#967751}.workflow-arrow{color:#a4ae9e;margin:0 8px}kbd{font:9px var(--font);background:#f8f8f4;border:1px solid #dadfd0;border-radius:3px;padding:2px 4px}
.inspector-tabs{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:13px 19px 0;position:sticky;top:0;z-index:2;background:var(--paper);border-bottom:1px solid var(--line)}.inspector-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);padding:11px 5px;font-size:12px}.inspector-tabs button[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent)}.count-pill{margin-left:auto;color:var(--muted);background:#e8ebe3;border-radius:5px;font-size:10px;padding:1px 7px}.edit-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:18px}.edit-actions .btn{font-size:10px;padding:6px;min-height:32px}.annotation-list{display:grid;gap:10px}.anno-item{padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff;min-width:0;cursor:pointer}.anno-item.selected{border-color:var(--accent);background:#fdf9f5;box-shadow:0 0 0 1px #a94e3c0c}.anno-item-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:11px}.anno-select{border:0;background:transparent;display:flex;align-items:center;gap:6px;padding:0;text-align:left}.anno-index{color:var(--muted);font-size:10px}.anno-badge{font-size:10px;font-weight:600;border-radius:4px;padding:2px 6px}.badge-popup{background:#e9ede3;color:#576b4a}.badge-highlight{background:#f5edcb;color:#856c2c}.badge-redact{background:#eeebf1;color:#786381}.anno-coords{display:none}.anno-actions{margin-left:auto;display:flex;gap:2px}.btn-mini{border:0;border-radius:4px;width:23px;height:25px;background:transparent;color:var(--muted);font-size:12px}.btn-mini:hover{background:#eceee6}.btn-mini-danger:hover{background:#f7e2dd;color:#9b4032}.anno-item-controls{display:grid;grid-template-columns:1fr;gap:8px}.anno-field{display:grid;grid-template-columns:44px minmax(0,1fr);gap:5px;align-items:center;font-size:10px;color:var(--muted)}.anno-item-controls select{padding:6px 7px;font-size:11px;color:var(--ink)}.empty-list-state{padding:23px 14px;text-align:center;color:var(--muted);border:1px dashed #c7cebf;border-radius:9px;font-size:12px;line-height:1.9}.inspector-foot{padding:20px;color:var(--muted);font-size:11px}.inspector-foot p{margin-bottom:15px}.btn-danger-ghost{color:#9c5548;background:transparent;border-color:#e2d3cb;font-size:11px}.btn-danger-ghost:hover{background:#f5e7e1;border-color:#cbb0a6}

/* Expandable export options */
.export-cards {
  display:grid;
  gap:10px;
  align-items:start;
}
.export-card {
  min-width:0;
  border:1px solid var(--line);
  border-radius:9px;
}
.export-card[open] { border-color:#8b95a5; }
.export-card-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-radius:8px;
  list-style:none;
  cursor:pointer;
}
.export-card-head::-webkit-details-marker { display:none; }
.export-card-head:hover { background:rgba(255,255,255,.05); }
.export-card-head:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }
.export-head-text { display:grid; justify-items:start; gap:5px; min-width:0; }
.export-purpose { font-size:14px; font-weight:700; line-height:1.4; color:var(--ink); overflow-wrap:anywhere; text-wrap:balance; }
.export-card-head .export-tag { font-size:10px; font-weight:650; }
.export-card-head::after {
  content:"";
  width:7px;
  height:7px;
  flex:none;
  margin-right:3px;
  border:solid var(--muted);
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
  transition:transform .18s ease;
}
.export-card[open] > .export-card-head::after { transform:rotate(225deg); border-color:var(--accent); }
@media (prefers-reduced-motion:reduce) { .export-card-head::after { transition:none; } }
.export-card-body { padding:13px 14px 15px; border-top:1px solid var(--line); }
.export-card-body > h4 { margin:12px 0 6px; font-size:12px; }
.export-card-body .btn { white-space:normal; overflow-wrap:anywhere; }
.export-card-body select { min-width:0; max-width:100%; }
.export-tag{font-size:9px;border-radius:4px;padding:2px 6px;background:#eceee6;color:#67745e}.tag-trpg{background:#f5e7e1;color:var(--accent)}.export-desc{font-size:11px;color:var(--muted);margin-bottom:14px;line-height:1.9;overflow-wrap:anywhere}.export-desc code{font-size:10px}.btn-export,.btn-export-secondary{width:100%;font-size:11px}.btn-export-secondary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-export-secondary:hover{background:#8e3e2f;border-color:#8e3e2f}.apng-settings-row{display:grid;gap:6px;font-size:11px;margin:12px 0}.apng-size-box{padding:10px;background:#f1f3ec;border-radius:6px;margin:12px 0}.apng-size-info{display:flex;flex-direction:column;gap:2px;font-size:10px;color:var(--muted)}.size-value{font-size:12px;color:var(--ink);font-weight:500}.apng-badge-row{display:flex;flex-wrap:wrap;gap:5px 10px;align-items:center;margin-top:7px}.size-badge{font-size:9px}.badge-ok{color:#526c43}.badge-warn{color:#965a32}.export-status{border:1px solid #b6c3a9;background:#eff3e9;padding:12px;border-radius:8px;margin-bottom:15px;font-size:11px}.export-status-row{display:flex;justify-content:space-between;gap:8px}.progress-bar-bg{background:#d9e1ce;height:4px;border-radius:3px;margin-top:9px;overflow:hidden}.progress-bar-fill{height:100%;width:0;background:#74875e;transition:width .15s}
.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);padding:12px 20px;background:#303d33;color:#fff;box-shadow:0 8px 24px #17242130;border-radius:9px;font-size:12px;z-index:30}dialog{width:740px;max-width:calc(100% - 32px);max-height:calc(100dvh - 40px);padding:0;background:var(--paper);color:var(--ink);border:1px solid #dddcd4;border-radius:15px;box-shadow:0 28px 80px #17242144}dialog::backdrop{background:#28322c77;backdrop-filter:blur(4px)}.dialog-head{padding:25px 28px 20px;display:flex;justify-content:space-between;gap:12px}.dialog-head h2{font-size:23px;margin-top:7px;font-weight:600}.guide-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:0 28px}.guide-steps article{background:#fff;border:1px solid var(--line);border-radius:9px;padding:18px}.guide-steps article>span{font-size:10px;color:var(--accent);letter-spacing:.08em}.guide-steps h3{font-size:13px;margin:12px 0 7px}.guide-steps p{font-size:12px;color:var(--muted);line-height:1.9}.guide-note{padding:20px 28px;font-size:12px;color:var(--muted)}.dialog-foot{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 28px;border-top:1px solid var(--line);background:#efefe8;font-size:11px;color:var(--muted)}
@media(min-width:1750px){.workspace{grid-template-columns:300px minmax(0,1fr) 350px}.center-stage{padding:30px 36px}}
@media(max-width:1300px){.workspace{grid-template-columns:246px minmax(0,1fr) 296px}.center-stage{padding:22px 18px}.panel-section{padding:19px 15px}.tool-mode-btn{padding:10px 8px;gap:7px}.tool-btn-text small{display:none}.tool-icon{font-size:21px}.stage-heading h1{font-size:18px}.demo-tag{display:none}.canvas-viewport{padding:14px}.workflow-note{gap:6px;font-size:10px}.workflow-arrow{margin:0 3px}.timecode-box{margin-left:auto}.preview-footer span:last-child{display:none}}
@media(max-width:1050px){.app-shell{height:auto;min-height:100dvh}.workspace{grid-template-columns:250px minmax(0,1fr);flex:auto}.panel-left{grid-row:1 / 3}.panel-right{grid-column:2;border-top:1px solid var(--line);border-left:0}.center-stage{overflow:visible}.panel{overflow:visible}.annotation-list{grid-template-columns:repeat(2,minmax(0,1fr))}.export-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}.inspector-tabs{position:static}}
@media(max-width:700px){.workspace{display:flex;flex-direction:column}.center-stage{order:-1;padding:22px 15px}.panel-left{border:0}.panel-right{border-top:1px solid var(--line)}.stage-heading{margin-bottom:18px}.stage-heading h1{font-size:19px}.tool-btn-text strong{font-size:11px}.tool-mode-btn{gap:5px;padding:10px 7px}.tool-icon{font-size:20px}.subopt-item select{max-width:190px}.subopt-panel{gap:9px}.canvas-viewport{padding:10px}.preview-footer{font-size:8px}.timeline-bar{padding:10px;gap:9px}.timeline-track-area{min-width:100%;order:2}.workflow-note{gap:6px}.panel-section{padding:22px 20px}.annotation-list,.export-cards{grid-template-columns:1fr}.citation-subcontrols{grid-template-columns:2fr 1fr}.guide-steps{grid-template-columns:1fr}.dialog-head h2{font-size:18px}.dialog-foot{flex-wrap:wrap}.dialog-foot .btn{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
/* Keep playback visible while the canvas fits the remaining desktop workspace. */
.point-route-tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px;width:100%;padding:9px;border:1px solid #d4d9cc;border-radius:6px;background:#f7f8f3}.point-route-tools[hidden],.point-route-draft-tools[hidden]{display:none!important}.point-route-draft-tools{display:flex;flex-wrap:wrap;gap:7px}.point-route-tools .btn-mini{width:auto;height:auto;min-height:28px;padding:6px 9px;font-size:11px;line-height:1.4;white-space:nowrap;border:1px solid #bdc6b6}.anno-item-controls .btn-route-edit{width:100%;height:auto;min-height:30px;padding:6px 9px;line-height:1.5;text-align:left;border:1px solid #626b78}#btnPointRouteStart,#btnPointRouteFinish{border-color:#738c71;color:#254b38;background:#edf3e9}.point-route-tools[data-editing=true]{border-color:#bd9455;background:#fff8e9}
.center-stage{display:flex;flex-direction:column}.stage-heading,.tool-ribbon,.timeline-bar,.workflow-note{flex-shrink:0}.preview-shell{display:flex;flex-direction:column;flex:1;min-height:230px}.preview-toolbar,.preview-footer{flex-shrink:0}.canvas-viewport{flex:1;min-height:150px;padding:0}.canvas-container{position:absolute;inset:18px;width:auto;display:grid;place-items:center}#previewCanvas{max-height:none;max-width:100%;object-fit:fill}.stage-heading{margin-bottom:18px}.stage-heading h1{margin-top:3px}.stage-heading p{margin-top:4px}.workflow-note{margin-top:20px;margin-bottom:10px}
@media(max-width:1050px){.preview-shell{flex:none}.canvas-viewport{height:360px;flex:none}}
@media(max-width:700px){.canvas-viewport{height:240px}.canvas-container{inset:10px}.preview-shell{min-height:0}.workflow-note{margin-bottom:0}}

/* Actions live with their work area instead of a global header. */
.toast { pointer-events: none; }
.stage-heading { margin-bottom: 12px; }
.stage-help { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 15px; font-size: 11px; color: var(--muted); }
.canvas-container { inset: 10px; }
.stage-help .btn-link { white-space: nowrap; }
.local-status { display: flex; align-items: center; gap: 7px; margin: 12px 0 18px; color: var(--muted); font-size: 10px; }
.workflow-export { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px; margin: -4px -6px; background: transparent; border: 0; border-radius: 4px; color: var(--accent); font-size: inherit; white-space: nowrap; }
.workflow-export:hover { background: var(--accent-soft); }
#tabExport { color: var(--accent); }
#tabExport > span { margin-right: 5px; }
@media (max-width: 700px) {
  .stage-help { gap: 6px 12px; }
  .workflow-export { gap: 5px; }
}
/* Charcoal tool panels frame the light editing workspace. */
.panel{
  color-scheme:dark;
  --paper:#303338;
  --surface:#3b3f46;
  --line:#555b64;
  --ink:#f0f2f5;
  --muted:#c1c7d0;
  --accent:#f0b49d;
  --accent-soft:#4a3d38;
  --gold:#d0b475;
  color:var(--ink);
  background:var(--paper);
  scrollbar-color:#747d89 var(--paper);
}
.panel ::-webkit-scrollbar-thumb,.panel::-webkit-scrollbar-thumb{background:#747d89;border-color:var(--paper)}
.panel .section-step{border-color:#8b6c60;background:#3c3533}
.panel .source-card{background:#393d44;border-color:#707985}
.panel .btn{background:#454b54;border-color:#68717d;color:var(--ink)}
.panel .btn:hover{background:#535b66;border-color:#929ca9}
.panel .control-select,.panel .control-input,.panel .anno-item-controls select,.panel .color-picker{background:#262a30;border-color:#626b78;color:var(--ink)}
.panel select:hover,.panel input[type=text]:hover{border-color:#9aa6b5}
.panel input::placeholder{color:#b6bec9;opacity:1}
.panel :focus-visible{outline-color:#f0c49f}
.panel .segmented-control{background:#25292e;border-color:#555d68}
.panel .seg-btn:hover{background:#414750;color:#fff}
.panel .seg-btn.active{background:#dce1e7;border-color:#dce1e7;color:#262a30;box-shadow:none}
.panel input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right,var(--gold) var(--progress),#5d6673 var(--progress))}
.panel input[type=range]::-webkit-slider-thumb{background:#f4e8c9;box-shadow:0 1px 3px #0005}
.panel input[type=range]::-moz-range-track{background:#5d6673}
.panel input[type=range]::-moz-range-thumb{background:#f4e8c9}
.panel .status-dot{background:#b8c6a1}
.panel .count-pill{background:#474d56;color:#e1e6ed}
.panel .anno-item,.panel .export-card{background:var(--surface)}
.panel .anno-item.selected{background:#41464e;border-color:var(--accent);box-shadow:none}
.panel .badge-popup{background:#405044;color:#d9e8cf}
.panel .badge-highlight{background:#564c31;color:#f6dfa2}
.panel .badge-redact{background:#504658;color:#e6d6f0}
.panel .btn-mini:hover{background:#59616e;color:#fff}
.panel .btn-mini-danger:hover{background:#68463f;color:#ffe2da}
.panel .empty-list-state{border-color:#7b8592}
.panel .btn-danger-ghost{background:transparent;border-color:#85645f;color:#f2b7ab}
.panel .btn-danger-ghost:hover{background:#563e3b;border-color:#cb968b}
.panel .export-tag{background:#475344;color:#dbe7d2}
.panel .tag-trpg{background:#594439;color:#f4c9ae}
.panel .apng-size-box{background:#2a2e34}
.panel .badge-ok{color:#bed8a6}
.panel .badge-warn{color:#f2cc91}
.panel .export-status{background:#384536;border-color:#829578}
.panel .progress-bar-bg{background:#59654f}
.panel .progress-bar-fill{background:#c2d5ac}
.panel .btn-export-accent,.panel .btn-export-secondary{background:#a94e3c;border-color:#dc9b87;color:#fff}
.panel .btn-export-accent:hover,.panel .btn-export-secondary:hover{background:#ba5b47;border-color:#f0b49d}

/* Editor-only camera. The export canvas and annotation coordinates stay unchanged. */
.redact-parameters{display:grid;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.redact-parameter{display:block;min-width:0}.redact-parameter .slider-header{margin-bottom:1px;font-size:11px}
.redact-parameter small,.redact-parameter-note{display:block;color:var(--muted);font-size:10px;line-height:1.7}
.redact-edge-controls{display:grid;gap:8px;padding-top:8px;border-top:1px solid var(--line)}
.redact-edge-controls[hidden],.redact-edge-controls [hidden]{display:none}
.redact-edge-controls .anno-field{display:grid;grid-template-columns:66px minmax(0,1fr);gap:5px;font-size:11px}
.redact-edge-controls .anno-field>span{white-space:nowrap}
.redact-edge-controls select{width:100%;min-width:0}
.redact-edge-controls small{color:var(--muted);font-size:10px;line-height:1.7}
#defaultRedactParameters{flex:1 0 100%;min-width:0}
#defaultRedactParameters .redact-parameters{margin-top:0;padding-top:0;border:0;grid-template-columns:minmax(120px,1fr) minmax(300px,2fr);align-items:start;gap:4px 18px}
#defaultRedactParameters .redact-edge-controls{grid-template-columns:minmax(140px,1fr) minmax(120px,1fr);align-items:center;padding-top:0;border:0;gap:4px 12px}
#defaultRedactParameters .redact-edge-controls .anno-field{grid-template-columns:1fr;gap:2px;font-size:10px}
#defaultRedactParameters .redact-edge-controls small{grid-column:1/-1}
#defaultRedactParameters .redact-parameter-note{grid-column:1/-1}
@media(max-width:700px){#defaultRedactParameters .redact-edge-controls{grid-template-columns:1fr}}
.panel-legal{padding:18px 19px 24px;border-top:1px solid var(--line);color:var(--muted);font-size:10px;line-height:1.8}
.panel-legal nav{display:flex;flex-wrap:wrap;gap:7px 12px;margin-top:9px}
.panel-legal button,.guide-legal-links button{padding:0;background:none;border:0;color:var(--accent);text-decoration:underline;text-underline-offset:3px;font-size:11px}
.panel-legal a{font-size:11px;color:var(--accent)}.guide-legal-links{display:flex;flex-wrap:wrap;gap:9px 18px;padding:0 28px 22px;font-size:11px}
.legal-dialog[open]{display:flex;flex-direction:column;overflow:hidden;width:800px}
.legal-dialog .dialog-head,.legal-dialog .dialog-foot,.legal-tabs{flex-shrink:0}
.legal-tabs{display:flex;gap:8px;padding:0 28px 16px;border-bottom:1px solid var(--line)}
.legal-tabs button{flex:1;min-width:0;padding:9px 5px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--muted);font-size:12px}
.legal-tabs button[aria-selected=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.legal-body{padding:22px 28px;overflow:auto;min-height:0;font-size:12px;line-height:1.95;overflow-wrap:anywhere}
.legal-lead{font-size:13px;color:var(--ink)}.legal-date{font-size:10px;color:var(--muted);margin-top:8px}
.legal-body section{margin-top:24px}.legal-body h3{font-size:13px;margin-bottom:9px}.legal-body p+p{margin-top:10px}
.legal-body ul{padding-left:20px}.legal-body li+li{margin-top:6px}.legal-body a{text-underline-offset:3px}
@media(max-width:700px){.legal-tabs{padding:0 16px 12px;gap:5px}.legal-tabs button{font-size:11px}.legal-body{padding:18px}.legal-dialog .dialog-head{padding:20px 18px 16px}#defaultRedactParameters .redact-parameters{grid-template-columns:1fr;gap:3px}}

.view-controls{display:flex;align-items:center;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.preview-toolbar{flex-wrap:wrap;gap:8px;padding:9px 12px}
.view-controls button,.view-controls select{min-height:29px;padding:4px 8px;border:1px solid #59675a;border-radius:5px;background:#344138;color:#e3e9df;font-size:10px}
.view-controls button:hover{background:#455444}.view-controls button[aria-pressed=true]{background:#dde6cf;color:#2b3a2c;border-color:#dce8ca}
.view-controls .after-view-toggle{width:auto;height:auto;white-space:nowrap}
.view-controls .after-view-toggle[data-mode="after"]{border-color:#d58c83;background:#583a39;color:#ffe3dc}
.view-controls .after-view-toggle[data-mode="before"]{border-color:#8bb7d6;background:#30495c;color:#e4f4ff}
.view-controls button:disabled{opacity:.4}.view-controls select{min-width:66px}
.canvas-container{overflow:hidden;display:block;touch-action:none}
#previewCanvas{position:absolute;max-width:none;max-height:none;user-select:none}
#zoomRegionBox{position:absolute;border:1px solid #e9eeb9;background:#d6e49b26;box-shadow:0 0 0 1px #26392e;pointer-events:none;z-index:2}
.preview-shell[data-view-mode=pan] #previewCanvas{cursor:grab!important}.preview-shell[data-dragging=true] #previewCanvas{cursor:grabbing!important}
.preview-shell[data-view-mode=region] #previewCanvas{cursor:zoom-in!important}
body.editor-expanded{overflow:hidden}
.editor-expanded .center-stage{position:fixed;inset:0;z-index:20;padding:14px 20px;overflow:auto;background:var(--soft)}
.editor-expanded .stage-heading,.editor-expanded .workflow-note{display:none}
.editor-expanded .tool-ribbon{margin-bottom:10px}.editor-expanded .preview-shell{flex:1;min-height:200px}
.editor-expanded .canvas-viewport{height:auto;flex:1}
.editor-expanded .timeline-bar{margin-top:10px}
@media(max-width:700px){.preview-toolbar{padding:8px}.view-controls{justify-content:flex-start;gap:4px}.view-controls button,.view-controls select{padding:5px 7px;font-size:10px}.preview-footer{flex-wrap:wrap}.editor-expanded .center-stage{padding:10px}.editor-expanded .preview-shell{min-height:160px}}

/* APNG live verification preview */
.apng-verify-box {
  margin-top: 10px;
  padding: 8px;
  background: #20242a;
  border: 1px solid #555e6b;
  border-radius: 6px;
}
.apng-verify-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 10px;
  color: var(--muted);
}
#apngVerifyImg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  border-radius: 4px;
  background: #14171c;
}
/* anno card drag reorder */
.anno-drag-handle{display:inline-flex;align-items:center;justify-content:center;width:16px;height:22px;margin-left:-4px;color:var(--muted);font-size:12px;letter-spacing:-3px;touch-action:none;user-select:none;border-radius:4px;cursor:grab}.anno-drag-handle:hover{background:#ffffff14;color:var(--ink)}.anno-item-top{cursor:grab;user-select:none}.anno-item-top .anno-actions{cursor:default}.annotation-list.is-reordering,.annotation-list.is-reordering *{cursor:grabbing!important;user-select:none}.anno-item.dragging{opacity:.45}.anno-drop-indicator{height:3px;margin:-6.5px 0;border-radius:2px;background:var(--accent);box-shadow:0 0 6px var(--accent);pointer-events:none}

/* playback-linked active card glow */
.panel .anno-item.is-playing-active{border-color:var(--effect-color);animation:annoPlayPulse 1s ease-in-out infinite}
@keyframes annoPlayPulse{0%,100%{box-shadow:0 0 0 1px color-mix(in srgb,var(--effect-color) 20%,transparent),0 0 4px 0 color-mix(in srgb,var(--effect-color) 18%,transparent)}50%{box-shadow:0 0 0 1px color-mix(in srgb,var(--effect-color) 55%,transparent),0 0 14px 2px color-mix(in srgb,var(--effect-color) 45%,transparent)}}
@media (prefers-reduced-motion:reduce){.panel .anno-item.is-playing-active{animation:none;box-shadow:0 0 0 1px color-mix(in srgb,var(--effect-color) 45%,transparent),0 0 10px 1px color-mix(in srgb,var(--effect-color) 35%,transparent)}}

/* Simultaneous timing sync with previous annotation */
.anno-sync-row{display:flex;align-items:center;margin-top:9px;padding-top:7px;border-top:1px dashed #d5d9cf;font-size:10px;color:var(--muted)}
.anno-sync-row .checkbox-label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:var(--muted);user-select:none}
.anno-sync-row .checkbox-label:hover{color:var(--ink)}
.anno-sync-badge{display:inline-flex;align-items:center;font-size:9px;color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,transparent);border-radius:3px;padding:1px 5px;font-weight:600;margin-left:4px}
.panel .anno-sync-row{border-top-color:#485260}
.panel .anno-sync-row .checkbox-label{color:#b0bac7}
.panel .anno-sync-row .checkbox-label:hover{color:#fff}


/* Lite / Pro Edition UI & Upgrade Modal */
.pro-upgrade-dialog {
  width: 680px;
}
.pro-upgrade-body {
  padding: 4px 28px 22px;
  display: grid;
  gap: 16px;
}
.pro-feature-Triggered {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #e4c5b8;
  padding: 8px 12px;
  border-radius: 7px;
}
.pro-handover-card {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}
.pro-handover-card strong {
  font-size: 13px;
  color: var(--ink);
}
.pro-handover-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
.btn-save-handover {
  margin-top: 4px;
  width: 100%;
  font-weight: 600;
  border-color: var(--gold);
  background: #faf6eb;
}
.btn-save-handover:hover {
  background: #f3ebd6;
}
.pro-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pro-benefits-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}
.pro-benefits-grid h3 {
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--ink);
}
.pro-benefits-grid p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.pro-dialog-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pro-dialog-actions a.btn {
  text-decoration: none;
}
.lite-badge-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  background: #5a4638;
  color: #f7d694;
  border: 1px solid #8c6f4e;
}
.lite-booth-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.lite-booth-cta:hover {
  background: #8e3e2f;
}
@media (max-width: 700px) {
  .pro-upgrade-body {
    padding: 4px 18px 18px;
  }
  .pro-benefits-grid {
    grid-template-columns: 1fr;
  }
  .pro-dialog-actions {
    width: 100%;
    flex-direction: column;
  }
}

/* Map Studio — Label inputs & CCFolia grid readout */
.subopt-text-input {
  width: 155px !important;
  padding: 4px 8px !important;
  font-size: 10px !important;
}
.anno-field input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #626b78;
  border-radius: 6px;
  background: #262a30;
  color: var(--ink);
  padding: 5px 7px;
  font-size: 11px;
}
.anno-grid-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  color: #b8c6a1;
  background: rgba(184, 198, 161, 0.14);
  border: 1px solid rgba(184, 198, 161, 0.35);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

/* First visit: a short illustrated guide, then real controls. */
.quick-start{width:610px;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid #bdc9bd;border-radius:14px;background:#f8f8f3;overflow:auto}
.quick-head{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:23px 26px 16px}.quick-head h2{font-size:23px;line-height:1.5;margin-top:5px}.quick-head .btn-icon{flex-shrink:0}.quick-body{padding:0 26px}.quick-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:14px}.quick-steps button{border:1px solid #d5dbce;border-radius:6px;background:#eff1e9;padding:9px 4px;font-size:12px}.quick-steps button[aria-pressed=true]{background:#244e3b;color:#fff;border-color:#244e3b}
.quick-scene{border-radius:9px;background:#142b23;overflow:hidden;position:relative}.quick-scene svg{display:block;width:100%;height:auto}.quick-scene>span{position:absolute;bottom:6px;left:12px;color:#97b5a5;font-size:9px}.quick-scene>button{position:absolute;bottom:6px;right:10px;padding:2px 6px;border:1px solid #698574;border-radius:4px;background:#142b23;color:#dbe7de;font-size:9px}.quick-route{stroke-dashoffset:0}.quick-mask{opacity:.8}.quick-selection{opacity:0}.quick-focus{animation:quick-breathe 2.6s ease-in-out infinite}.quick-scene[data-phase="2"] .quick-focus{transform:translateY(44px)}.quick-scene[data-phase="2"] .quick-route{animation:quick-route 3.2s ease-in-out infinite}.quick-scene[data-phase="2"] .quick-mask{animation:quick-reveal 3.2s ease-in-out infinite}.quick-scene[data-phase="3"] .quick-focus{transform:translateY(88px)}.quick-scene[data-phase="3"] .quick-selection{animation:quick-breathe 2.6s ease-in-out infinite}.quick-scene.paused *{animation-play-state:paused!important}
@keyframes quick-breathe{0%,100%{opacity:.35}50%{opacity:1}}@keyframes quick-route{0%,15%{stroke-dashoffset:212}80%,100%{stroke-dashoffset:0}}@keyframes quick-reveal{0%,20%{opacity:.95}80%,100%{opacity:0}}
.quick-copy{min-height:100px;padding:18px 0 12px}.quick-copy h3{font-size:16px;margin-bottom:5px}.quick-copy p{font-size:13px;color:#617365;line-height:1.75}.quick-start-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-start-actions .btn{min-height:43px;white-space:normal}.quick-start-actions .btn-primary{background:#285c43;border-color:#285c43}.quick-edition{font-size:11px;line-height:1.8;margin:13px 0 5px;color:#536858}.quick-device{font-size:10px;color:#738175}.quick-foot{display:flex;justify-content:space-between;gap:12px;padding:15px 26px 20px}.quick-foot .btn-link{font-size:11px;color:#596f5d}
.onboarding-coach{border:1px solid #adbea5;border-radius:8px;background:#edf3e7;padding:12px 14px;display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:106px;flex-shrink:0}.coach-step{display:block;font-size:10px;color:#4f6e48;letter-spacing:.06em}.onboarding-coach strong{font-size:12px}.onboarding-coach p{font-size:11px;color:#60715b;max-width:450px}.coach-actions{display:flex;flex-direction:column;align-items:center;gap:6px;flex-shrink:0}.coach-actions .btn{font-size:11px}.coach-actions .btn-link{font-size:10px;color:#61735c}
#normalLiteNotice{flex-shrink:0}.lite-preview-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border:1px solid #d6ddce;border-radius:8px;background:#f1f4eb;min-height:90px;position:relative}.lite-preview-notice strong{font-size:12px;color:#344e3b}.lite-preview-notice p{font-size:11px;line-height:1.6;color:#66765e;max-width:430px;margin:3px 0 0}.notice-actions{display:flex;flex-direction:column;align-items:center;gap:3px;flex-shrink:0}.notice-actions .btn{font-size:11px;min-height:32px;color:#38543e;border-color:#b4c5a8;background:#fff}.notice-actions>span{font-size:10px;color:#67735d}.notice-dismiss{position:absolute;right:4px;top:1px;border:0;background:transparent;color:#58734f;padding:2px 5px;font-size:16px}.lite-preview-notice.is-complete{border-color:#a9b78e;background:#eef2e4}.lite-preview-notice.is-complete .notice-actions{padding-right:8px}
.stage-heading{flex-wrap:wrap;gap:8px}.stage-help{flex:1 1 240px;min-width:0}.stage-heading .demo-tag{flex-shrink:0}.lite-edition-links{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}.lite-edition-links .lite-badge-pill{white-space:nowrap;flex-shrink:0;margin:0}.lite-edition-links .lite-booth-cta{margin:0;border:1px solid #bea880;background:#f4ecdd;color:#645132;font-size:10px}.lite-edition-links .lite-booth-cta:hover{background:#e9ddc8}
.pro-upgrade-dialog{width:720px}.pro-upgrade-dialog .dialog-head h2{font-size:22px}.pro-upgrade-body{gap:12px}.pro-feature-Triggered{margin:0}.pro-price-lead{display:flex;justify-content:space-between;align-items:center;gap:14px}.pro-price-lead p{display:flex;flex-direction:column}.pro-price-lead strong{font-size:23px;line-height:1.4}.pro-price-lead span{font-size:11px;color:var(--muted)}.pro-price-lead a{text-decoration:none}.compare-intro{font-size:12px;color:#52634f}.edition-compare{border-collapse:collapse;width:100%;table-layout:fixed;font-size:12px;background:#fff}.edition-compare th,.edition-compare td{padding:9px 10px;border:1px solid #d9dfd2;vertical-align:middle}.edition-compare th{text-align:left;font-weight:500;width:52%;line-height:1.6}.edition-compare td{text-align:center}.edition-compare thead th{background:#edf1e7;font-weight:700}.edition-compare thead th:not(:first-child){width:24%;text-align:center}.edition-compare thead span{display:block;font-size:10px;font-weight:400}.edition-compare td:last-child{background:#f5f6ec;color:#4d602f}.edition-compare tr.is-requested th,.edition-compare tr.is-requested td{background:#fff0cc;border-color:#d4bd7f}.compare-detail{font-size:10px;line-height:1.8;color:#71806b}.pro-handover{border:1px solid #d4ddca;border-radius:7px;padding:11px 13px;background:#f5f7ef}.pro-handover summary{cursor:pointer;font-size:12px;font-weight:600}.pro-handover p{font-size:11px;line-height:1.8;margin:9px 0;color:#5e7057}.pro-handover .btn{font-size:11px}.pro-upgrade-dialog .dialog-foot{padding:12px 28px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.quick-head{padding:18px 18px 12px}.quick-head h2{font-size:20px}.quick-body{padding:0 18px}.quick-steps button{font-size:11px;padding:8px 1px}.quick-copy{min-height:108px;padding:14px 0 10px}.quick-copy h3{font-size:14px}.quick-copy p{font-size:12px}.quick-start-actions{grid-template-columns:1fr;gap:7px}.quick-start-actions .btn{min-height:39px}.quick-edition{font-size:10px;margin-top:10px}.quick-foot{padding:13px 18px 16px}.quick-foot .btn-link{font-size:10px}.onboarding-coach{display:block;min-height:156px}.coach-actions{flex-direction:row;justify-content:space-between;margin-top:9px}.lite-preview-notice{display:block;min-height:134px;padding:10px 12px}.notice-actions{flex-direction:row;justify-content:space-between;margin-top:8px;gap:8px}.notice-actions>span{font-size:9px}.lite-preview-notice p{min-height:35px}.pro-upgrade-dialog .dialog-head h2{font-size:19px}.pro-price-lead{align-items:start}.pro-price-lead strong{font-size:21px}.pro-price-lead .btn{font-size:11px;padding:7px 9px}.edition-compare{font-size:11px}.edition-compare th,.edition-compare td{padding:8px 6px}.stage-heading .stage-help{flex-basis:100%}.lite-edition-links{gap:7px}.pro-upgrade-dialog .dialog-foot{padding:12px 18px}}
@media(prefers-reduced-motion:reduce){.quick-scene *{animation:none!important}.quick-scene[data-phase="2"] .quick-mask{opacity:0}.quick-scene[data-phase="3"] .quick-selection{opacity:1}#btnQuickMotion{display:none}}
#quickStartTitle:focus,#proUpgradeTitle:focus{outline:none}.quick-steps button{transition:none}

/* Keep the preview and its playback bar in the viewport; supporting UI lives in the side panels. */
.tool-settings{margin:10px 0 0;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);min-width:0}
.tool-settings>summary{padding:9px 11px;font-size:11px;cursor:pointer;font-weight:600}.tool-settings[open]>summary{border-bottom:1px solid var(--line)}
.tool-settings .tool-suboptions{padding:12px;margin:0}.tool-settings .subopt-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;min-width:0}.tool-settings .subopt-item{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}.tool-settings .subopt-item select,.tool-settings .subopt-item input{width:100%;max-width:100%}.tool-settings .subopt-item input[type=range]{width:100%}.tool-settings .subopt-val{justify-self:end}.tool-settings .subopt-hint{line-height:1.75}.tool-settings .point-route-tools{min-width:0;max-width:100%;flex-wrap:wrap}.tool-settings .point-route-draft-tools{flex-wrap:wrap}.tool-settings #defaultRedactParameters .redact-parameters,.tool-settings #defaultRedactParameters .redact-edge-controls{grid-template-columns:minmax(0,1fr);gap:9px}.tool-settings #defaultRedactParameters{min-width:0}.tool-settings .subopt-text-input{max-width:100%}
.view-controls .guide-toggle-wrap{margin:0 6px 0 0}.view-controls .checkbox-label{color:#d5dfcf}.view-controls .checkbox-label input{accent-color:#bca56d}
#inlineEditorGuidance,#inlineToolSettings{flex-shrink:0}#editorGuidance{display:grid;gap:10px}#inlineEditorGuidance:not(:empty){margin-top:10px}#sidebarToolSettings .tool-settings{margin:0 0 18px}#sidebarEditorGuidance:not(:empty){margin:15px 0 22px}
.panel #editorGuidance .onboarding-coach,.panel #editorGuidance .lite-preview-notice{display:block;min-height:0;padding:12px;background:#354138;border-color:#5e715d;color:#e0e9d8}
.panel #editorGuidance .onboarding-coach strong,.panel #editorGuidance .lite-preview-notice strong{color:#edf2df;font-size:12px}.panel #editorGuidance .onboarding-coach p,.panel #editorGuidance .lite-preview-notice p{color:#c5d1bd;font-size:11px;min-height:0}.panel #editorGuidance .coach-step{color:#d0ba83}.panel #editorGuidance .coach-actions,.panel #editorGuidance .notice-actions{display:flex;flex-direction:column;align-items:stretch;margin-top:10px;gap:7px}.panel #editorGuidance .coach-actions .btn-link,.panel #editorGuidance .notice-actions>span{color:#c6d2bc;text-align:center}.panel #editorGuidance .notice-actions .btn{background:#455442;border-color:#8b9e79;color:#f3f5e9}.panel #editorGuidance .notice-dismiss{color:#e1e9cf}.panel #editorGuidance .lite-preview-notice.is-complete{background:#3c4934;border-color:#a7b789}.panel #editorGuidance .workflow-note{flex-wrap:wrap;margin:5px 0 0;color:#d0d9c7;gap:5px;font-size:10px}.panel #editorGuidance .workflow-arrow{margin:0}.panel #editorGuidance kbd{color:#303b37}.panel #editorGuidance .workflow-export{color:#f0c49f}
.editor-expanded #inlineEditorGuidance{display:none}.editor-expanded #inlineToolSettings .tool-suboptions{max-height:28dvh;overflow:auto}.editor-expanded #inlineToolSettings .subopt-panel{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.editor-expanded #inlineToolSettings .subopt-hint,.editor-expanded #inlineToolSettings .point-route-tools{grid-column:1/-1}.editor-expanded #inlineToolSettings .tool-settings{margin-top:7px}
@media(min-width:1051px){
  .center-stage{padding:14px 20px 12px;overflow:hidden}.stage-heading{margin-bottom:10px}.stage-help{gap:5px 12px}.stage-help>span:first-child{display:none}.tool-ribbon{margin-bottom:10px}.tool-mode-btn{padding:8px 11px}.tool-btn-text small{margin-top:1px}.preview-shell{min-height:0}.canvas-viewport{min-height:0}.canvas-container{inset:8px}.timeline-bar{margin-top:10px;padding:8px 12px;gap:10px}.preview-toolbar{padding:8px 12px;gap:8px}.preview-footer{padding:6px 12px}.view-controls{gap:5px}.stage-heading .demo-tag{padding:3px 7px}.editor-expanded .center-stage{padding:12px 16px}.editor-expanded .preview-shell{min-height:0}
}
@media(max-width:1050px){.tool-settings .subopt-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-settings .subopt-hint,.tool-settings .point-route-tools{grid-column:1/-1}.tool-settings .subopt-panel #defaultRedactParameters{grid-column:1/-1}.tool-settings .tool-suboptions{max-height:320px;overflow:auto}}
@media(max-width:700px){.tool-settings .subopt-panel{grid-template-columns:minmax(0,1fr)}.view-controls .guide-toggle-wrap{margin-right:0}.editor-expanded #inlineToolSettings .subopt-panel{grid-template-columns:minmax(0,1fr)}}

/* Offline interface language selection. Project/image text is never translated. */
.language-control{display:flex;align-items:center;gap:7px;margin-left:auto;font-size:11px;color:var(--muted);flex:0 0 auto}
.language-control select{font:inherit;background:#fff;color:#24382d;border:1px solid #b9c0b5;border-radius:6px;padding:5px 8px;min-height:32px;max-width:110px}
.language-control select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.language-note{font-size:12px;line-height:1.7;color:#657166;margin:14px 0}
html[lang="ko"] body{font-family:"Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;word-break:keep-all;overflow-wrap:anywhere}
html:not([lang="ja"]) .btn,html:not([lang="ja"]) .adv-btn{white-space:normal;line-height:1.45}
html:not([lang="ja"]) .stage-heading{flex-wrap:wrap;gap:8px}
html:not([lang="ja"]) .tool-btn-text{min-width:0}
html:not([lang="ja"]) .tool-btn-text strong{line-height:1.4}
html:not([lang="ja"]) .tool-mode-btn{min-width:0}
html:not([lang="ja"]) .view-controls{flex-wrap:wrap;min-width:0}
html:not([lang="ja"]) .view-controls .btn{padding:5px 7px}
html:not([lang="ja"]) .adv3d-steps button{line-height:1.4;white-space:normal;min-width:0}
html:not([lang="ja"]) .adv3d-head{flex-wrap:wrap;gap:10px}
html:not([lang="ja"]) .adv3d-head .adv-actions{flex-wrap:wrap}
html:not([lang="ja"]) .adv3d-playbar{flex-wrap:wrap}
html:not([lang="ja"]) .adv3d-playbar input{min-width:80px}
html:not([lang="ja"]) .pro-price-lead{flex-wrap:wrap;gap:12px}
html:not([lang="ja"]) .quick-start{overflow-y:auto}
@media(max-width:700px){.language-control{order:-1;width:100%;justify-content:flex-end}.stage-heading{gap:7px}html:not([lang="ja"]) .tool-btn-text strong{font-size:12px}html:not([lang="ja"]) .adv3d-steps button{font-size:11px;padding:8px 4px}}

/* Give translated inspector labels room without shrinking nested effect controls. */
html:not([lang="ja"]) .anno-item-controls > .anno-field{grid-template-columns:64px minmax(0,1fr)}
html:not([lang="ja"]) .redact-edge-controls .anno-field > span{white-space:normal}

/* Effect identity is shared by the ribbon, canvas guides and inspector. */
:root{--effect-popup:#06b6d4;--effect-highlight:#f59e0b;--effect-redact:#ec4899}
[data-tool="popup"],[data-effect-type="popup"]{--effect-color:var(--effect-popup);--effect-ink:#09677a;--effect-soft:#e8f8fc;--effect-text:#8be8f5}
[data-tool="highlight"],[data-effect-type="highlight"]{--effect-color:var(--effect-highlight);--effect-ink:#805000;--effect-soft:#fff5df;--effect-text:#ffd189}
[data-tool="redact"],[data-effect-type="redact"]{--effect-color:var(--effect-redact);--effect-ink:#a02261;--effect-soft:#fff0f7;--effect-text:#ffacd5}
.tool-mode-btn{border-color:color-mix(in srgb,var(--effect-color) 55%,#d4d9cc)}
.tool-mode-btn:hover{border-color:var(--effect-color);background:var(--effect-soft)}
.tool-mode-btn.active{border-color:var(--effect-color);background:var(--effect-soft);box-shadow:inset 0 0 0 1px var(--effect-color)}
.tool-mode-btn .tool-btn-text strong,.tool-mode-btn .tool-icon,.tool-mode-btn.active .tool-icon{color:var(--effect-ink)}
.tool-mode-btn .tool-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 23px;width:23px;height:23px}
.tool-icon svg{width:100%;height:100%;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tool-mode-btn:focus-visible{outline-color:var(--effect-ink)}
.panel .anno-item[data-effect-type]{border-color:color-mix(in srgb,var(--effect-color) 45%,var(--line))}
.panel .anno-item.selected{border-color:var(--effect-color);background:color-mix(in srgb,var(--effect-color) 10%,var(--surface));box-shadow:inset 0 0 0 1px var(--effect-color)}
.panel .anno-item[data-effect-type].is-playing-active{border-color:var(--effect-color)}
.panel .anno-item .anno-badge{background:var(--effect-color);color:#102127;line-height:1.5}
.panel .anno-item .anno-index{color:var(--effect-text);font-weight:700;font-variant-numeric:tabular-nums}
.panel .anno-item :focus-visible{outline-color:var(--effect-text)}
.tool-settings[data-effect-type]>summary{border-left:3px solid var(--effect-color);color:var(--effect-ink)}
.panel .tool-settings[data-effect-type]>summary{color:var(--effect-text)}

/* Demo actions are opt-in; purchase stays secondary to trying the editor. */
.quick-start-actions .btn-quick-3d{background:#e8f0e9;border-color:#7c9a82;color:#234c36;font-weight:600}
.quick-start-actions .btn-quick-3d:hover{background:#d9e7dc}
.quick-sub-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:9px}
.quick-sub-actions .btn{flex:1 1 180px;min-height:40px;font-size:11px;white-space:normal;text-decoration:none}
.quick-sub-actions .btn-quick-booth{background:#faf5eb;border-color:#cfbb94;color:#665332}
.quick-start-actions:has(>button[hidden]){grid-template-columns:1fr}
.pro-handover h3{font-size:12px;font-weight:600}
.pro-dialog-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.pro-dialog-actions a{text-decoration:none}
.pro-upgrade-dialog .dialog-foot{flex-wrap:wrap}
@media(max-width:700px){.quick-sub-actions{gap:7px}.quick-sub-actions .btn{flex-basis:100%}.pro-dialog-actions{width:100%}.pro-dialog-actions .btn{flex:1;white-space:normal;font-size:11px}}

/* Mobile Lite: offer a bookmark on BOOTH after the visitor has watched a preview. */
.lite-preview-notice.is-mobile-save{min-height:0;display:block;background:#f6f1e6;border-color:#c7b68f;padding:14px}
.mobile-booth-save{display:grid;gap:9px}
.mobile-booth-save>strong{font-size:13px;color:#4c432f}
.lite-preview-notice .mobile-booth-save p{min-height:0;max-width:none;margin:0;line-height:1.8;color:#665e4c}
.mobile-booth-save .mobile-booth-link{min-height:44px;background:#3a624d;border-color:#3a624d;color:#fff;white-space:normal;text-align:center;text-decoration:none;font-size:12px;font-weight:600}
.mobile-booth-save .mobile-booth-link:hover{background:#2d503d;border-color:#2d503d}
.mobile-booth-save .mobile-booth-later{justify-self:center;min-height:36px;white-space:normal;color:#665e4c;font-size:11px}
@media(max-width:1050px) and (pointer:coarse){#normalLiteNotice:has(.is-mobile-save){order:-1}}

/* A direct product link appears after a full preview; comparison stays available. */
.notice-actions .notice-booth-link{display:flex;flex-direction:column;gap:3px;width:100%;min-height:44px;padding:9px 11px;background:#3a624d;border-color:#3a624d;color:#fff;text-decoration:none;white-space:normal;text-align:center;line-height:1.5}
.notice-actions .notice-booth-link[hidden]{display:none}
.notice-actions .notice-booth-link:hover{background:#2d503d;border-color:#2d503d}
.notice-booth-link>span{font-size:12px;font-weight:600}
.notice-booth-link>small{font-size:10px;font-weight:400;white-space:normal}
@media(min-width:1051px){#advanced3dEditor .notice-actions{display:grid;grid-template-columns:auto auto;gap:8px}#advanced3dEditor .notice-booth-link{width:auto}}

/* 2026-10-27: edit at the point of attention, and adjust time directly. */
.preview-shell{position:relative}
.canvas-action-hint{flex-shrink:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:11px;color:#506054;margin:0 0 8px;min-height:30px}
.canvas-action-hint label{display:flex;align-items:center;gap:5px}.canvas-action-hint label>span{font-size:10px}
.canvas-action-hint button,.canvas-action-hint select{padding:5px 8px;border:1px solid #b9c8b9;border-radius:5px;background:#f8faf5;color:#344d3e;font:inherit}
.quick-effect-editor{position:absolute;z-index:8;display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:calc(100% - 16px);padding:10px 12px;border:1px solid var(--effect-color);border-radius:9px;background:#fdfefa;color:#20372f;box-shadow:0 6px 24px #06150d40;font-size:11px}
.quick-effect-editor>strong{font-size:11px;color:var(--effect-ink)}
.quick-effect-editor label{display:flex;gap:6px;align-items:center}.quick-effect-editor label>span{font-size:10px;color:#526057}
.quick-effect-editor select,.quick-effect-editor button{font:inherit;min-height:32px;max-width:200px;padding:5px 8px;border:1px solid #bac8bb;border-radius:5px;background:#fff;color:#20372f}
.quick-effect-editor [data-route-finish]{background:#285342;color:#fff;border-color:#285342}
.quick-effect-editor [disabled]{opacity:.45;cursor:default}
.quick-effect-editor[hidden],.canvas-action-hint[hidden]{display:none!important}
.phase-bar{position:relative;height:26px;overflow:visible;touch-action:pan-y}
.phase-seg{display:flex;align-items:center;justify-content:center;height:100%;font-size:9px;min-width:0}
.phase-seg:first-child{border-radius:4px 0 0 4px}.phase-seg:nth-child(4){border-radius:0 4px 4px 0}
.phase-boundary{position:absolute;top:-3px;width:24px;height:32px;transform:translateX(-50%);padding:0;border:0;background:transparent;cursor:ew-resize;touch-action:none;z-index:2}
.phase-boundary::after{content:"";display:block;margin:auto;width:4px;height:20px;border-radius:3px;background:#fff;box-shadow:0 0 0 1px #263f3066}
.phase-boundary:hover::after,.phase-boundary:focus-visible::after{background:#fff8ce;box-shadow:0 0 0 2px #6c6336}
#totalTimeText{font:inherit;font-weight:600;color:#315942;border:0;border-bottom:1px dashed #75917a;background:transparent;padding:7px 3px;cursor:pointer;white-space:nowrap}
.timing-dialog{width:min(500px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:0;background:#f5f6ef;color:#263c30;border:1px solid #9cab99;border-radius:12px}
.timing-dialog .dialog-head h2{font-size:18px}.timing-dialog .panel-section{padding:16px 24px}.timing-dialog .control-group{margin-bottom:15px}
.timing-total-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:0 24px;font-size:12px}.timing-total-row input,.timing-dialog [data-timing-number]{font:inherit;font-size:13px;width:80px;min-height:34px;padding:5px 8px;border:1px solid #bdc7b5;border-radius:5px;background:white;color:#253e2d}
.timing-explanation{padding:12px 24px 0;font-size:11px;color:#64705d;line-height:1.7}
/* Keep the series banner below the scrollable controls on desktop. */
@media (min-width:1051px) and (min-height:480px) {
  .panel-left { display:flex; flex-direction:column; overflow:hidden; scrollbar-gutter:auto; }
  .panel-left-controls { flex:1; min-height:0; overflow:auto; scrollbar-gutter:stable; }
}
.studio-banner { flex:none; padding:10px 14px 7px; border-top:1px solid var(--line); }
.studio-cards { display:grid; }
.studio-card {
  grid-area:1 / 1; display:grid; grid-template-columns:36px minmax(0,1fr);
  align-items:center; gap:10px; padding:9px 10px; line-height:1.35; text-decoration:none;
  background:linear-gradient(135deg,#182f29,#23453b); border:1px solid #527366; border-radius:8px;
}
.studio-card[inert] { visibility:hidden; }
.studio-card:hover,.studio-card:focus-visible { border-color:#d6b874; }
.studio-icon { display:grid; place-items:center; height:36px; background:#f4f6ef; border:1px solid #8e7744; border-radius:6px; }
.studio-icon-dark { background:#10211d; color:#e8d39e; }
.studio-icon img { object-fit:contain; }
.studio-copy { display:grid; gap:2px; overflow-wrap:anywhere; }
.studio-copy small { font-size:9px; font-weight:650; letter-spacing:.1em; color:#e2c883; }
.studio-copy strong { font-size:12px; color:#fffefa; }
.studio-copy > span { font-size:10px; color:#c9d8d1; }
.studio-title { display:flex; flex-wrap:wrap; align-items:center; gap:2px 5px; }
.studio-badge { padding:1px 5px; border-radius:3px; color:#fff; background:#a7342b; font-size:9px; font-weight:700; }
.studio-controls,.studio-navigation,.studio-picker { display:flex; align-items:center; }
.studio-navigation { margin-left:auto; }
.studio-controls { flex-wrap:wrap; gap:0 4px; margin-top:3px; }
.studio-controls a { margin-right:auto; font-size:11px; color:var(--accent); text-underline-offset:3px; }
.studio-controls button { display:grid; place-items:center; width:24px; height:24px; padding:0; border:0; background:none; color:var(--muted); }
.studio-picker button::after { content:""; width:7px; height:7px; border-radius:6px; background:#909ba4; }
.studio-picker button[aria-pressed="true"]::after { width:16px; background:var(--gold); }
.studio-rotation { font-size:12px; }
@media(max-width:700px){.quick-effect-editor{position:static;margin:0 8px 8px;max-width:none;box-shadow:none}.quick-effect-editor select,.quick-effect-editor button{min-height:40px;max-width:100%}.quick-effect-editor label{flex-wrap:wrap}.canvas-action-hint{font-size:11px;line-height:1.6}.canvas-action-hint select,.canvas-action-hint button{min-height:36px}.phase-bar{height:32px}.phase-boundary{height:38px;width:28px}.phase-boundary::after{height:24px}.legal-tabs{flex-wrap:wrap}.legal-tabs button{flex:1 1 40%}.panel-legal nav{gap:12px 16px}.timecode-box{margin-left:auto}}

.quick-effect-editor label,.canvas-action-hint label{min-width:0;max-width:100%}.quick-effect-editor select{min-width:0}.canvas-action-hint label{flex-wrap:wrap}
.ccfolia-apng-preset {
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid #8fae9e;
  border-radius: 8px;
  background: rgba(106, 150, 122, 0.1);
}
.ccfolia-apng-preset h4 { margin: 0 0 8px; font-size: 13px; line-height: 1.6; }
.ccfolia-apng-preset .btn { white-space: normal; height: auto; min-height: 40px; line-height: 1.5; }
.ccfolia-apng-preset .export-desc { line-height: 1.7; }
.ccfolia-apng-result { overflow-wrap: anywhere; font-weight: 600; }

/* Keyboard shortcuts dialog (unified with Map Studio v3.0 manual) */
.shortcuts-dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto}
.shortcuts-body{padding:0 28px 20px;display:grid;gap:18px}
.shortcuts-body h3{font-size:13px;font-weight:600;margin:0 0 8px;color:var(--ink)}
.shortcuts-table{width:100%;border-collapse:collapse;font-size:12px;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.shortcuts-table th,.shortcuts-table td{padding:8px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.shortcuts-table tr:last-child th,.shortcuts-table tr:last-child td{border-bottom:0}
.shortcuts-table th{width:46%;font-weight:500;color:var(--ink);background:#f6f7f2}
.shortcuts-table td{color:var(--muted)}
.shortcuts-table kbd{font-size:11px;padding:2px 6px;background:#f8f8f4;border:1px solid #c8d0c2;border-radius:4px;color:var(--ink);font-weight:600}
@media(max-width:700px){.shortcuts-body{padding:0 18px 16px}.shortcuts-table th,.shortcuts-table td{padding:7px 9px;font-size:11px}}

.shortcuts-dialog{color:#303b37;--ink:#303b37;--muted:#515d55;--line:#d8ddd3}

/* v3.0 Before / After Incident Transition Controls */
.after-source-card {
  margin-top: 10px;
  border-style: solid;
  border-color: #6b534e !important;
  background: linear-gradient(145deg, #362e31, #2d3238) !important;
}
.after-source-card.has-after {
  border-color: #e07a5f !important;
  box-shadow: inset 0 0 0 1px rgba(224, 122, 95, 0.25);
}
.after-source-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.after-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #484f58;
  color: #d0d7de;
}
.after-source-card.has-after .after-badge {
  background: #a9382b;
  color: #fff;
}
.after-source-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.after-source-actions .btn-source {
  margin-top: 0;
  flex: 1;
}
.btn-after-demo {
  min-height: 35px;
  padding: 6px 10px !important;
  font-size: 11px !important;
  border-color: #b58d53 !important;
  background: #4a3f2f !important;
  color: #f7e2b8 !important;
}
.btn-after-demo:hover {
  background: #5e4f3a !important;
}
.after-transition-controls {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #5d6570;
}
.after-transition-controls .anno-field {
  grid-template-columns: 56px minmax(0, 1fr);
}
.after-source-card [hidden] { display: none !important; }
.after-source-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: stretch; }
.after-source-actions .btn-source { min-width: 0; justify-content: center; white-space: normal; }
.after-source-actions .btn-icon { align-self: center; }
.after-source-card strong { overflow-wrap: anywhere; }
.after-transition-controls .anno-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.after-transition-controls select { width: 100%; min-width: 0; }
.after-map-guide { margin: 6px 0 2px; }
.after-map-guide > small { display: block; margin-bottom: 4px; }
.after-map-guide a {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 7px; align-items: center;
  padding: 7px 8px; border: 1px solid #74674b; border-radius: 6px;
  color: #f2e6c9; background: #39372e; text-decoration: none;
}
.after-map-guide a:hover, .after-map-guide a:focus-visible { background: #494435; border-color: #c8ac72; }
.after-map-guide img { border-radius: 4px; }
.after-map-guide a strong, .after-map-guide a small { display: block; line-height: 1.45; }
.after-map-guide a strong { color: #fff0c9; font-size: 12px; }
.after-map-guide a small { color: #e2d8bf; font-size: 10px; }

.unified-source-card {
  gap: 6px;
  border-style: solid;
  border-color: #636d7a !important;
}
.source-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.unified-source-card .after-source-card {
  margin-top: 6px;
  padding: 9px 10px;
  border-radius: 7px;
  border: 1px dashed #695a56 !important;
  background: rgba(28, 31, 36, 0.55) !important;
}
.unified-source-card .after-source-card.has-after {
  border-style: solid !important;
  border-color: #e07a5f !important;
}
.after-source-summary {
  display: flex;
  align-items: center;
  gap: 6px;
}
.after-source-summary strong {
  font-size: 11px;
  flex: 1;
  min-width: 0;
}
.btn-source-main {
  width: 100%;
  margin-top: 6px;
  font-weight: 700;
  background: #a94e3c !important;
  border-color: #dc9b87 !important;
  color: #fff !important;
}
.btn-source-main:hover {
  background: #bd5b47 !important;
}

/* Dedicated Map Setup Modal (1枚 / 事件前後2枚 横並び窓口) */
.map-setup-dialog {
  width: 780px;
  max-width: calc(100vw - 24px);
}
.setup-mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.setup-mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border: 2px solid #cfd6c8;
  border-radius: 10px;
  background: #eff1e9;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.setup-mode-card:hover {
  background: #fff;
  border-color: #8fa696;
}
.setup-mode-card.active {
  background: #fff;
  border-color: #244e3b;
  box-shadow: 0 4px 14px rgba(20, 43, 35, 0.1);
}
.setup-mode-card[data-setup-mode="pair"].active {
  border-color: #a94e3c;
  background: #fffaf8;
}
.setup-mode-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dbe4dc;
  color: #234c36;
}
.setup-mode-badge.badge-incident {
  background: #f5e0da;
  color: #9e3524;
}
.setup-mode-card strong {
  font-size: 13.5px;
  color: #20352b;
}
.setup-mode-card small {
  font-size: 11px;
  color: #5d6d61;
  line-height: 1.45;
}
.setup-stage-panel {
  border: 1px solid #cbd3c4;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  margin-bottom: 14px;
}
.setup-dropzone {
  border: 2px dashed #9fb0a2;
  border-radius: 9px;
  background: #f6f8f3;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.setup-dropzone:hover,
.setup-dropzone.is-dragover,
.setup-slot:hover,
.setup-slot.is-dragover {
  border-color: #285c43;
  background: #eef4ee;
}
.setup-drop-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 8px;
}
.setup-drop-icon {
  font-size: 30px;
  line-height: 1;
}
.setup-drop-empty strong {
  font-size: 14px;
  color: #22382c;
}
.setup-drop-empty p {
  font-size: 11.5px;
  color: #607064;
}
.setup-drop-preview {
  display: grid;
  gap: 10px;
}
.setup-preview-img-wrap {
  position: relative;
  background: #18221e;
  border-radius: 7px;
  overflow: hidden;
  max-height: 250px;
  display: grid;
  place-items: center;
}
.setup-preview-img-wrap :is(img, canvas) {
  display: block;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}
.setup-drop-replace-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(15, 23, 20, 0.82);
  color: #dce7df;
  font-size: 10px;
}
.setup-preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.setup-pair-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 11px;
  margin-bottom: 10px;
  border-radius: 7px;
  background: #fbf4f0;
  border: 1px solid #e6cfc6;
  font-size: 11px;
  color: #5b3b31;
}
.setup-pair-banner .btn-mini {
  width: auto;
  height: auto;
  padding: 5px 10px;
  border: 1px solid #c69a8b;
  background: #fff;
  color: #7c3526;
  font-weight: 600;
}
.setup-pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
.setup-slot {
  border: 2px dashed #b7c2b8;
  border-radius: 8px;
  background: #f7f8f4;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  cursor: pointer;
}
.setup-slot[data-slot="after"] {
  border-color: #d4a69a;
  background: #fcf7f5;
}
.setup-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.slot-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.tag-before {
  background: #dce8df;
  color: #234c36;
}
.tag-after {
  background: #f5dcd6;
  color: #9b2c1c;
}
.setup-slot-empty {
  margin: auto 0;
  text-align: center;
  display: grid;
  gap: 4px;
  padding: 16px 6px;
}
.setup-slot-empty strong {
  font-size: 12.5px;
  color: #2b3c32;
}
.setup-slot-empty small {
  font-size: 10.5px;
  color: #68766b;
}
.setup-slot-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.setup-slot-preview :is(img, canvas) {
  width: 100%;
  height: 155px;
  object-fit: contain;
  background: #18201d;
  border-radius: 6px;
}
.setup-slot-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.setup-slot-caption strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.setup-pair-swap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-swap-pair {
  width: 32px;
  height: 32px;
  border: 1px solid #c6cec3;
  border-radius: 50%;
  background: #fff;
  color: #354a3e;
  font-size: 14px;
  font-weight: 700;
}
.setup-confirm-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e4e8df;
}
.btn-setup-go {
  min-width: 210px;
  font-weight: 700;
  background: #285c43;
  border-color: #285c43;
}
.setup-sample-bar {
  padding: 12px 14px;
  border-radius: 9px;
  background: #eef2ea;
  border: 1px solid #d3dcd0;
  margin-bottom: 12px;
}
.setup-sample-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #485b4e;
  margin-bottom: 8px;
}
.setup-map-atelier-banner a {
  background: linear-gradient(135deg, #1d352e, #28493f);
  border-color: #587c6e;
  padding: 10px 12px;
}
.setup-map-atelier-banner a:hover {
  background: linear-gradient(135deg, #234037, #31584c);
  border-color: #d6b874;
}
@media (max-width: 700px) {
  .setup-mode-cards {
    grid-template-columns: 1fr;
  }
  .setup-confirm-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-setup-go {
    width: 100%;
  }
}
.map-setup-dialog [hidden], .unified-source-card [hidden] { display: none !important; }
.unified-source-card .after-badge { background: #484f58; color: #fff; }
.unified-source-card .after-badge.active { background: #a9382b; }
.after-source-summary { flex-wrap: wrap; }
.after-source-summary strong { flex-basis: 100px; }
.unified-source-card .after-source-actions { grid-template-columns: minmax(0, 1fr) auto; }
.after-map-guide .studio-title { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; white-space: normal; min-width: 0; }
.after-map-guide a > span { min-width: 0; overflow-wrap: anywhere; }
.after-map-guide a .studio-title strong { display: inline; }
.after-map-guide .studio-badge { flex: none; }
.panel-left .after-map-guide { container: map-guide / inline-size; }
@container map-guide (max-width: 218px) {
  .after-map-guide a { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 3px 4px; padding-inline: 4px; }
  .after-map-guide a > img { grid-row: 1 / 3; width: 20px; height: 20px; }
  .after-map-guide a > span:nth-child(2) { display: contents; }
  .after-map-guide .studio-title { grid-column: 2 / -1; gap: 4px; }
  .after-map-guide .studio-badge { padding-inline: 3px; }
  .after-map-guide a > span:last-child { grid-column: 3; grid-row: 2; }
}
.setup-feedback { color: #8a382c; font-size: 12px; margin: 0 0 10px; }
.setup-feedback:empty { display: none; }
.atelier-import-dialog { width: min(840px, calc(100vw - 32px)); max-height: 90dvh; overflow: auto; padding: 24px; border: 1px solid #8ba393; border-radius: 14px; background: #f7f8f3; color: #243e35; }
.atelier-import-dialog::backdrop { background: #11251dbb; }
.atelier-import-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 16px 0; }
.atelier-import-fields { display: grid; gap: 10px; align-content: start; }
.atelier-import-fields label { display: grid; gap: 4px; font-size: 12px; }
.atelier-import-fields select { width: 100%; padding: 7px; background: white; color: #243e35; border: 1px solid #aabbb0; border-radius: 5px; }
.atelier-import-fields .atelier-check { display: flex; align-items: center; gap: 7px; }
.atelier-import-preview { display: grid; place-content: center; min-width: 0; padding: 8px; background: #dce3dc; border-radius: 8px; }
.atelier-import-preview canvas { width: 100%; height: auto; max-height: 380px; object-fit: contain; }
.atelier-import-dialog p { font-size: 12px; line-height: 1.7; }
.atelier-import-dialog [hidden] { display: none !important; }
.atelier-import-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 700px) { .atelier-import-grid { grid-template-columns: 1fr; } }
.setup-preview-meta, .setup-slot-caption { flex-wrap: wrap; }
.setup-preview-meta strong { overflow-wrap: anywhere; }
.setup-slot, .setup-preview-meta strong, .setup-slot-caption strong { min-width: 0; }
.setup-stage-panel .btn-primary { color: #fff; }
@media (max-width: 700px) {
  .setup-pair-grid { gap: 4px; }
  .setup-slot { min-height: 135px; padding: 6px; }
  .setup-slot-head { flex-wrap: wrap; }
  .setup-slot-preview :is(img, canvas) { height: 95px; }
  .setup-slot-caption small { font-size: 10px; }
  .setup-pair-swap button { width: 26px; height: 30px; }
  .setup-stage-panel { padding: 8px; }
  .btn-setup-go { min-width: 0; }
  .map-setup-dialog .btn { white-space: normal; }
}

.ui-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ui-icon-lg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.setup-mode-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: #20352b;
}
.setup-mode-title .ui-icon {
  width: 17px;
  height: 17px;
  color: #285c43;
}
.setup-mode-card[data-setup-mode="pair"] .setup-mode-title .ui-icon {
  color: #a94e3c;
}
.setup-drop-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 2px;
  border-radius: 10px;
  background: #e5ede7;
  color: #26543d;
}
.setup-drop-icon.icon-incident {
  background: #f6e3de;
  color: #9e3524;
}
.setup-drop-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ui-icon, .ui-icon-lg { display: inline-block; vertical-align: middle; pointer-events: none; }
button > .ui-icon + span { vertical-align: middle; }
button > .ui-icon:not(:last-child) { margin-inline-end: 0.28em; }
.adv-btn > .ui-icon, .setup-mode-title > .ui-icon { margin-inline-end: 0; }
.pro-benefit-icon { margin-inline-end: 0.4em; color: #496555; }
.setup-pair-banner-text { display: inline-flex; align-items: center; gap: 7px; flex: 1 1 200px; min-width: 0; }
.setup-pair-banner-text .ui-icon { color: #9e3524; }

.sample-actions[hidden] { display: none; }
.stage-heading .stage-help { flex: 1 1 max-content; gap: 6px 10px; }
.stage-project-actions, .stage-utility-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}
.stage-project-actions {
  padding-inline-end: 10px;
  border-inline-end: 1px solid #cfd6c8;
}
.stage-help :is(.btn-toolbar, #btnToolSettings) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid #cbd2c4;
  border-radius: 6px;
  background: #f8f8f5;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.stage-help :is(.btn-toolbar, #btnToolSettings):hover { background: #fff; border-color: #98a692; }
.stage-help .btn-toolbar > .ui-icon { margin-inline-end: 0; }
@media (max-width: 1150px) {
  .tool-mode-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .stage-project-actions { padding-inline-end: 0; border: 0; }
}

.tool-mode-group {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tool-mode-btn.btn-json-import {
  --effect-color: #285c43;
  --effect-ink: #1e4633;
  --effect-soft: #eaf3ec;
  border-color: #8da995;
  background: linear-gradient(135deg, #f5f8f2, #e8f0e8);
}
.tool-mode-btn.btn-json-import:hover {
  border-color: #285c43;
  background: #dfece2;
}
.tool-mode-btn.btn-json-import .tool-icon {
  color: #285c43;
}
.tool-mode-btn.btn-json-import .tool-btn-text strong {
  color: #1b3d2c;
}
.subopt-text-input {
  width: 176px !important;
}
.playback-controls { flex-wrap: wrap; }
.playback-speed { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.playback-speed select { width: 72px; min-width: 0; padding: 5px; }
[data-pro-product][aria-disabled="true"] { cursor: default; opacity: .65; }
/* 旧3Dボタン用の非表示ルール（.welcome-advanced, #btnGuideAdvanced, #btnQuickDetail）は削除し、JSON連携ガイドを表示可能にする */
.export-tag.tag-pro-lock {
  background: #5a4638;
  color: #f7d694;
  border: 1px solid #8c6f4e;
}
.export-tag.tag-lite-sample {
  background: #3f4b52;
  color: #d7e5ee;
  border: 1px solid #667985;
}
@media (max-width: 1150px) {
  .tool-mode-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Polygon mask path editor & territory color controls */
#btnPolygonMaskStart,
#btnPolygonMaskFinish {
  border-color: #c25b8e;
  color: #7c1f4e;
  background: #fdf0f6;
}
.polygon-mask-tools[data-editing="true"] {
  border-color: #d9468f;
  background: #fff4f9;
}
.panel .polygon-mask-tools {
  background: #2f3742;
  border-color: #546070;
}
.panel .polygon-mask-tools[data-editing="true"] {
  border-color: #ec4899;
  background: #3d2c3a;
}
.panel #btnPolygonMaskStart,
.panel #btnPolygonMaskFinish {
  border-color: #ec4899;
  color: #ffd4ea;
  background: #532c43;
}
.panel .polygon-mask-tools .btn-mini {
  color: #e2e8f0;
  border-color: #626e80;
}
.panel .polygon-mask-tools .btn-mini:disabled {
  opacity: 0.45;
}
.anno-item-controls .btn-polygon-edit {
  width: 100%;
  height: auto;
  min-height: 30px;
  padding: 6px 9px;
  line-height: 1.5;
  text-align: left;
  border: 1px solid #626b78;
}
.redact-color-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.redact-color-row input[type="color"] {
  width: 100%;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}
.quick-effect-editor [data-polygon-finish] {
  background: #a02261;
  color: #fff;
  border-color: #a02261;
}

/* ==================== #guideDialog (.welcome-guide) スタイル復元 ==================== */
.welcome-guide {
  width: 820px;
  background: #f7f7f1;
  color: #263e32;
}
.welcome-guide .dialog-head {
  padding: 24px 28px 16px;
  align-items: flex-start;
}
.welcome-guide .eyebrow {
  font-size: 10px;
  letter-spacing: .08em;
  color: #647a6b;
}
.welcome-guide .dialog-head h2 {
  font-size: 24px;
  line-height: 1.4;
  margin: 6px 0;
}
.welcome-guide .dialog-head p {
  font-size: 12px;
  color: #69796d;
  margin: 0;
  line-height: 1.7;
}
.welcome-guide .btn-icon {
  flex-shrink: 0;
}
.welcome-guide #guideTitle:focus {
  outline: none;
}
.welcome-body {
  padding: 0 28px 18px;
}
.welcome-basics h3 {
  font-size: 13px;
  margin: 0 0 12px;
  font-weight: 600;
}
.welcome-basics h3 > span {
  font-size: 10px;
  font-weight: 500;
  border: 1px solid #b9c7b9;
  border-radius: 4px;
  padding: 3px 6px;
  margin-right: 7px;
  color: #54745d;
}
.welcome-basic-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.welcome-basic-steps li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.welcome-basic-steps b {
  font-size: 12px;
  font-weight: 600;
  color: #8b9d87;
  line-height: 1.8;
}
.welcome-basic-steps strong {
  font-size: 12px;
  line-height: 1.8;
}
.welcome-basic-steps p {
  font-size: 11px;
  line-height: 1.8;
  color: #627264;
  margin: 3px 0 0;
}
.welcome-advanced {
  padding: 18px 22px;
  border: 1px solid #527f64;
  border-radius: 12px;
  background: linear-gradient(145deg, #163024, #1c3b2c);
  color: #e1f0e3;
  box-shadow: 0 8px 22px #213a2912;
}
.welcome-advanced h3 {
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 10px;
  color: #f4f7ec;
}
.welcome-advanced h4 {
  font-size: 12px;
  margin: 12px 0 4px;
  color: #cfe8d6;
}
.welcome-advanced p {
  font-size: 11.5px;
  line-height: 1.8;
  margin: 4px 0 0;
  color: #c2d6c7;
}
.welcome-details {
  margin-top: 16px;
  border-bottom: 1px solid #d8e0d5;
  padding-bottom: 12px;
}
.welcome-details summary {
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  color: #3f5d47;
  line-height: 1.8;
}
.welcome-details .guide-note {
  padding: 0;
  font-size: 11px;
  line-height: 1.8;
  margin: 10px 0;
}
.welcome-save-note {
  font-size: 10.5px;
  line-height: 1.8;
  color: #6b7a6b;
  margin: 12px 0 0;
}
.welcome-guide .welcome-foot {
  padding: 16px 28px;
  background: #ecf0e7;
  gap: 12px;
  flex-wrap: wrap;
}
.welcome-foot > span {
  font-size: 10px;
  line-height: 1.8;
}
.welcome-foot .language-note {
  margin: 0;
  font-size: 10px;
}
.welcome-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}
.welcome-actions .btn {
  font-size: 12px;
  min-height: 38px;
  white-space: nowrap;
}
.welcome-actions .welcome-open-3d {
  background: #173a28;
  color: #d3eeda;
  border: 1px solid #528765;
}
.welcome-actions .welcome-open-3d:hover {
  background: #254e36;
}
.welcome-guide .guide-legal-links {
  padding: 12px 28px;
  margin: 0;
  gap: 8px 16px;
}
.welcome-guide .guide-legal-links button,
.welcome-guide .guide-legal-links a {
  font-size: 10px;
  color: #5b6d5c;
}
@media (max-width: 700px) {
  .welcome-guide {
    max-width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }
  .welcome-guide .dialog-head {
    padding: 18px 18px 14px;
  }
  .welcome-guide .dialog-head h2 {
    font-size: 19px;
  }
  .welcome-body {
    padding: 0 18px 16px;
  }
  .welcome-basic-steps {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .welcome-advanced {
    padding: 14px 16px;
  }
  .welcome-guide .welcome-foot {
    padding: 14px 18px;
  }
  .welcome-actions {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
  }
  .welcome-actions .btn {
    width: 100%;
  }
  .welcome-guide .guide-legal-links {
    padding: 12px 18px;
  }
}
