:root{--ink:#202522;--muted:#6c746f;--line:#dfe4df;--paper:#fbfaf6;--panel:#fff;--green:#8e4898;--green-dark:#65326e;--green-soft:#f3e8f5;--focus-ring:#8e489829;--amber:#b26d1c;--red:#a94442;--shadow:0 12px 36px #232f2814;--control-height:42px}body[data-editor-mode=event]{--green:#dfb755;--green-dark:#6f5516;--green-soft:#fbf3df;--focus-ring:#dfb75538}*{box-sizing:border-box;scrollbar-width:none}::-webkit-scrollbar{width:0;height:0;display:none}[hidden]{display:none!important}html,body{width:100%;height:100%;overflow:hidden}body{color:var(--ink);background:var(--paper);flex-direction:column;margin:0;font-family:Yu Gothic UI,Noto Sans JP,sans-serif;display:flex}#appRoot{flex-direction:column;flex:auto;min-width:0;min-height:0;display:flex}body.app-loading>:not(#appLoading):not(script){visibility:hidden}.login-view{z-index:999;padding:max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));background:#f7f3f8;place-items:center;display:grid;position:fixed;inset:0}.login-view[hidden]{display:none}.login-card{text-align:center;background:#fff;border:1px solid #ddd2df;border-radius:16px;width:min(100%,420px);padding:44px 32px 40px;position:relative;overflow:hidden;box-shadow:0 16px 40px #3b23401a}.login-card:before{content:"";background:linear-gradient(90deg,#8e4898 0 62%,#dfb755 62% 100%);height:7px;position:absolute;inset:0 0 auto}.login-card h1{gap:6px;margin:0 0 28px;font-size:26px;font-weight:800;display:inline-flex}.login-card button{color:#fff;width:100%;font:inherit;cursor:pointer;background:#8e4898;border:0;border-radius:10px;padding:13px 20px;font-weight:700;display:block}.login-card button:hover{background:#773780}.app-loading-screen{z-index:1000;background:var(--paper);place-items:center;display:grid;position:fixed;inset:0}body:not(.app-loading) .app-loading-screen{display:none}.app-loading-spinner{transform-origin:50%;border:4px solid #e2d5e5;border-top-color:#8e4898;border-radius:50%;width:42px;height:42px;animation:.75s linear infinite app-loading-spin}@keyframes app-loading-spin{to{transform:rotate(360deg)}}button,input,select,textarea{font:inherit}button,.button{cursor:pointer;border:0;border-radius:10px;padding:10px 16px;transition:all .18s}button svg{width:17px;height:17px;font-size:17px!important}button:disabled{opacity:.42;cursor:not-allowed}button:not(:disabled):hover,.button:hover{transform:translateY(-1px)}.ui-input,.ui-select,.ui-textarea{width:100%;min-width:0;color:var(--ink);background:#fcfdfc;border:1px solid #ccd4cf;border-radius:9px;outline:none;padding:10px 11px}.ui-input,.ui-select{min-height:var(--control-height)}.ui-textarea{resize:vertical;min-height:92px;line-height:1.55}.ui-textarea-code{font-family:ui-monospace,Cascadia Mono,monospace;font-size:11px}.ui-input:focus,.ui-select:focus,.ui-textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px var(--focus-ring)}.ui-input[aria-invalid=true],.ui-select[aria-invalid=true],.ui-textarea[aria-invalid=true]{border-color:var(--red);box-shadow:0 0 0 2px #a944421f}.ui-form-field{gap:6px;font-weight:700;display:grid}.ui-form-field small{color:var(--muted);font-size:12px;font-weight:400}.ui-form-field-error{min-height:34px;color:var(--red);font-size:12px;font-weight:400;line-height:17px;display:block}.ui-form-field-error[aria-hidden=true]{visibility:hidden}.ui-execution-button{z-index:2;justify-content:center;align-items:center;gap:8px;display:inline-flex;position:relative}.ui-button-spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:17px;height:17px;animation:.7s linear infinite app-loading-spin}.ui-operation-blocker{z-index:1;cursor:wait;background:#ffffff57;position:fixed;inset:0}.topbar{color:#fff;background:var(--green);grid-template-columns:auto minmax(220px,1fr) auto;align-items:center;gap:24px;min-height:68px;padding:14px 24px;display:grid;position:relative}.topbar h1{letter-spacing:.01em;white-space:nowrap;flex:none;margin:0;padding:7px 0;font-size:20px}.brand-title{align-items:baseline;gap:5px;font-weight:800;display:inline-flex}.brand-narrative{color:#8e4898}.brand-design{color:#dfb755}.topbar .brand-narrative{color:#fff}.topbar .brand-design{color:#dfb755}body[data-editor-mode=event] .topbar .brand-narrative{color:#8e4898}body[data-editor-mode=event] .topbar .brand-design{color:#111}.header-center{background:#00000029;border-radius:10px;justify-self:center;width:100%;min-width:0;max-width:520px;padding:3px;display:inline-flex}.header-center button{color:#dcebe4;white-space:nowrap;background:0 0;flex:1 1 0;padding:7px 13px}.header-center button.active{color:var(--green-dark);background:#fff;font-weight:700}.save-state{color:#dcebe4;background:#00000024;border-radius:999px;flex:none;place-items:center;width:34px;height:34px;padding:0;display:grid}.save-state svg{transform-box:fill-box;transform-origin:50%;width:17px;height:17px;display:block;font-size:17px!important}.save-state.saving svg{will-change:transform;animation:.8s linear infinite save-spin}.save-state.error{color:#fff;background:#a94442}@keyframes save-spin{to{transform:rotate(360deg)}}.header-actions{flex:none;justify-content:flex-end;align-items:center;gap:6px;display:flex;position:relative}.header-icon-button,.history-button,.user-menu-button{width:34px;height:34px;min-height:34px;color:inherit;background:#00000024;border-radius:9px;flex:none;place-items:center;padding:0;display:grid}.header-icon-button.active{outline-offset:1px;background:#ffffff3d;outline:2px solid}.header-icon-button svg,.history-button svg{width:17px;height:17px}.workspace-button,.pull-button,.publish-button{min-height:34px;color:inherit;background:#00000024;padding:0}.pull-button{color:#fff;background:#4267a9}.pull-button:disabled{color:inherit;opacity:.42;background:#00000024}.publish-button{color:#fff;background:#236f58}.publish-button:disabled{color:inherit;opacity:.42;background:#00000024}.user-menu-button{border-radius:999px;width:34px;height:34px;position:relative;overflow:visible}.user-avatar{border-radius:999px;place-items:center;width:28px;height:28px;display:grid;overflow:hidden}.user-avatar img{object-fit:cover;width:28px;max-width:28px;height:28px;max-height:28px;display:block}.user-avatar svg{width:20px;height:20px}.user-provider-icon{color:#fff;border:2px solid var(--green);background:#1f2328;border-radius:999px;place-items:center;width:14px;height:14px;display:grid;position:absolute;bottom:-2px;right:-2px}.user-provider-icon svg{width:9px;height:9px}.user-menu{z-index:30;width:min(300px,100vw - 24px);color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:12px;margin:0;padding:12px;position:fixed;inset:76px 12px auto auto;box-shadow:0 18px 54px #19141c3d}.user-menu:popover-open{margin:0;display:block;position:fixed;inset:76px 12px auto auto}.user-menu::backdrop{background:0 0}.user-menu-identity{border-bottom:1px solid var(--line);gap:3px;min-width:0;padding:4px 4px 12px;display:grid}.user-menu-identity strong,.user-menu-identity span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.user-menu-identity span{color:var(--muted);font-size:12px}.logout-button{color:#852e2c;cursor:pointer;white-space:nowrap;background:#f7e8e7;width:100%;min-height:38px;margin-top:10px;padding:7px 10px}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;overflow:hidden}dialog::backdrop{background:#00000094}dialog>form{overscroll-behavior:contain;max-height:calc(100dvh - 24px);overflow:auto}.workspace-dialog{border:0;border-radius:14px;width:min(520px,100vw - 32px);padding:0}.workspace-dialog::backdrop{background:#00000094}.workspace-dialog form{gap:16px;padding:22px;display:grid}.workspace-dialog label{gap:6px;font-weight:700;display:grid}.workspace-mode-toggle{background:var(--soft);border-radius:10px;grid-template-columns:1fr 1fr;gap:2px;padding:2px;display:grid}.workspace-mode-toggle button{min-height:38px;color:var(--muted);background:0 0}.workspace-mode-toggle button.active{color:#fff;background:var(--green)}.workspace-validation{min-height:20px;color:var(--muted);margin:0;font-size:13px}.workspace-field-help{color:var(--muted);margin:-4px 0 0;font-size:12px}.workspace-validation.valid{color:#236f58}.workspace-validation.invalid{color:#a94442}.workspace-actions{justify-content:flex-end;gap:10px;display:flex}.workspace-list-shell{grid-template-rows:auto auto minmax(0,1fr) auto;gap:18px;height:min(620px,100dvh - 32px);max-height:calc(100dvh - 32px);padding:24px;display:grid}.workspace-list{overscroll-behavior:contain;align-content:start;gap:8px;min-height:0;display:grid;overflow-y:auto}.workspace-add{align-self:end}.workspace-list-empty{min-height:160px;color:var(--muted);text-align:center;place-items:center;margin:0;display:grid}.workspace-row{border:1px solid var(--line);background:#fff;border-radius:10px;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:4px;display:grid}.workspace-row.current{border-color:var(--accent);box-shadow:inset 3px 0 var(--accent)}.workspace-row-main{text-align:left;min-width:0;color:inherit;background:0 0;gap:4px;padding:12px 10px 12px 14px;display:grid}.workspace-row-main:disabled{cursor:not-allowed;opacity:.62}.workspace-row-title{text-overflow:ellipsis;white-space:nowrap;font-weight:700;overflow:hidden}.workspace-row-path,.workspace-row-meta{color:var(--muted);font-size:12px}.workspace-row-meta{flex-wrap:wrap;gap:6px 12px;display:flex}.workspace-row-status.saved{color:#7a5b00}.workspace-row-status.conflict,.workspace-row-status.inaccessible{color:#a13d3d}.workspace-row-delete{color:#777;background:0 0;align-self:center;width:36px;height:36px;margin-right:8px;padding:0}.workspace-add{width:100%;min-height:42px}.workspace-delete-dialog{max-width:440px}.conflict-dialog{width:min(760px,100vw - 32px)}.conflict-list{gap:12px;max-height:55vh;display:grid;overflow:auto}.conflict-card{border:1px solid #d6ddd9;border-radius:10px;gap:8px;padding:12px;display:grid}.conflict-card code{overflow-wrap:anywhere}.conflict-card textarea{min-height:90px}.history-button{color:#fff;background:#00000024;place-items:center;width:34px;height:34px;padding:0;display:grid}body[data-editor-mode=event] .topbar,body[data-editor-mode=event] .header-center button,body[data-editor-mode=event] .save-state,body[data-editor-mode=event] .history-button{color:#3d2e08}.primary{color:var(--green-dark);background:#fff;font-weight:700}.secondary{color:var(--green-dark);background:var(--green-soft)}.danger{color:#852e2c;background:#f7e8e7}.notice{z-index:40;color:#315345;background:#e4efe9;border:1px solid #d0dfd7;border-radius:10px;grid-template-columns:minmax(0,1fr) 32px;align-items:start;gap:8px;width:min(420px,100vw - 24px);padding:10px 10px 10px 14px;font-size:13px;display:grid;position:fixed;top:76px;right:12px;box-shadow:0 12px 36px #19141c2e}.notice>span{align-self:center;line-height:1.5}.notice>button{color:currentColor;background:0 0;place-items:center;width:32px;height:32px;min-height:32px;padding:0;display:grid}.notice.error{color:#792f2d;background:#f8e7e6;border-color:#efcdca}.notice.warning{color:#654b0f;background:#fff4d6;border-color:#e7cf8c}.notice.success{color:#27553f;background:#dff0e5}.topbar,.kindbar{flex:none}.mobile-back{display:none}.kindbar{border-bottom:1px solid var(--line);background:#fff;align-items:center;gap:8px;height:57px;min-height:57px;max-height:57px;padding:10px 16px;display:flex;overflow:hidden}.kind-scroll{flex:auto;gap:8px;min-width:0;display:flex;overflow:auto hidden}.workspace{background:var(--line);flex:auto;grid-template-columns:minmax(180px,320px) minmax(0,1fr);gap:1px;min-height:0;display:grid;overflow:hidden}.panel{background:var(--panel);min-width:0;min-height:0}.catalog{grid-template-rows:auto auto minmax(0,1fr);display:grid;position:relative;overflow:hidden}.kind-button{color:#3d4641;white-space:nowrap;background:0 0;flex:none;margin:0;padding:9px 14px;display:block}.kind-button.active{color:var(--green-dark);background:var(--green-soft);font-weight:700}.kind-button span:last-child{opacity:.55}.catalog-footer{z-index:4;border-top:1px solid var(--line);background:#fff;justify-content:flex-end;padding:12px 14px;display:flex;position:absolute;bottom:0;left:0;right:0}.tag-toolbar{border-bottom:1px solid var(--line);background:#fff;grid-template-columns:minmax(0,1fr) 44px;min-width:0;height:51px;min-height:51px;max-height:51px;display:grid;overflow:hidden}.tag-filters{align-items:center;gap:7px;min-width:0;height:50px;min-height:50px;max-height:50px;padding:10px 8px 10px 14px;display:flex;overflow:auto hidden}.tag-manager-button{width:44px;height:100%;color:var(--green-dark);border-left:1px solid var(--line);background:#fff;border-radius:0;place-items:center;padding:0;display:grid}.tag-filter{color:var(--green-dark);background:var(--green-soft);border:1px solid #0000;border-radius:999px;flex:none;padding:6px 11px;font-size:12px}.tag-filter.active{color:#fff;background:var(--green)}.dependency-panel{border-bottom:1px solid var(--line);background:#fbfcfb}.dependency-toggle{width:100%;color:var(--green-dark);text-align:left;background:0 0;border-radius:0;padding:8px 14px;font-size:12px;font-weight:700}.dependency-dialog{border:0;border-radius:14px;width:min(1100px,100vw - 40px);max-height:min(860px,100vh - 40px);padding:0;overflow:hidden;box-shadow:0 24px 80px #00000047}.dependency-dialog::backdrop{background:#00000094}.dependency-dialog-heading{border-bottom:1px solid var(--line);padding:16px 18px}.dependency-dialog-heading h2{margin:0;font-size:18px}.dependency-dialog-heading>div{gap:4px;min-width:0;display:grid}.dependency-dialog-heading p{color:var(--muted);margin:0;font-size:12px;line-height:1.5}.dependency-dialog-heading button{width:38px;height:38px;color:var(--muted);background:0 0;place-items:center;padding:0;display:grid}.dependency-map{background:#f7f9f7;min-height:320px;max-height:min(760px,100vh - 120px);position:relative;overflow:hidden}.dependency-empty{color:var(--muted);text-align:center;margin:0;padding:48px 20px}.validation-toast-stack{z-index:100;pointer-events:none;width:min(640px,100vw - 24px);position:fixed;top:76px;left:50%;transform:translate(-50%)}.validation-toast{color:#8b2f2f;transform-origin:top;pointer-events:auto;background:#fff2f2;border:1px solid #e8baba;border-radius:12px;width:100%;max-height:min(50vh,420px);margin:0;padding:14px 48px 14px 16px;position:absolute;top:0;left:0;overflow-y:auto;box-shadow:0 18px 54px #4c19193d}.validation-toast>button{color:currentColor;background:0 0;place-items:center;width:32px;height:32px;min-height:32px;padding:0;display:grid;position:absolute;top:7px;right:7px}.validation-toast strong{margin-bottom:6px;display:block}.validation-toast p{margin:0;line-height:1.5}.validation-toast-link{min-height:0;color:inherit;font:inherit;background:0 0;border:0;padding:0;font-weight:700;text-decoration:underline;display:inline}.icon-button{color:#fff;background:var(--green);place-items:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;font-size:25px;line-height:1;display:grid}.icon-button svg{width:20px;height:20px;display:block;font-size:20px!important}.item-list{min-height:0;max-height:none;padding-bottom:65px;overflow:hidden auto}.item-card{background:#fff;border-bottom:1px solid #edf0ed;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;width:100%;display:grid;position:relative}.item-card:hover{background:#f8faf8}.item-card.active{box-shadow:inset 4px 0 var(--green);background:#edf5f0}.item-card-content{min-width:0;min-height:58px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:0;align-self:stretch;align-items:center;padding:10px 8px;display:flex}.item-card-content>span{align-content:center;min-width:0;display:grid}.item-card-content .choice-chip-list:empty{display:none}.item-card-content:hover{transform:none}.item-card-actions{align-items:center;gap:4px;padding:8px 10px 8px 2px;display:flex}.item-card-actions button{color:#7b827e;background:0 0;place-items:center;width:34px;height:34px;padding:0;display:grid}.item-order-actions{grid-template-rows:20px 20px;align-self:center;width:30px;height:40px;margin-left:8px;display:grid}.item-order-actions .order-button{color:#7b827e;background:0 0;border:0;border-radius:0;place-items:center;width:30px;height:20px;min-height:0;padding:0;display:grid}.item-order-actions .order-button:not(:disabled):hover{color:#545b57;background:0 0;transform:none}.item-order-actions .order-button svg{width:22px;height:22px;display:block}.item-card-actions button:not(:disabled):hover{color:#545b57;background:0 0}.item-card strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;margin:0;display:block;overflow:hidden}.tag{color:var(--green-dark);background:var(--green-soft);border:1px solid #0000;border-radius:999px;padding:6px 11px;font-size:12px;font-weight:400;line-height:1}.empty-state{min-height:180px;color:var(--muted);text-align:center;place-items:center;padding:30px;display:grid}.editor{min-height:0;max-height:none;overflow:hidden auto}.editor-form-content{padding:26px 28px 34px}.editor-empty{min-height:75vh;color:var(--muted);text-align:center;place-content:center;justify-items:center;padding:40px;display:grid}.editor-path{color:var(--muted);text-align:right;margin-bottom:16px;font-size:12px}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 18px;display:grid}.field:not(.field-id):not(.field-name){grid-column:1/-1}.field{color:#343b37;gap:11px;font-size:13px;font-weight:700;display:grid}.field>span:first-child{font-size:17px;line-height:1.4}.field.wide{grid-column:1/-1}.field small{color:var(--muted);font-weight:400;line-height:1.45}.field .ui-form-field-error{color:var(--red)}.compact{padding:8px 12px}.parameter-condition-list{gap:10px;display:grid}.trigger-editor{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:8px 10px;display:grid}.trigger-editor>span{grid-area:1/1}.trigger-editor>small{grid-area:2/1/auto/-1}.trigger-editor>.trigger-combination{grid-area:1/2;justify-self:end;width:min(100%,240px)}.trigger-editor>.parameter-condition-list{grid-area:3/1/auto/-1}.trigger-editor>.message-add{grid-row:4;width:100%;margin-top:0}.effects-editor{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;display:grid}.effects-editor>span,.effects-editor>small,.effects-editor>.parameter-condition-list{grid-column:1/-1}.effects-editor>.message-add{width:100%;margin-top:0}.parameter-condition{border:1px solid var(--line);background:#f8faf8;border-radius:10px;grid-template-columns:minmax(0,7fr) minmax(90px,3fr) 36px;align-items:center;gap:9px;padding:8px 10px;display:grid}.target-selects{gap:7px;min-width:0;display:grid}.parameter-target{grid-template-columns:repeat(3,minmax(0,1fr))}.event-target{grid-template-columns:repeat(2,minmax(0,1fr))}.ui-validated-control,.nested-control{align-content:start;gap:3px;min-width:0;display:grid}.ui-control-label{min-height:17px;color:var(--muted);font-size:12px;font-weight:700;line-height:17px}.ui-validated-control-row{align-items:center;min-width:0;display:flex;position:relative}.ui-validated-control-row>input,.ui-validated-control-row>select,.ui-validated-control-row>textarea{width:100%;min-width:0}.ui-validated-control-row.has-action>input,.ui-validated-control-row.has-action>select,.ui-validated-control-row.has-action>textarea{padding-right:38px}.ui-validated-control-action{place-items:center;display:grid;position:absolute;top:50%;right:4px;transform:translateY(-50%)}.ui-validated-control-action .ui-icon-button{width:28px;min-width:28px;height:28px;min-height:28px;color:inherit;background:0 0;border:0;place-items:center;padding:0;line-height:0;display:grid}.ui-validated-control-action .ui-icon-button:not(:disabled):hover{transform:none}.parameter-condition>.nested-validation-error{grid-column:1/-1}.parameter-condition.has-nested-validation{align-items:start}.nested-validation-error{min-height:34px;margin:0}.tutorial-sequence-card{padding:16px}.tutorial-sequence-content{grid-template-columns:minmax(0,1fr) minmax(0,5fr);margin-top:14px}.parameter-condition>.compact:last-child{grid-column:-2/-1;justify-self:end;margin-top:3px}.parameter-condition .choice-chip-list{grid-column:1/-1;grid-template-columns:repeat(5,minmax(72px,1fr));gap:6px;display:grid}.inline-check{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.parameter-condition strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.parameter-condition .compact{place-items:center;width:36px;height:36px;padding:0;display:grid}.object-parameter-list{gap:14px;width:100%;display:grid}.object-parameter-card{background:#f1f1f1;border-radius:18px;padding:16px;position:relative}.disclosure-header{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:32px;display:grid}.disclosure-toggle{min-width:0;height:32px;color:var(--ink);text-align:left;background:0 0;justify-self:start;align-items:center;gap:6px;padding:0;display:inline-flex}.disclosure-toggle:not(:disabled):hover{transform:none}.disclosure-toggle strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.disclosure-icon{flex:0 0 24px;place-items:center;width:24px;height:24px;display:grid}.disclosure-icon svg{width:24px;height:24px}.disclosure-content[hidden]{display:none}.object-parameter-card>.disclosure-content{margin-top:14px}.object-parameter-value-heading{text-overflow:ellipsis;white-space:nowrap;padding-top:21px;overflow:hidden}.object-parameter-value-content .object-parameter-description{color:var(--muted);margin:0;padding-top:21px}.object-parameter-value-content>.ui-validated-control{grid-column:3}.parameter-surface-delete{place-items:center;width:32px;height:32px;padding:0;display:grid}.parameter-surface-delete:not(:disabled):hover{transform:none}.parameter-surface-content{background:0 0;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,3fr);align-items:start;gap:2px 12px;padding:4px;display:grid}.parameter-card-actions{align-items:center;gap:14px;min-width:0;display:flex}.parameter-type-toggle{background:#e4e4e4;border-radius:9px;grid-template-columns:1fr 1fr;min-width:300px;padding:3px;display:inline-grid}.parameter-type-toggle button{min-height:34px;color:var(--muted);white-space:nowrap;background:0 0;padding:6px 12px}.parameter-type-toggle button.active{color:#fff;background:var(--green);font-weight:700}.object-parameter-heading{display:contents}.object-parameter-description-control{min-width:0}.object-parameter-continuous-grid{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,20%));justify-content:start;align-items:start;gap:10px;min-width:0;display:grid}.object-parameter-fixed{white-space:nowrap;place-self:center start;align-items:center;gap:9px;display:inline-flex}.object-parameter-fixed input{width:18px;height:18px;accent-color:var(--primary);margin:0}.object-parameter-description{min-height:40px}.object-parameter-category-table{grid-column:1/-1;gap:4px;min-width:0;padding:8px 0 2px;display:grid;overflow-x:auto}.object-parameter-category-header,.object-parameter-category-row{grid-template-columns:86px minmax(120px,.8fr) minmax(190px,1.5fr) 82px 36px;align-items:start;gap:8px;min-width:650px;display:grid}.object-parameter-category-header{color:var(--muted);align-items:center;padding:0 4px 6px;font-size:12px;font-weight:700}.object-parameter-category-row{border-top:1px solid var(--line);padding:8px 4px 0}.object-parameter-category-order{height:var(--control-height);color:var(--muted);align-items:center;gap:5px;display:flex}.object-parameter-category-order b{color:#fff;background:var(--green);border-radius:999px;place-items:center;width:28px;height:28px;display:grid}.object-parameter-initial-check{height:var(--control-height);place-items:center;display:grid}.object-parameter-initial-check input{width:18px;height:18px;accent-color:var(--green);margin:0}.object-parameter-category-add{min-height:38px;color:var(--green-dark);background:var(--green-soft);justify-self:start;margin-top:6px}.parameter-surface-content>.nested-validation-error{grid-column:1/-1}.ui-order-controls{grid-template-rows:20px 20px;width:28px;height:40px;display:grid}.ui-order-controls .order-button{width:28px;min-width:28px;height:20px;min-height:0;color:var(--muted);background:0 0;border:0;border-radius:0;place-items:center;padding:0;display:grid}.ui-order-controls .order-button:not(:disabled):hover{color:var(--ink);background:0 0;transform:none}.ui-order-controls .order-button svg{width:22px;height:22px}.choice-chip-list{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.choice-chip{background:var(--green-soft);border-radius:999px;align-items:center;gap:5px;padding:5px 7px 5px 11px;font-weight:600;display:flex}.choice-chip button{width:26px;height:26px;color:var(--muted);background:0 0;place-items:center;padding:0;display:grid}.chip-select{gap:2px;display:grid}.condition-add-actions{grid-column:1/-1;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;display:grid}.condition-add-actions .message-add{margin-top:0}.effect-branch-list{grid-column:1/-1;gap:12px;display:grid}.effect-branch-content{gap:12px;display:grid}.effect-branch-content>select{width:min(100%,420px)}.parameter-condition.parameter-equation{grid-template-columns:minmax(0,7fr) minmax(64px,1.5fr) minmax(70px,1.5fr) 36px}.parameter-condition.compatibility-condition{grid-template-columns:minmax(160px,2fr) minmax(80px,.7fr) minmax(160px,2fr) 36px}.tutorial-sequence-content{gap:10px;display:grid}.tutorial-sequence-content>.ui-textarea{grid-column:1/-1;width:100%}.message-tree{gap:12px;display:grid}.message-card{border:1px solid var(--line);min-width:0;box-shadow:var(--shadow);background:#fff;border-radius:12px;grid-template-columns:minmax(0,1fr) 36px;grid-template-areas:"speaker remove""content content""error error";align-items:start;gap:8px;padding:12px;display:grid}.message-card.has-validation-error{border-color:var(--red)}.message-card>select{grid-area:speaker;width:min(140px,100%)}.message-card>.message-content{grid-area:content;min-width:0}.message-card>.message-action{grid-area:remove}.message-validation-error{grid-area:error;margin:0}.field .message-input{resize:none;height:40px;min-height:40px;line-height:1.45;overflow:hidden}.player-choice-list{flex-wrap:nowrap;align-items:stretch;gap:10px;min-width:0;display:flex}.player-choice-item{background:#f8faf8;border:1px solid #d9e2dc;border-radius:10px;flex-direction:column;flex:1 1 0;min-width:0;max-width:100%;padding:9px;display:flex}.player-choice-top{grid-template-columns:28px minmax(0,1fr) 36px;align-items:start;gap:8px;display:grid}.player-choice-item>.message-tree{margin-top:18px;margin-left:36px}.choice-number{color:#fff;background:var(--green);border-radius:50%;place-items:center;width:28px;height:28px;margin-top:5px;font-size:13px;font-weight:700;display:grid}.add-player-choice{width:40px;min-height:84px;color:var(--green-dark);background:var(--green-soft);writing-mode:vertical-rl;text-orientation:upright;white-space:nowrap;flex:0 0 40px;align-self:stretch;padding:8px}.message-action{width:36px;height:36px;color:var(--muted);background:0 0;place-items:center;padding:0;display:grid}.message-action:disabled{visibility:hidden}.message-add{width:100%;color:var(--green-dark);background:var(--green-soft);margin-top:9px}.tag-dialog{border:0;border-radius:14px;width:min(420px,100vw - 32px);padding:0;box-shadow:0 18px 60px #14241c3d}.tag-dialog::backdrop{background:#0f18146b}.tag-dialog form{gap:14px;max-height:min(620px,100vh - 48px);padding:24px;display:grid;overflow-y:auto}.tag-dialog h2{margin:0;font-size:19px}.tag-dialog input{border:1px solid #ccd4cf;border-radius:9px;width:100%;padding:10px 11px}.dialog-heading,.tag-create-row,.tag-manager-row{align-items:center;gap:8px;display:grid}.dialog-heading,.tag-create-row{grid-template-columns:minmax(0,1fr) 40px}.tag-manager-list{gap:8px;display:grid}.tag-manager-row{grid-template-columns:minmax(0,1fr) 40px 40px}.tag-manager-action,.dialog-heading button,.tag-create-row button{place-items:center;width:40px;height:40px;padding:0;display:grid}.dialog-error{color:var(--red);margin:0;font-size:13px}.id-field{width:100%;min-height:var(--control-height);align-items:stretch;display:flex}.id-prefix{color:var(--muted);background:#f1f4f2;border:1px solid #ccd4cf;border-right:0;border-radius:9px 0 0 9px;align-items:center;padding:10px 0 10px 11px;font-family:ui-monospace,Cascadia Mono,monospace;font-weight:600;display:flex}.field .id-field input{border-radius:0 9px 9px 0;min-width:0;font-family:ui-monospace,Cascadia Mono,monospace}.field-error{color:var(--red)!important}.structured-value-editor,.structured-list,.structured-object{gap:10px;min-width:0;display:grid}.structured-card{border:1px solid var(--line);background:#f8faf8;border-radius:12px;gap:12px;min-width:0;padding:14px;display:grid}.structured-card-actions{align-items:center;gap:4px;display:flex}.structured-card-actions>span{flex:auto;font-weight:700}.structured-card-actions button{width:32px;height:32px;color:var(--muted);background:0 0;place-items:center;padding:0;display:grid}.structured-object{grid-template-columns:repeat(2,minmax(0,1fr))}.structured-property{color:#4a534e;gap:6px;min-width:0;font-size:12px;display:grid}:is(.structured-property:has(.structured-list),.structured-property:has(.structured-object),.structured-property:has(textarea)){grid-column:1/-1}.structured-property>.structured-list{margin-top:4px}@media (width<=1180px){.workspace{grid-template-columns:minmax(180px,28vw) minmax(0,1fr)}}@media (width<=820px){.topbar{gap:12px;padding:10px 12px}.topbar h1{font-size:18px}.workspace{grid-template-columns:minmax(150px,34vw) minmax(0,1fr)}.kind-button{min-width:max-content}.field-grid{grid-template-columns:1fr}.field-id,.field-name{grid-column:1/-1}.editor-form-content{padding:22px 12px 30px}.item-card{grid-template-columns:auto minmax(0,1fr) auto}.item-card-actions{gap:2px;padding-right:4px}.item-card-actions button{width:30px;height:30px}}@media (width<=720px),(height<=600px) and (width<=960px){html,body{height:100dvh;min-height:100dvh}.topbar{grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;min-height:92px;padding:8px}.topbar h1{text-overflow:ellipsis;font-size:16px;overflow:hidden}.header-center{grid-area:2/1/auto/-1;max-width:none}.header-center button{flex:1 1 0;padding:7px 6px;font-size:12px}.header-actions{gap:4px}.header-icon-button,.history-button,.save-state,.user-menu-button{width:30px;height:30px;min-height:30px}.history-button{width:32px;height:32px}.pull-button,.publish-button{min-height:30px;padding:0}.user-menu{inset:58px 8px auto auto}.user-menu:popover-open{inset:58px 8px auto auto}.notice{padding:8px 12px;top:100px}.validation-toast-stack{top:100px}.validation-toast{max-height:calc(100dvh - 112px)}.kindbar{flex:0 0 57px;align-items:center;height:57px;min-height:57px;max-height:57px;padding:8px 10px;display:flex;overflow:hidden}.kind-scroll{gap:6px;display:flex;overflow:auto hidden}.kind-button{white-space:nowrap;text-align:center;flex:none;width:auto;min-height:40px}.workspace{background:#fff;min-height:0;display:block}.catalog,.editor{width:100%;height:100%}.workspace.mobile-catalog .editor,.workspace.mobile-editor .catalog{display:none}.editor{overflow:hidden}.editor-form{grid-template-rows:46px minmax(0,1fr);width:100%;height:100%;min-height:0;display:grid;overflow:hidden}.editor-form-content{overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;min-height:0;padding:20px 10px 28px;overflow:hidden auto}.mobile-back{z-index:3;width:100%;height:46px;min-height:46px;color:var(--green);text-align:left;background:#fff;border-radius:0;align-self:stretch;align-items:center;gap:4px;padding:8px 10px;font-weight:700;display:inline-flex;overflow:visible}.mobile-back svg{flex:none;width:18px;height:18px}.mobile-back:not(:disabled):hover{background:#fff;transform:none}.catalog{grid-template-rows:auto auto minmax(0,1fr)}.tag-filters{padding-left:10px}.item-list{padding-bottom:76px}.catalog-footer{z-index:12;right:12px;bottom:max(12px, env(safe-area-inset-bottom));background:0 0;border:0;padding:0;position:fixed}.catalog-footer .icon-button{width:48px;height:48px;box-shadow:0 8px 24px #19141c33}.item-card{grid-template-columns:auto minmax(0,1fr) auto;min-height:58px}.item-card.active{box-shadow:none;background:#fff}.item-card-content{min-height:58px;padding-left:8px}.item-card-actions{gap:0}.item-card-actions>button{width:38px;height:40px}.item-order-actions{width:30px;height:40px}.item-order-actions .order-button{width:30px;height:20px}.item-order-actions .order-button svg{width:22px;height:22px}.field-grid{row-gap:30px}.field{gap:9px}.field>span{font-size:16px}.field input,.field select,.field textarea{min-height:44px;font-size:16px}.parameter-condition{grid-template-columns:minmax(0,1fr) minmax(104px,.5fr) 38px}.parameter-condition.parameter-equation{grid-template-columns:minmax(120px,1fr) minmax(54px,.38fr) minmax(64px,.5fr) 38px;gap:6px;padding-inline:6px}.parameter-condition.compatibility-condition{grid-template-columns:minmax(0,1fr) minmax(64px,96px) 38px}.parameter-condition.compatibility-condition>:nth-child(3){grid-area:2/1/auto/3}.parameter-condition.compatibility-condition>.compact:last-child{grid-area:1/3}.parameter-condition .choice-chip-list{grid-template-columns:1fr}.parameter-condition strong{grid-column:1/-1}.object-parameter-card{border-radius:14px;padding:12px}.disclosure-header{align-items:start}.parameter-card-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}.parameter-type-toggle{order:3;width:100%;min-width:0}.parameter-surface-content{gap:8px;padding:4px}.object-parameter-value-content{grid-template-columns:1fr}.object-parameter-value-heading,.object-parameter-value-content .object-parameter-description{padding-top:0}.object-parameter-value-heading,.object-parameter-value-content .object-parameter-description,.object-parameter-value-content>.ui-validated-control{grid-column:1}.object-parameter-heading{grid-template-columns:minmax(0,1fr)}.object-parameter-continuous-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.object-parameter-continuous-grid>:last-child{grid-column:1/-1}.object-parameter-description{min-height:44px}.player-choice-list{flex-direction:column}.add-player-choice{writing-mode:horizontal-tb;text-orientation:mixed;flex:none;width:100%;min-height:44px}dialog,.workspace-dialog,.conflict-dialog,.dependency-dialog,.tag-dialog{border-radius:14px;width:calc(100vw - 24px);max-width:calc(100vw - 24px);height:auto;max-height:calc(100dvh - 24px);margin:auto}.workspace-dialog form,.tag-dialog form{height:auto;max-height:calc(100dvh - 24px);padding:16px;overflow-y:auto}.workspace-list-shell{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:18px}.conflict-list,.dependency-map{max-height:calc(100dvh - 150px)}}.domain-page{background:var(--paper);flex:auto;min-height:0;padding:24px;overflow:auto}.domain-page-content{border:1px solid var(--line);width:min(1080px,100%);min-height:100%;box-shadow:var(--shadow);background:#fff;border-radius:18px;margin:0 auto;padding:22px}.domain-page .dialog-heading p{color:#68716c;margin:4px 0 0}.domain-mode-toggle{background:#315345;border-radius:10px;grid-template-columns:1fr 1fr;width:min(520px,100%);margin:18px auto 4px;padding:3px;display:grid}.domain-mode-toggle button{color:#dcebe4;background:0 0;min-height:38px;padding:7px 13px}.domain-mode-toggle button.active{color:var(--green-dark);background:#fff;font-weight:700}.domain-mode-toggle.event{background:#7a5e1a}.domain-mode-toggle.event button{color:#fff0c7}.domain-mode-toggle.event button.active{color:#5b430b;background:#fff}.domain-section-heading{justify-content:space-between;align-items:center;gap:16px;margin:22px 0 10px;display:flex}.domain-section-heading h3{margin:0}.domain-type-list,.domain-rule-list{gap:12px;display:grid}.domain-type-card{background:#faf9fa;border:1px solid #ddd7df;border-radius:14px;gap:12px;padding:16px;display:grid}.domain-type-header,.domain-field-row,.domain-rule-row{grid-template-columns:minmax(130px,1fr) minmax(150px,1.3fr) minmax(110px,.8fr) minmax(110px,.8fr) auto;align-items:center;gap:8px;display:grid}.domain-type-header .ui-input,.domain-type-header .ui-select,.domain-field-row .ui-input,.domain-field-row .ui-select,.domain-rule-row .ui-select{min-height:38px}.domain-field-list{gap:8px;display:grid}.domain-field-row{background:#fff;border-radius:10px;padding:8px}.domain-parameter-definitions{border-top:1px solid var(--line);grid-column:1/-1;gap:10px;margin-top:4px;padding:12px;display:grid}.domain-parameter-definitions .domain-section-heading,.domain-parameter-definitions h4{margin:0}.domain-parameter-definitions .object-parameter-card{background:#f1f1f1}.domain-parameter-continuous-grid{grid-template-columns:repeat(2,minmax(140px,220px)) auto;align-items:start}.domain-parameter-integer{min-height:var(--control-height);align-self:start;margin-top:17px}.domain-parameter-category-table .object-parameter-category-header,.domain-parameter-category-table .object-parameter-category-row{grid-template-columns:86px minmax(120px,.8fr) minmax(190px,1.5fr) 36px}.domain-row-actions{gap:4px;display:flex}.domain-row-actions button{min-width:34px;min-height:34px}.domain-field-add{justify-self:start}.domain-empty{color:#68716c;text-align:center;margin:0;padding:16px}.domain-rule-row{background:#faf9fa;border:1px solid #ddd7df;border-radius:10px;grid-template-columns:minmax(110px,1fr) minmax(140px,1fr) minmax(110px,1fr) minmax(110px,1fr) minmax(90px,.6fr) minmax(180px,1.5fr) auto;padding:10px}.domain-rule-row .ui-textarea{min-height:70px}.dependency-canvas{touch-action:pan-x pan-y;width:100%;max-height:min(760px,100vh - 120px);overflow:auto}.dependency-canvas.is-panning{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.dependency-canvas.is-panning:active{cursor:grabbing}.dependency-canvas>svg{width:100%;min-width:960px;min-height:620px;transition:width .18s;display:block}.dependency-toolbar{z-index:4;border:1px solid var(--line);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#ffffffe6;border-radius:10px;align-items:center;gap:4px;padding:6px;display:flex;position:absolute;top:12px;right:12px;box-shadow:0 4px 16px #1d2d241f}.dependency-toolbar button{width:38px;height:38px;color:var(--green-dark);background:0 0;place-items:center;padding:0;display:grid}.dependency-toolbar button.active{color:#fff;background:var(--green)}.dependency-toolbar button:disabled{opacity:.28;cursor:default}.dependency-zoom-value{color:#344139;text-align:center;font-variant-numeric:tabular-nums;width:48px;font-size:12px;font-weight:700}.dependency-edge-hit{fill:none;stroke:#0000;stroke-width:18px;cursor:pointer;pointer-events:stroke}.dependency-edge{fill:none;stroke:#819087;stroke-width:5px;opacity:.82;cursor:pointer;pointer-events:none;transition:opacity .16s}.dependency-edge.parameter-trigger{stroke:#7b4a91}.dependency-edge.parameter-effect{stroke:#bf8c28}.dependency-edge.event-trigger,.dependency-edge.event-effect{stroke:#39765d;stroke-dasharray:7 4}.dependency-edge-label{fill:#344139;stroke:#f7f9f7;stroke-width:5px;paint-order:stroke;text-anchor:middle;cursor:pointer;font-size:13px;font-weight:700;transition:opacity .16s}.dependency-node{color:#344139;text-align:left;background:#fff;border:1px solid #cad5ce;border-radius:10px;width:100%;height:100%;padding:8px 10px;font-size:12px;overflow:hidden}.dependency-event-node{text-align:center;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:2px;display:grid}.dependency-node-body{place-content:center;gap:3px;min-width:0;height:100%;display:grid}.dependency-event-node small{color:var(--muted);font-size:10px;font-weight:500}.dependency-event-node strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.dependency-event-node.related{opacity:.7}.dependency-content-node{background:#fffdf5;border-color:#d7c48f;flex-direction:column;gap:4px;display:flex}.dependency-content-heading,.dependency-parameter-row{grid-template-columns:24px minmax(0,1fr);align-items:center;gap:4px;min-width:0;display:grid}.dependency-content-node strong{text-overflow:ellipsis;white-space:nowrap;color:#6e5415;overflow:hidden}.dependency-content-node span{text-overflow:ellipsis;white-space:nowrap;color:#5a625d;font-size:11px;overflow:hidden}.dependency-object-link{width:24px;min-width:24px;height:24px;min-height:24px;color:var(--green-dark);background:0 0;border-radius:6px;place-items:center;padding:0;display:grid}.dependency-object-link:hover{color:#fff;background:var(--green)}.dependency-object-link:disabled{visibility:hidden}.dependency-object-link svg{width:15px;height:15px;font-size:15px!important}.dependency-node,.dependency-map foreignObject,.dependency-edge-hit,.dependency-edge,.dependency-edge-label{transition:opacity .16s}.dependency-dimmed{opacity:.12!important}@media (width<=760px){.editor-form-content{padding:18px 16px 28px}.field-grid{grid-template-columns:1fr}.field.field-id,.field.field-name{grid-column:1/-1}.parameter-target,.event-target{grid-template-columns:1fr}.player-choice-item>.message-tree{margin-left:0}.domain-type-header,.domain-field-row,.domain-rule-row{grid-template-columns:1fr 1fr}.domain-parameter-definitions{padding-inline:0}.domain-parameter-definitions .parameter-card-actions{flex-wrap:wrap;justify-content:flex-end}.domain-parameter-definitions .parameter-type-toggle{min-width:min(300px,100%)}.domain-parameter-continuous-grid{grid-template-columns:1fr 1fr}.domain-parameter-integer{grid-column:1/-1;margin-top:0}.domain-row-actions{grid-column:1/-1}}
