.dhub-shell{width:100%;max-width:1180px;margin:0 auto 16px;padding:16px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:linear-gradient(145deg,#11151c,#171318);color:#f8fafc;box-sizing:border-box}
.dhub-shell *{box-sizing:border-box}.dhub-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.dhub-head small{color:#facc15;font-weight:900}.dhub-head h2{margin:4px 0;font-size:clamp(20px,3vw,30px);line-height:1.1}.dhub-head p{margin:0;color:#aeb2bb;font-size:12px}.dhub-live{padding:7px 10px;border:1px solid #22c55e66;border-radius:999px;color:#86efac;font-size:10px;font-weight:900;white-space:nowrap}
.dhub-tabs{display:flex;gap:7px;overflow:auto;margin:16px 0 10px}.dhub-tabs button{min-height:42px;padding:8px 12px;border:1px solid #ffffff24;border-radius:11px;background:#0b0e13;color:#fff;font-size:10px;font-weight:900;white-space:nowrap}.dhub-tabs button[aria-selected=true]{background:#da251d;border-color:#da251d}
.dhub-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.dhub-stats>div{padding:11px;border:1px solid #ffffff18;border-radius:12px;background:#0b0e13}.dhub-stats b{display:block;font-size:22px}.dhub-stats span{color:#9ca3af;font-size:10px}
.dhub-panel[hidden]{display:none!important}.dhub-form{padding:13px;border:1px solid #ffffff18;border-radius:14px;background:#0b0e13}.dhub-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.dhub-grid label{display:grid;gap:5px;color:#aeb2bb;font-size:10px;font-weight:800}.dhub-grid .span2{grid-column:1/-1}.dhub-grid input,.dhub-grid textarea,.dhub-review-actions select{width:100%;min-height:43px;padding:9px 11px;border:1px solid #ffffff26;border-radius:10px;background:#111827;color:#fff;font:inherit}.dhub-grid textarea{resize:vertical;line-height:1.45}
.dhub-primary,.dhub-review-actions button{min-height:43px;margin-top:10px;padding:9px 14px;border:0;border-radius:10px;background:#da251d;color:#fff;font-size:10px;font-weight:900}.dhub-note{margin-top:8px;color:#9ca3af;font-size:10px}
.dhub-list{display:grid;gap:8px}.dhub-record{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #ffffff18;border-radius:12px;background:#0b0e13}.dhub-record small,.dhub-record span{display:block;color:#9ca3af;font-size:9px}.dhub-record b{display:block;margin:3px 0;font-size:11px}.dhub-state{padding:6px 8px;border-radius:999px;border:1px solid #ffffff24;font-size:9px;font-weight:900}.dhub-state.routed{color:#86efac;border-color:#22c55e66}.dhub-state.review{color:#fde68a;border-color:#f59e0b66}.dhub-state.rejected{color:#fda4af;border-color:#ef444466}
.dhub-review-actions{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px}.dhub-review-actions button{margin:0}.dhub-review-actions .bad{background:#7f1d1d}
.dhub-source-grid,.dhub-route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dhub-source-grid>div,.dhub-route-grid button{padding:12px;border:1px solid #ffffff18;border-radius:12px;background:#0b0e13;color:#fff;text-align:left}.dhub-source-grid b,.dhub-source-grid small{display:block}.dhub-source-grid small{margin-top:3px;color:#9ca3af;font-size:9px}.dhub-route-grid button{display:flex;justify-content:space-between;gap:8px;font-size:9px;font-weight:900}.dhub-route-grid span{min-width:24px;text-align:center;padding:3px 5px;border-radius:999px;background:#facc15;color:#111}.dhub-empty{padding:20px;text-align:center;border:1px dashed #ffffff26;border-radius:12px;color:#9ca3af;font-size:11px}
@media(max-width:720px){.dhub-shell{padding:12px;border-radius:14px}.dhub-head{display:block}.dhub-live{display:inline-block;margin-top:9px}.dhub-stats{grid-template-columns:repeat(2,1fr)}.dhub-grid{grid-template-columns:1fr}.dhub-grid .span2{grid-column:1}.dhub-record{grid-template-columns:1fr}.dhub-review-actions{grid-template-columns:1fr 1fr}.dhub-review-actions select{grid-column:1/-1}.dhub-source-grid,.dhub-route-grid{grid-template-columns:1fr}}
@media(orientation:landscape) and (max-height:600px){.dhub-shell{padding:9px}.dhub-head p{display:none}.dhub-tabs{margin:8px 0}.dhub-stats{grid-template-columns:repeat(4,1fr)}}
.dhub-app-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.dhub-app-grid button{min-height:62px;padding:11px;border:1px solid #ffffff1f;border-radius:12px;background:#0b0e13;color:#fff;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px}
.dhub-app-grid button:hover{border-color:#da251d;background:#151015}.dhub-app-grid b{font-size:10px}.dhub-app-grid span{min-width:27px;padding:4px 6px;border-radius:999px;background:#facc15;color:#111;text-align:center;font-size:9px;font-weight:900}
.dhub-module-title{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:10px 2px;color:#f8fafc}.dhub-module-title b{font-size:13px}.dhub-module-title span{color:#9ca3af;font-size:9px}
@media(max-width:900px){.dhub-app-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.dhub-app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dhub-app-grid button{min-height:54px}}

.dhub-syncbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:10px;padding:10px;border:1px solid #ffffff18;border-radius:12px;background:#0b0e13}.dhub-syncbar button{min-height:42px;padding:9px 12px;border:0;border-radius:10px;background:#da251d;color:#fff;font-size:10px;font-weight:900}.dhub-syncbar button:disabled{opacity:.55}.dhub-syncbar span{color:#9ca3af;font-size:10px;text-align:right}
@media(max-width:720px){.dhub-syncbar{align-items:stretch;flex-direction:column}.dhub-syncbar span{text-align:left}.dhub-syncbar button{width:100%}}

/* D. HUB real AI assistant */
.dhub-ai-box{margin:14px 0 18px;padding:15px;border:1px solid rgba(250,204,21,.35);border-radius:16px;background:linear-gradient(135deg,rgba(250,204,21,.08),rgba(220,38,38,.07))}.dhub-ai-head{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;margin-bottom:10px}.dhub-ai-head span{opacity:.68}.dhub-ai-mode{font-size:10px;font-weight:900;color:#86efac;margin-bottom:8px}.dhub-ai-text{font-size:13px;line-height:1.55}.dhub-ai-ask{display:flex;gap:8px;margin-top:12px}.dhub-ai-ask input{flex:1;min-width:0;background:#0c0d10;color:#fff;border:1px solid #3b3e46;border-radius:12px;padding:11px}.dhub-ai-ask button{border:0;border-radius:12px;background:#facc15;color:#111;font-weight:900;padding:0 14px}@media(max-width:560px){.dhub-ai-ask{display:block}.dhub-ai-ask button{width:100%;min-height:44px;margin-top:8px}}
/* D. HUB 25.1: readable review and canonical branch cards. */
html[data-ddsol-design="orbit-dot-v1"] .dhub-shell{background:#fff;color:#173f46;border-color:#bfd1cd}
html[data-ddsol-design="orbit-dot-v1"] .dhub-shell .dhub-form,html[data-ddsol-design="orbit-dot-v1"] .dhub-shell .dhub-record,html[data-ddsol-design="orbit-dot-v1"] .dhub-shell .dhub-stats>div,html[data-ddsol-design="orbit-dot-v1"] .dhub-shell .dhub-source-grid>div,html[data-ddsol-design="orbit-dot-v1"] .dhub-shell .dhub-syncbar{background:#f3f8f6;color:#173f46;border-color:#bfd1cd}
html[data-ddsol-design="orbit-dot-v1"] .dhub-shell input,html[data-ddsol-design="orbit-dot-v1"] .dhub-shell select,html[data-ddsol-design="orbit-dot-v1"] .dhub-shell textarea{background:#fff;color:#173f46;border:1px solid #8faaa4;border-radius:10px;min-height:44px;padding:10px;max-width:100%;font:inherit}
html[data-ddsol-design="orbit-dot-v1"] .dhub-shell p,html[data-ddsol-design="orbit-dot-v1"] .dhub-shell label,html[data-ddsol-design="orbit-dot-v1"] .dhub-shell small,html[data-ddsol-design="orbit-dot-v1"] .dhub-shell span,html[data-ddsol-design="orbit-dot-v1"] .dhub-shell .dhub-note,html[data-ddsol-design="orbit-dot-v1"] .dhub-shell .dhub-empty{color:#526b6e}
html[data-ddsol-design="orbit-dot-v1"] .dhub-app-grid button{background:#edf7f3;color:#173f46;border-color:#bfd1cd;display:grid;grid-template-columns:1fr;gap:8px;min-height:132px}
.dhub-app-grid b{font-size:16px}.dhub-app-grid small{font-size:12px}.dhub-app-grid span{justify-self:start;white-space:normal}
html[data-ddsol-design="orbit-dot-v1"] .dhub-app-grid span{background:#fff;color:#526b6e}
html[data-ddsol-design="orbit-dot-v1"] .dhub-shell .dhub-primary,html[data-ddsol-design="orbit-dot-v1"] .dhub-review-actions button,html[data-ddsol-design="orbit-dot-v1"] .dhub-tabs button[aria-selected=true]{background:#a92d36;color:#fff}
.dhub-review-actions{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.dhub-review-actions label{display:grid;gap:6px;font-size:12px}.dhub-record b{font-size:14px;overflow-wrap:anywhere}.dhub-record small,.dhub-record span,.dhub-grid label{font-size:12px}.dhub-shell .dhub-live{white-space:normal;max-width:240px}.dhub-shell .dhub-module-title{color:inherit}.dhub-shell button:focus-visible{outline:3px solid #173f46;outline-offset:3px}
@media(max-width:600px){.dhub-review-actions{grid-template-columns:1fr}.dhub-app-grid{grid-template-columns:1fr 1fr}.dhub-app-grid button{padding:12px;min-width:0}.dhub-head h2{line-height:1.3}.dhub-grid select{width:100%}}
