.shell{grid-template-columns:220px minmax(0,1fr);min-height:100dvh;display:grid}.shell-side{border-right:1px solid var(--line);background:var(--surface);flex-direction:column;height:100dvh;padding:24px 14px;display:flex;position:sticky;top:0}.shell-brand{font-size:var(--step-1);letter-spacing:.02em;align-items:center;gap:10px;padding:0 10px 24px;font-weight:700;display:flex}.shell-mark{background:var(--green);border-radius:6px;width:22px;height:22px;position:relative}.shell-mark:before{content:"";border:5px solid #0000;border-left:8px solid #fff;border-right-width:0;position:absolute;top:6px;left:8px}.shell-mark:after{content:"";background:var(--cue);mix-blend-mode:multiply;border-radius:2px;height:5px;position:absolute;bottom:-3px;left:-4px;right:-4px}.shell-nav{gap:2px;display:grid}.shell-link{border-radius:var(--radius-m);color:var(--ink-soft);padding:8px 10px;font-weight:500;text-decoration:none}.shell-link:hover{background:var(--ground);color:var(--ink)}.shell-link.active{background:var(--green-wash);color:var(--green-deep);font-weight:700}.shell-link{justify-content:space-between;align-items:center;gap:8px;display:flex}.shell-count{background:var(--ink);color:#fff;text-align:center;border-radius:999px;min-width:22px;padding:0 7px;font-size:.75rem;font-weight:700;line-height:1.7}.shell-banner{border-bottom:1px solid var(--line);background:var(--cue-wash);color:var(--cue-ink);font-size:var(--step--1);padding:10px 40px}.shell-banner a{color:inherit;margin:0 .3em;font-weight:700}.shell-account{border-top:1px solid var(--line);margin-top:auto;padding:16px 10px 0}.shell-workspace{font-weight:700;line-height:1.4}.shell-logout{color:var(--ink-soft);font-size:var(--step--1);text-underline-offset:3px;cursor:pointer;background:0 0;border:0;margin-top:8px;padding:0;text-decoration:underline}.shell-main{min-width:0}@media (width<=760px){.shell{grid-template-columns:minmax(0,1fr)}.shell-side{border-right:0;border-bottom:1px solid var(--line);flex-flow:wrap;align-items:center;gap:8px;height:auto;padding:12px 16px;position:static}.shell-brand{padding:0}.shell-banner{padding:10px 16px}.shell-nav{order:3;width:100%;display:flex;overflow-x:auto}.shell-link{white-space:nowrap}.shell-account{text-align:right;border:0;margin:0 0 0 auto;padding:0}.shell-account .small{display:none}}.legal-page{overflow-wrap:anywhere;max-width:860px;margin:0 auto;padding:48px 24px 80px;line-height:1.85}.legal-brand{font-weight:700}.legal-page h1{margin:28px 0}.legal-page h2{margin:32px 0 12px;font-size:1.18rem}.legal-page p{margin:12px 0}.legal-links{flex-wrap:wrap;gap:8px 20px;margin:24px 0;font-size:.8rem;display:flex}.legal-details{grid-template-columns:160px 1fr;gap:12px 24px;margin:28px 0;display:grid}.legal-details dt{font-weight:600}.legal-details dd{margin:0}.legal-page table{border-collapse:collapse;width:100%;font-size:.88rem}.legal-page caption{text-align:left;margin-bottom:8px;font-weight:600}.legal-page th,.legal-page td{text-align:left;border-bottom:1px solid #ddd;padding:12px 8px}.subscription-notice{color:var(--muted);margin:24px 0;font-size:.8rem;line-height:1.75}.terms-consent{align-items:flex-start;gap:10px;margin-top:20px;font-size:.85rem;line-height:1.6;display:flex}.terms-consent input{margin-top:5px}.legal-test-notice{margin-bottom:20px}@media (width<=580px){.legal-details{grid-template-columns:1fr;gap:4px}.legal-details dd{margin-bottom:12px}.legal-page{padding:24px 16px 48px}}.auth{grid-template-columns:minmax(0,5fr) minmax(0,4fr);min-height:100dvh;display:grid}.auth-intro{background:var(--green-deep);color:#fff;flex-direction:column;justify-content:flex-end;height:100dvh;padding:56px;display:flex;position:sticky;top:0}.auth-brand{letter-spacing:.04em;margin-bottom:auto;font-weight:700}.auth-line{gap:4px;margin-bottom:24px;font-size:clamp(1.75rem,3.2vw,2.75rem);font-weight:700;line-height:1.5;display:grid}.auth-line span:first-child{background:linear-gradient(#0000 58%,#f2c2308c 58%);width:fit-content;padding:0 .15em}.auth-note{color:#ffffffc7;max-width:36ch}.auth-form{align-self:center;width:min(420px,100%);margin:0 auto;padding:48px 32px}.signup-plans{border:0;gap:10px;margin:0 0 28px;padding:0;display:grid}.signup-plans legend{margin-bottom:12px;font-weight:700}.signup-plan{border:1px solid var(--border,#d9e0dd);cursor:pointer;border-radius:10px;align-items:flex-start;gap:12px;padding:16px;display:flex}.signup-plan.is-selected{border-color:var(--green-deep);box-shadow:0 0 0 1px var(--green-deep);background:#f2f8f4}.signup-plan input{accent-color:var(--green-deep);margin-top:5px}.signup-plan>span{flex:1;gap:4px;display:grid}.signup-plan-price{font-weight:700}@media (width<=860px){.auth{grid-template-columns:1fr}.auth-intro{height:auto;padding:28px 24px;position:static}.auth-brand{margin-bottom:20px}.auth-note{display:none}}.chart{margin:0}.chart-legend{color:var(--ink-soft);font-size:var(--step--1);flex-wrap:wrap;gap:4px 16px;margin:0 0 8px;padding:0;list-style:none;display:flex}.chart-legend li{align-items:center;gap:6px;display:inline-flex}.chart-key-line{border-radius:2px;flex:none;width:14px;height:3px;display:inline-block}.chart-plot{position:relative}.chart-plot svg{border-radius:var(--radius-s);touch-action:pan-y;display:block}.chart-grid{stroke:var(--line);stroke-width:1px}.chart-crosshair{stroke:var(--line-strong);stroke-width:1px}.chart-tick{fill:var(--ink-faint);font-variant-numeric:tabular-nums;font-size:11px}.chart-tooltip{z-index:2;border:1px solid var(--line);border-radius:var(--radius-m);background:var(--surface);min-width:120px;box-shadow:var(--shadow-pop);font-size:var(--step--1);white-space:nowrap;pointer-events:none;padding:8px 12px;line-height:1.5;position:absolute;top:8px}.chart-tooltip-date{color:var(--ink-soft);margin-bottom:2px}.chart-tooltip-row{color:var(--ink-soft);align-items:center;gap:6px;display:flex}.chart-tooltip-row strong{color:var(--ink)}.chart-table{font-size:var(--step--1);margin-top:8px}.chart-table summary{width:fit-content;color:var(--ink-soft);cursor:pointer}.chart-table .table-wrap{border:1px solid var(--line);border-radius:var(--radius-m);max-height:260px;margin-top:8px;overflow-y:auto}.chart-table .table th,.chart-table .table td{font-size:var(--step--1);padding:6px 12px}.bars-wrap{container-type:inline-size}.bars{gap:12px;margin:0;padding:0;list-style:none;display:grid}.bars-row{grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 12px;display:grid}.bars-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.bars-track{background:var(--ground);border-radius:0 4px 4px 0;grid-area:2/1/auto/-1;height:10px;display:block}.bars-fill{border-radius:0 4px 4px 0;height:100%;display:block}.bars-value{justify-content:flex-end;align-items:baseline;gap:8px;display:flex}.bars-note{min-width:3.6em;color:var(--ink-soft);font-size:var(--step--1);text-align:right}@container (width>=520px){.bars-row{grid-template-columns:minmax(120px,14em) minmax(0,1fr) minmax(96px,auto);align-items:center;gap:16px}.bars-track{grid-area:auto;height:12px}}.chart-mark{stroke:var(--ink-faint);stroke-width:1px}.chart-mark-label{fill:var(--ink-soft);font-size:11px;font-weight:700}.chart-tooltip-mark{color:var(--ink);font-weight:700}.delta{font-size:var(--step--1);font-weight:500;display:block}.delta span{margin-right:4px;font-size:.7em}.delta-up{color:var(--green-deep)}.delta-down{color:var(--danger)}.delta-none{color:var(--ink-faint)}.retention{vertical-align:middle;align-items:flex-end;gap:2px;width:58px;height:28px;display:inline-flex}.retention-bar{background:#0f8570;border-radius:2px 2px 0 0;flex:1}.range-picker{flex-wrap:wrap;align-items:center;gap:10px 14px;display:flex}.range-dates{color:var(--ink-soft);align-items:center;gap:8px;display:inline-flex}.range-dates .input{width:auto;min-height:38px;padding:4px 10px}.table-wrap{position:relative}.section{margin-top:40px}.section-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 16px;margin-bottom:14px;display:flex}.split{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:24px;display:grid}.panel-title{margin-bottom:4px}.panel-sub{color:var(--ink-soft);font-size:var(--step--1);margin-bottom:18px}.segments{border-radius:var(--radius-m);background:var(--surface-sunk);padding:3px;display:inline-flex}.segment{min-height:32px;color:var(--ink-soft);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:0 14px;font-weight:500}.segment[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px #17211f1f}.facts{grid-template-columns:repeat(3,minmax(0,1fr));margin:0;display:grid;overflow:hidden}.facts-4{grid-template-columns:repeat(4,minmax(0,1fr))}@media (width<=640px){.facts,.facts-4{grid-template-columns:repeat(2,minmax(0,1fr))}}.fact{border-right:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 -1px -1px 0;padding:18px 24px}.fact dt{color:var(--ink-soft);font-size:var(--step--1)}.fact dd{font-size:var(--step-2);margin:2px 0 0;font-weight:700;line-height:1.3}.fact-note{color:var(--ink-soft);font-size:var(--step--1);font-weight:400;display:block}.stale{opacity:.55;transition:opacity .15s}.thumb{aspect-ratio:9/16;border-radius:var(--radius-s);background:var(--surface-sunk);object-fit:cover;flex:none;width:36px;display:block}.cell-main{align-items:center;gap:14px;min-width:200px;display:flex}.cell-title{color:var(--ink);font-weight:700;text-decoration:none}a.cell-title:hover{text-decoration:underline}.row-actions{flex-wrap:nowrap;justify-content:flex-end;gap:4px;display:flex}.row-menu{position:relative}.row-menu summary{list-style:none}.row-menu summary::-webkit-details-marker{display:none}.row-menu-list{z-index:10;border:1px solid var(--line);border-radius:var(--radius-m);background:var(--surface);min-width:140px;box-shadow:var(--shadow-pop);padding:4px;display:grid;position:absolute;top:calc(100% + 4px);right:0}.row-menu-item{border-radius:var(--radius-s);text-align:left;white-space:nowrap;cursor:pointer;background:0 0;border:0;padding:8px 12px}.row-menu-item:hover:not(:disabled){background:var(--ground)}.row-menu-danger{color:var(--danger)}@media (width>=1000px){.table-wrap.has-menu{overflow:visible}}@media (width<=999px){.row-menu-list{box-shadow:none;margin-top:4px;position:static}}.steps{counter-reset:step;gap:0;margin:0;padding:0;list-style:none;display:grid}.step{border-bottom:1px solid var(--line);counter-increment:step;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:8px 16px;padding:20px 24px;display:grid}.step:last-child{border-bottom:0}.step:before{content:counter(step);border:1.5px solid var(--green);width:32px;height:32px;color:var(--green-deep);font-variant-numeric:tabular-nums;border-radius:50%;place-items:center;font-weight:700;display:grid}.step p{color:var(--ink-soft);font-size:var(--step--1)}@media (width<=860px){.split{grid-template-columns:minmax(0,1fr)}}@media (width<=760px){.step{grid-template-columns:40px minmax(0,1fr)}.step .btn{grid-column:2;justify-self:start}}.toolbar{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:14px;display:flex}.search-box{border:1px solid var(--line-strong);border-radius:var(--radius-m);background:var(--surface);min-width:0;height:46px;color:var(--ink-soft);flex:260px;align-items:center;gap:12px;padding:0 14px;display:flex}.search-box:focus-within{outline:2px solid var(--green);outline-offset:2px}.search-box svg{flex:none;width:20px;height:20px}.search-box input{width:100%;min-width:0;height:100%;color:var(--ink);background:0 0;border:0;outline:none;padding:0}.search-box input::placeholder{color:var(--ink-faint)}.toolbar .select{flex:0 260px;width:auto;height:46px}.filter-tabs{gap:18px;margin-bottom:10px;display:flex;overflow-x:auto}.filter-tabs button{min-height:44px;color:var(--ink-soft);white-space:nowrap;cursor:pointer;background:0 0;border:0;border-bottom:3px solid #0000;align-items:center;gap:10px;padding:8px 8px 10px;display:flex}.filter-tabs button:hover{color:var(--green)}.filter-tabs button[aria-pressed=true]{border-bottom-color:var(--green);color:var(--green-deep);font-weight:700}.filter-tabs button span{background:var(--surface-sunk);min-width:30px;font-size:var(--step--1);text-align:center;border-radius:999px;padding:0 8px}.filter-tabs button[aria-pressed=true] span{background:var(--green-wash)}.leads-table tbody tr{cursor:pointer}.leads-table tbody tr:hover,.leads-table tbody tr.is-open{background:var(--ground)}.leads-table td:nth-child(2){min-width:240px}.leads-table td:nth-child(3),.leads-table td:nth-child(5){white-space:nowrap}.lead-open{text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-weight:700}.lead-open:hover{text-decoration:underline}.lead-contact{overflow-wrap:anywhere}.lead-note-preview{max-width:44ch;color:var(--ink-soft);-webkit-line-clamp:1;-webkit-box-orient:vertical;margin-top:4px;display:-webkit-box;overflow:hidden}.lead-note-preview:before{content:"メモ: ";color:var(--ink-faint)}.lead-detail{gap:28px;display:grid}.lead-section h3{margin-bottom:10px}.lead-section:first-of-type{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.lead-assignee{align-items:center;gap:8px;display:flex}.lead-assignee .select{width:auto;min-width:150px}.lead-values{gap:6px;margin:0;display:grid}.lead-values div{grid-template-columns:minmax(5em,9em) minmax(0,1fr);gap:12px;display:grid}.lead-values dt{color:var(--ink-soft);font-size:var(--step--1);line-height:1.95}.lead-values dd{overflow-wrap:anywhere;white-space:pre-wrap;margin:0}.lead-journey{gap:0;margin:0;padding:0;list-style:none;display:grid}.lead-step{grid-template-columns:7.5em minmax(0,1fr);gap:12px;padding:6px 0 6px 20px;display:grid;position:relative}.lead-step:before{content:"";background:var(--green);border-radius:50%;width:9px;height:9px;position:absolute;top:15px;left:3px}.lead-step:not(:last-child):after{content:"";background:var(--line-strong);width:1px;position:absolute;top:24px;bottom:-15px;left:7px}.lead-step-choice:before,.lead-step-link:before{background:var(--cue);border-radius:2px}.lead-step-kind{color:var(--ink-soft);font-size:var(--step--1);line-height:1.95}.lead-step-form .lead-step-label{font-weight:700}.embed-details{border:1px solid var(--line);border-radius:var(--radius-m);padding:12px 16px}.embed-details summary{cursor:pointer;font-weight:700}.embed-details[open] summary{margin-bottom:8px}.embed-details code{border-radius:var(--radius-s);background:var(--surface-sunk);padding:1px 5px;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.8rem}.embed-attrs{gap:4px;margin:12px 0 0;display:grid}.embed-attrs dt{margin-top:8px}.embed-attrs dd{color:var(--ink-soft);font-size:var(--step--1);margin:0}.share{grid-template-columns:minmax(0,1fr) 200px;align-items:start;gap:32px;display:grid}.share-qr{justify-items:center;gap:12px;display:grid}.qr{border:1px solid var(--line);border-radius:var(--radius-m);width:200px;height:200px}@media (width<=760px){.share{grid-template-columns:1fr}}.react-flow{--xy-edge-stroke-default:#b1b1b7;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#555;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:#ffffff80;--xy-minimap-background-color-default:#fff;--xy-minimap-mask-background-color-default:#f0f0f099;--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#e2e2e2;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:transparent;--xy-background-pattern-dots-color-default:#91919a;--xy-background-pattern-lines-color-default:#eee;--xy-background-pattern-cross-color-default:#e2e2e2;background-color:var(--xy-background-color,var(--xy-background-color-default));--xy-node-color-default:inherit;--xy-node-border-default:1px solid #1a192b;--xy-node-background-color-default:#fff;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #00000014;--xy-node-boxshadow-selected-default:0 0 0 .5px #1a192b;--xy-node-border-radius-default:3px;--xy-handle-background-color-default:#1a192b;--xy-handle-border-color-default:#fff;--xy-selection-background-color-default:#0059dc14;--xy-selection-border-default:1px dotted #0059dccc;--xy-controls-button-background-color-default:#fefefe;--xy-controls-button-background-color-hover-default:#f4f4f4;--xy-controls-button-color-default:inherit;--xy-controls-button-color-hover-default:inherit;--xy-controls-button-border-color-default:#eee;--xy-controls-box-shadow-default:0 0 2px 1px #00000014;--xy-edge-label-background-color-default:#fff;--xy-edge-label-color-default:inherit;--xy-resize-background-color-default:#3367d9;direction:ltr}.react-flow.dark{--xy-edge-stroke-default:#3e3e3e;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#727272;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:#96969640;--xy-minimap-background-color-default:#141414;--xy-minimap-mask-background-color-default:#3c3c3c99;--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#2b2b2b;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:#141414;--xy-background-pattern-dots-color-default:#555;--xy-background-pattern-lines-color-default:#333;--xy-background-pattern-cross-color-default:#333;--xy-node-color-default:#f8f8f8;--xy-node-border-default:1px solid #3c3c3c;--xy-node-background-color-default:#1e1e1e;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #ffffff14;--xy-node-boxshadow-selected-default:0 0 0 .5px #999;--xy-handle-background-color-default:#bebebe;--xy-handle-border-color-default:#1e1e1e;--xy-selection-background-color-default:#c8c8dc14;--xy-selection-border-default:1px dotted #c8c8dccc;--xy-controls-button-background-color-default:#2b2b2b;--xy-controls-button-background-color-hover-default:#3e3e3e;--xy-controls-button-color-default:#f8f8f8;--xy-controls-button-color-hover-default:#fff;--xy-controls-button-border-color-default:#5b5b5b;--xy-controls-box-shadow-default:0 0 2px 1px #00000014;--xy-edge-label-background-color-default:#141414;--xy-edge-label-color-default:#f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props,var(--xy-background-color,var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width,var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke,var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width,var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{pointer-events:none;position:absolute;overflow:visible}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected,var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}svg.react-flow__connectionline{z-index:1001;position:absolute;overflow:visible}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default;position:absolute}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.react-flow__nodesselection-rect{pointer-events:all;cursor:grab;position:absolute}.react-flow__handle{pointer-events:none;background-color:var(--xy-handle-background-color,var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color,var(--xy-handle-border-color-default));border-radius:100%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;bottom:0;left:50%;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{z-index:5;margin:15px;position:absolute}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px)translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px)translateY(-50%)}.react-flow__attribution{background:var(--xy-attribution-background-color,var(--xy-attribution-background-color-default));margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__viewport-portal{-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__minimap{background:var(--xy-minimap-background-color-props,var(--xy-minimap-background-color,var(--xy-minimap-background-color-default)))}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var(--xy-minimap-mask-background-color-props,var(--xy-minimap-mask-background-color,var(--xy-minimap-mask-background-color-default)));stroke:var(--xy-minimap-mask-stroke-color-props,var(--xy-minimap-mask-stroke-color,var(--xy-minimap-mask-stroke-color-default)));stroke-width:var(--xy-minimap-mask-stroke-width-props,var(--xy-minimap-mask-stroke-width,var(--xy-minimap-mask-stroke-width-default)))}.react-flow__minimap-node{fill:var(--xy-minimap-node-background-color-props,var(--xy-minimap-node-background-color,var(--xy-minimap-node-background-color-default)));stroke:var(--xy-minimap-node-stroke-color-props,var(--xy-minimap-node-stroke-color,var(--xy-minimap-node-stroke-color-default)));stroke-width:var(--xy-minimap-node-stroke-width-props,var(--xy-minimap-node-stroke-width,var(--xy-minimap-node-stroke-width-default)))}.react-flow__background-pattern.dots{fill:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-dots-color-default)))}.react-flow__background-pattern.lines{stroke:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-lines-color-default)))}.react-flow__background-pattern.cross{stroke:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-cross-color-default)))}.react-flow__controls{box-shadow:var(--xy-controls-box-shadow,var(--xy-controls-box-shadow-default));flex-direction:column;display:flex}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{background:var(--xy-controls-button-background-color,var(--xy-controls-button-background-color-default));border:none;border-bottom:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)));width:26px;height:26px;color:var(--xy-controls-button-color-props,var(--xy-controls-button-color,var(--xy-controls-button-color-default)));cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;padding:4px;display:flex}.react-flow__controls-button svg{fill:currentColor;width:100%;max-width:12px;max-height:12px}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{border-radius:var(--xy-node-border-radius,var(--xy-node-border-radius-default));width:150px;color:var(--xy-node-color,var(--xy-node-color-default));text-align:center;border:var(--xy-node-border,var(--xy-node-border-default));background-color:var(--xy-node-background-color,var(--xy-node-background-color-default));padding:10px;font-size:12px}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover,var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected,var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color,var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color,var(--xy-selection-background-color-default));border:var(--xy-selection-border,var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var(--xy-controls-button-background-color-hover-props,var(--xy-controls-button-background-color-hover,var(--xy-controls-button-background-color-hover-default)));color:var(--xy-controls-button-color-hover-props,var(--xy-controls-button-color-hover,var(--xy-controls-button-color-hover-default)))}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)))}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{background-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border:1px solid #fff;border-radius:1px;width:5px;height:5px;translate:-50% -50%}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border-style:solid;border-width:0}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color,var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color,var(--xy-edge-label-color-default))}.flow-canvas{border:1px solid var(--line);border-radius:var(--radius-l);background:var(--ground);width:100%;height:520px;overflow:hidden}.flow-node{border:1px solid var(--line-strong);border-radius:var(--radius-m);background:var(--surface);width:280px;font-size:var(--step--1);position:relative;overflow:hidden;box-shadow:0 1px 2px #17211f14}.flow-node.is-quiet{color:var(--ink-faint);border-style:dashed}.flow-node-share{background:#0f8570;border-radius:0 3px 3px 0;height:5px;display:block}.flow-node-title{color:var(--ink);font-size:var(--step-0);flex-wrap:wrap;align-items:center;gap:6px;padding:10px 12px 0;font-weight:700;line-height:1.4;display:flex}.flow-node-stats{gap:18px;margin:0;padding:8px 12px 12px;display:flex}.flow-node-stats dt{color:var(--ink-soft);font-size:.75rem}.flow-node-stats dd{color:var(--ink);font-size:var(--step-1);margin:0;font-weight:700;line-height:1.3}.flow-node.is-quiet .flow-node-stats dd{color:var(--ink-faint)}.flow-node-note{color:var(--ink-soft);margin-left:4px;font-size:.75rem;font-weight:400}.flow-choices{border-top:1px dashed var(--line-strong);gap:4px;margin:0;padding:8px 0 10px 12px;list-style:none;display:grid}.flow-choice{border-left:4px solid var(--cue);background:var(--cue-wash);min-height:28px;color:var(--cue-ink);justify-content:space-between;align-items:center;gap:8px;padding:0 12px 0 10px;display:flex;position:relative}.flow-choice.is-link{border-left-color:var(--line-strong);background:var(--surface-sunk);color:var(--ink-soft)}.flow-choice-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.flow-choice strong{color:var(--ink)}.flow-handle{background:var(--line-strong);pointer-events:none;border:0;width:6px;height:6px}.dtype-field{border:0;margin:24px 0 0;padding:0}.dtype-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px;display:grid}.dtype-option{border:1px solid var(--line-strong);border-radius:var(--radius-m);cursor:pointer;grid-template-rows:auto 1fr;grid-template-columns:96px minmax(0,1fr);gap:2px 16px;padding:14px;display:grid;position:relative}.dtype-option:hover{border-color:var(--ink-faint)}.dtype-option:has(input:checked){border-color:var(--green);background:var(--green-wash);box-shadow:inset 0 0 0 1px var(--green)}.dtype-option:has(input:focus-visible){outline:2px solid var(--green);outline-offset:2px}.dtype-option input{opacity:0;position:absolute}.dtype-diagram{grid-row:1/3;width:96px;height:64px}.dtype-name{font-weight:700}.dtype-desc{color:var(--ink-soft);font-size:var(--step--1);line-height:1.6}.dtype-page{fill:var(--surface);stroke:var(--line-strong)}.dtype-bar{fill:var(--surface-sunk);stroke:var(--line-strong)}.dtype-text{fill:var(--line)}.dtype-video{fill:var(--green)}.dtype-play{fill:#fff}@media (width<=760px){.dtype-grid{grid-template-columns:1fr}}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.template-card{border:1px solid var(--line-strong);border-radius:var(--radius-m);background:var(--surface);text-align:left;cursor:pointer;grid-template-rows:auto auto 1fr auto;gap:6px;width:100%;height:100%;padding:16px;transition:border-color .12s,background-color .12s;display:grid}.template-card:hover{border-color:var(--green);background:var(--green-wash)}.template-card-blank{border-style:dashed;grid-template-rows:auto 1fr}.template-name{font-size:var(--step-1);font-weight:700;line-height:1.4}.template-summary{line-height:1.6}.template-fit{color:var(--ink-soft);font-size:var(--step--1);line-height:1.6}.template-meta{align-items:center;gap:10px;margin-top:6px;display:flex}@media (width<=760px){.template-grid{grid-template-columns:1fr}}.cell-sub{color:var(--ink-soft);font-size:var(--step--1);font-weight:400;display:block}.page-cell{overflow-wrap:anywhere;max-width:420px}.paths{margin:0;padding:0;list-style:none}.path{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;display:flex}.path:last-child{border-bottom:0}.path-scenes{flex-wrap:wrap;align-items:center;gap:6px 0;display:flex}.path-scene{align-items:center;display:inline-flex}.path-scene+.path-scene:before{content:"→";color:var(--ink-faint);margin:0 8px}.path-count{text-align:right;white-space:nowrap;flex:none}.print-only{display:none}@media print{.shell-side,.shell-banner,.toasts,.no-print,.chart-table{display:none!important}.print-only,.shell{display:block}body{background:#fff}.page{max-width:none;padding:0}.section,.panel{break-inside:avoid}}.editor{background:var(--ground);grid-template-rows:auto minmax(0,1fr);height:100dvh;display:grid}.editor-bar{border-bottom:1px solid var(--line);background:var(--surface);flex-wrap:wrap;align-items:center;gap:10px;padding:10px 16px;display:flex}.editor-name{border-radius:var(--radius-m);min-width:140px;font-size:var(--step-1);background:0 0;border:1px solid #0000;flex:0 320px;padding:6px 8px;font-weight:700}.editor-name:hover:not(:disabled){border-color:var(--line)}.editor-name:focus-visible{outline-offset:0;border-color:var(--green);background:var(--surface)}.editor-save{color:var(--ink-faint);font-size:var(--step--1);align-items:center;gap:8px;display:inline-flex}.editor-save.is-error{color:var(--danger)}.editor-bar-actions{flex-wrap:wrap;align-items:center;gap:6px;margin-left:auto;display:flex}.link-button{color:inherit;font-size:inherit;text-underline-offset:3px;cursor:pointer;background:0 0;border:0;margin-left:8px;padding:0;text-decoration:underline}.editor-body{grid-template-columns:minmax(0,1fr) 380px;min-height:0;display:grid}.editor-canvas{min-height:0;position:relative}.editor-side{border-left:1px solid var(--line);background:var(--surface);min-height:0;overflow-y:auto}.editor-side-fields{border:0;min-width:0;margin:0;padding:0}.editor-tools{border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface);flex-wrap:wrap;gap:6px;padding:6px;display:flex;box-shadow:0 2px 8px #17211f14}.editor-issues-chip{border:1px solid var(--danger);background:var(--danger-wash);color:var(--danger);font-size:var(--step--1);cursor:pointer;border-radius:999px;padding:6px 12px;font-weight:700}.editor-empty{border:1px dashed var(--line-strong);border-radius:var(--radius-l);background:var(--surface);text-align:center;width:min(460px,100% - 48px);padding:32px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.editor-empty p{color:var(--ink-soft);text-align:left;margin:10px 0 20px}.editor-empty mark{background:linear-gradient(transparent 55%, var(--cue) 55%);color:inherit;padding:0 .2em;font-weight:700}.scene-node{border:1px solid var(--line-strong);border-radius:var(--radius-m);background:var(--surface);width:280px;box-shadow:0 1px 0 var(--line-strong), 0 6px 16px -8px #17211f40;font-size:var(--step--1)}.scene-node.is-selected{border-color:var(--green);box-shadow:0 0 0 2px var(--green), 0 10px 24px -10px #0f6b5c80}.scene-node.has-error:not(.is-selected){border-color:var(--danger)}.scene-node-head{grid-template-columns:54px minmax(0,1fr);gap:12px;padding:12px;display:grid}.scene-thumb{aspect-ratio:9/16;border-radius:var(--radius-s);background:var(--ink);place-items:center;display:grid;overflow:hidden}.scene-thumb img{object-fit:cover;width:100%;height:100%}.scene-thumb-empty{color:#fff9;text-align:center;padding:4px;font-size:10px;line-height:1.3}.scene-thumb-form{background:var(--surface-sunk);align-content:center;gap:7px;padding:0 9px}.scene-thumb-form span{border:1px solid var(--line-strong);background:var(--surface);border-radius:2px;width:100%;height:9px;display:block}.scene-thumb-form span:last-child{border-color:var(--green);background:var(--green);width:60%}.scene-node-tags{flex-wrap:wrap;gap:4px;margin-bottom:4px;display:flex}.scene-node-tags:empty{display:none}.scene-node-tags .badge{padding:0 8px;font-size:11px}.scene-node-title{font-size:var(--step-0);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:700;line-height:1.4;display:-webkit-box;overflow:hidden}.scene-choices{border-top:1px dashed var(--line-strong);gap:6px;padding:10px 0 12px 12px;display:grid}.scene-note{border-top:1px dashed var(--line-strong);color:var(--ink-soft);white-space:pre-wrap;-webkit-line-clamp:4;-webkit-box-orient:vertical;padding:8px 12px 10px;font-size:.75rem;line-height:1.6;display:-webkit-box;overflow:hidden}.scene-question{color:var(--ink-soft);padding-right:12px}.scene-choice{border-radius:var(--radius-s) 6px 6px var(--radius-s);background:var(--cue);min-height:30px;color:var(--cue-ink);justify-content:space-between;align-items:center;gap:8px;margin-right:-9px;padding:4px 22px 4px 10px;font-weight:700;display:flex;position:relative}.scene-choice-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.scene-choice.is-link{background:var(--cue-wash);margin-right:12px;padding-right:10px}.scene-choice-kind{flex:none;font-size:11px;font-weight:500}.scene-choice.is-new{border:1px dashed var(--line-strong);color:var(--ink-faint);background:0 0;font-weight:500}.scene-choice.is-next{background:var(--green-wash);color:var(--green-deep)}.react-flow .scene-handle{border:2px solid var(--surface);background:var(--ink);width:12px;height:12px}.react-flow .scene-handle-in{background:var(--ink-faint);left:-7px}.react-flow .scene-handle-out{background:var(--cue-ink);right:3px}.react-flow .scene-choice.is-next .scene-handle-out{background:var(--green-deep)}.react-flow .scene-handle-new{border-color:var(--line-strong);background:var(--surface);right:3px}.react-flow .scene-handle.connectingto,.react-flow .scene-handle:hover{background:var(--green)}.react-flow .react-flow__edge-path{stroke:#8a6a0a;stroke-width:2px}.react-flow .react-flow__edge.selected .react-flow__edge-path,.react-flow .react-flow__edge:hover .react-flow__edge-path{stroke:var(--green);stroke-width:3px}.react-flow .react-flow__connection-path{stroke:var(--green);stroke-width:2px;stroke-dasharray:5 4}.react-flow .react-flow__controls{border:1px solid var(--line);border-radius:var(--radius-m);box-shadow:none;overflow:hidden}.inspector{padding:20px 20px 40px}.inspector-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;display:flex}.inspector>.field,.inspector>.field+.field{margin-top:16px}.inspector-issues{gap:6px;margin:0 0 16px;padding:0;list-style:none;display:grid}.inspector-section{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.inspector-section>h3{margin-bottom:6px}.inspector-section>p{margin-bottom:14px}.inspector-section-cue{border-left:4px solid var(--cue);padding-left:14px}.inspector-video{grid-template-columns:120px minmax(0,1fr);align-items:start;gap:12px;display:grid}.inspector-video-thumb{aspect-ratio:9/16;border-radius:var(--radius-s);background:var(--ink);overflow:hidden}.inspector-video-thumb img{object-fit:cover;width:100%;height:100%}.inspector-video-player{aspect-ratio:9/16;border-radius:var(--radius-s);background:var(--ink);object-fit:contain;width:100%;display:block}.inspector-video-title{overflow-wrap:anywhere;font-weight:700;line-height:1.4}.choice-list{gap:10px;margin:16px 0 12px;padding:0;list-style:none;display:grid}.choice-list:empty{display:none}.choice-item{border:1px solid var(--line);border-radius:var(--radius-m);background:var(--ground);gap:8px;padding:10px;display:grid}.choice-item-head{grid-template-columns:24px minmax(0,1fr);align-items:center;gap:8px;display:grid}.choice-item-number{background:var(--cue);width:24px;height:24px;color:var(--cue-ink);font-size:var(--step--1);border-radius:50%;place-items:center;font-weight:700;display:grid}.choice-item-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.choice-item-row>.select,.choice-item-row>.input{flex:140px;width:auto}.choice-item-tools{align-items:center;gap:4px;display:flex}.inspector-radio{border:0;gap:8px;margin:20px 0 0;padding:0;display:grid}.inspector-radio legend{margin-bottom:8px;padding:0}.inspector-foot{border-top:1px solid var(--line);flex-wrap:wrap;gap:8px;margin-top:32px;padding-top:20px;display:flex}.color-sample{color:#fff;font-size:var(--step--1);border-radius:999px;padding:8px 18px;font-weight:700}.picker-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:14px;margin:0;padding:0;list-style:none;display:grid}.picker-item{text-align:left;cursor:pointer;background:0 0;border:0;gap:6px;width:100%;padding:0;display:grid}.picker-thumb{aspect-ratio:9/16;border-radius:var(--radius-m);background:var(--ink);outline-offset:2px;outline:3px solid #0000;display:block;position:relative;overflow:hidden}.picker-item:hover .picker-thumb{outline-color:var(--line-strong)}.picker-item.is-picked .picker-thumb{outline-color:var(--green)}.picker-thumb img{object-fit:cover;width:100%;height:100%}.picker-order{background:var(--green);color:#fff;width:24px;height:24px;font-size:var(--step--1);border-radius:50%;place-items:center;font-weight:700;display:grid;position:absolute;top:6px;left:6px}.picker-duration{border-radius:var(--radius-s);color:#fff;background:#000000b3;padding:0 6px;font-size:11px;position:absolute;bottom:6px;right:6px}.picker-title{font-size:var(--step--1);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:500;line-height:1.4;display:-webkit-box;overflow:hidden}.preview-overlay{z-index:70;background:#000;grid-template-rows:auto minmax(0,1fr);display:grid;position:fixed;inset:0}.preview-bar{background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:8px 16px;font-weight:700;display:flex}.preview-bar .muted{margin-left:8px;font-weight:400}.preview-frame{border:0;width:100%;height:100%}.editor-narrow-note{border-bottom:1px solid var(--line);background:var(--surface-sunk);font-size:var(--step--1);padding:8px 16px;display:none}.editor-narrow-note .link-button{margin-left:8px}.editor-bar .btn[aria-pressed=true]{background:var(--surface-sunk)}.preview-bar .segments{flex:none}.preview-note{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden;margin-left:0!important}.preview-site{background:#2a3330;place-items:center;min-height:0;padding:20px;display:grid;overflow:auto}.preview-site-frame{border-radius:var(--radius-m);background:#fff;border:0;width:100%;height:100%}.preview-site-frame.is-mobile{border-radius:24px;width:390px;max-width:100%;max-height:844px}.picker-tools{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px;display:flex}.picker-tools .btn{min-height:46px}.picker-uploads{border:1px solid var(--line);border-radius:var(--radius-m);gap:8px;margin:0 0 16px;padding:12px 14px;list-style:none;display:grid}.picker-uploads li{grid-template-columns:minmax(0,1fr) minmax(80px,200px) auto auto;align-items:center;gap:12px;display:grid}.picker-upload-title{text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.picker-uploads progress{width:100%;accent-color:var(--green)}@media (width<=900px){.editor-narrow-note{display:block}.preview-note{display:none}.editor{grid-template-rows:none;height:auto;min-height:100dvh}.editor-body{grid-template-columns:1fr}.editor-canvas{height:62dvh}.editor-side{border-top:1px solid var(--line);border-left:0;overflow:visible}}.inspector .dtype-grid{grid-template-columns:1fr;gap:8px}.inspector .dtype-option{grid-template-columns:72px minmax(0,1fr);padding:10px 12px}.inspector .dtype-diagram{width:72px;height:48px}.inspector .dtype-option:not(:has(input:checked)) .dtype-desc{display:none}.choice-votes{border:0;border-top:1px dashed var(--line);flex-wrap:wrap;gap:4px 14px;margin:0;padding:8px 0 0;display:flex}.choice-votes legend{float:left;width:100%;margin-bottom:4px;padding:0}.choice-item-number-b{background:var(--surface-sunk);color:var(--ink-soft)}.settings-form{grid-template-columns:minmax(0,1fr) 240px;align-items:start;gap:40px;display:grid}.brand-sample{aspect-ratio:9/13;border-radius:var(--radius-l);background:linear-gradient(#5f6f6a 0%,#222b29 70%);flex-direction:column;justify-content:flex-end;gap:8px;padding:16px;display:flex}.brand-sample-question{color:#fff;font-size:var(--step--1);text-align:center;margin-bottom:4px;font-weight:700}.brand-sample-choice{font-size:var(--step--1);text-align:center;border-radius:999px;padding:9px 12px;font-weight:700}@media (width<=760px){.settings-form{grid-template-columns:1fr}.brand-sample{max-width:240px}}.settings-account{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:40px;display:grid}.settings-details{margin-top:16px}.settings-details summary{color:var(--green);font-size:var(--step--1);cursor:pointer}.settings-details p{margin:8px 0 12px}@media (width<=760px){.settings-account{grid-template-columns:1fr}}.usage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 40px;display:grid}.usage-head{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:6px;display:flex}.usage-track{background:var(--ground);border-radius:0 4px 4px 0;height:10px;overflow:hidden}.usage-fill{background:#0f8570;border-radius:0 4px 4px 0;height:100%;display:block}.usage-fill.is-over{background:var(--danger)}.usage-note{color:var(--ink-soft);font-size:var(--step--1);margin-top:4px}.usage-note.is-over{color:var(--danger)}.table tr.is-current{background:var(--green-wash)}@media (width<=760px){.usage-grid{grid-template-columns:1fr}}.page.videos-page{max-width:1600px}.videos-icon{flex:none;width:20px;height:20px}.videos-page .videos-header{align-items:center;margin-bottom:28px}.videos-heading{align-items:center;gap:16px;display:flex}.videos-heading h1{font-size:var(--step-3)}.videos-total{background:var(--surface-sunk);color:var(--ink-soft);font-size:var(--step-0);border-radius:999px;padding:2px 12px;font-weight:700}.videos-upload{justify-items:end;gap:4px;display:grid}.videos-upload>.btn{gap:10px;min-height:46px;padding-inline:20px;font-weight:700}.videos-toolbar{align-items:center;gap:12px;margin-bottom:14px;display:flex}.videos-search{border:1px solid var(--line-strong);border-radius:var(--radius-m);background:var(--surface);min-width:0;height:46px;color:var(--ink-soft);flex:1;align-items:center;gap:12px;padding:0 14px;display:flex}.videos-search:focus-within{outline:2px solid var(--green);outline-offset:2px}.videos-search input{width:100%;min-width:0;height:100%;color:var(--ink);background:0 0;border:0;outline:none;padding:0}.videos-search input::placeholder{color:var(--ink-faint)}.videos-toolbar .videos-sort{flex:none;width:210px;height:46px;padding-right:28px}.videos-view-toggle{border:1px solid var(--line-strong);border-radius:var(--radius-m);background:var(--surface);flex:none;gap:4px;padding:3px;display:flex}.videos-view-toggle .btn{border-radius:5px;min-width:48px;min-height:38px;padding:0 12px}.videos-view-toggle .btn[aria-pressed=true]{background:var(--green);color:#fff}.videos-filters{gap:18px;margin-bottom:10px;display:flex}.videos-filters button{min-height:44px;color:var(--ink-soft);white-space:nowrap;cursor:pointer;background:0 0;border:0;border-bottom:3px solid #0000;align-items:center;gap:10px;padding:8px 8px 10px;display:flex}.videos-filters button:hover{color:var(--green)}.videos-filters button[aria-pressed=true]{border-bottom-color:var(--green);color:var(--green-deep);font-weight:700}.videos-filters button span{background:var(--surface-sunk);min-width:30px;font-size:var(--step--1);text-align:center;border-radius:999px;padding:0 8px}.videos-filters button[aria-pressed=true] span{background:var(--green-wash)}.videos-library{border:1px solid var(--line);border-radius:var(--radius-m);background:var(--surface)}.videos-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%}.videos-table th{border-bottom:1px solid var(--line);background:var(--ground);color:var(--ink-soft);font-size:var(--step--1);text-align:left;white-space:nowrap;padding:9px 16px;font-weight:500}.videos-table th:first-child{border-top-left-radius:var(--radius-m)}.videos-table th:last-child{border-top-right-radius:var(--radius-m)}.videos-table th:nth-child(2){width:13%}.videos-table th:nth-child(3){width:12%}.videos-table th:nth-child(4){width:20%}.videos-table th:nth-child(5){width:154px}.videos-table td{border-bottom:1px solid var(--line);vertical-align:middle;padding:16px}.videos-table tbody tr:last-child td{border-bottom:0}.videos-table tbody tr:hover{background:#fafcf9}.video-identity{align-items:center;gap:18px;min-width:0;display:flex}.video-thumbnail{border-radius:var(--radius-s);background:var(--surface-sunk);cursor:pointer;border:0;flex:none;place-items:center;width:96px;height:64px;padding:0;display:grid;position:relative;overflow:hidden}.video-thumbnail img{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}.video-thumbnail-play{color:#fff;background:#17211fb8;border-radius:50%;place-items:center;width:28px;height:28px;display:grid;position:absolute}.video-thumbnail-play .videos-icon{width:17px;height:17px}.video-thumbnail:hover:not(:disabled) .video-thumbnail-play{background:var(--green)}.video-thumbnail:disabled{cursor:default}.video-thumbnail:disabled .video-thumbnail-play{opacity:.3}.video-name{min-width:0}.video-title{max-width:100%;color:var(--green-deep);text-align:left;overflow-wrap:anywhere;-webkit-line-clamp:2;cursor:pointer;background:0 0;border:0;-webkit-box-orient:vertical;padding:0;font-size:1rem;font-weight:700;line-height:1.5;display:-webkit-box;overflow:hidden}.video-title:hover,.video-title:focus-visible{color:var(--green);text-underline-offset:3px;text-decoration:underline}.video-description{color:var(--ink-soft);font-size:var(--step--1);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;overflow:hidden}.video-error{color:var(--danger);font-size:var(--step--1);overflow-wrap:anywhere;margin-top:4px}.badge.video-usage{border-radius:var(--radius-s);padding:4px 10px}.video-specs-cell span{font-size:var(--step--1);white-space:nowrap;display:block}.video-date-cell{color:var(--ink-soft);font-size:var(--step--1);white-space:nowrap}.video-actions{justify-content:flex-start;align-items:center;gap:8px;display:flex}.video-actions .video-play-button{color:var(--green-deep);flex:none;gap:6px;font-weight:700}.video-play-button .videos-icon{width:16px;height:16px}.video-menu{position:relative}.video-menu>.video-menu-trigger{width:30px;padding:0;list-style:none}.video-menu-trigger::-webkit-details-marker{display:none}.video-menu-list{z-index:10;border:1px solid var(--line);border-radius:var(--radius-m);background:var(--surface);min-width:136px;box-shadow:var(--shadow-pop);padding:4px;position:absolute;top:calc(100% + 6px);right:0}.video-menu-list button{border-radius:var(--radius-s);width:100%;color:var(--danger);text-align:left;cursor:pointer;background:0 0;border:0;padding:8px 12px}.video-menu-list button:hover{background:var(--danger-wash)}.videos-pagination{border-top:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:16px;display:flex}.videos-pagination nav,.videos-page-number{align-items:center;gap:6px;display:flex}.videos-page-number .btn{min-width:32px;padding-inline:8px}.videos-page-gap{color:var(--ink-faint)}.videos-pagination .videos-icon{width:14px;height:14px}.video-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding:20px;list-style:none;display:grid}.video-card{border:1px solid var(--line);border-radius:var(--radius-m);min-width:0}.video-card>.video-thumbnail{aspect-ratio:16/9;border-radius:7px 7px 0 0;width:100%;height:auto}.video-card-body{gap:14px;padding:16px;display:grid}.video-card-meta,.video-card-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.video-uploads{border:1px solid var(--line);border-radius:var(--radius-m);background:var(--surface);margin-bottom:24px}.video-uploads ul{margin:0;padding:0;list-style:none}.video-upload-row{align-items:center;gap:16px;padding:16px 20px;display:flex}.video-upload-row+.video-upload-row{border-top:1px solid var(--line)}.video-upload-row>.videos-icon{color:var(--green)}.video-upload-body{flex:1;min-width:0}.video-upload-title{overflow-wrap:anywhere;font-weight:700}.video-progress{background:var(--surface-sunk);appearance:none;border:0;border-radius:3px;width:100%;height:6px;margin:8px 0;display:block;overflow:hidden}.video-progress::-webkit-progress-bar{background:var(--surface-sunk)}.video-progress::-webkit-progress-value{background:var(--green);border-radius:3px}.video-progress::-moz-progress-bar{background:var(--green);border-radius:3px}.videos-drop{min-height:100dvh;position:relative}.videos-drop-active:after{content:"";z-index:20;border:2px dashed var(--green);border-radius:var(--radius-l);pointer-events:none;background:#e2efeb99;position:absolute;inset:12px}.videos-drop-hint{z-index:21;background:var(--green-deep);color:#fff;text-align:center;pointer-events:none;border-radius:999px;max-width:calc(100% - 32px);padding:10px 20px;font-weight:700;position:fixed;bottom:40px;left:50%;transform:translate(-50%)}.videos-drop-note{color:var(--ink-soft);font-size:var(--step--1);justify-content:center;align-items:center;gap:12px;margin-top:24px;display:flex}.video-player{border-radius:var(--radius-m);background:#000;width:100%;max-height:68dvh;display:block}.video-player+.notice{margin-top:12px}.video-edit{grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:28px;display:grid}.video-preview{border-radius:var(--radius-m);background:#000;width:100%;max-height:460px;display:block}.video-retake{align-items:center;gap:12px;margin-top:12px;display:flex}.video-facts{border-top:1px solid var(--line);font-size:var(--step--1);gap:6px;margin:24px 0 0;padding-top:16px;display:grid}.video-facts div{gap:12px;display:flex}.video-facts dt{width:4.5em;color:var(--ink-soft)}.video-facts dd{margin:0}@media (width>=761px) and (width<=1199px){.videos-table th:nth-child(4),.videos-table .video-date-cell{display:none}.videos-table th,.videos-table td{padding-inline:12px}.videos-table th:nth-child(2){width:120px}.videos-table th:nth-child(3){width:110px}.videos-table th:nth-child(5){width:142px}.video-identity{gap:12px}.video-thumbnail{width:72px;height:56px}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=950px){.videos-toolbar{flex-wrap:wrap}.videos-search{flex-basis:100%}.videos-toolbar .videos-sort{flex:1;min-width:0}}@media (width<=760px){.videos-header{gap:20px}.videos-upload{justify-items:start}.videos-filters{justify-content:space-between;gap:4px}.videos-filters button{gap:6px;padding-inline:4px}.videos-table,.videos-table tbody{display:block}.videos-table thead{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.videos-table tbody tr{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"identity identity""usage specs""date actions";gap:10px 12px;padding:16px;display:grid}.videos-table tbody tr+tr{border-top:1px solid var(--line)}.videos-table td{border:0;min-width:0;padding:0}.video-identity-cell{grid-area:identity}.video-usage-cell{grid-area:usage;align-self:center}.video-specs-cell{text-align:right;grid-area:specs}.video-date-cell{grid-area:date;align-self:center}.video-actions-cell{grid-area:actions;justify-self:end}.video-identity{gap:14px}.video-thumbnail{width:80px;height:60px}.video-date-cell:before{content:"追加日 ";color:var(--ink-faint)}.video-menu-list{top:auto;bottom:calc(100% + 6px)}.videos-pagination{justify-content:center}.videos-pagination nav{flex-wrap:wrap;justify-content:center}.videos-pagination nav>.btn{padding-inline:8px}.video-grid{grid-template-columns:1fr;gap:16px;padding:16px}.video-upload-row{gap:12px;padding:16px}.videos-drop-note{display:none}.video-edit{grid-template-columns:1fr}.video-preview{max-height:320px}}.video-tags{flex-wrap:wrap;gap:4px;margin-top:6px;display:flex}.video-tags .badge{padding:0 8px;font-size:.75rem}.video-used-in{display:block}.video-section{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.video-section-head{align-items:center;gap:10px;margin-bottom:6px;display:flex}.video-captions-editor{min-height:220px;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.8rem;line-height:1.7}:root{--ink:#17211f;--ink-soft:#4d5b57;--ink-faint:#7d8a86;--ground:#f3f5f2;--surface:#fff;--surface-sunk:#e9ede8;--line:#d9dfd9;--line-strong:#b9c3bc;--green:#0f6b5c;--green-deep:#0a4f44;--green-wash:#e2efeb;--cue:#f2c230;--cue-wash:#fdf3cf;--cue-ink:#5c4500;--danger:#b23a26;--danger-wash:#f9e4df;--radius-s:4px;--radius-m:8px;--radius-l:14px;--shadow-pop:0 12px 32px -8px #17211f47, 0 2px 6px #17211f14;--font:"Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;--step--1:.8125rem;--step-0:.9375rem;--step-1:1.125rem;--step-2:1.5rem;--step-3:2rem}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--ground);color:var(--ink);font-family:var(--font);font-size:var(--step-0);font-feature-settings:"palt";-webkit-font-smoothing:antialiased;margin:0;line-height:1.7}h1,h2,h3,p{margin:0}h1{font-size:var(--step-2);letter-spacing:.01em;font-weight:700;line-height:1.35}h2{font-size:var(--step-1);font-weight:700;line-height:1.4}h3{font-size:var(--step-0);font-weight:700}a{color:var(--green);text-underline-offset:3px}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--green);outline-offset:2px}.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}.muted{color:var(--ink-soft)}.small{font-size:var(--step--1)}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.btn{border:1px solid var(--line-strong);border-radius:var(--radius-m);background:var(--surface);white-space:nowrap;min-height:38px;color:var(--ink);cursor:pointer;justify-content:center;align-items:center;gap:.4em;padding:0 16px;font-weight:500;line-height:1;text-decoration:none;transition:background-color .12s,border-color .12s;display:inline-flex}.btn:hover:not(:disabled){border-color:var(--ink-faint);background:var(--ground)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{border-color:var(--green);background:var(--green);color:#fff}.btn-primary:hover:not(:disabled){border-color:var(--green-deep);background:var(--green-deep)}.btn-quiet{background:0 0;border-color:#0000}.btn-quiet:hover:not(:disabled){background:var(--surface-sunk);border-color:#0000}.btn-danger{border-color:var(--danger);background:var(--surface);color:var(--danger)}.btn-danger:hover:not(:disabled){border-color:var(--danger);background:var(--danger-wash)}.btn-small{min-height:30px;font-size:var(--step--1);padding:0 10px}.field{gap:6px;display:grid}.field+.field{margin-top:16px}.field-label{font-size:var(--step--1);font-weight:700}.field-hint{font-size:var(--step--1);color:var(--ink-soft)}.field-error{font-size:var(--step--1);color:var(--danger)}.input,.select,.textarea{border:1px solid var(--line-strong);border-radius:var(--radius-m);background:var(--surface);width:100%;min-height:40px;padding:8px 12px}.textarea{resize:vertical;min-height:88px;line-height:1.6}.input:focus-visible,.select:focus-visible,.textarea:focus-visible{outline-offset:0;border-color:var(--green)}.input-color{width:48px;min-height:40px;padding:4px}.check{cursor:pointer;align-items:center;gap:8px;display:inline-flex}.check input{width:18px;height:18px;accent-color:var(--green)}.panel{border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}.panel-body{padding:24px}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;width:100%;font-size:var(--step-0)}.table th{border-bottom:1px solid var(--line);color:var(--ink-soft);font-size:var(--step--1);text-align:left;white-space:nowrap;padding:10px 16px;font-weight:500}.table td{border-bottom:1px solid var(--line);vertical-align:middle;padding:14px 16px}.table tr:last-child td{border-bottom:0}.table .cell-num{text-align:right;font-variant-numeric:tabular-nums}.badge{background:var(--surface-sunk);color:var(--ink-soft);font-size:var(--step--1);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:2px 10px;font-weight:500;line-height:1.6;display:inline-flex}.badge-live{background:var(--green-wash);color:var(--green-deep)}.badge-cue{background:var(--cue-wash);color:var(--cue-ink)}.badge-danger{background:var(--danger-wash);color:var(--danger)}.badge-strong{background:var(--ink);color:#fff}.page{max-width:1120px;padding:40px 40px 80px}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:28px;display:flex}.page-lead{max-width:62ch;color:var(--ink-soft);margin-top:6px}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.stack{gap:16px;display:grid}.empty{border:1px dashed var(--line-strong);border-radius:var(--radius-l);text-align:center;padding:56px 24px}.empty h2{margin-bottom:6px}.empty p{max-width:48ch;color:var(--ink-soft);margin:0 auto 20px}.notice{border-radius:var(--radius-m);background:var(--surface-sunk);font-size:var(--step--1);padding:12px 16px}.notice-danger{background:var(--danger-wash);color:var(--danger)}.notice-cue{background:var(--cue-wash);color:var(--cue-ink)}.tabs{border-bottom:1px solid var(--line);gap:4px;margin-bottom:24px;display:flex}.tab{color:var(--ink-soft);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:10px 14px;font-weight:500}.tab[aria-selected=true]{border-bottom-color:var(--green);color:var(--ink)}.modal-backdrop{z-index:50;background:#17211f73;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.modal{border-radius:var(--radius-l);background:var(--surface);width:min(560px,100%);max-height:calc(100dvh - 48px);box-shadow:var(--shadow-pop);flex-direction:column;display:flex}.modal-wide{width:min(880px,100%)}.modal-header{justify-content:space-between;align-items:center;gap:16px;padding:20px 24px 0;display:flex}.modal-body{padding:16px 24px 24px;overflow-y:auto}.modal-footer{border-top:1px solid var(--line);justify-content:flex-end;gap:10px;padding:16px 24px;display:flex}.drawer-backdrop{z-index:40;background:#17211f4d;justify-content:flex-end;display:flex;position:fixed;inset:0}.drawer{background:var(--surface);width:min(520px,100%);height:100%;box-shadow:var(--shadow-pop);flex-direction:column;animation:.18s ease-out drawer-in;display:flex}@keyframes drawer-in{0%{opacity:0;transform:translate(24px)}}.drawer-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:20px 24px 16px;display:flex}.drawer-header h2{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.drawer-body{flex:1;padding:20px 24px 32px;overflow-y:auto}.drawer-footer{border-top:1px solid var(--line);justify-content:space-between;gap:10px;padding:14px 24px;display:flex}.toasts{z-index:60;gap:8px;display:grid;position:fixed;bottom:24px;right:24px}.toast{border-radius:var(--radius-m);background:var(--ink);color:#fff;box-shadow:var(--shadow-pop);font-size:var(--step--1);padding:12px 16px}.toast-error{background:var(--danger)}.code{border-radius:var(--radius-m);background:var(--ink);color:#e6efe9;white-space:pre;padding:14px 16px;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.8rem;line-height:1.7;display:block;overflow-x:auto}.spinner{border:2px solid var(--line-strong);border-top-color:var(--green);border-radius:50%;width:20px;height:20px;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}@media (width<=760px){.page{padding:24px 16px 64px}}
