:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #19263b;
  background: #f6f8fc;
  font-synthesis: none;
  --blue: #3b65d9;
  --muted: #68758a;
  --line: #dfe5ee;
  --surface: #fff;
  --rail: #eef2f8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  border: 0;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
p {
  line-height: 1.65;
}
button,
input,
select {
  min-height: 42px;
}
input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: inherit;
  padding: 11px 13px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #9bb3f4;
  outline-offset: 1px;
}
label {
  font-size: 13px;
  font-weight: 550;
}
.primary {
  background: var(--blue);
  color: #fff;
  border-radius: 7px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 3px #203c8910;
}
.primary:hover {
  background: #2e52bc;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 12px;
}
.text-button {
  background: none;
  padding: 6px 0;
  color: var(--blue);
  font-size: 12px;
  text-align: left;
}
.muted,
.quiet {
  color: var(--muted);
}
.quiet {
  font-size: 12px;
}
.small-label {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.wordmark {
  display: flex;
  align-items: center;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1.4px;
  width: max-content;
  line-height: 1;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: var(--blue);
  color: white;
  border-radius: 9px;
  margin-right: 10px;
  font-size: 29px;
  font-weight: 400;
  padding-bottom: 4px;
  letter-spacing: 0;
}
.brand-dot {
  color: var(--blue);
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  padding: 50px 65px;
  background: #eaf0fb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
  overflow: hidden;
}
.login-story h1 {
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 520;
  letter-spacing: -2.8px;
  line-height: 1.08;
  margin: 24px 0;
}
.login-story p {
  max-width: 400px;
  color: #62738e;
  font-size: 15px;
}
.login-story .quiet {
  font-size: 12px;
}
.login-form {
  max-width: 360px;
  width: 100%;
  margin: auto;
  padding: 50px 0;
}
.login-form h2 {
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -0.8px;
  margin: 15px 0 10px;
}
.login-form > p {
  font-size: 13px;
}
.login-form label {
  display: block;
  margin: 25px 0 8px;
}
.login-form input {
  width: 100%;
  background: #fff;
}
.login-form > .primary {
  width: 100%;
  margin-top: 28px;
}
.orbit-art {
  position: relative;
  width: 250px;
  height: 200px;
  margin-left: 12px;
}
.orbit-art span {
  position: absolute;
  border: 1px solid #9bb3e5;
  width: 210px;
  height: 120px;
  border-radius: 50%;
  top: 35px;
  left: 20px;
  transform: rotate(-35deg);
}
.orbit-art span:nth-child(2) {
  transform: rotate(35deg);
}
.orbit-art span:nth-child(3) {
  transform: rotate(90deg);
  border-color: #7294d6;
}
.orbit-art b {
  position: absolute;
  inset: 60px 100px;
  color: var(--blue);
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -4px;
}
.workspace {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--rail);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 27px 20px;
  gap: 30px;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.sidebar .wordmark {
  font-size: 26px;
}
.new-project {
  background: #fff;
  border: 1px solid #d4ddeb;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  padding: 9px 12px;
  box-shadow: 0 1px 2px #23406006;
}
.new-project span {
  margin-right: 10px;
  color: #6980a8;
  font-size: 20px;
  vertical-align: -1px;
}
.rail-label {
  color: #7a879a;
  font-size: 11px;
  font-weight: 600;
  margin: 5px 11px -21px;
}
#projects {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
}
.project-item {
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  border-radius: 7px;
  font-size: 12px;
  color: #5d6c84;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-item[aria-current="true"] {
  background: #dfe7f8;
  color: #2f54ad;
  font-weight: 600;
}
.project-item:hover {
  background: #e2e8f2;
}
.sidebar-bottom {
  margin-top: auto;
}
.balance {
  border: 1px solid #d5deec;
  border-radius: 9px;
  background: #ffffff50;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.balance > span {
  font-size: 11px;
  color: #5e718f;
}
.balance strong {
  font-size: 24px;
  font-weight: 520;
  letter-spacing: -0.8px;
}
.balance small {
  font-size: 10px;
  line-height: 1.5;
  color: #7c899e;
}
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 12px;
}
.account-row .text-button {
  color: #6d7b91;
}
.main {
  min-width: 0;
}
.workspace-header {
  height: 83px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: #ffffff9c;
}
.workspace-header > div {
  display: flex;
  gap: 14px;
  align-items: center;
}
.breadcrumb {
  font-size: 12px;
  color: #98a1b1;
}
.workspace-header h1 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-height: calc(100dvh - 83px);
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 38px 22px;
  max-width: 1000px;
  width: 100%;
  margin: auto;
  min-height: calc(100dvh - 83px);
}
.welcome {
  margin: auto 0;
  text-align: center;
  padding: 58px 0 45px;
}
.welcome-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #cbd8f5;
  border-radius: 18px;
  color: #4975dc;
  font-size: 57px;
  font-weight: 300;
  line-height: 1;
  padding-bottom: 6px;
  background: #eaf0fd;
}
.welcome-mark span {
  font-size: 22px;
  position: absolute;
  right: -9px;
  bottom: -4px;
  background: #f6f8fc;
  border-radius: 50%;
  padding: 3px;
  color: #587dd0;
}
.welcome h2 {
  font-size: clamp(26px, 3vw, 39px);
  letter-spacing: -1.5px;
  font-weight: 520;
  margin: 27px 0 13px;
}
.welcome > p {
  font-size: 14px;
  color: #8290a7;
  margin-bottom: 35px;
}
.suggestions {
  display: flex;
  text-align: left;
  gap: 10px;
  max-width: 690px;
  margin: 0 auto;
}
.suggestions button {
  text-align: left;
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 9px;
  padding: 17px 15px;
  flex: 1;
  transition: border-color 0.15s;
}
.suggestions button:hover {
  border-color: #9bb3e5;
}
.suggestions span {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.suggestions small {
  display: block;
  font-size: 11px;
  color: #8591a5;
  line-height: 1.6;
  margin-top: 8px;
}
.composer {
  margin-top: 22px;
  border: 1px solid #cbd6e8;
  background: #fff;
  border-radius: 13px;
  padding: 10px 13px;
  box-shadow: 0 5px 22px #1b3c6e07;
}
.composer textarea {
  border: 0;
  width: 100%;
  resize: none;
  min-height: 95px;
  font-size: 14px;
  padding: 10px 5px;
  background: transparent;
}
.composer textarea:focus {
  outline: none;
}
.composer:focus-within {
  border-color: #7897db;
  box-shadow: 0 0 0 2px #6e91e513;
}
.composer textarea::placeholder {
  color: #a2acbc;
}
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 2px;
}
.composer-options {
  display: flex;
  align-items: center;
  gap: 14px;
}
.composer select {
  font-size: 11px;
  min-height: 32px;
  padding: 5px 24px 5px 9px;
  background: #f5f7fb;
  border-color: #e5eaf1;
}
.budget-label {
  color: #8590a3;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 400;
}
.budget-label input {
  width: 65px;
  min-height: 32px;
  padding: 4px 2px 4px 4px;
  border: none;
  font-size: 11px;
  color: #5d6d89;
}
.composer .primary {
  min-height: 34px;
  padding: 8px 16px;
  font-size: 12px;
}
.composer .primary span {
  padding-left: 12px;
}
.composer-note {
  text-align: center;
  color: #a1aaba;
  font-size: 10px;
  margin: 11px 0 0;
}
.inspector {
  border-left: 1px solid var(--line);
  padding: 27px 22px;
  background: #f9fafd;
  min-width: 0;
}
.inspector-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.inspector h2 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.inspector-glyph {
  color: #9faec6;
  font-size: 21px;
}
.inspector p {
  font-size: 11px;
  color: #8996ab;
}
.inspector h3 {
  font-size: 12px;
  font-weight: 600;
}
.context-preview {
  margin-top: 37px;
  border-top: 1px solid var(--line);
  padding-top: 21px;
}
#context-status {
  font-size: 10px;
  color: #7e8c9f;
  margin: 18px 0 4px;
}
.mode-guide {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.mode-guide dl {
  font-size: 11px;
  line-height: 1.6;
}
.mode-guide dt {
  font-weight: 550;
  color: #637490;
}
.mode-guide dd {
  margin: 3px 0 16px;
  color: #97a2b5;
}
.transcript {
  padding-top: 20px;
}
.run-conversation {
  padding-bottom: 28px;
}
.user-message {
  background: #eaf0fb;
  border: 1px solid #e1e8f5;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 5px 0 27px;
}
.user-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  margin: 7px 0 0;
}
.speaker {
  font-size: 12px;
  font-weight: 650;
}
.assistant-message {
  padding: 0 8px;
}
.answer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.answer-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  line-height: 1.8;
  font-size: 13px;
}
.run-state {
  background: #eaf0fb;
  color: #6681b6;
  border-radius: 4px;
  font-size: 10px;
  padding: 3px 8px;
  min-height: 28px;
}
.working {
  font-size: 13px;
  color: #7b8eaf;
}
.run-error {
  font-size: 12px;
  color: #9c6242;
  background: #fff4e9;
  padding: 12px;
  border-radius: 7px;
}
.run-kicker {
  color: #536eab !important;
}
.usage-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 11px;
  gap: 12px;
  margin: 22px 0;
}
.usage-grid dt {
  color: #8b98ad;
}
.usage-grid dd {
  margin: 0;
  color: #3b526e;
  font-variant-numeric: tabular-nums;
}
.agent-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  padding: 14px 0;
  border-top: 1px solid #e4e9f1;
}
.agent-role {
  font-size: 12px;
  text-transform: capitalize;
}
.agent-status {
  font-size: 10px;
  color: #8b9cb7;
}
.agent-row small {
  grid-column: 1/-1;
  color: #8b98ac;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.messages {
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 8px;
}
.messages summary {
  cursor: pointer;
  color: #617699;
}
.message-entry {
  max-height: 160px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  margin-top: 12px;
}
.message-entry small {
  font-size: 9px;
  color: #92a0b5;
}
.message-entry p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #5a6d88;
}
.stop-button {
  background: #fff0ed;
  color: #a15142;
  border: 1px solid #f2d6d0;
  border-radius: 6px;
  font-size: 11px;
  margin-top: 18px;
  padding: 8px 14px;
  min-height: 34px;
}
dialog {
  border: 1px solid #d6e0ed;
  box-shadow: 0 20px 80px #1d356e20;
  border-radius: 14px;
  width: min(550px, calc(100vw - 28px));
  padding: 27px;
  color: inherit;
  max-height: 90dvh;
}
dialog::backdrop {
  background: #22365570;
  backdrop-filter: blur(3px);
}
dialog form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
dialog h2 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 0;
}
dialog p {
  font-size: 12px;
  margin: 4px 0 10px;
}
dialog .primary {
  align-self: flex-end;
  margin-top: 9px;
}
dialog input,
dialog textarea {
  width: 100%;
  font-size: 13px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.dialog-heading > button {
  background: #f3f6fb;
  border-radius: 6px;
  width: 34px;
  min-height: 34px;
  font-size: 21px;
  color: #8190a9;
}
#error {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff2ee;
  color: #9d4e3d;
  border: 1px solid #f2c9bb;
  padding: 13px 20px;
  border-radius: 9px;
  font-size: 12px;
  max-width: min(650px, 90vw);
  z-index: 100;
  box-shadow: 0 5px 15px #55220c0c;
}
@media (min-width: 1600px) {
  .conversation {
    padding-left: 65px;
    padding-right: 65px;
  }
  .content-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .inspector {
    padding: 30px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 15px;
  }
  .content-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .conversation {
    padding-left: 23px;
    padding-right: 23px;
  }
  .inspector {
    padding: 23px 17px;
  }
  .suggestions {
    flex-direction: column;
    gap: 8px;
  }
  .suggestions button {
    padding: 12px 15px;
  }
  .suggestions small {
    margin-top: 3px;
  }
  .welcome {
    padding: 35px 0;
  }
  .welcome > p {
    margin-bottom: 25px;
  }
  .login-story {
    padding: 35px;
  }
  .login-form {
    padding: 35px;
  }
}
@media (max-width: 850px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .inspector-heading {
    grid-column: 1/-1;
  }
  .context-preview {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .mode-guide {
    grid-column: 1/-1;
  }
  .mode-guide dl {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 8px;
  }
  .mode-guide dd {
    margin: 0;
  }
  .suggestions {
    flex-direction: row;
  }
  .welcome {
    padding: 65px 0;
  }
  .conversation {
    min-height: calc(100dvh - 83px);
  }
  .workspace-header {
    padding: 0 24px;
  }
  .login-story h1 {
    font-size: 41px;
  }
  .login-form {
    max-width: 310px;
    padding: 24px;
  }
  .login-story {
    padding: 30px;
  }
  .orbit-art {
    transform: scale(0.8);
    transform-origin: left center;
  }
}
@media (max-width: 600px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 17px 19px;
    gap: 15px;
    display: grid;
    grid-template-columns: 1fr auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .wordmark {
    font-size: 24px;
  }
  .brand-symbol {
    width: 28px;
    height: 28px;
    font-size: 27px;
  }
  .new-project {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 36px;
  }
  .rail-label {
    display: none;
  }
  #projects {
    grid-column: 1/-1;
    flex-direction: row;
    max-height: 48px;
  }
  .project-item {
    flex-shrink: 0;
    max-width: 180px;
    min-height: 35px;
  }
  .sidebar-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column: 1/-1;
    margin: 0;
  }
  .balance {
    flex-direction: row;
    padding: 0;
    border: 0;
    background: none;
    align-items: center;
    gap: 8px;
  }
  .balance strong {
    font-size: 14px;
    letter-spacing: 0;
  }
  .balance > span {
    font-size: 10px;
  }
  .balance small {
    display: none;
  }
  .account-row {
    margin: 0;
    gap: 12px;
  }
  .account-row > span {
    display: none;
  }
  .workspace-header {
    height: 65px;
    padding: 0 20px;
  }
  .workspace-header > div {
    gap: 8px;
  }
  .breadcrumb {
    display: none;
  }
  .workspace-header h1 {
    font-size: 13px;
  }
  .workspace-header .secondary {
    font-size: 10px;
    min-height: 32px;
    padding: 6px 10px;
  }
  .conversation {
    padding: 0 18px 23px;
    min-height: calc(100dvh - 228px);
  }
  .welcome {
    padding: 38px 0 22px;
  }
  .welcome h2 {
    font-size: 30px;
  }
  .welcome > p {
    font-size: 12px;
    margin: 10px 0 23px;
  }
  .welcome-mark {
    width: 48px;
    height: 48px;
    font-size: 46px;
    border-radius: 14px;
  }
  .suggestions {
    flex-direction: column;
    text-align: left;
    gap: 7px;
  }
  .suggestions button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
  }
  .suggestions small {
    font-size: 9px;
    margin: 0;
    max-width: 145px;
    text-align: right;
  }
  .suggestions span {
    font-size: 11px;
  }
  .composer {
    margin-top: 20px;
  }
  .composer textarea {
    min-height: 80px;
    font-size: 13px;
  }
  .composer-options {
    gap: 5px;
  }
  .budget-label {
    font-size: 10px;
  }
  .budget-label input {
    width: 50px;
  }
  .composer-note {
    font-size: 9px;
  }
  .inspector {
    padding: 23px 20px;
    gap: 20px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: auto;
    padding: 25px;
  }
  .login-story > div {
    padding: 35px 0 5px;
  }
  .login-story h1 {
    font-size: 39px;
  }
  .login-story > div p {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .login-story > .quiet {
    display: none;
  }
  .orbit-art {
    display: none;
  }
  .login-form {
    max-width: none;
    padding: 25px 35px 45px;
  }
  .login-form h2 {
    font-size: 24px;
  }
  .user-message {
    padding: 15px;
  }
  .answer-content {
    font-size: 12px;
  }
  dialog {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
:root { --burn-border: #dce2e9; }
.burn-content { padding: 28px; max-width: 560px; }
.burn-content select, .burn-content input { width: 100%; margin: 8px 0 16px; }
.burn-content label { display: block; font-size: 13px; font-weight: 600; margin-top: 14px; }
.burn-content select { padding: 10px; border: 1px solid var(--burn-border); border-radius: 8px; background: white; min-width: 0; }
.burn-row { display: flex; gap: 10px; align-items: baseline; }
.burn-row select { flex: 1; }
.burn-status { padding: 12px; background: #f1f4f8; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.burn-address, .burn-quote dd, #burn-signature { overflow-wrap: anywhere; font-family: monospace; font-size: 12px; }
.burn-quote { border: 1px solid var(--burn-border); padding: 16px; border-radius: 12px; margin-top: 20px; }
.burn-quote h3 { font-size: 16px; line-height: 1.5; }
.burn-quote dt { margin: 12px 0 4px; color: #687487; font-size: 12px; }
.burn-quote dd { margin: 0; }
.burn-quote p, .dialog-intro { font-size: 13px; line-height: 1.6; color: #687487; }
.burn-quote .primary { width: 100%; font-size: 13px; white-space: normal; }
.burn-history-title { font-size: 13px; margin-top: 24px; }
.burn-history { display: grid; gap: 6px; max-height: 180px; overflow: auto; }
.burn-history-item { text-align: left; border: 1px solid var(--burn-border); border-radius: 8px; padding: 10px; background: white; font-size: 12px; }
#burn-dialog { width: min(94vw, 600px); max-height: 90vh; overflow: auto; }
#add-credits { display: block; margin-top: 8px; }

.workspace-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.work-dialog {
  width: min(920px, calc(100vw - 28px));
}
.work-section {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  margin-top: 16px;
}
.work-section h3,
.work-dialog > h3,
#checkout-dialog h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
.work-section > p {
  max-width: 72ch;
  line-height: 1.65;
  color: var(--muted);
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.panel-actions .primary {
  margin: 0;
}
.file-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 16px 0;
}
.file-pickers label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  min-width: 0;
}
.file-pickers input {
  padding: 10px;
  background: var(--rail);
  font-size: 11px;
}
.file-entry,
.proposal-entry,
.task-entry,
.check-entry {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.file-entry summary,
.proposal-entry summary,
.task-entry summary,
.check-entry summary {
  cursor: pointer;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.work-dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f1f4f9;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 6px;
  max-height: 340px;
  overflow: auto;
}
.source-block {
  min-width: 0;
}
.source-block h4 {
  margin: 12px 0 5px;
  color: var(--muted);
  font-size: 11px;
}
.file-change {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 14px;
  margin: 22px 0;
}
.file-change > h3 {
  grid-column: 1/-1;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.source-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  padding: 8px 0;
}
.source-choice input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  min-height: 18px;
}
.source-choice span {
  overflow-wrap: anywhere;
}
#memory-sources {
  max-height: 260px;
  overflow: auto;
}
#memory-form fieldset {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 6px;
  min-width: 0;
}
.offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.offer-row h3 {
  margin: 0 0 7px;
}
.offer-row .primary {
  margin: 0;
  flex-shrink: 0;
}
.purchase-row {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
}
.purchase-row small {
  color: var(--muted);
}
.danger-section {
  border-color: #edc8c0;
}
@media (max-width: 600px) {
  .workspace-header {
    height: auto;
    min-height: 80px;
    align-items: flex-start;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-direction: column;
  }
  .workspace-header .workspace-actions {
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }
  .workspace-actions button {
    flex: 1;
    min-height: 38px !important;
  }
  .sidebar-bottom {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .sidebar-bottom > .text-button {
    font-size: 11px;
    min-height: 36px;
  }
  .file-pickers,
  .file-change {
    grid-template-columns: minmax(0, 1fr);
  }
  .offer-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .work-dialog {
    padding: 18px;
  }
  .panel-actions button {
    width: 100%;
    min-height: 42px;
  }
  .work-dialog pre {
    max-height: 280px;
  }
}

.github-choice-controls { display: grid; gap: 10px; margin-top: 16px; }
.github-choice-controls select { min-width: 0; width: 100%; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
#github-panel form { max-width: 540px; margin: 16px 0; }
.github-publication { border-left: 3px solid var(--blue); padding: 8px 0 8px 18px; margin-top: 20px; }
.callback-page { width: min(560px, calc(100vw - 40px)); margin: 15vh auto; line-height: 1.7; }
.callback-page h1 { font-size: 28px; font-weight: 550; }
.callback-page a { color: var(--blue); }
