/* Diffuse.work: electric blue, diffused light, crisp operational surfaces. */
:root{--blue:#0754ff;--blue-deep:#0732bc;--line:#dfe6f3;--muted:#62718a;--lime:#0754ff;--purple:#0754ff;color:#162342;background:#f1f4fa}
body{background:radial-gradient(ellipse at 88% 2%,#d6e8ff 0,transparent 42%),#f3f5fa}
button{border-radius:9px}button:hover{background:#edf3ff;color:#0647d5}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#0754ff}
.sidebar{background:linear-gradient(170deg,#fff 55%,#f1f7ff 83%,#d9eaff 100%);border-right:1px solid #dce5f4;padding-top:27px}
.brand{color:var(--blue);font-size:25px;letter-spacing:-1px;gap:5px;white-space:nowrap;font-weight:700}
.brand-dot{display:none}.mark{background:transparent;color:var(--blue);font-style:italic;font-size:34px;line-height:35px;letter-spacing:-4px;padding:0 5px 0 0;border-radius:0;width:32px;height:36px;font-weight:700}
.workspace{margin:30px 0;color:#253858;font-size:14px}.workspace small{color:#63799d;font-size:10px}
.avatar,.avatar.lime{background:linear-gradient(145deg,#169cff,#0644ec);color:white;box-shadow:0 4px 14px #0754ff26}
.nav-label{color:#697b98}.nav{color:#536680;font-size:14px;border-radius:10px;margin-top:8px}
.nav.active{background:linear-gradient(120deg,#138cff,#0643ec);color:#fff;box-shadow:0 5px 16px #0754ff25}
.nav.active span{color:white}.nav.active kbd{opacity:.75}.nav:not(.active):hover{background:#eaf1ff}
.project-button{font-size:13px;color:#526884;border-radius:8px}.project-button.selected{background:#e5eeff;color:#0648d9;font-weight:600}.project-icon{background:#6599ff!important}.project-button:nth-child(3) .project-icon{background:#104dd0!important}
.sidebar-bottom{color:#61738e}.local-label{color:#3f5b83}.backup button{background:#ffffffb8;border-color:#cddbf1;color:#2452a4}
.topbar{border-color:#dbe4f2;color:#6b7b95;height:70px}.topbar b{color:#2f4a72}.demo-label{color:#54749f}
.heading{position:relative;isolation:isolate;overflow:hidden;margin:23px 0 20px;padding:28px 30px;min-height:160px;border:1px solid #fff;border-radius:18px;background:radial-gradient(ellipse at 100% 100%,#0530bf 0,transparent 45%),radial-gradient(ellipse at 92% 88%,#006bff 0,#0386ff 21%,#81bbff 38%,transparent 63%),linear-gradient(110deg,#fff 5%,#f4f7fd 55%,#e0ebfc 100%);box-shadow:0 8px 30px #103f8f08}
.heading>div{max-width:72%}.eyebrow{color:#0754ff;font-size:11px;letter-spacing:1.8px}.eyebrow span{color:#536f9d}
h1{color:#10234c;font-size:32px;font-weight:700;letter-spacing:-1px;line-height:1.35;margin:10px 0}.heading p{color:#445e80;line-height:1.8;max-width:460px;font-size:14px}
button.primary{background:linear-gradient(135deg,#0b81ff,#0546ed);border:1px solid #247aff;color:white;border-radius:10px;box-shadow:0 5px 14px #0754ff26}
button.primary:hover{background:linear-gradient(135deg,#0765f5,#0735bd);color:white}.heading .primary{background:#ffffffed;color:#0754ff;border-color:white;box-shadow:0 6px 20px #0035b326;white-space:nowrap}.heading .primary:hover{background:white;color:#0732bc}
.metrics{gap:14px;margin-bottom:23px}.metric{border-radius:13px;background:#ffffffeb;border-color:#e0e7f3;padding:18px 20px;box-shadow:0 3px 12px #15459604}.metric-label{font-size:13px;color:#5d6f8b}.metric strong{color:#122e61;font-size:32px;font-weight:600}.metric small{color:#627694}
.metric-symbol{background:linear-gradient(140deg,#168dff,#0746ed);color:white;border:1px solid #1680ff;border-radius:50%;width:42px;height:42px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px #0754ff22}
.metric.risk .metric-symbol{background:#fff1f2;color:#b83850;border-color:#f3d5db;box-shadow:none}
.surface{border-color:#dce5f4;border-radius:15px;box-shadow:0 8px 30px #12377906}.toolbar{background:#fff}.view-tabs button{color:#62738e;font-size:14px}.view-tabs .active{color:#0754ff;border-color:#0754ff;font-weight:700}
.search{background:#f2f6fc;color:#60769a;border:1px solid #e4ebf6}.search input{color:#203c67;font-size:13px}.search input::placeholder{color:#71839e}.filters button,.filters select{font-size:13px;color:#496183;border-color:#dce6f4}.filters select{background:#fbfcff}
#viewControls{color:#627694;background:#fcfdff}.control-group button{border-color:#dce6f4;color:#506b92}.control-group button.selected{background:#0754ff;color:white;border-color:#0754ff}
.map-viewport{background-color:#f3f7fe;background-image:radial-gradient(#c8d9f3 1px,transparent 1px),radial-gradient(ellipse at 0 0,#e0edff,transparent 60%);background-size:20px 20px,100% 100%}
.studio-root{background:radial-gradient(ellipse at 0 0,#009aff,transparent 70%),linear-gradient(120deg,#0867ff,#0636bd);border:1px solid #418bff;border-radius:12px;box-shadow:0 7px 20px #0754ff25;color:white}.studio-root .mark{background:transparent;color:white}.studio-root small{color:#d8e8ff;font-size:11px}
.project-map{border-color:#d5e1f4;border-radius:12px;background:#fffffff2;box-shadow:0 3px 14px #11479b06}.map-project-head{background:linear-gradient(100deg,#eaf2ff,#f7faff);border-color:#dce7f7;border-left:3px solid #0754ff}.map-project-head h3{color:#173968}.map-project-head p{color:#5b78a2;font-size:12px}.map-project-head button{color:#285caa;border-color:#c8d9f1;background:#fff9}
.layer-label{color:#416eac;font-size:11px}.layer-label:after{background:#dce7f6}.node{border-color:#d7e2f3;border-radius:10px;box-shadow:0 3px 9px #17499507}.node.selected{border-color:#4281ff;box-shadow:0 0 0 2px #0754ff12}.node-main:hover{background:#f0f6ff}.node-title{color:#1a355f;font-size:15px}.node-type{color:#627ca2;font-size:10px}.node-meta{color:#546e92;font-size:12px}.node:not(:last-child):after{color:#80a8e4}.expand{background:#f5f8ff;border-color:#e3ebf8;color:#3c66a5;font-size:12px}.expand:hover{background:#eaf2ff}
.branch{border-color:#a4c4f7}.branch-title{color:#3869af;font-size:13px}.branch-title:before{background:#a4c4f7}.review-branch{border-color:#669afb}.pill{font-size:12px;color:#637592;background:#edf1f7}.pill.active{background:#e5eeff;color:#0754e4}.pill.done{background:#e5f3ed;color:#227454}.pill.review{background:#fff1d8;color:#956414}.pill.blocked{background:#fde7ed;color:#b63552}.pill.revision{background:#fff0e4;color:#a85724}.alert-line{color:#b63552;font-size:12px}
.legend.active{background:#0754ff}.legend.done{background:#339d7b}.legend.review{background:#d39b35}.legend.blocked{background:#d05270}.surface-footer{color:#667d9d;background:#fcfdff;font-size:12px}.bottom-note{color:#416bae;font-size:11px}
table{font-size:14px}th{background:#f0f5fd;color:#496a99;font-size:13px}td{color:#3f5474;border-color:#e6edf7}tr:hover td{background:#f4f8ff}.shot-name{color:#1449aa}.shot-sub{color:#6a80a1;font-size:12px}.image-empty{background:linear-gradient(135deg,#f5f8ff,#e9f2ff);border-color:#bed2f0;color:#6682aa;font-size:12px}.file-cell a{color:#0754ff}.small-button{color:#245ba7;border-color:#cfddf2}.empty{color:#627694}.shot-img{border:1px solid #dbe6f6}
.timeline-group{background:linear-gradient(90deg,#e8f0ff,#f5f8ff);color:#2e5b9f;border-left:3px solid #0754ff;font-weight:600}.time-head .time-label{background:#f0f5fd;color:#2f568e}.time-label{border-color:#dde7f5;color:#49668e}.day{color:#526e96}.day.weekend{background:#e9f1fc80}.bar{background:#dce9ff;color:#174b9c;border-radius:6px}.bar.active{background:linear-gradient(100deg,#0988ff,#0750f5);color:white;box-shadow:0 3px 8px #0754ff20}.bar.done{background:#deefe8;color:#216c51}.bar.blocked{background:#f9dce5;color:#a83350}.bar.review{background:#ffedc9;color:#856019}.bar.revision{background:#ffe5d3;color:#9b522b}.today-line{background:#0754ff;opacity:.7}.time-title{color:#295687}.unscheduled{color:#627694}
dialog{border-color:#d2e1f8;border-radius:18px;box-shadow:0 25px 100px #05296640}dialog::backdrop{background:#07275c66;backdrop-filter:blur(5px)}.dialog-head{background:radial-gradient(ellipse at 100% 0,#cce3ff,transparent 60%),#f7faff;border-color:#deE8f8}h2{color:#173b71}.field{color:#4b668c;font-size:13px}.field input,.field select,.field textarea{border-color:#cedcf0;color:#203b62}.field input:focus,.field select:focus,.field textarea:focus{border-color:#0754ff}.check{color:#49668f;font-size:13px}input[type=checkbox]{accent-color:#0754ff}.review-box{border-color:#d0dff7;background:#f3f7ff}.review-box h4{color:#2155a1}.review-steps{color:#496eaa;font-size:12px}.history,.notice,.parent-ref{color:#60799d;font-size:12px}.dialog-footer{background:#fafcff;color:#62799c}#toast{background:#064bde;box-shadow:0 8px 26px #0754ff35}
@media(max-width:1100px){.brand{font-size:21px;gap:3px}.heading{padding:24px}.heading>div{max-width:72%}h1{font-size:28px}.metric-symbol{display:none}.metric{padding:15px}.heading p{max-width:340px}}
@media(max-width:760px){.sidebar{background:#fff;padding:15px}.brand{font-size:25px}.nav{font-size:13px}.heading{margin:16px 0;padding:22px;min-height:185px;align-items:flex-start;flex-direction:column;gap:16px;background:radial-gradient(ellipse at 110% 110%,#0640df 0,#078cff 22%,#a4d2ff 44%,transparent 67%),#f9fbff}.heading>div{max-width:100%}h1{font-size:25px}.heading p{font-size:13px;max-width:85%}.heading .primary{padding:10px 15px}.metric strong{font-size:28px}.metric-label{font-size:12px}.metrics{gap:10px}.view-tabs button{font-size:13px}.filters{width:100%}.search{flex:1}.search input{width:100%;min-width:80px}.control-group{flex-wrap:wrap}.sidebar .mark{height:32px;width:31px}.topbar{height:50px}.map-viewport{padding:18px}.dialog-head{padding:20px}.surface-footer{font-size:11px}}

/* Wrap whole navigation buttons so every tool is discoverable on narrow screens. */
@media(max-width:760px){
 #nav{flex-wrap:wrap;gap:6px}
 #nav .nav{width:auto;flex:0 0 auto;white-space:nowrap;min-height:44px;margin-top:0;gap:8px;padding:8px 10px}
}
/* Modal feedback belongs in the dialog top layer, never above it via z-index. */
.dialog-alert{margin:12px 24px;padding:12px 14px;border:1px solid #e0a1ad;border-radius:8px;background:#fff1f2;color:#92233e;line-height:1.6;overflow-wrap:anywhere}
.dialog-alert:focus{outline:2px solid #92233e;outline-offset:2px}
/* Flow map phase colors: inherited by descendants, independent of status pills. */
.map-board .node{border-color:var(--phase-line,#d7e2f3);border-top:4px solid var(--phase-accent,#4281ff);background:var(--phase-soft,#fff)}
.map-board .node.selected{border-color:var(--phase-accent,#4281ff);box-shadow:0 0 0 1px var(--phase-line,#d7e2f3)}
.map-board .node-main{background:#ffffffb8}
.map-board .node-main:hover{background:var(--phase-soft,#f0f6ff)}
.map-board .node-title{color:var(--phase-ink,#1a355f)}
.map-board .node-type{color:var(--phase-ink,#627ca2)}
.map-board .expand{background:var(--phase-soft,#f5f8ff);color:var(--phase-ink,#3c66a5);border-color:var(--phase-line,#e3ebf8)}
.map-board .expand:hover{background:#fff}
.map-board .node:not(:last-child):after{color:var(--phase-accent,#80a8e4)}
.map-board .branch{border-left:3px solid var(--phase-accent,#a4c4f7);border-radius:0 10px 10px 0;padding:1px 14px 12px;background:var(--phase-soft,#f5f8ff)}
.map-board .branch-title{color:var(--phase-ink,#3869af);font-weight:600}
.map-board .branch-title:before{background:var(--phase-accent,#a4c4f7)}
.map-board .branch-title .small-button{color:var(--phase-ink,#245ba7);border-color:var(--phase-line,#cfddf2);background:#ffffffcf}
.map-board .branch .layer-label{color:var(--phase-ink,#416eac)}
.map-board .branch .layer-label:after{background:var(--phase-line,#dce7f6)}

/* Standard white D artwork, with the original blue studio badge. */
.brand-avatar img{display:block;width:28px;height:28px;object-fit:contain}
.studio-root .studio-mark{display:block;width:38px;height:38px;object-fit:contain;flex-shrink:0}
.sidebar>.workspace{margin-top:0}
