@font-face {
  font-family: Studio;
  src: local("Noto Sans CJK KR"), local("Apple SD Gothic Neo");
}
:root {
  --ink: #142d31;
  --muted: #788686;
  --line: #e3e8e4;
  --paper: #f5f7f3;
  --white: #fff;
  --teal: #176c60;
  --mint: #e0ede5;
  --amber: #946421;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Studio, "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #5daa8d;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.35;
  margin-bottom: 10px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.muted {
  color: var(--muted);
}
.fine {
  color: var(--muted);
  font-size: 12px;
  margin-top: 16px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 12px;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  background: #142d31;
  color: #d6e1dc;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 34px 22px;
  z-index: 4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  line-height: 1.3;
  font-size: 13px;
  letter-spacing: 0.4px;
}
.brand strong {
  font-size: 18px;
  color: #fff;
}
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: 13px;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  position: relative;
}
.brand-mark span {
  color: #a7d9b8;
}
.brand-mark.small {
  width: 42px;
  height: 42px;
  border: 1px solid #66847c;
  font-size: 29px;
}
.sidebar-caption {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #809991;
  margin-top: 45px;
  margin-bottom: 14px;
}
.nav-active {
  background: #294641;
  color: #fff;
  border: 1px solid #3c5d50;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 10px;
}
.sidebar-projects {
  margin-top: 35px;
}
.sidebar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9ab1a7;
}
.icon-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  padding: 5px;
}
.project-link {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #aac0b8;
  padding: 10px 8px;
  font-size: 12px;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-link.selected {
  background: #24433f;
  color: #e8f8eb;
}
.sidebar-footer {
  margin-top: auto;
  font-size: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 30px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #a5d69b;
  border-radius: 50%;
}
.text-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  padding: 7px;
}
.sidebar-footer .text-btn {
  color: #819a92;
  width: 100%;
  text-align: left;
  padding: 10px 0;
}
.workspace {
  margin-left: 228px;
  width: calc(100% - 228px);
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  font-size: 12px;
}
.breadcrumb {
  color: var(--muted);
}
.slash {
  margin: 0 14px;
  color: #b9c1bc;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.avatar {
  width: 30px;
  height: 30px;
  background: #f0f3ec;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 10px;
  font-weight: 700;
}
main {
  padding: 36px 42px 20px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.page-heading .muted {
  margin: 0;
}
.primary,
.secondary {
  padding: 11px 18px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  white-space: nowrap;
}
.primary {
  background: var(--ink);
  color: #fff;
}
.primary:hover {
  background: #244f49;
}
.secondary {
  background: #fff;
  border-color: #dce3dc;
  color: var(--ink);
}
.secondary:hover {
  background: #edf3ee;
}
.full {
  width: 100%;
  margin-top: 24px;
}
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 600;
  background: #f0f4ef;
  color: #6a7c70;
  white-space: nowrap;
}
.teal {
  background: #dcebe1;
  color: #29654f;
}
.amber {
  background: #f9edd8;
  color: var(--amber);
}
.red {
  background: #fbe9e5;
  color: #a14133;
}
.green {
  background: #e0eee2;
  color: #36644e;
}
.empty-state {
  min-height: 430px;
  border: 1px solid #dce6db;
  background: #e8efe5;
  border-radius: 18px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h2 {
  font-size: 33px;
  line-height: 1.5;
  margin: 22px 0;
  letter-spacing: -1.5px;
}
.hero-copy p {
  color: #6c8072;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 26px;
}
.hero-flow {
  padding: 0 14px;
}
.flow-card {
  position: relative;
  background: #f9fcf7;
  border: 1px solid #cfdfd0;
  border-radius: 11px;
  padding: 18px 18px 18px 56px;
  box-shadow: 0 6px 18px #53604c08;
}
.flow-card strong {
  display: block;
  font-size: 14px;
}
.flow-card > span:last-child {
  color: var(--muted);
  font-size: 11px;
}
.flow-number {
  position: absolute;
  left: 18px;
  top: 22px;
  color: #7f9c87;
  font-size: 11px;
}
.flow-line {
  height: 20px;
  width: 1px;
  background: #b8cfbd;
  margin-left: 34px;
}
.project-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.metric-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 20px 23px;
}
.metric-card .metric-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.metric-value {
  font-size: 29px;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: -1px;
}
.metric-value small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 5px;
}
.metric-note {
  font-size: 10px;
  color: #9aa69b;
  margin-top: 6px;
}
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #dae2da;
  margin: 8px 0 24px;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
  padding: 14px 0;
}
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--teal);
  font-weight: 600;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.section-title h2 {
  margin: 0;
}
.section-title .muted {
  font-size: 11px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 20px;
}
.section-space {
  margin-top: 20px;
}
.dropzone {
  width: 100%;
  border: 1px dashed #c5d4c5;
  background: #f9fbf7;
  border-radius: 8px;
  padding: 28px;
  color: #617965;
  font-size: 12px;
  margin-top: 15px;
}
.dropzone span {
  display: block;
  font-size: 10px;
  color: #a0aea0;
  margin-top: 6px;
}
.source-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eef1eb;
}
.source-icon {
  font-size: 9px;
  display: grid;
  place-content: center;
  width: 36px;
  height: 41px;
  background: #edf3e9;
  border: 1px solid #dce6d7;
  border-radius: 5px;
  font-weight: 600;
  color: #638061;
}
.source-info {
  flex: 1;
  min-width: 0;
}
.source-info strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.source-info span {
  font-size: 10px;
  color: #8c9b8c;
  display: block;
}
.source-row .text-btn {
  font-size: 11px;
}
.unknowns {
  margin: 20px 0;
}
.unknown-row {
  padding: 10px 0;
  font-size: 11px;
  color: #7d856a;
  border-bottom: 1px solid #edf0e6;
}
.note {
  background: #f4f7f0;
  border: 1px solid #e2e9d9;
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  color: #758463;
  line-height: 1.8;
}
.placeholder {
  padding: 32px 10px;
  text-align: center;
  font-size: 12px;
  color: #9aa79d;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
th {
  font-weight: 500;
  font-size: 10px;
  color: #8c9c8e;
  background: #f7f9f4;
  padding: 11px 12px;
}
td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf1e9;
  vertical-align: top;
  line-height: 1.7;
}
td p {
  margin-bottom: 4px;
}
td .text-btn {
  padding: 0;
}
.mono {
  font:
    10px ui-monospace,
    SFMono-Regular,
    monospace;
  color: #7d8d7f;
}
.work-card {
  border: 1px solid #e2e8dd;
  border-radius: 9px;
  margin-top: 12px;
  overflow: hidden;
}
.work-card summary {
  padding: 17px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 13px;
  list-style: none;
}
.work-card summary:after {
  content: "＋";
  margin-left: auto;
  color: #83957c;
}
.work-card[open] summary:after {
  content: "−";
}
.work-content {
  border-top: 1px solid #edf1e9;
  padding: 20px;
}
.work-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.work-fields label {
  font-size: 10px;
  color: #83957b;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}
.work-fields p,
.work-fields li {
  font-size: 12px;
  line-height: 1.9;
}
.work-fields ol,
.work-fields ul {
  padding-left: 20px;
  margin: 0;
}
.work-content .button-row {
  margin-top: 15px;
}
.diagram-card {
  padding: 16px 0;
  border-bottom: 1px solid #edf1e9;
}
.diagram-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: auto;
  padding: 18px 0;
}
.diagram-node {
  border: 1px solid #cfdfd1;
  background: #f2f7ef;
  padding: 14px 18px;
  border-radius: 7px;
  white-space: nowrap;
  font-size: 12px;
}
.diagram-arrow {
  color: #91a48d;
}
.diagram-note {
  font-size: 10px;
  color: #879782;
}
.storyboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.story-card {
  background: #f7faf3;
  border: 1px solid #e4ecdc;
  border-radius: 8px;
  padding: 20px;
  min-height: 130px;
}
.story-card .eyebrow {
  font-size: 9px;
  color: #91a083;
  margin-bottom: 16px;
}
.story-card h3 {
  font-size: 13px;
}
.story-card p {
  font-size: 11px;
  color: #7f8b73;
  margin: 0;
}
.job-panel {
  margin-bottom: 25px;
  background: #f9fcf7;
}
.steps {
  display: flex;
  gap: 7px;
  align-items: center;
}
.step {
  flex: 1;
  padding: 11px 9px;
  border: 1px solid #e0e8db;
  background: #fff;
  border-radius: 6px;
  font-size: 10px;
  color: #a0ad95;
  white-space: nowrap;
  text-align: center;
}
.step.done {
  background: #e6efdf;
  color: #688051;
}
.step.current {
  background: #214a3c;
  color: #fff;
}
.step.failed {
  background: #fceae4;
  color: #b45e46;
}
.job-events {
  font-size: 11px;
  color: #778b71;
  margin-top: 16px;
  max-height: 110px;
  overflow: auto;
}
.job-events div {
  padding: 3px 0;
}
.job-events time {
  color: #9eac96;
  margin-right: 13px;
  font-size: 10px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.preview-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.preview-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #fff;
}
.preview-caption {
  padding: 12px 18px;
  color: #839179;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.qa-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px;
  margin-bottom: 20px;
  background: #e9f1e4;
  border: 1px solid #d4e4ca;
  border-radius: 10px;
}
.qa-banner h3 {
  margin: 0 0 6px;
}
.qa-banner p {
  margin: 0;
  font-size: 11px;
  color: #728263;
}
.issue-row {
  padding: 13px;
  border: 1px solid #ecd8cc;
  background: #fff8f2;
  border-radius: 7px;
  font-size: 12px;
  margin-top: 10px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0 7px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #d9e2d6;
  border-radius: 7px;
  padding: 11px 13px;
  background: #fcfdfb;
  color: var(--ink);
  font-size: 13px;
}
textarea {
  resize: vertical;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e2e8de;
  margin-top: 45px;
  padding-top: 20px;
  color: #a6b09d;
  font-size: 10px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  background: linear-gradient(135deg, #f0f4ec, #e0ebdf);
}
.login-card {
  width: min(460px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid #d4dfcf;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 20px 100px #2648310d;
}
.login-card .eyebrow {
  margin-top: 30px;
}
.login-card h1 {
  font-size: 27px;
}
.login-card .muted {
  font-size: 12px;
}
.error {
  color: #ad5342;
  font-size: 12px;
  margin-top: 15px;
}
dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 30px;
  border: 1px solid #d5e1ce;
  border-radius: 14px;
  color: var(--ink);
  box-shadow: 0 30px 140px #0a201650;
}
dialog::backdrop {
  background: #0e282463;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-heading h2 {
  margin: 0;
}
.wide-dialog {
  width: min(780px, calc(100vw - 32px));
}
.code-input {
  font:
    12px ui-monospace,
    SFMono-Regular,
    monospace;
  line-height: 1.6;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #163c30;
  color: #fff;
  border: 1px solid #537660;
  padding: 13px 22px;
  border-radius: 9px;
  font-size: 12px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 10px 30px #14342320;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1700px) {
  main {
    padding-top: 48px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .empty-state {
    padding: 35px;
    gap: 20px;
  }
  .storyboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 180px;
    padding: 25px 14px;
  }
  .workspace {
    margin-left: 180px;
    width: calc(100% - 180px);
  }
  main {
    padding: 25px 18px;
  }
  .topbar {
    padding: 0 18px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .project-actions {
    flex-wrap: wrap;
  }
  .empty-state {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .hero-flow {
    display: none;
  }
  .hero-copy h2 {
    font-size: 27px;
  }
  .tabs {
    gap: 20px;
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .work-fields {
    grid-template-columns: 1fr;
  }
  .section-title {
    flex-wrap: wrap;
  }
  .steps {
    flex-wrap: wrap;
  }
  .step {
    min-width: 70px;
  }
}
@media (max-width: 580px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar-caption,
  .nav-active,
  .sidebar-projects,
  .sidebar-footer {
    display: none;
  }
  .shell {
    display: block;
  }
  .workspace {
    width: 100%;
    margin: 0;
  }
  .brand {
    font-size: 10px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand-mark.small {
    width: 33px;
    height: 33px;
    font-size: 24px;
  }
  .topbar {
    height: 53px;
  }
  .page-heading {
    gap: 10px;
  }
  .page-heading .primary {
    padding: 9px 12px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .tabs {
    gap: 17px;
  }
  .tab {
    font-size: 11px;
  }
  .panel {
    padding: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .storyboard-grid {
    grid-template-columns: 1fr;
  }
  .page-footer span:last-child {
    display: none;
  }
  .metric-card {
    padding: 16px;
  }
  .login-card {
    padding: 30px;
  }
}
