html.workspace-embedded body{background:var(--bg);padding:12px}
html.workspace-embedded .app{padding:0 4px 20px;max-width:none}
html.workspace-embedded header.top,html.workspace-embedded #btabs,html.workspace-embedded .sw-trig{display:none!important}
html.workspace-embedded .card{border-radius:20px;border-color:rgba(128,160,150,.14)}
html.workspace-embedded .wrap{max-width:none}
html.workspace-embedded .wrap>.top{padding-top:0}
html.workspace-embedded .mtabs{position:sticky}
html.workspace-embedded #bgfx{display:none}
html.workspace-embedded .gate{position:fixed}

body{font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important}h1,h2,h3,.kpi .v{letter-spacing:.025em}.card,.goal-card,.tv .tb{border-radius:10px!important}.tv .tb{box-shadow:3px 3px 0 #0004!important;border-style:solid!important}.tv .tb b{font-family:ui-monospace,Consolas,monospace}.g-bar,.g-bar>i,.tn-mini,.tn-mini i,.pbar,.pbar i{border-radius:0!important}.g-bar>i,.tn-mini i,.pbar i{background-image:repeating-linear-gradient(90deg,transparent 0 6px,#0d131455 6px 8px)!important}.map-viewport{background:radial-gradient(circle,#93aba340 1px,transparent 1px) 0 0/16px 16px!important}.map-content{will-change:transform}.map-viewport.panning{cursor:grabbing}.tv .tb.tree-selected{outline:2px dashed var(--accent);outline-offset:3px}dialog,.modal,.sheet{max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;overflow:auto;box-sizing:border-box}svg{stroke-linecap:square;stroke-linejoin:miter}

html.workspace-surface{background:#07090b!important}html.workspace-surface body{background:radial-gradient(circle,#b4bfd00b 1px,transparent 1px) 0 0/22px 22px,#07090b!important}html.workspace-surface body.pixel-scene{background:transparent!important;isolation:isolate}html.workspace-surface #pixelBackground{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}html.workspace-embedded,html.workspace-embedded body{background:transparent!important}html.workspace-surface #bgfx{display:none!important}html.workspace-surface .app,html.workspace-surface .wrap,html.workspace-surface #view{background:transparent!important}html.workspace-surface .card{background:color-mix(in srgb,var(--surface) 92%,transparent)!important;border-color:#c4cbea22}html.workspace-surface .d-spark polyline{stroke-dasharray:2 3;stroke-linecap:square}html.workspace-surface .tv .trow:before,html.workspace-surface .tv .tk:before{border-style:dashed}html.workspace-surface[data-theme=light]{background:#f2f0f6!important}html.workspace-surface[data-theme=light] body{background:radial-gradient(circle,#30204012 1px,transparent 1px) 0 0/22px 22px,#f2f0f6!important}html.workspace-surface[data-theme=light] body.pixel-scene,html.workspace-embedded[data-theme=light],html.workspace-embedded[data-theme=light] body{background:transparent!important}

html.workspace-surface .goal.card{padding:10px 14px;margin-bottom:8px;border-radius:8px!important}.goal .gh{gap:8px;padding:2px 0;min-height:42px}.goal .gh .t b{font-size:14px;line-height:1.4}.goal .gh .t small{font-size:10px;max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goal .stc.big{font-size:10px;padding:2px 7px}.goal-mini{font-size:10px;color:var(--muted);white-space:nowrap}.goal-details{margin:6px 0 10px;border:1px dashed var(--border);padding:7px 10px}.goal-details>summary{font-size:11px;color:var(--muted);cursor:pointer;min-height:24px;line-height:24px}.goal-details .g-gauges{padding:10px;gap:12px}.goal-details .rg{width:64px;height:64px}.goal-details .insb .in{font-size:11px}.goal .d-tools{gap:5px;margin-top:6px}.goal .btn.sm{padding:5px 9px;min-height:29px;font-size:11px}.goal .tn{padding-top:4px;padding-bottom:4px}.goal .tn .tn-t{font-size:12px}.card[data-k]{resize:vertical;overflow:auto;min-height:110px;max-height:1000px}.card[data-k] .whead{cursor:grab}.card[data-k] .whead:active{cursor:grabbing}html.workspace-embedded .gate{background:radial-gradient(ellipse at 50% 0,#b7a5ff10,transparent 65%),transparent!important}html.workspace-surface[data-theme=dark] .gcard{background:#141c1ef0!important;color:#e4eceb}
@media(max-width:600px){.goal .gh{flex-wrap:wrap}.goal .gh .t{flex:1;min-width:130px}.goal .gh .goal-mini{margin-left:32px}.goal .gh .stc{margin-left:auto}.goal .gh .t small{max-width:180px}.card[data-k]{resize:none}}

html.workspace-embedded .goal .map-viewport{height:clamp(180px,32vh,300px)}.goal .tn-tg{min-width:28px;min-height:28px}

:root{--card-opacity:.9;--card-rgb:14,20,26}html.workspace-surface .card,html.workspace-surface .gcard,html.workspace-surface .tv .tb,html.workspace-surface .project,html.workspace-surface .panel{background:rgba(var(--card-rgb),var(--card-opacity))!important;backdrop-filter:blur(3px)}

html.workspace-surface{color-scheme:dark;min-height:100%}html.workspace-surface[data-theme=light]{color-scheme:light}html.workspace-embedded body{min-height:100dvh}

html.workspace-surface[data-theme] .gcard{background:rgba(var(--card-rgb),var(--card-opacity))!important}

html.workspace-surface #w12,html.workspace-surface #w12 iframe{background:transparent!important}html.workspace-surface .gate>.gfx{display:none!important}

.card[data-k]{position:relative;resize:none!important;padding-bottom:24px}.money-size-handle{position:absolute;right:3px;bottom:3px;width:24px;height:24px;min-height:24px;padding:0;border:0;background:transparent;color:var(--tx3,var(--muted));cursor:ns-resize;touch-action:none;font-size:20px;line-height:24px}.money-size-handle:focus-visible{outline:2px solid var(--acc,var(--accent));outline-offset:-2px}@media(max-width:600px){.money-size-handle{display:none}}

@media(max-width:600px){
 html.workspace-surface button,html.workspace-surface .btn{box-sizing:border-box;line-height:1.35;text-align:center;overflow-wrap:anywhere;max-width:100%}html.workspace-surface .btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:normal;min-height:40px}html.workspace-surface input:not([type=checkbox]):not([type=radio]):not([type=color]),html.workspace-surface select,html.workspace-surface textarea{font-size:16px;max-width:100%;min-width:0;box-sizing:border-box}html.workspace-embedded body{padding:8px}html.workspace-embedded .app{padding:0 0 20px}html.workspace-surface .card{min-width:0;overflow-wrap:anywhere}html.workspace-surface .d-tools{flex-wrap:wrap;gap:6px}html.workspace-surface .gh .t{min-width:0;overflow-wrap:anywhere}html.workspace-surface .goal .gh .t small{max-width:100%;white-space:normal}html.workspace-surface .goal .gh .t{min-width:0;flex-basis:120px}html.workspace-surface .mtabs button{display:flex;align-items:center;justify-content:center;line-height:1.3;min-width:0}html.workspace-surface .modal,html.workspace-surface .sheet{overflow-wrap:anywhere}html.workspace-surface .kpi .v{overflow-wrap:anywhere;font-size:clamp(22px,7vw,36px)}
}

@media(max-width:640px){
 html.workspace-surface .wbar{flex-wrap:wrap;overflow:visible;gap:6px}html.workspace-surface .wbar .wp{white-space:normal;max-width:100%;min-width:0;overflow-wrap:anywhere;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:5px}html.workspace-surface .nav{display:grid;grid-template-columns:32px minmax(0,1fr) repeat(3,32px);gap:4px}html.workspace-surface .nav .ib{width:32px;min-width:0;padding:0;display:grid;place-items:center}html.workspace-surface .nav .datebtn{padding:8px 4px;min-width:0;gap:4px}html.workspace-surface .nav .datewrap{min-width:0}html.workspace-surface #datelab{min-width:0;overflow-wrap:anywhere}
 html.workspace-embedded #mtabs{position:sticky;top:0;bottom:auto;left:auto;right:auto;margin:0 0 12px;padding:6px;display:flex;border:1px solid var(--bd);border-radius:14px;background:var(--s1);gap:2px}html.workspace-embedded #mtabs button{flex:1;min-width:0;padding:6px 2px;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px}html.workspace-embedded #mtabs button i{margin:0}html.workspace-embedded body{padding-bottom:16px}
}
