:root {
  --font-sans:"Pretendard",-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
  font-family:var(--font-sans);
  color:var(--text);
  background:var(--background);
  font-synthesis:none;
  --muted:#9a9a9a;
  --line:#e5e5e5;
  --accent:#1c1c1c;
  --text:#171717;
  --secondary:#6b6b6b;
  --background:#fafafa;
  --surface:#ffffff;
  --surface-secondary:#f4f4f4;
  --nav-active:#ebebeb;
  --strong-line:#d4d4d4;
  --hover-strong:#404040;
  color-scheme:light;
  accent-color:var(--accent)
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,textarea,select {
  font:inherit
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
a {
  color:inherit;
  text-decoration:none
}
button {
  cursor:pointer
}
button:disabled {
  opacity:.5;
  cursor:wait
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:2px solid #6b6b6b;
  outline-offset:4px
}
button svg,a svg {
  flex-shrink:0
}
h1,h2,h3,p {
  margin:0
}
textarea {
  resize:vertical
}
input,textarea,select {
  color:inherit
}
input,select,textarea {
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:3px
}
input,select {
  padding:10px 12px;
  min-width:0
}
textarea {
  padding:14px;
  line-height:1.8
}
input::placeholder,textarea::placeholder {
  color:var(--muted)
}
input,textarea {
  width:100%
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:222px;
  background:var(--surface-secondary);
  border-right:1px solid var(--line);
  padding:43px 22px 26px;
  display:flex;
  flex-direction:column;
  z-index:20
}
.wordmark {
  display:block;
  font-weight:750;
  font-size:21px;
  letter-spacing:-1.1px;
  padding:0 9px;
  margin-bottom:55px
}
.wordmark>span {
  display:block;
  font-size:8px;
  font-weight:450;
  letter-spacing:1.8px;
  margin-top:10px;
  color:var(--secondary)
}
.nav-link {
  display:flex;
  align-items:center;
  gap:13px;
  padding:12px 14px;
  margin:3px 0;
  font-size:13px;
  color:var(--secondary);
  border-radius:4px
}
.nav-link:hover {
  background:var(--nav-active)
}
.nav-link.active {
  background:var(--nav-active);
  color:var(--text);
  font-weight:600
}
.nav-link small {
  margin-left:auto;
  font-size:10px
}
.nav-label {
  font-size:9px;
  letter-spacing:1.5px;
  color:var(--muted);
  padding:31px 14px 10px
}
.sidebar-bottom {
  margin-top:auto;
  padding:36px 10px 0
}
.local-indicator {
  display:flex;
  gap:7px;
  align-items:center;
  font-size:9px;
  color:var(--secondary)
}
.local-indicator i {
  height:5px;
  width:5px;
  background:#6b6b6b;
  border-radius:50%
}
.sidebar-bottom>small {
  display:block;
  font-size:8px;
  letter-spacing:1.2px;
  color:var(--muted);
  margin-top:12px
}
main {
  margin-left:222px;
  padding:57px clamp(28px,5vw,88px) 30px;
  max-width:1700px;
  min-height:100vh
}
main:focus {
  outline:none
}
.page-header {
  margin-bottom:38px
}
.eyebrow {
  font-size:10px;
  letter-spacing:.6px;
  font-weight:500;
  color:var(--secondary);
  line-height:1.6
}
.page-header h1 {
  font-size:32px;
  line-height:1.4;
  font-weight:600;
  letter-spacing:-.8px;
  margin:0 0 12px;
  word-break:keep-all;
  overflow-wrap:anywhere
}
.page-intro {
  color:var(--secondary);
  font-size:12px;
  line-height:1.8
}
.home-header {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-end
}
.home-header h1 {
  font-size:32px;
  letter-spacing:-.8px
}
.desk-date {
  font-size:9px;
  letter-spacing:1.4px;
  color:var(--muted);
  padding-bottom:4px;
  white-space:nowrap
}
.capture {
  border:1px solid var(--strong-line);
  background:var(--surface-secondary);
  border-radius:5px;
  padding:21px 24px 17px
}
.section-label {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:9px;
  letter-spacing:1.5px;
  font-weight:600;
  color:var(--secondary)
}
.section-label .quiet {
  font-size:10px;
  font-weight:400;
  letter-spacing:0;
  color:var(--muted)
}
.capture textarea {
  padding:18px 0 10px;
  min-height:98px;
  border:0;
  background:transparent;
  font-size:15px;
  resize:vertical;
  outline-offset:2px
}
.capture textarea::placeholder {
  color:var(--muted)
}
.capture-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  font-size:10px;
  color:var(--muted)
}
.capture-actions {
  display:flex;
  align-items:center;
  gap:17px
}
.keyboard-hint {
  font-size:9px;
  color:var(--muted)
}
.button {
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--text);
  padding:10px 16px;
  border-radius:3px;
  font-size:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  white-space:nowrap
}
.button:hover {
  background:var(--nav-active)
}
.button.primary {
  background:var(--accent);
  color:var(--surface);
  border-color:var(--accent)
}
.button.primary:hover {
  background:var(--hover-strong)
}
.button.small {
  padding:7px 14px
}
.text-button {
  border:0;
  background:transparent;
  padding:7px 4px;
  font-size:11px;
  color:var(--secondary);
  white-space:nowrap
}
.text-button:hover {
  text-decoration:underline
}
.danger {
  color:var(--text)
}
.section {
  margin-top:39px
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:20px
}
.section-heading h2 {
  font-size:18px;
  font-weight:600;
  letter-spacing:-.3px
}
.section-heading p {
  font-size:10px;
  color:var(--muted);
  margin-top:7px
}
.subtle-link {
  display:inline-flex;
  gap:9px;
  align-items:center;
  color:var(--muted);
  font-size:10px
}
.subtle-link svg {
  width:13px
}
.continue-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
.project-card {
  display:flex;
  flex-direction:column;
  min-height:240px;
  border:1px solid var(--line);
  border-radius:3px;
  padding:24px;
  background:var(--surface);
  transition:background .15s,border-color .15s
}
.project-card:hover {
  background:var(--surface-secondary);
  border-color:var(--strong-line)
}
.project-card-top {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center
}
.project-card-top .eyebrow {
  font-size:8px;
  letter-spacing:1.1px
}
.project-card-top svg {
  color:var(--muted);
  width:15px
}
.project-card h3 {
  font-weight:600;
  font-size:23px;
  line-height:1.5;
  margin:20px 0 10px;
  letter-spacing:-.5px;
  overflow-wrap:anywhere
}
.status {
  font-size:8px;
  letter-spacing:1px;
  color:var(--secondary);
  display:inline-flex;
  align-items:center;
  gap:6px
}
.status i {
  width:4px;
  height:4px;
  background:var(--muted);
  border-radius:50%
}
.status-revision {
  color:#404040
}
.status-revision i {
  background:#404040
}
.status-development {
  color:#6b6b6b
}
.status-development i {
  background:#6b6b6b
}
.next-action {
  margin-top:22px;
  margin-bottom:22px;
  font-size:11px;
  line-height:1.7;
  overflow-wrap:anywhere
}
.next-action.unset {
  color:var(--muted)
}
.project-card-bottom {
  margin-top:auto;
  border-top:1px solid var(--line);
  padding-top:14px;
  display:flex;
  gap:10px;
  justify-content:space-between;
  font-size:9px;
  color:var(--muted)
}
.home-bottom {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr);
  gap:42px
}
.home-bottom .section-heading {
  min-height:29px
}
.fragment {
  display:flex;
  gap:15px;
  padding:23px 0;
  border-top:1px solid var(--line)
}
.fragment-mark {
  font-size:28px;
  color:var(--muted);
  width:18px;
  flex-shrink:0;
  line-height:1.3
}
.fragment-body {
  min-width:0;
  flex:1
}
.fragment-content,.excerpt {
  font-size:13px;
  line-height:1.9;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.excerpt {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.fragment-meta {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:11px;
  font-size:9px;
  color:var(--muted)
}
.fragment-meta a:hover {
  text-decoration:underline
}
.fragment-controls {
  display:flex;
  gap:15px;
  align-items:center;
  margin-top:16px
}
.fragment-controls select {
  font-size:11px;
  max-width:290px;
  width:100%;
  background:transparent
}
.external-link {
  margin-left:auto
}
.overview-group {
  padding:18px 0;
  border-top:1px solid var(--line)
}
.overview-title {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  margin-bottom:13px
}
.overview-title>span {
  margin-left:auto;
  font-size:10px;
  color:var(--muted)
}
.overview-item {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  font-size:11px;
  margin:12px 0;
  color:var(--secondary)
}
.overview-item:hover {
  color:var(--text)
}
.overview-item small {
  font-size:7px;
  letter-spacing:.6px;
  color:var(--muted)
}
.empty-state {
  border-top:1px solid var(--line);
  padding:34px 20px 40px;
  text-align:center
}
.empty-state p {
  font-size:16px;
  font-weight:500;
  color:var(--secondary);
  margin-bottom:12px
}
.empty-state span {
  font-size:11px;
  color:var(--muted);
  line-height:1.8
}
.projects-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px
}
.projects-grid .project-card {
  min-height:270px
}
.projects-grid .project-card h3 {
  font-size:26px
}
.heading-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px
}
.list-caption {
  font-size:10px;
  letter-spacing:.5px;
  color:var(--muted);
  padding:0 0 17px
}
.tabs {
  display:flex;
  gap:30px;
  border-bottom:1px solid var(--line);
  margin:32px 0 28px;
  overflow-x:auto
}
.tabs a {
  padding:15px 1px;
  color:var(--secondary);
  font-size:11px;
  letter-spacing:.6px;
  white-space:nowrap;
  border-bottom:2px solid transparent
}
.tabs a.active {
  color:var(--text);
  border-color:var(--accent)
}
.tabs a:hover {
  color:var(--text)
}
.filters {
  margin-bottom:19px
}
.soon {
  font-size:7px;
  letter-spacing:.4px;
  margin-left:5px;
  color:var(--muted)
}
.breadcrumb {
  font-size:11px;
  color:var(--secondary);
  display:inline-block;
  margin-bottom:27px
}
.project-header {
  margin-bottom:28px
}
.project-header h1 {
  font-size:36px;
  margin:14px 0 22px
}
.project-actions {
  display:flex;
  gap:17px;
  align-self:flex-start
}
.project-meta {
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
  font-size:10px;
  color:var(--muted)
}
.status-select {
  font-size:10px;
  letter-spacing:.7px;
  padding:8px;
  background:var(--surface-secondary);
  border-color:var(--line);
  color:var(--secondary)
}
.project-description {
  color:var(--secondary);
  font-size:13px;
  margin-top:20px;
  white-space:pre-wrap;
  line-height:1.8
}
.next-action-box {
  background:var(--surface-secondary);
  border-left:2px solid var(--strong-line);
  padding:15px 18px;
  display:flex;
  align-items:center;
  gap:20px
}
.next-action-box>label {
  white-space:nowrap;
  font-size:9px
}
.next-action-box input {
  padding:5px 0;
  font-size:12px;
  border:0;
  background:transparent
}
.next-save-state {
  font-size:9px;
  color:var(--secondary);
  white-space:nowrap
}
.editor-surface {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:3px
}
.editor-toolbar,.editor-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:15px 24px
}
.editor-toolbar {
  border-bottom:1px solid var(--line)
}
.editor-tools {
  display:flex;
  align-items:center;
  gap:18px
}
.save-state {
  font-size:10px;
  color:var(--secondary)
}
.save-state.failed {
  color:var(--text)
}
.document-editor {
  display:block;
  min-height:420px;
  background:transparent;
  border:0;
  padding:35px clamp(25px,5vw,70px);
  resize:vertical;
  font-size:15px;
  line-height:2.2
}
.document-editor:focus {
  outline:2px solid var(--strong-line);
  outline-offset:-2px;
}
.draft-editor {
  font-family:var(--font-sans);
  font-size:17px;
  line-height:2.3
}
.editor-footer {
  border-top:1px solid var(--line);
  font-size:9px;
  color:var(--muted)
}
.reference {
  padding:24px 0;
  border-top:1px solid var(--line)
}
.reference>a {
  font-size:13px;
  color:var(--secondary);
  overflow-wrap:anywhere
}
.reference>p {
  margin-top:10px;
  color:var(--secondary)
}
.reference-actions {
  display:flex;
  gap:16px;
  margin-top:8px
}
.archive-notice {
  font-size:11px;
  color:var(--secondary);
  background:var(--surface-secondary);
  padding:14px 18px;
  margin-bottom:25px
}
.modal {
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--background);
  color:inherit;
  padding:28px;
  width:min(530px,calc(100vw - 32px));
  max-height:85vh;
  overflow:auto;
}
.modal::backdrop {
  background:#1c1c1c55
}
.modal-head {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-bottom:25px
}
.modal-head h2 {
  font-weight:600;
  font-size:22px
}
.stack {
  display:flex;
  flex-direction:column;
  gap:19px
}
.field {
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:11px;
  color:var(--secondary)
}
.field input,.field textarea,.field select {
  font-size:13px
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.connect-item {
  border-top:1px solid var(--line);
  padding:18px 0;
  display:flex;
  align-items:center;
  gap:20px
}
.connect-item>div {
  flex:1;
  min-width:0
}
.connect-item small {
  font-size:10px;
  color:var(--secondary)
}
.connect-item .excerpt {
  margin-bottom:7px
}
.muted {
  font-size:11px;
  color:var(--secondary)
}
#toast {
  position:fixed;
  bottom:28px;
  left:calc(50% + 111px);
  transform:translate(-50%,20px);
  opacity:0;
  pointer-events:none;
  background:var(--accent);
  color:var(--surface);
  padding:13px 22px;
  font-size:12px;
  border-radius:4px;
  z-index:100;
  max-width:calc(100vw - 32px);
  transition:opacity .15s,transform .15s
}
#toast.visible {
  opacity:1;
  transform:translate(-50%,0)
}
#toast.error {
  background:var(--hover-strong)
}
.mobile-bar {
  display:none
}
.skip-link {
  position:fixed;
  top:-60px;
  left:20px;
  z-index:100;
  padding:12px;
  background:var(--surface)
}
.skip-link:focus {
  top:10px
}
.loading,.startup-error {
  padding:60px;
  line-height:2
}
.startup-error p {
  margin:15px 0
}
.startup-error h1 {
  font-weight:600
}
@media(min-width:1600px) {
  main {
    margin-right:auto
  }
  .project-card.compact {
    min-height:260px
  }
}
@media(max-width:1150px) {
  .sidebar {
    width:195px;
    padding-left:15px;
    padding-right:15px
  }
  main {
    margin-left:195px;
    padding:42px 32px
  }
  .keyboard-hint {
    display:none
  }
  .project-card {
    padding:20px
  }
  .project-card h3 {
    font-size:23px
  }
  .home-bottom {
    gap:26px
  }
  .desk-date {
    display:none
  }
  .continue-grid {
    gap:12px
  }
  .project-card-top .eyebrow {
    font-size:7px
  }
  #toast {
    left:calc(50% + 97px)
  }
}
@media(max-width:850px) {
  .continue-grid {
    grid-template-columns:1fr
  }
  .project-card.compact {
    min-height:170px;
    display:grid;
    grid-template-columns:1fr auto;
    gap:0 25px
  }
  .compact .project-card-top {
    grid-column:1/-1
  }
  .compact h3 {
    margin:12px 0
  }
  .compact .status {
    justify-self:end
  }
  .compact .next-action {
    margin:0 0 15px;
    grid-column:1/-1
  }
  .compact .project-card-bottom {
    grid-column:1/-1
  }
  .home-bottom {
    grid-template-columns:1fr
  }
  .home-bottom .section {
    margin-top:30px
  }
  .project-header h1 {
    font-size:32px
  }
  .project-actions {
    gap:8px
  }
  .next-action-box {
    flex-wrap:wrap;
    gap:10px
  }
  .next-action-box input {
    flex:1;
    min-width:180px
  }
  .project-meta {
    gap:15px
  }
  .projects-grid {
    gap:14px
  }
  .projects-grid .project-card h3 {
    font-size:24px
  }
}
@media(max-width:640px) {
  .mobile-bar {
    display:flex;
    position:sticky;
    top:0;
    z-index:30;
    background:#f4f4f4;
    border-bottom:1px solid var(--line);
    height:60px;
    align-items:center;
    justify-content:space-between;
    padding:0 22px
  }
  .mobile-bar>a {
    font-size:17px;
    font-weight:750;
    letter-spacing:-.8px
  }
  .menu-button {
    background:transparent;
    border:0;
    color:var(--secondary);
    display:grid;
    place-items:center;
    width:40px;
    height:40px
  }
  .sidebar {
    visibility:hidden;
    width:240px;
    top:60px;
    transform:translateX(-100%);
    transition:transform .15s;
  }
  .sidebar.open {
    visibility:visible;
    transform:translateX(0)
  }
  .sidebar .wordmark {
    display:none
  }
  main {
    margin-left:0;
    padding:30px 21px
  }
  .page-header {
    margin-bottom:28px
  }
  .page-header h1,.home-header h1 {
    font-size:28px
  }
  .page-intro {
    font-size:11px
  }
  .eyebrow {
    font-size:10px;
    letter-spacing:.6px
  }
  .capture {
    padding:18px
  }
  .section-label .quiet {
    display:none
  }
  .capture textarea {
    font-size:16px;
    min-height:115px
  }
  .capture-footer>span {
    font-size:9px;
    line-height:1.6;
    max-width:170px
  }
  .button {
    min-height:40px
  }
  .section {
    margin-top:32px
  }
  .section-heading h2 {
    font-size:18px
  }
  .home-bottom {
    gap:0
  }
  .projects-grid {
    grid-template-columns:1fr
  }
  .projects-grid .project-card {
    min-height:220px
  }
  .heading-row {
    align-items:flex-start;
    gap:12px
  }
  .heading-row>.button {
    font-size:10px;
    margin-top:8px
  }
  .project-header .heading-row {
    display:block
  }
  .project-actions {
    margin-bottom:20px
  }
  .project-header h1 {
    font-size:30px
  }
  .project-meta {
    font-size:9px;
    gap:13px
  }
  .next-action-box {
    padding:13px
  }
  .next-action-box input {
    font-size:16px;
    min-width:100%;
    order:3
  }
  .tabs {
    gap:24px
  }
  .tabs a {
    font-size:10px
  }
  .document-editor {
    padding:25px 20px;
    min-height:400px;
    font-size:16px
  }
  .editor-toolbar,.editor-footer {
    padding:13px 16px
  }
  .editor-tools {
    gap:9px
  }
  .fragment-controls {
    gap:10px
  }
  .fragment-controls select {
    font-size:12px
  }
  .fragment {
    gap:9px
  }
  .fragment-content,.excerpt {
    font-size:13px
  }
  .text-button {
    min-height:40px
  }
  .field input,.field textarea,.field select {
    font-size:16px
  }
  #toast {
    left:50%;
    bottom:18px;
    min-width:240px;
    text-align:center
  }
  .sidebar-bottom {
    padding-top:15px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important
  }
}
.confirmation-actions {
  display:flex;
  justify-content:flex-end;
  gap:12px
}

::selection {
  background:var(--strong-line);
  color:var(--text)
}
