.t-app{--t-bg:#fff;--t-paper:#fff;--t-ink:#23372e;--t-muted:#5d6b61;--t-border:#d9d4c7;--t-accent:#f6d7ba;z-index:100;box-sizing:border-box;width:min(100%,100dvw);max-width:100dvw;height:100dvh;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);color:var(--t-ink);background:var(--t-bg);overscroll-behavior:none;isolation:isolate;grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);display:grid;position:fixed;inset:0;overflow:hidden}.t-app *,.t-app :before,.t-app :after{box-sizing:border-box}.t-coach-editor{grid-template-rows:auto auto minmax(0,1fr) auto}.t-embedded .t-header{padding:6px 10px}.t-embedded .t-workspace{padding:6px 8px}.t-app button,.t-app input,.t-app select,.t-app textarea{font:inherit;color:inherit}.t-app button,.t-app .t-new,.t-app .t-file{border:1px solid var(--t-border);background:var(--t-paper);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:7px;min-width:0;padding:8px 12px;line-height:1.15;text-decoration:none;display:inline-flex}.t-app button:hover,.t-app .t-new:hover,.t-app .t-file:hover{border-color:#867361}.t-app button:focus-visible{outline-offset:2px;outline:2px solid #b35d2b}.t-app a:focus-visible{outline-offset:2px;outline:2px solid #b35d2b}.t-board:focus-visible{outline-offset:2px;outline:2px solid #b35d2b}.t-app button:disabled{opacity:.42;cursor:default}.t-app button[aria-pressed=true],.t-app button[aria-current],.t-app .chosen{background:var(--t-accent);border-color:#ce9972}.t-app .t-icon{flex:none;width:42px;height:42px;padding:0}.t-app .t-primary{color:#fff;background:#234437;border-color:#234437}.t-app .t-danger{color:#8a3128;font-weight:650}.t-header,.t-timeline{width:100%;min-width:0;padding:9px max(18px,env(safe-area-inset-right,0px)) 9px max(18px,env(safe-area-inset-left,0px));background:var(--t-paper);align-items:center;gap:11px;display:flex}.t-header{border-bottom:1px solid var(--t-border)}.t-app .t-back{border:1px solid var(--t-border);color:inherit;border-radius:10px;place-items:center;text-decoration:none;display:grid}.t-title{flex:1;min-width:0}.t-title input,.t-title h1{text-overflow:ellipsis;white-space:nowrap;width:100%;margin:0;font-size:clamp(1.03rem,2vw,1.35rem);font-weight:750;line-height:1.2;display:block;overflow:hidden}.t-title input{background:0 0;border:0;border-radius:4px;width:min(100%,540px);padding:2px 5px 2px 0}.t-title input:hover{background:var(--t-bg)}.t-save{width:max-content;max-width:100%;color:var(--t-muted);white-space:nowrap;align-items:center;gap:3px;font-size:.72rem;display:flex}.t-app .t-retry{color:#8a3128;background:0 0;border:0;justify-content:flex-start;padding:0;font-size:.72rem}.t-workspace{grid-template-columns:minmax(0,1fr);min-height:0;padding:11px 78px;display:grid;position:relative;overflow:hidden}.t-board-view{place-items:center;min-width:0;min-height:0;display:grid;position:relative;overflow:hidden}.t-board{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:crosshair;background:#fff;border-radius:9px;max-width:100%;height:auto;display:block;box-shadow:inset 0 0 0 1px #dedbd3}.t-attack-direction{color:#a7aeab;flex:none;width:20px;height:44px;margin-bottom:14px;display:block}.t-cone{fill:#b87822;stroke:#b87822;transform:scale(.85)}.t-board.tool-select{cursor:default}.t-viewer .t-board{cursor:default;touch-action:auto}.t-tool-rail{z-index:2;inset-inline-start:max(14px,calc((100% - var(--pitch-width,0px))/2 - 71px));flex-direction:column;align-items:center;gap:5px;width:58px;max-height:calc(100% - 8px);display:flex;position:absolute;top:50%;transform:translateY(-50%)}.t-tools{scrollbar-width:none;border:1px solid var(--t-border);background:var(--t-paper);touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border-radius:15px;gap:5px;width:100%;min-height:0;padding:5px;display:grid;overflow:auto;box-shadow:0 3px 12px #30241712}.t-tool-wrap{min-width:0;display:grid;position:relative}.t-app .t-tool{touch-action:manipulation;width:100%;min-height:44px;padding:0 7px 0 1px}.t-tool svg{flex:none;width:20px;height:20px}.t-tool-label{display:none}.t-app .t-tool-extra{background:0 0;border:0;width:15px;padding:0;position:absolute;top:0;bottom:0;right:0}.t-app .t-tool-extra:hover{background:#61402817}.t-token{color:#fff;border-radius:50%;place-items:center;width:23px;height:23px;font-size:.8rem;font-weight:800;display:grid}.t-attack{color:#172b26;background:#e78052}.t-defense{background:#245e5b}.t-timeline{border-top:1px solid var(--t-border);gap:8px}.t-frames{overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;flex:1;align-items:center;gap:5px;min-width:0;max-width:100%;padding:3px;display:flex;overflow-x:auto}.t-frames button{touch-action:pan-x;flex:0 0 36px;min-width:0;height:37px;padding:0;font-size:.86rem;font-weight:750}.t-frames [data-drop]{color:#8a3128;background:#fae7de}.t-timeline{z-index:5;position:relative}.t-step-options{z-index:5;border:1px solid var(--t-border);background:#fff;border-radius:12px;align-items:center;gap:5px;padding:4px;display:flex;position:absolute;bottom:calc(100% + 5px);transform:translate(-50%);box-shadow:0 3px 14px #172b2626}.t-step-options .t-icon{width:34px;height:34px}.t-history{border-left:1px solid var(--t-border);align-items:center;gap:5px;margin-left:auto;padding-left:7px;display:flex}.t-popover{z-index:4;inset-inline-start:min(calc((100% + var(--pitch-width,0px))/2 + 14px),calc(100% - 278px));border:1px solid var(--t-border);background:var(--t-paper);border-radius:16px;align-content:start;gap:9px;width:264px;max-height:calc(100% - 18px);padding:12px;font-size:.88rem;display:grid;position:absolute;top:50%;overflow:auto;transform:translateY(-50%);box-shadow:0 12px 36px #172b2633}.t-pophead,.t-dialog-head{justify-content:space-between;align-items:center;gap:6px;display:flex}.t-popover .t-pophead .t-icon{width:30px;height:30px}.t-marker-row{align-items:center;gap:6px;min-width:0;display:flex}.t-marker-row input{flex:1;min-width:0}.t-popover .t-marker-row .t-icon{width:32px;height:32px}.t-chips,.t-colors,.t-actions{flex-wrap:wrap;gap:6px;display:flex}.t-chips button{min-height:34px}.t-colors button{border-radius:50%;width:27px;height:27px;padding:0}.t-colors button[aria-pressed=true]{outline-offset:1px;outline:1px solid #23372e}.t-popover label,.t-dialog label{gap:5px;font-weight:650;display:grid}.t-app :is(input:not([type=checkbox]):not([type=range]):not([type=file]),select,textarea){min-width:0}.t-app :is(.t-popover,.t-dialog) :is(input:not([type=checkbox]):not([type=range]):not([type=file]),select,textarea){border:1px solid var(--t-border);background:#fffdf8;border-radius:8px;width:100%;padding:8px}.t-app input[type=range]{accent-color:#335e4b;width:100%}.t-popover details[open]{display:grid}.t-popover details>:not(summary){margin-top:7px}.t-popover summary,.t-library summary{cursor:pointer}.t-toast{z-index:3;inset-inline:68px 10px;color:#fff;background:#203e33;border-radius:9px;align-items:center;gap:7px;width:max-content;max-width:calc(100% - 80px);margin-inline:auto;padding:9px 12px;font-size:.8rem;display:flex;position:absolute;bottom:7px;box-shadow:0 3px 10px #172b2644}.t-app .t-toast button{color:inherit;background:0 0;border:0;padding:2px}.t-dialog{border:1px solid var(--t-border);width:min(530px,100% - 24px);max-height:calc(100dvh - 26px);color:var(--t-ink);background:var(--t-paper);border-radius:17px;padding:0;overflow:auto}.t-dialog::backdrop{background:#182d2790}.t-dialog-body{gap:13px;padding:17px;display:grid}.t-dialog-head{z-index:1;background:var(--t-paper);border-bottom:1px solid var(--t-border);margin:-17px -17px 0;padding:10px 17px;position:sticky;top:-17px}.t-dialog-head h2{margin:0;font-size:1.2rem}.t-dialog :is(p,textarea){margin:0}.t-dialog .t-file{display:inline-flex;position:relative;overflow:hidden}.t-file input{opacity:0;cursor:pointer;width:100%;font-size:1rem;position:absolute;inset:0}.t-dialog .t-inline{align-items:center;gap:7px;display:flex}.t-tree{gap:5px;display:grid}.t-tree button{justify-content:flex-start;min-height:38px}.t-step-num{background:#eee5d8;border-radius:50%;place-items:center;width:21px;height:21px;font-size:.76rem;display:grid}.t-text{white-space:pre-wrap}.t-attachment{max-width:100%;height:auto;display:block}.t-editor-notes{z-index:2;background:#fff;align-content:start;gap:7px;display:grid;position:relative}.t-editor-notes label:not(.t-file){gap:3px;font-size:.84rem;display:grid}.t-editor-notes textarea,.t-editor-notes input[type=url]{border:1px solid var(--t-border);touch-action:auto;-webkit-user-select:text;user-select:text;border-radius:6px;width:100%;padding:6px;font-size:16px}.t-editor-notes details[open]{gap:6px;display:grid}.t-notes-audio{align-items:center;gap:5px;display:flex}.t-notes-audio audio{flex:1;min-width:0}.t-footage{aspect-ratio:16/9;border:0;border-radius:10px;width:100%}.t-dialog audio{max-width:100%}.t-library{border:1px solid var(--t-border);border-radius:9px;padding:9px}.t-library div{justify-content:space-between;align-items:center;gap:8px;padding:6px 0;display:flex}.t-feedback{color:var(--t-muted);font-size:.88rem}.t-reader-toggle{white-space:nowrap;align-items:center;gap:4px;font-size:.8rem;display:inline-flex}.t-reader-toggle input{accent-color:#245e5b}.t-reader-notes{overscroll-behavior:contain;border:1px solid var(--t-border);border-radius:12px;min-width:0;min-height:0;padding:12px;overflow:auto}.t-reader-notes h2{margin:0 0 5px;font-size:1rem}.t-reader-notes p{overflow-wrap:anywhere;margin:0 0 7px;font-size:.9rem}.t-reader-author{color:var(--t-muted)}.t-reader-notes audio{width:100%;height:42px;margin:5px 0;display:block}.t-shell{width:min(58rem,100%);margin:auto;padding:24px}@media (min-width:881px){.t-tool-rail{width:145px;inset-inline-start:max(14px,calc((100% - var(--pitch-width,0px))/2 - 158px))}.t-app .t-tool{justify-content:flex-start;padding-inline:9px 17px;font-size:.83rem}.t-tool-label{white-space:nowrap;display:inline}.t-app .t-tool-extra{width:19px}.t-with-notes{grid-template-columns:minmax(0,1fr) minmax(230px,310px);align-items:stretch;gap:16px}.t-with-notes .t-reader-notes{align-self:center;max-height:100%}}@media (max-width:880px){.t-workspace{padding:6px 9px 6px max(63px,env(safe-area-inset-left,0px))}.t-tool-rail{width:51px;inset-inline-start:max(6px,env(safe-area-inset-left,0px))}.t-tools{padding:4px}.t-popover{top:auto;bottom:6px;gap:5px;width:min(223px,100% - 70px);padding:7px;inset-inline-start:max(62px,env(safe-area-inset-left,0px));transform:none}.t-colors button{width:19px;height:19px}.t-editor-notes{max-height:min(37dvh,16rem)}.t-popover-top,.t-palette{top:6px;bottom:auto}.t-viewer{padding-inline:8px}.t-with-notes{grid-template-rows:minmax(0,1fr) minmax(0,auto);gap:6px}.t-reader-notes{max-height:min(32dvh,14rem)}}@media (max-width:450px){.t-header,.t-timeline{padding:5px max(6px,env(safe-area-inset-right,0px)) 5px max(6px,env(safe-area-inset-left,0px));gap:5px}.t-history{gap:1px;padding-left:3px}.t-header .t-icon,.t-timeline .t-icon{width:39px;height:43px}.t-title input{font-size:1.04rem}.t-dialog :is(input,textarea,select),.t-popover :is(input,select){font-size:16px}.t-dialog{margin-block:auto max(7px,env(safe-area-inset-bottom,0px))}}@media (max-height:480px){.t-tools{gap:1px;padding:3px}.t-app .t-tool{min-height:33px}.t-header,.t-timeline{padding-block:3px}.t-app .t-header .t-icon,.t-app .t-timeline .t-icon{height:35px}}
