:root {
  --bg: #f7f8f6;
  --paper: #fff;
  --ink: #23362d;
  --muted: #78827b;
  --line: #e3e8e2;
  --green: #276548;
  --pale: #eaf2e9;
  --amber: #946826;
  --shadow: 0 20px 80px #1735261c;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: var(--green);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  font-weight: 550;
  letter-spacing: -1.5px;
  line-height: 1.2;
}
h2 {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
.app {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #eff2ec;
  border-right: 1px solid var(--line);
  padding: 34px 18px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  letter-spacing: -0.9px;
  color: var(--ink);
  font-weight: 600;
  padding: 0 15px 42px;
}
.brand-symbol {
  background: var(--green);
  color: white;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 25px;
}
nav {
  display: grid;
  gap: 5px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 12px 15px;
  border-radius: 8px;
  width: 100%;
  color: #68766b;
  font-weight: 500;
}
.nav:hover,
.project-link:hover {
  background: #e6ece3;
}
.nav.active {
  color: var(--green);
  background: #e0e9db;
}
.count {
  font-size: 12px;
  min-width: 23px;
  border-radius: 5px;
  background: #ffffff85;
  text-align: center;
  padding: 1px 5px;
}
.project-nav {
  margin-top: 39px;
}
.sidebar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 15px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.icon {
  font-size: 24px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon:hover {
  background: var(--pale);
}
.project-link {
  width: 100%;
  padding: 11px 15px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  color: #667569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-link:before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid #869381;
  border-radius: 2px;
  flex-shrink: 0;
}
.project-link.active {
  color: var(--green);
  background: #e0e9db;
}
.sidebar-bottom {
  margin-top: auto;
}
.host {
  padding: 20px 15px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #6c9569;
  border-radius: 50%;
  flex-shrink: 0;
}
main {
  min-width: 0;
  padding: 0 44px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.topbar {
  height: 94px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.topbar-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.primary {
  background: var(--green);
  color: white;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 550;
  box-shadow: 0 1px 2px #19453012;
  white-space: nowrap;
}
.primary:hover {
  background: #1d5138;
}
.quiet,
.secondary {
  padding: 10px 14px;
  border-radius: 8px;
  color: #5c6c60;
  font-weight: 500;
}
.quiet:hover {
  background: var(--pale);
}
.secondary {
  border: 1px solid var(--line);
  background: #fff;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: flex-end;
  margin: 42px 0 40px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #899385;
  font-weight: 600;
  margin-bottom: 13px;
  display: block;
}
.hero p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}
.capacity {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.account-mini {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 17px;
  min-width: 158px;
}
.account-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 12px;
}
.account-glyph {
  font-size: 16px;
  color: var(--green);
}
.account-values {
  display: flex;
  gap: 22px;
}
.account-values div {
  display: grid;
  gap: 2px;
}
.account-values strong {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.6px;
}
.account-values span {
  font-size: 10px;
  color: var(--muted);
}
.model-quota {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 8px;
  font-size: 10px;
  color: var(--muted);
}
.account-unavailable {
  font-size: 12px;
  color: var(--amber);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 14px;
}
.tabs {
  display: flex;
  gap: 3px;
  background: #ecefe9;
  border-radius: 8px;
  padding: 4px;
}
.filter {
  padding: 7px 13px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 12px;
}
.filter.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px #00000009;
}
.search {
  display: flex !important;
  gap: 8px;
  align-items: center;
  color: #9ca499;
}
.search input {
  padding: 8px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  max-width: 155px;
  font-size: 12px;
}
.search input:focus {
  border-color: var(--line);
  outline: none;
}
.search span {
  font-size: 25px;
}
.task-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 21px 22px;
  margin-bottom: 9px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.task-row:hover {
  border-color: #b7c8b3;
  transform: translateY(-1px);
}
.task-symbol {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: #f1f4ee;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #819078;
}
.task-row.running .task-symbol {
  background: #e7f1e6;
  color: var(--green);
}
.task-row.review .task-symbol {
  background: #fbf1db;
  color: #aa803a;
}
.task-main {
  min-width: 0;
}
.task-title {
  font-weight: 550;
  font-size: 14px;
  letter-spacing: -0.15px;
  overflow-wrap: anywhere;
}
.task-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
  color: #87907e;
  background: #f1f4ec;
}
.badge.running {
  color: #2d7348;
  background: #e7f3e7;
}
.badge.review {
  color: #956b25;
  background: #fcf1d9;
}
.badge.failed {
  color: #a85741;
  background: #f9e9e4;
}
.badge.paused {
  color: #8a7960;
  background: #f1ece3;
}
.task-arrow {
  color: #b4bcb2;
  font-size: 20px;
}
.empty {
  min-height: 330px;
  border: 1px dashed #d7ded2;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 35px;
  gap: 14px;
  background: linear-gradient(150deg, #ffffff60, #f3f6ef);
}
.empty-symbol {
  width: 62px;
  height: 62px;
  background: #e8efdf;
  color: #88a17a;
  border-radius: 19px;
  font-size: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.empty p {
  max-width: 330px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.empty h2 {
  font-size: 22px;
}
.empty .primary {
  margin-top: 6px;
}
.suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}
.suggestion {
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: #ffffff95;
  border-radius: 7px;
  font-size: 11px;
  color: #74806e;
}
.suggestion:hover {
  border-color: #b7c8b3;
  color: var(--green);
}
footer {
  display: flex;
  justify-content: space-between;
  margin: 35px 0 24px;
  font-size: 10px;
  color: #9aa294;
}
#notice {
  border: 1px solid #d2dfcb;
  border-radius: 7px;
  padding: 12px 16px;
  color: var(--green);
  background: #edf4e8;
  margin-top: 18px;
  font-size: 13px;
}
#notice.error {
  color: #934c3d;
  background: #fcf0eb;
  border-color: #eccfc3;
}
#login {
  max-width: 600px;
  padding: 80px 0;
}
#login p {
  margin: 15px 0;
  color: var(--muted);
  line-height: 1.6;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
  padding: 29px;
  max-width: 590px;
  width: calc(100% - 30px);
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #14281d45;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.dialog-heading .eyebrow {
  margin-bottom: 8px;
}
.dialog-heading h2 {
  font-size: 27px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #647368;
  margin-bottom: 17px;
}
input,
textarea,
select {
  width: 100%;
  background: #fafbf9;
  border: 1px solid #dce3d8;
  color: var(--ink);
  border-radius: 7px;
  padding: 12px;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: #a1aaa0;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #a9c49f;
  outline-offset: 1px;
  border-color: #90ae86;
}
small {
  font-size: 10px;
  color: var(--muted);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-error {
  font-size: 12px;
  color: #a24d36;
  line-height: 1.6;
}
.task-options {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.task-options summary {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 15px;
}
.suffix-input {
  position: relative;
}
.suffix-input input {
  padding-right: 35px;
}
.suffix-input span {
  position: absolute;
  right: 14px;
  top: 12px;
  color: var(--muted);
}
.detail-dialog {
  max-width: 840px;
  padding: 33px;
}
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
}
.detail-header h2 {
  font-size: 26px;
  line-height: 1.3;
  margin-top: 12px;
}
.detail-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin: 14px 0 25px;
}
.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 23px;
}
.detail-section h3 {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.instructions {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.75;
  color: #526657;
  overflow-wrap: anywhere;
  max-height: 220px;
  overflow: auto;
}
.result {
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.result h1,
.result h2,
.result h3 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 20px 0 10px;
}
.result p {
  margin: 10px 0;
  white-space: pre-wrap;
}
.result ul {
  padding-left: 23px;
}
.result pre {
  white-space: pre-wrap;
  background: #f3f6f0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.result code {
  font-size: 12px;
  background: #eef2e9;
  padding: 2px 4px;
  border-radius: 3px;
}
.detail-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.detail-actions > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.feedback {
  margin-top: 22px;
}
.reason {
  padding: 13px 16px;
  background: #f5f3eb;
  border-radius: 7px;
  color: #827452;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 16px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 27px;
}
.settings-card h2 {
  font-size: 21px;
}
.settings-card p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 23px;
}
.settings-card label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}
.settings-card output {
  font-size: 20px;
  color: var(--green);
  font-weight: 600;
}
input[type="range"] {
  accent-color: var(--green);
  padding: 0;
  border: 0;
  height: 28px;
}
.range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 26px;
}
.connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.connection:last-child {
  margin-bottom: 13px;
}
.connection small {
  font-size: 11px;
}
.below {
  margin-top: 20px;
}
.project-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.project-setting small {
  display: block;
  margin-top: 6px;
}
.explanation {
  margin: 25px 0;
  color: var(--muted);
  font-size: 11px;
  max-width: 750px;
  line-height: 1.8;
}
.explanation summary {
  cursor: pointer;
}
.explanation p {
  margin: 15px 0;
}
.history-row {
  font-size: 11px;
  color: var(--muted);
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
body.modal-open {
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  main {
    padding: 0 65px;
  }
  .hero {
    margin-top: 60px;
    margin-bottom: 55px;
  }
}
@media (max-width: 1150px) {
  .app {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  main {
    padding: 0 25px;
  }
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .capacity {
    width: 100%;
  }
  .account-mini {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .account-name {
    margin: 0;
  }
  h1 {
    font-size: 32px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .app {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px 18px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 0 0 15px;
    font-size: 20px;
  }
  .brand-symbol {
    width: 26px;
    height: 26px;
    font-size: 21px;
  }
  .sidebar nav {
    display: flex;
  }
  .nav {
    padding: 10px 12px;
    font-size: 12px;
    justify-content: center;
    gap: 9px;
  }
  .project-nav,
  .sidebar-bottom .host {
    display: none;
  }
  .sidebar-bottom {
    position: absolute;
    right: 13px;
    top: 17px;
  }
  .sidebar-bottom .nav {
    font-size: 11px;
  }
  .count {
    font-size: 10px;
  }
  .topbar {
    height: 75px;
    gap: 10px;
  }
  .topbar > span {
    display: none;
  }
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  main {
    padding: 0 18px;
  }
  .hero {
    margin: 25px 0;
    gap: 23px;
  }
  h1 {
    font-size: 29px;
  }
  .hero p {
    font-size: 12px;
  }
  .capacity {
    gap: 8px;
  }
  .account-mini {
    display: block;
    padding: 13px;
    min-width: 0;
  }
  .account-name {
    margin-bottom: 11px;
  }
  .account-values {
    gap: 20px;
  }
  .account-values strong {
    font-size: 19px;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .search {
    align-self: flex-end;
    margin-bottom: 0;
  }
  .filter {
    padding: 7px 12px;
  }
  .task-row {
    padding: 17px 13px;
    gap: 11px;
    grid-template-columns: 29px minmax(0, 1fr) auto;
  }
  .task-symbol {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .task-arrow {
    display: none;
  }
  .task-title {
    font-size: 13px;
  }
  .task-meta {
    font-size: 10px;
    gap: 6px;
  }
  .badge {
    font-size: 9px;
    padding: 4px 6px;
  }
  .empty {
    min-height: 320px;
    padding: 25px 15px;
  }
  .empty h2 {
    font-size: 20px;
  }
  .suggestions {
    gap: 6px;
  }
  .suggestion {
    padding: 7px;
    font-size: 10px;
  }
  .dialog-heading h2 {
    font-size: 24px;
  }
  dialog,
  .detail-dialog {
    padding: 23px;
  }
  .form-row {
    gap: 12px;
  }
  .settings-card {
    padding: 22px;
  }
  .detail-header h2 {
    font-size: 23px;
  }
  .detail-actions {
    flex-direction: column;
  }
  .detail-actions > div {
    justify-content: flex-end;
  }
  .topbar .primary {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.ui-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.brand-symbol,
.account-glyph,
.search [data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.account-glyph,
.search [data-icon] {
  width: 18px;
  height: 18px;
}
.account-glyph .ui-icon,
.search .ui-icon {
  width: 16px;
  height: 16px;
}
.empty-symbol .ui-icon {
  width: 28px;
  height: 28px;
}
.icon {
  padding: 0;
  line-height: 1;
}

.signin-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}
.signin-card {
  width: min(100%, 400px);
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.signin-card h1 {
  margin-top: 36px;
  font-size: 30px;
}
.signin-card p {
  color: var(--muted);
  margin: 12px 0 24px;
}
.signin-card button {
  width: 100%;
}
.machine-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.machine-bar small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.machine-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.pair-dialog {
  max-width: 600px;
  padding: 32px;
}
.pair-dialog p {
  color: var(--muted);
  margin: 16px 0;
}
.pair-dialog textarea {
  font-family: monospace;
  font-size: 12px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .machine-bar {
    align-items: start;
    flex-direction: column;
  }
  .machine-actions {
    width: 100%;
    justify-content: space-between;
  }
}
