:root {
  --paper: #f7f7f3;
  --ink: #242722;
  --teal: #076c62;
  --rule: #ddded5;
  --soft: #f5f5f0;
  color: var(--ink);
  background: var(--paper);
}
body {
  background: var(--paper);
}
.mast {
  height: 62px;
  padding: 0 clamp(16px, 3.15vw, 64px);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: clamp(24px, 5.6vw, 100px);
  background: #fcfcf8;
}
.identity,
.mast nav,
.header-end,
.header-end button,
.project-actions,
.project-actions button,
.tabbar,
.tabbar > div,
.tabbar button,
.compose-heading,
.compose-heading span,
.compose-heading button {
  display: flex;
  align-items: center;
}
.identity {
  gap: 8px;
  padding: 0;
  color: #182f2a;
}
.brand-mark {
  color: var(--teal);
  width: 32px;
  height: 34px;
}
.identity b {
  font-family: 'Songti SC', 'STSong', serif;
  letter-spacing: 0.04em;
  font-size: 26px;
}
.brand-en {
  font:
    10px/1.1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.16em;
  border-left: 1px solid #c4c8ba;
  padding-left: 10px;
  color: #536059;
}
.mast nav {
  gap: clamp(12px, 2.5vw, 36px);
  height: 100%;
}
.mast nav button {
  font-size: 14px;
  height: 100%;
  padding: 0 2px;
  color: #697069;
}
.mast nav .selected {
  color: #164b41;
  font-weight: 650;
  box-shadow: inset 0 -2px #16675a;
}
.header-end {
  gap: 16px;
  margin-left: auto;
}
.header-end button {
  gap: 7px;
  font-size: 13px;
  color: #555d54;
}
.monogram {
  background: #e6ede2;
  color: #375447;
  border: 1px solid #c5d1c2;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 16px serif;
}
.studio {
  max-width: 1920px;
  margin: auto;
  padding: 0 clamp(16px, 3.15vw, 64px) 30px;
}
.project-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 16px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #767b71;
  font-size: 12px;
}
.crumb b {
  font-weight: 400;
  color: #b3b5aa;
}
.project-bar h1 {
  font-family: 'Songti SC', 'STSong', 'Noto Serif CJK SC', Georgia, serif;
  font-weight: 650;
  font-size: clamp(23px, 2.3vw, 38px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 7px 0 0;
}
.project-actions {
  gap: 9px;
}
.project-actions button,
.compose-heading button {
  gap: 7px;
  font-size: 13px;
  background: #fcfcf9;
  border: 1px solid #cfd2c6;
  padding: 7px 11px;
  border-radius: 6px;
}
.project-actions .create-btn {
  background: #15584e;
  color: #fff;
  border-color: #15584e;
}
.project-actions i {
  --icon: 15px;
}
#fileCount {
  font:
    12px ui-monospace,
    monospace;
  color: #626d62;
}
.tabbar {
  justify-content: space-between;
  min-height: 39px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.tabbar > div {
  gap: 20px;
}
.tabbar button {
  gap: 7px;
  height: 36px;
  font-size: 14px;
  color: #73786d;
  padding: 0 1px;
}
.tabbar button[aria-selected='true'] {
  color: #0b6256;
  box-shadow: inset 0 -2px #176c5e;
  font-weight: 600;
}
.tabbar .workspace-mode {
  gap: 7px;
  color: #747c71;
  font-size: 12px;
  max-width: 40%;
}
.live-dot {
  display: block;
  background: #709377;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}
.compose-zone {
  background: #fdfdfb;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 11px 14px;
  margin-top: 14px;
}
.compose-heading {
  justify-content: space-between;
  margin-bottom: 4px;
}
.compose-heading span {
  color: #28564b;
  font-size: 13px;
  font-weight: 600;
  gap: 7px;
}
.compose-heading button {
  background: transparent;
  border: 0;
  font-size: 12px;
  padding: 3px 0;
  color: #657061;
}
.compose-heading i {
  --icon: 15px;
}
#composer {
  box-shadow: none;
  margin: 0;
  border: none;
  padding: 0;
  border-radius: 0;
  width: 100%;
  background: transparent;
}
#prompt {
  font: 15px/1.55 inherit;
  min-height: 36px;
  height: 37px;
  padding: 4px 0;
  background: transparent;
}
#send {
  background: var(--teal);
}
#settingsBtn,
.modes button {
  font-size: 12px;
}
.composer-tools {
  padding: 0;
}
.modes {
  background: #f1f3ec;
}
.workspace-mode #sessionTitle {
  max-width: 30vw;
}
.studio #recordSpace {
  background: #fdfdfb;
  border: 1px solid var(--rule);
  border-radius: 7px;
}
.studio .messages,
#messages,
body.in-session #messages {
  display: block;
  max-height: 61vh;
  overflow: auto;
  min-height: 42vh;
  padding: 18px clamp(12px, 4vw, 70px);
  line-height: 1.7;
}
.record-empty {
  margin: 15px auto;
  max-width: 750px;
  font-size: 15px;
  color: #71776b;
}
.work-dialog,
.guide-dialog {
  margin: auto;
}
.start-options {
  grid-template-columns: 1fr 1fr;
  margin: 15px 0;
}
.start-options .task-group:nth-child(3) {
  grid-column: auto;
  display: block;
}
.start-options button {
  display: flex;
}
.rail,
.files {
  display: none;
  position: fixed;
  z-index: 21;
  background: #fbfbf8;
  box-shadow: 0 10px 65px #2d332328;
  inset: 0 auto 0 0;
  width: min(340px, 88vw);
  padding: 18px;
  overflow: auto;
  height: 100dvh;
  border-right: 1px solid var(--rule);
  transform: none;
}
.files {
  inset: 0 0 0 auto;
  padding: 0;
  border-left: 1px solid var(--rule);
}
.rail-open .rail,
.files-open .files {
  display: flex;
}
.files .mobile-close {
  display: flex;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.drawer-head h2 {
  font-size: 18px;
}
.drawer-head button {
  font-size: 24px;
}
.drawer-actions {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--rule);
}
.drawer-actions button {
  font-size: 14px;
}
.scrim:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #17241935;
}
.files .file-head {
  padding: 16px;
}
.model-panel {
  border-color: #d6dfd9;
}
.graph-node-note {
  padding: 12px 14px;
  background: #f0f4ef;
  border: 1px solid #d7e0d6;
  border-radius: 6px;
  line-height: 1.65;
}
.node-actions {
  margin-top: 12px;
}
.node-detail a {
  display: block;
  margin: 9px 0;
  color: var(--teal);
}
.node-detail code {
  display: block;
  background: #f3f4ee;
  padding: 8px;
  margin: 9px 0;
}
.graph-placeholder {
  min-height: 290px;
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(#d9dccd 1px, transparent 1px) 0 0/23px 23px;
  border: 1px solid var(--rule);
}
.graph-placeholder p {
  margin: 10px 0;
}
.studio #graphHost {
  --dag-height: clamp(390px, 54vh, 650px);
}
.work-dialog #pythonTool {
  margin-top: 14px;
}
.workspace-mode span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-actions button:hover,
.mast button:hover {
  filter: brightness(0.94);
}
@media (max-width: 720px) {
  .mast {
    height: 53px;
    gap: 16px;
  }
  .mast nav {
    gap: 10px;
  }
  .mast nav button {
    font-size: 12px;
  }
  .header-end {
    gap: 0;
  }
  .brand-en,
  .header-end button span,
  .monogram {
    display: none;
  }
  .identity {
    gap: 4px;
  }
  .identity b {
    font-size: 21px;
  }
  .brand-mark {
    width: 25px;
  }
  .project-bar {
    padding: 16px 0 8px;
    align-items: flex-start;
  }
  .project-bar h1 {
    font-size: 23px;
  }
  .project-actions {
    gap: 5px;
  }
  .project-actions button {
    font-size: 12px;
    padding: 6px;
    gap: 4px;
  }
  .project-actions .file-toggle {
    font-size: 0;
  }
  .project-actions .file-toggle i {
    --icon: 16px;
  }
  .studio {
    padding: 0 10px 20px;
  }
  .tabbar > div {
    gap: 13px;
  }
  .tabbar button {
    font-size: 13px;
  }
  .studio #graphHost {
    --dag-height: clamp(340px, 50vh, 500px);
  }
  .compose-zone {
    padding: 9px 10px;
  }
  .tabbar .workspace-mode {
    max-width: 32%;
  }
  #prompt {
    font-size: 16px;
    min-height: 40px;
    height: 40px;
  }
  .modes button {
    font-size: 12px;
  }
  .files {
    inset: 0 0 0 auto;
  }
  .rail {
    inset: 0 auto 0 0;
  }
  .studio #recordSpace #messages {
    padding: 12px 10px;
    max-height: 56vh;
  }
}
@media (max-width: 425px) {
  .mast {
    padding: 0 10px;
    gap: 14px;
  }
  .mast nav {
    gap: 10px;
  }
  .project-bar {
    display: block;
  }
  .project-actions {
    margin-top: 8px;
  }
  .project-actions .file-toggle {
    font-size: 12px;
  }
  .tabbar {
    margin-top: 4px;
  }
  .studio #graphHost {
    --dag-height: 42vh;
  }
  .project-bar h1 {
    font-size: 22px;
  }
}
.tabbar #graphTools {
  font-weight: 400;
  color: #64756a;
  font-size: 12px;
  box-shadow: none;
  height: auto;
  padding: 3px 9px;
  border: 1px solid #d6ddd0;
  border-radius: 4px;
  margin-right: 5px;
}
.work-dialog select {
  font: inherit;
  max-width: 100%;
  border: 1px solid #cbd1c5;
  background: white;
  border-radius: 5px;
  padding: 5px;
  margin: 4px;
  display: block;
}
.node-detail ul {
  padding-left: 20px;
}
.node-detail li {
  margin-bottom: 4px;
}
.tabbar .workspace-mode {
  max-width: 55%;
}
@media (max-width: 600px) {
  .workspace-mode #sessionTitle,
  .workspace-mode .live-dot {
    display: none;
  }
}
