:root {
  --ink: #1c1c1c;
  --muted: #626262;
  --line: #dedede;
  --accent: #8a5912;
  --accent-faint: #fff0c6;
  --primary: #ffbb1a;
  --bg: #f5f5f5;
  --surface: #fff;
  font-family: Roboto, system-ui, sans-serif;
}
:focus-visible { outline: solid 2px #8a5912; }
button, .button, .file-label, select, input[type=text], input[type=search] { border-radius: 3px; }
.primary { background: var(--primary); color: var(--ink); border-color: #e7a40c; }
.primary:hover:not(:disabled) { background: #f2af13; }
a { color: #62420b; }
th { background: #f3f3f3; }

.warehouse-app { display: block; background: var(--bg); }
.shell-header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px;
  min-height: 57px; padding: 0 23px; background: white; border-bottom: 1px solid var(--line);
}
.shell-header::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 14px; height: 14px; background: var(--primary); clip-path: polygon(0 0,100% 0,0 100%); }
.shell-brand { display: flex; gap: 13px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; }
.shell-brand img { width: 107px; height: auto; display: block; }
.shell-brand span { border-left: 1px solid var(--line); padding-left: 13px; }
.shell-location { display: flex; gap: 9px; align-items: center; font-size: .83rem; color: var(--muted); margin-left: 4px; }
.shell-header .account { margin-left: auto; font-size: .87rem; }
.sign-in-main { padding: clamp(30px, 10vh, 96px) 16px 32px; }
.sign-in-card {
  width: 100%; max-width: 430px; margin: 0 auto; padding: clamp(20px, 5vw, 28px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
}
.sign-in-card h1 { font: 650 1.65rem/1.2 Rubik, Roboto, system-ui, sans-serif; letter-spacing: -.025em; }
.sign-in-description { margin: 8px 0 21px; color: var(--muted); }
.shell-body { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 57px); }
.shell-nav {
  position: sticky; top: 57px; height: calc(100vh - 57px); overflow: auto;
  display: flex; flex-direction: column; gap: 7px; align-items: stretch;
  padding: 22px 11px; background: #fdfdfd; border-right: 1px solid var(--line);
}
.side-group { display: grid; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 10px; position: relative; padding: 9px 9px;
  min-height: 38px; color: var(--ink); border-radius: 3px; text-decoration: none; font-size: .91rem; font-weight: 550;
}
.side-child { margin-left: 17px; padding-left: 15px; border-left: 1px solid #dedede; min-height: 34px; }
.side-link:hover:not(.side-heading) { background: #f1f1f1; }
.side-link[aria-current=page], .side-link[aria-current=page]:hover {
  color: #302100; background: #fff0c6; box-shadow: inset 2px 0 #f2ad0a; font-weight: 700;
}
.nav-icon { width: 16px; height: 16px; display: inline-grid; place-items: center; color: #4d4d4d; font: 600 17px/1 system-ui, sans-serif; }
.icon-overview::before { content: "▦"; }
.icon-data::before { content: "▤"; }
.icon-flow::before { content: "⌘"; }
.icon-chart::before { content: "▥"; }
.icon-objects::before { content: "◇"; }

.workspace-main { padding: 25px clamp(18px, 2.6vw, 42px) 45px; max-width: min(1840px, 100%); }
.workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.workspace-heading h1 { font-family: Rubik, Roboto, system-ui, sans-serif; font-weight: 640; font-size: clamp(1.7rem, 2.9vw, 2.5rem); letter-spacing: -.035em; }
.workspace-heading p { color: var(--muted); margin-top: 6px; font-size: .9rem; }
.work-panel, .overview-card { background: white; border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.work-panel { margin: 0 0 16px; }
.panel-controls, .work-panel-head { display: flex; align-items: center; gap: 12px; padding: 12px 15px; flex-wrap: wrap; margin: 0; border-bottom: 1px solid var(--line); }
.work-panel-head { justify-content: space-between; }
.view-controls label { font-size: .88rem; font-weight: 650; }
.view-controls select { max-width: min(64vw, 520px); }
.workspace-result { padding: 10px 15px 15px; }
.workspace-result:has(.app-table) { padding: 0; }
.app-table th, .app-table td { padding: 11px 13px; font-size: .88rem; vertical-align: middle; }
.app-table th { font-size: .79rem; color: #505050; font-weight: 650; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table td a { overflow-wrap: anywhere; }
.table-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.table-actions button { min-height: 31px; padding: 4px 9px; font-size: .82rem; }
.overview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.overview-card { padding: 13px 16px; }
.overview-card span { display: block; color: var(--muted); font-size: .87rem; }
.overview-card strong { font-size: 1.55rem; font-weight: 700; line-height: 1.4; }
.commit { font: 12px/1.4 "Roboto Mono", monospace; background: #f1f1f1; padding: 3px 6px; border-radius: 3px; color: #414141; }
#git-history { width: min(880px, 92vw); padding: 0; }
#git-history .work-panel-head { background: #f4f4f4; }
.git-row { border-bottom: 1px solid var(--line); min-height: 46px; padding: 7px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.git-row button { min-height: 30px; }
.git-diff { max-height: 55vh; overflow: auto; padding: 15px; margin: 0; background: #f8f8f8; font-size: .84rem; }
.lineage-execution { padding: 12px 0 18px; border-bottom: 1px solid var(--line); }
.lineage-execution header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 11px; }
.lineage-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lineage-step { display: grid; gap: 3px; background: #fafafa; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; min-height: 58px; }
.lineage-step small { color: var(--muted); }
.lineage-step[data-status=SUCCESS] { border-left: 3px solid #3a7652; }
.lineage-step[data-status=FAILURE] { border-left: 3px solid #af3029; }
.lineage-frame { border: 1px solid var(--line); width: 100%; height: min(70vh, 720px); margin-top: 10px; }
.status { background: #ededed; color: #454545; border-radius: 3px; }
.status[data-status=SUCCESS] { background: #e7f2e9; color: #245b39; }
.status[data-status=FAILURE], .status[data-failed=true] { background: #fbeeea; color: #8d251f; }
.analysis-toolbar, .analysis-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.analysis-toolbar { padding: 12px 15px; }
.analysis-card { margin: 0 14px 12px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.analysis-card .work-panel-head { background: #f8f8f8; }
.analysis-controls { padding: 10px 13px; }
.analysis-card > p { padding: 8px 13px; }
.analysis-card .app-table td { max-width: 300px; overflow-wrap: anywhere; }
.bar-line { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 90px; align-items: center; gap: 9px; padding: 5px 13px; font-size: .88rem; }
.bar-track { height: 9px; background: #efefef; border-radius: 3px; }
.bar-value { background: #e9ab17; height: 100%; border-radius: inherit; }
.object-back { margin: 12px; }

.editor { padding-top: 17px; }
.editor-heading h1 { font-size: clamp(1.6rem, 2.5vw, 2.12rem); }
.editor-back { color: var(--muted); font-size: .83rem; text-decoration: none; }
.editor .studio-body { min-height: 288px; grid-template-columns: 161px minmax(0, 1fr) 228px; border-radius: 4px; }
.editor .studio-toolbar, .editor .results { border-radius: 4px; }
.editor .library, .editor .settings { background: #fff; }
.editor .settings { display: block; border-left: 1px solid var(--line); border-top: 0; }
.editor .canvas { background-color: #f8f8f8; background-image: radial-gradient(#d5d5d5 1px, transparent 1px); background-size: 13px 13px; }
.editor .nodes { min-height: 136px; }
.node { flex-basis: 155px; border-radius: 4px; box-shadow: 0 2px 5px #0001; }
.node[data-stage=input] { --node-tint: #fff1cd; }
.node[data-stage=process] { --node-tint: #f1f2f5; }
.node[data-stage=output] { --node-tint: #eaf2e8; }
.node[aria-pressed=true] { border-color: #c88604; box-shadow: 0 0 0 1px #c88604; background: #fffdfa; }
.node .node-status { padding-top: 0; color: #35634a; }
.node .node-status:empty { display: none; }
.node small { font-size: .76rem; }
.editor .edge { flex-basis: 20px; }
.graph-add { flex: none; background: white; border-style: dashed; min-height: 39px; }
.graph-add.inline-add { width: 29px; min-height: 29px; padding: 0; border-radius: 50%; }
.step-options { display: grid; gap: 8px; margin-top: 10px; }
.step-options button { justify-content: flex-start; text-align: left; }
#step-upload { display: grid; gap: 6px; margin-top: 12px; }
#step-upload #selected-file { max-width: 100%; }
#step-upload input[type=text] { width: 100%; }
.file-picker:focus-within .file-label { outline-color: #8a5912; }
#analysis-source { max-width: 60vw; }
@media(max-width:1090px) {
  .shell-body { grid-template-columns: 181px minmax(0, 1fr); }
  .editor .studio-body { grid-template-columns: minmax(0, 1fr) 210px; }
  .editor .library { display: none; }
}
@media(max-width:720px) {
  .shell-header { padding: 8px 13px; min-height: 48px; }
  .shell-location { display: none; }
  .shell-body { display: block; }
  .shell-nav { position: static; height: auto; display: flex; flex-direction: row; overflow-x: auto; padding: 6px 8px; border-bottom: 1px solid var(--line); }
  .side-group { display: flex; }
  .side-heading { display: none; }
  .side-link { min-height: 34px; white-space: nowrap; }
  .side-child { margin: 0; border: 0; }
  .nav-icon { display: none; }
  .workspace-main { padding: 15px 11px; }
  .workspace-heading { align-items: start; }
  .editor .studio-body { grid-template-columns: minmax(0, 1fr); }
  .editor .settings { border-top: 1px solid var(--line); border-left: 0; }
}
.warehouse-app.workbench-sign-in {
  background: #111923;
  color: #e9eff5;
  min-height: 100vh;
}

.workbench-sign-in .shell-header,
.workbench-sign-in .sign-in-card {
  background: #16202c;
  border-color: #2c3d50;
  color: #e9eff5;
}

.workbench-sign-in .shell-brand,
.workbench-sign-in .sign-in-description {
  color: #b9c8d8;
}
