.forge-heading {
  padding: 20px clamp(18px, 3vw, 54px);
  border-bottom: 1px solid var(--obs-line);
}

.forge-heading p { margin-top: 6px }
.forge-inspector-controls { padding: 18px 16px }
.forge-inspector-controls .actions { margin-top: 12px }
.forge-inspector-link { display: block; margin-top: 12px }

@media (min-width: 1000px) {
  :root[data-obs-theme="night"] .obs-forge {
    --obs-bg: #0e1a26;
    --obs-panel: #152431;
    --obs-soft: #1b3041;
    --obs-ink: #eef4f8;
    --obs-muted: #b0bfcc;
    --obs-line: #304758;
    --obs-accent: #91c9ff;
    --ink: var(--obs-ink);
    --muted: var(--obs-muted);
    --edge: var(--obs-line);
    --accent: #3284d1;
    --blue: var(--obs-accent);
    background: #0d1822;
    color-scheme: dark;
    scrollbar-color: #48637a #101d29;
  }

  .obs-forge ::selection { background: #315e83; color: #fff }
  .obs-forge :focus-visible { outline: 2px solid var(--obs-accent); outline-offset: 3px }
  .obs-forge .skip:focus { background: #eef4f8; color: #132330; z-index: 8 }
  .obs-forge header.platform-header { background: #0e1a26; border-color: var(--obs-line) }
  .obs-forge .platform-header nav a[aria-current="page"] { border-bottom-color: #70b9f3 }
  .obs-forge .platform-header a:hover { color: var(--obs-accent) }

  .obs-forge .forge-heading {
    isolation: isolate;
    position: relative;
    padding-block: 21px 19px;
    background: #132332;
  }

  .obs-forge .forge-heading::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 36%;
    background: url("gongga-panorama.jpg") center 41% / cover no-repeat;
    filter: grayscale(.6) saturate(.57);
    opacity: .38;
    mask-image: linear-gradient(90deg, transparent, #000 49%);
  }

  .obs-forge .forge-heading > div {
    margin-inline: auto;
    max-width: 1730px;
  }

  .obs-forge .forge-heading h1 {
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -.027em;
  }

  .obs-forge .forge-heading p { color: #c1cfda; font-size: 14px }

  .obs-forge .shell,
  .obs-forge .shell.with-evidence {
    grid-template-columns: clamp(164px, 14.3vw, 218px) minmax(0, 1fr) clamp(215px, 19.7vw, 306px);
    align-items: stretch;
    align-content: start;
    gap: 12px;
    width: min(100% - 32px, 1754px);
    min-height: auto;
    margin: 14px auto 28px;
  }

  .obs-forge .shell > :is(.workflow-sidebar, main, .forge-inspector) {
    align-self: start;
    min-width: 0;
    border: 1px solid var(--obs-line);
    border-radius: 6px;
    background: var(--obs-bg);
  }

  .obs-forge .workflow-sidebar { padding: 0 9px 12px }
  .obs-forge .workflow-menu > summary {
    margin: 0 -9px 7px;
    padding: 12px 13px;
    border-bottom: 1px solid var(--obs-line);
    font-size: 15px;
    background: var(--obs-panel);
    border-radius: 5px 5px 0 0;
  }

  .obs-forge #workflows { gap: 5px }
  .obs-forge .nav-group {
    gap: 1px;
    padding: 7px 0 4px;
    border-color: #243948;
  }

  .obs-forge .nav-group:first-child { border-top: 0; padding-top: 3px }
  .obs-forge .nav-group h2 { padding: 1px 8px 3px; color: #abc0d1; letter-spacing: 0 }
  .obs-forge #workflows button {
    border: 1px solid transparent;
    min-height: 31px;
    padding: 4px 8px;
    border-radius: 3px;
    line-height: 1.4;
  }

  .obs-forge #workflows button[aria-current="page"] {
    border-color: #345d7a;
    background: #1b3850;
    color: #dbefff;
    box-shadow: inset 2px 0 #74b7ef;
  }

  .obs-forge .lab-shortcuts { gap: 1px; margin-top: 10px; padding-top: 8px }
  .obs-forge .lab-shortcuts a { min-height: 27px; color: #acc8dc }
  .obs-forge .lab-shortcuts a:hover { color: #dceffe }

  .obs-forge .shell > main { padding: 0 0 16px }
  .obs-forge main > .title {
    min-height: 0;
    margin: 0;
    padding: 12px 15px 10px;
    border-radius: 5px 5px 0 0;
    background: var(--obs-panel);
  }

  .obs-forge main > .title::before { content: none }
  .obs-forge #title { font-size: clamp(18px, 1.52vw, 23px); line-height: 1.25; letter-spacing: -.024em }
  .obs-forge .title #hint { margin-top: 3px; font-size: 12px }
  .obs-forge #summary { margin: 0; padding: 0 15px; border: 0; border-bottom: 1px solid var(--obs-line) }
  .obs-forge #summary:empty { display: none }
  .obs-forge .measure { flex: 0 1 clamp(125px, 19vw, 205px); padding: 9px 13px 8px 0 }
  .obs-forge .measure b { font-size: 21px; color: #eaf4fb }
  .obs-forge .measure span { color: #aec1cf; font-size: 12px }

  .obs-forge #wave {
    border: 0;
    border-bottom: 1px solid var(--obs-line);
    border-radius: 0;
    background: #10202b;
  }

  .obs-forge .wave-toolbar,
  .obs-forge .chart-caption { padding-inline: 15px; background: #132431 }
  .obs-forge .wave-toolbar { padding-block: 9px 5px }
  .obs-forge .wave-toolbar h3 { margin: 0; font-size: 15px; font-weight: 650 }
  .obs-forge .chart-caption { padding-bottom: 7px; gap: 4px 10px }
  .obs-forge #epoch, .obs-forge .legend { font-size: 12px; color: #afc2d1 }
  .obs-forge .legend { gap: 3px 9px }
  .obs-forge .legend span { white-space: nowrap }

  .obs-forge :is(.wave-toolbar, .forge-inspector) :is(select, button) {
    min-height: 33px;
    padding: 5px 9px;
    border-color: #3a556a;
    background: #1a3040;
    color: #e7f3fd;
    font-size: 12px;
  }

  .obs-forge :is(.wave-toolbar, .forge-inspector) :is(select:hover, button:not(:disabled):hover) { border-color: #7dbcea; background: #233e53 }
  .obs-forge :is(#plot-export, #run, #evidence-toggle):disabled { color: #879bac; background: #192933 }
  .obs-forge #run:not(:disabled) { background: #2d75b5; color: #fff; border-color: #63a9e9 }
  .obs-forge #evidence-toggle[aria-expanded="true"] { background: #263f55; color: #d6ecff }

  :root[data-obs-theme="night"] .obs-forge #chart {
    min-height: 260px;
    border-color: #293e50;
    background: #0c1823;
  }

  .obs-forge #chart svg { max-height: 460px }
  :root[data-obs-theme="night"] .obs-forge #chart svg rect[fill="#fbfcfe"] { fill: #0c1823 }
  :root[data-obs-theme="night"] .obs-forge #chart svg [stroke="#e5eaf2"] { stroke: #223747 }
  :root[data-obs-theme="night"] .obs-forge #chart svg [stroke="#cdd7e5"] { stroke: #40586b }
  :root[data-obs-theme="night"] .obs-forge #chart svg [stroke="#27343b"] { stroke: #b5d0e6 }
  :root[data-obs-theme="night"] .obs-forge #chart svg [stroke="#1d5fbf"] { stroke: #74b9f5 }
  :root[data-obs-theme="night"] .obs-forge #chart svg [stroke="#8e541a"] { stroke: #efa875 }
  :root[data-obs-theme="night"] .obs-forge #chart svg [stroke="#175947"] { stroke: #80c9b0 }
  .obs-forge #chart svg text { fill: #b4cadc }

  .obs-forge #rows { margin: 12px 15px 0 }
  .obs-forge #rows:empty { display: none }
  .obs-forge #rows > .tablewrap { margin: 0 0 15px }
  .obs-forge #rows table { margin-top: 6px; background: #122230 }
  .obs-forge #rows td, .obs-forge #rows th { padding: 6px 8px; font-size: 12px }
  .obs-forge #rows th { background: #1a3040; color: #c7d9e8 }
  .obs-forge #rows .tablewrap td:first-child { background: #122230 }

  .obs-forge .forge-inspector-controls { padding: 12px }
  .obs-forge .forge-inspector h2 { font-size: 15px; font-weight: 650 }
  .obs-forge .forge-inspector #selection {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    color: #c1d2df;
  }

  .obs-forge .forge-inspector-controls .actions { margin-top: 9px }
  .obs-forge .forge-inspector #mode-note { margin-top: 8px; font-size: 12px }
  .obs-forge .forge-inspector .evidence {
    padding: 12px;
    border: 0;
    border-top: 1px solid var(--obs-line);
    background: #10202b;
    font-size: 12px;
  }

  .obs-forge .forge-inspector .evidence details {
    margin-top: 10px;
    color: #c0d7e8;
  }

  .obs-forge .forge-inspector #artifacts a { padding-block: 5px; color: #b7d8ee }
  .obs-forge .forge-inspector .forge-context { padding: 10px 12px 12px }
  .obs-forge .forge-context h2 { margin-bottom: 3px }
  .obs-forge .forge-context p { font-size: 12px }
  .obs-forge .forge-context canvas { margin-top: 8px }
  .obs-forge .forge-inspector .forge-context-choices button { padding-inline: 1px; min-height: 27px }
  .obs-forge .forge-inspector-link { color: #acd7f4; font-size: 12px; margin-top: 7px }
}
