* {
  box-sizing: border-box;
}
:root {
  font-family: "Malgun Gothic", "Segoe UI", sans-serif;
  color: #26343a;
  background: #f5f6f7;
  font-size: 14px;
  --accent: #24654f;
  --line: #e3e7e9;
  --left: 174px;
  --right: 302px;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  color: inherit;
  padding: 9px 14px;
  font-weight: 600;
  line-height: 1.4;
}
button:hover {
  background: #f2f5f4;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
button.quiet {
  background: transparent;
  border-color: transparent;
}
button.danger {
  color: #a33932;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.muted,
small {
  color: #748188;
}
.appbar {
  height: 62px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 42px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #26343a;
  font-weight: 700;
  font-size: 16px;
}
.brandmark {
  font: 800 26px Georgia;
  color: var(--accent);
}
.brand-sub {
  font-size: 12px;
  font-weight: 400;
  margin-left: 4px;
}
.appbar nav {
  display: flex;
  gap: 28px;
  height: 100%;
  align-items: center;
}
.appbar nav[hidden] {
  display: none;
}
.appbar nav a {
  color: #6b767d;
}
.appbar nav a.active {
  color: #26343a;
  font-weight: 700;
}
.local-badge {
  margin-left: auto;
  color: #899398;
  font-size: 11px;
}
.account {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.account:empty {
  display: none;
}
.account-name {
  color: #4b5b62;
  font-weight: 600;
  margin-right: 4px;
}
.account button {
  padding: 6px 10px;
  font-size: 12px;
}
.login {
  max-width: 380px;
  margin: 80px auto;
  padding: 0 16px;
}
.login-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
}
.login-card h1 {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.login-card p {
  color: #7b858b;
  margin: 0 0 24px;
}
.login-card button {
  width: 100%;
  margin-top: 8px;
}
.home {
  max-width: 1140px;
  margin: 0 auto;
  padding: 54px 36px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.heading h1 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
.heading p {
  margin: 0;
  color: #7b858b;
}
.project-list {
  background: white;
  border-radius: 12px;
  overflow: hidden;
}
.project-row {
  display: grid;
  grid-template-columns: 1fr 140px 110px 70px;
  align-items: center;
  gap: 24px;
  padding: 24px;
  color: inherit;
  border-bottom: 1px solid #edf0f1;
}
.project-row:last-child {
  border-bottom: 0;
}
.project-row:hover {
  background: #fafcfa;
  text-decoration: none;
}
.project-row h3 {
  font-size: 16px;
  margin: 0 0 7px;
}
.project-row small {
  font-size: 12px;
}
.pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 5px;
  background: #eaf3ef;
  color: #39735c;
  font-size: 11px;
}
.pill.pending {
  background: #f4f1e7;
  color: #8b7743;
}
.pill.failed {
  background: #faeae8;
  color: #a33932;
}
.empty {
  text-align: center;
  color: #8b9398;
  padding: 80px 24px;
}
.empty p {
  margin: 12px auto 24px;
  max-width: 400px;
  line-height: 1.8;
}
.empty strong {
  display: block;
  color: #4b5b62;
  font-size: 20px;
}
.toolbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: white;
}
.toolbar h1 {
  font-size: 17px;
  margin: 0 0 4px;
  font-weight: 650;
}
.toolbar .actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: center;
}
.back {
  font-size: 24px;
  color: #64747c;
  margin-right: 9px;
}
.steps {
  display: flex;
  gap: 4px;
  padding: 0 24px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.steps button {
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 12px 16px;
  color: #7c858b;
}
.steps button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.workspace {
  height: calc(100vh - 180px);
  min-height: 580px;
  display: grid;
  grid-template-columns: var(--left) 5px minmax(340px, 1fr) 5px var(--right);
}
.pages,
.inspector {
  background: white;
  overflow: auto;
  padding: 20px 16px;
}
.pages {
  padding: 20px 13px;
}
.resizer {
  cursor: col-resize;
  background: transparent;
  z-index: 4;
}
.resizer:hover,
.resizer:focus {
  background: #b7d0c3;
}
.thumbnail {
  padding: 0;
  border: 2px solid transparent;
  display: block;
  background: none;
  width: 100%;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: left;
  font-weight: 400;
}
.thumbnail.active {
  border-color: var(--accent);
}
.thumbnail .mini {
  aspect-ratio: 16/9;
  background: #fff;
  border: 1px solid #e5e9eb;
  position: relative;
  overflow: hidden;
}
.page-preview {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: white;
}
.page-preview-content {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  pointer-events: none;
}
.thumbnail .caption {
  padding: 7px 5px;
  font-size: 11px;
  color: #718089;
}
.canvas-area {
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 30px;
  background: #edf0f2;
}
.canvas-tools {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  font-size: 12px;
  color: #77828a;
}
.canvas-tools button {
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 400;
}
.sheet-wrap {
  width: 100%;
  max-width: 1100px;
  flex-shrink: 0;
  margin: auto 0;
  position: relative;
}
.sheet {
  width: 960px;
  height: 540px;
  position: relative;
  background: white;
  transform-origin: top left;
  box-shadow: 0 6px 30px #202c3510;
  user-select: none;
}
.element,
.layout-object {
  position: absolute;
  white-space: pre-wrap;
  line-height: 1.4;
  padding: 0;
  cursor: default;
  outline: 1px solid transparent;
  overflow: hidden;
}
.element:hover {
  outline: 1px solid #9bbba8;
}
.element.selected {
  outline: 2px solid #39725b;
  background: #39725b08;
}
.element[contenteditable="true"] {
  user-select: text;
  background: white;
  outline: 2px solid #39725b;
}
.element.title,
.element.message,
.layout-object.title,
.layout-object.message {
  font-weight: 700;
}
.element.footnote,
.layout-object.footnote {
  color: #78838b;
}
.element.placeholder,
.layout-object.placeholder {
  color: #b5bcc1;
}
.sheet-footer {
  position: absolute;
  left: 60px;
  right: 60px;
  bottom: 20px;
  font-size: 10px;
  color: #728089;
}
.marquee {
  position: absolute;
  pointer-events: none;
  border: 1px solid #39725b;
  background: #39725b14;
  z-index: 10;
}
.element.image img,
.layout-object.image img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.shape-geometry {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shape-text {
  position: relative;
  pointer-events: none;
}
.element.chart > svg,
.layout-object.chart > svg {
  fill: currentColor;
}
.element-type {
  color: #748188;
  font-size: 12px;
  margin: 8px 0 16px;
}
.element-type button {
  padding: 3px;
}
.image-detail p {
  margin: 8px 0;
}
.image-detail a {
  display: block;
  margin-top: 12px;
}
.candidate-pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.candidate-pages figure {
  margin: 0;
  min-width: 0;
}
.candidate-page {
  box-shadow: 0 2px 12px #202c3514;
}
.candidate-pages figcaption {
  color: #748188;
  font-size: 12px;
  margin-top: 10px;
}
.candidate-changes summary {
  cursor: pointer;
  margin-bottom: 16px;
}
.native-page {
  width: 100%;
  display: block;
  background: white;
  box-shadow: 0 6px 30px #202c3510;
}
.below-sheet {
  font-size: 11px;
  color: #929ba0;
  margin-top: 20px;
  text-align: center;
}
.inspector h2 {
  font-size: 14px;
  margin: 0 0 16px;
}
.inspector h3 {
  font-size: 12px;
  margin: 24px 0 10px;
  color: #77838a;
  font-weight: 500;
}
.inspector textarea {
  width: 100%;
  min-height: 125px;
  font-size: 13px;
  line-height: 1.65;
  resize: vertical;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.field label,
.field-label {
  font-size: 12px;
  color: #64757d;
}
.field input,
.field textarea,
.field select,
input.search,
textarea,
select {
  border: 1px solid #dfe5e8;
  background: white;
  border-radius: 6px;
  padding: 10px;
  color: #26343a;
  min-width: 0;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.inline {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline > * {
  min-width: 0;
}
.inline .field {
  flex: 1;
}
.source-card {
  border: 1px solid #e2e7e8;
  padding: 11px;
  border-radius: 7px;
  margin-bottom: 8px;
  background: white;
}
.source-card.selected {
  border-color: #8bb39e;
  background: #f3f8f5;
}
.source-card label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.6;
}
.source-card input {
  margin-top: 4px;
  flex: none;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}
.source-card b {
  font-weight: 600;
}
.source-card small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.source-card a {
  font-size: 11px;
  display: inline-block;
  margin-top: 7px;
}
.source-card .source-links {
  margin-left: 24px;
  display: flex;
  gap: 12px;
}
.full {
  width: 100%;
}
.inspector .primary {
  margin-top: 12px;
}
.save-state {
  font-size: 11px;
  color: #7b898f;
}
.save-state.dirty {
  color: #a77b34;
}
.notice {
  padding: 12px 15px;
  background: #f5f1e6;
  color: #8b703b;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.notice.error {
  background: #faeeeb;
  color: #a74837;
}
.notice.success {
  background: #edf6f0;
  color: #39735c;
}
.small {
  font-size: 11px;
}
.job {
  padding: 15px 0;
  border-bottom: 1px solid #e9edef;
  font-size: 12px;
}
.job strong {
  display: block;
  margin-bottom: 6px;
}
.job p {
  margin: 7px 0;
  line-height: 1.6;
  color: #758189;
}
.job .inline button {
  padding: 5px 8px;
  font-size: 11px;
}
.spinner {
  width: 11px;
  height: 11px;
  border: 2px solid #a7b6ac;
  border-top-color: #39725b;
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-right: 6px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
.source-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.source-list .source-card {
  padding: 22px;
  margin: 0;
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.filters input {
  flex: 1;
}
.library-actions {
  display: flex;
  gap: 8px;
}
dialog {
  width: min(690px, calc(100vw - 32px));
  border: 0;
  border-radius: 13px;
  padding: 30px;
  box-shadow: 0 25px 80px #172b3d30;
  max-height: 90vh;
}
dialog::backdrop {
  background: #19283060;
}
dialog.wide {
  width: min(1040px, calc(100vw - 32px));
}
dialog h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 0 0 24px;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 25px;
}
.modal-actions .primary {
  min-width: 90px;
}
.check-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.7;
}
.check-row input {
  margin-top: 5px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #283b33;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 4px 20px #0002;
  font-size: 13px;
  z-index: 50;
  display: none;
  max-width: 80%;
  white-space: pre-wrap;
}
.diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.diff article {
  background: #f6f7f8;
  padding: 14px;
  border-radius: 7px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.7;
}
.diff article.changed {
  background: #edf5f0;
}
.diff h4 {
  font-size: 11px;
  font-weight: 500;
  color: #7d8a91;
  margin: 0 0 8px;
}
.revision-note {
  font-size: 12px;
  background: #fbf3dd;
  padding: 10px 24px;
}
.table-native {
  border-collapse: collapse;
  width: 100%;
  height: 100%;
  font-size: inherit;
}
.table-native td {
  border: 1px solid #dde3e6;
  padding: 5px;
}
.table-native tr:first-child {
  background: #edf1f2;
  font-weight: 700;
}
.chart-native {
  display: flex;
  align-items: flex-end;
  height: 85%;
  gap: 18px;
  padding: 12px;
  border-bottom: 1px solid #bbb;
}
.chart-group {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  position: relative;
}
.bar {
  background: #426e7c;
  flex: 1;
  position: relative;
  min-height: 1px;
}
.bar span {
  font-size: 11px;
  position: absolute;
  top: -20px;
  width: 100%;
  text-align: center;
}
.chart-labels {
  display: flex;
  justify-content: space-around;
  font-size: 11px;
  margin-top: 7px;
}
.page-actions {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}
.page-actions button {
  padding: 4px 8px;
  font-size: 12px;
}
.design-empty {
  max-width: 550px;
  margin: auto;
  text-align: center;
  padding: 60px 25px;
  line-height: 1.8;
}
.design-empty h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
}
.design-empty p {
  color: #7a8790;
}
.history-page {
  max-width: 780px;
  margin: auto;
  padding: 40px 25px;
}
@media (max-width: 1050px) {
  :root {
    --left: 115px;
    --right: 250px;
  }
  .workspace {
    grid-template-columns: var(--left) 5px minmax(310px, 1fr) 5px var(--right);
  }
  .canvas-area {
    padding: 20px 16px;
  }
  .toolbar {
    padding: 12px 16px;
  }
  .toolbar h1 {
    font-size: 14px;
  }
}
@media (max-width: 750px) {
  .appbar {
    padding: 0 16px;
    gap: 24px;
  }
  .local-badge,
  .brand-sub {
    display: none;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar .actions {
    margin-left: 0;
  }
  .workspace {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    min-height: 0;
  }
  .pages {
    display: flex;
    width: 100%;
    gap: 12px;
    padding: 12px;
    order: 0;
  }
  .pages .thumbnail {
    width: 110px;
    flex: none;
    margin: 0;
  }
  .pages .page-actions {
    display: none;
  }
  .resizer {
    display: none;
  }
  .canvas-area {
    width: 100%;
    order: 1;
    min-height: 380px;
  }
  .inspector {
    order: 2;
    width: 100%;
    min-height: 350px;
  }
  .sheet-wrap {
    margin: 20px 0;
  }
  .project-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .project-row > small {
    display: none;
  }
  .home {
    padding: 30px 20px;
  }
  .toolbar .actions button {
    font-size: 11px;
    padding: 7px;
  }
  .diff {
    grid-template-columns: 1fr;
  }
}
.design-comparison {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: auto;
}
.design-comparison.paired {
  grid-template-columns: 1fr 1fr;
}
.compare-label {
  font-size: 11px;
  color: #8b959a;
  margin-bottom: 10px;
}
.design-canvas {
  position: relative;
}
.design-overlay {
  position: absolute;
  inset: 0;
}
.design-layer {
  position: absolute;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0;
  min-width: 0;
}
.design-layer:hover {
  background: transparent;
  border-color: #acc7b9;
}
.design-layer.selected {
  background: #39725b14;
  border: 2px solid #39725b;
}
.round-panel {
  background: white;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 22px;
}
.round-panel .heading {
  margin-bottom: 12px;
}
.round-panel .heading h2 {
  font-size: 17px;
  margin: 0;
}
.round-history {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 12px;
  color: #748188;
}
.round-current > .inline {
  margin-bottom: 4px;
}
.round-current p {
  margin: 4px 0;
}
.round-counts {
  font-size: 13px;
}
.request-card {
  border: 1px solid #e2e7e8;
  border-radius: 8px;
  padding: 14px;
  margin-top: 12px;
  font-size: 12px;
}
.request-fields {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 12px;
  margin: 10px 0;
}
.request-fields dt {
  color: #64757d;
}
.request-fields dd {
  margin: 0;
  line-height: 1.6;
}
.request-answers {
  margin: 8px 0;
  padding-left: 18px;
  line-height: 1.6;
}
.request-actions {
  flex-wrap: wrap;
  margin-top: 10px;
}
.request-actions button {
  padding: 5px 9px;
  font-size: 11px;
}
.round-check {
  margin: 6px 0;
  line-height: 1.6;
}
.round-check strong {
  margin-right: 8px;
}
.round-strip {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #eaf3ef;
  color: var(--accent);
  padding: 10px 24px;
  font-size: 12px;
  text-align: left;
}
.round-strip:hover {
  background: #dfeee7;
}
.round-note {
  margin: 8px 0;
  line-height: 1.6;
  word-break: keep-all;
}
.request-actions button.chosen {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.reason-list {
  margin: 6px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}
.request-ask {
  margin: -8px 0 18px;
  line-height: 1.7;
  color: #4b5b62;
}
