:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: #29382f;
  background: #f7f8f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
input, select { color: #26372e; }
button:focus-visible, input:focus-visible, select:focus-visible, .catalog-item:focus-visible {
  outline: 3px solid #bdddc7; outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.topbar { background: #fff; border-bottom: 1px solid #e8ece5; }
.topbar-content {
  height: 78px; max-width: 1280px; margin: 0 auto; padding: 0 36px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand-icon {
  height: 40px; width: 40px; border-radius: 14px; background: #486c58;
  color: #fff; font-weight: 750; font-size: 27px; line-height: 35px;
  letter-spacing: -2px; text-align: center; font-family: Georgia, serif;
}
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { letter-spacing: -.05em; font-size: 19px; }
.brand-copy small {
  font-size: 10px; font-weight: 750; color: #809186; letter-spacing: .18em;
}
.session { display: flex; align-items: center; gap: 18px; }
.identity { color: #88978b; font-size: 13px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.quiet-button, .text-button { border: 0; background: transparent; color: #506d59; font-size: 13px; font-weight: 700; padding: 8px 0; }
.quiet-button:hover, .text-button:hover { text-decoration: underline; }
.container { max-width: 1280px; padding: 44px 36px 60px; margin: 0 auto; }
.intro {
  display: flex; align-items: end; justify-content: space-between;
  gap: 20px; margin-bottom: 30px;
}
.eyebrow {
  color: #7d9d84; font-size: 11px; font-weight: 800;
  letter-spacing: .17em; text-transform: uppercase; margin-bottom: 12px;
}
h1, h2, h3, p { margin-top: 0; }
.intro h1 { font-size: clamp(33px, 4vw, 46px); margin-bottom: 7px; letter-spacing: -.065em; font-weight: 780; }
.title-dot { color: #8bb593; }
.intro p, .panel-head p { color: #8b968e; font-size: 14px; line-height: 1.6; margin: 0; }
.intro-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 3px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px;
  background: #eef5ee; color: #527b5d; border-radius: 99px; font-size: 12px; font-weight: 750;
}
.status-dot { width: 7px; height: 7px; background: #729e7d; border-radius: 50%; }
.primary-button, .secondary-button {
  display: inline-flex; justify-content: center; align-items: center;
  gap: 8px; border-radius: 12px; padding: 12px 17px;
  font-size: 13px; font-weight: 750; transition: .15s ease;
}
.primary-button { color: #fff; background: #50775d; border: 1px solid #50775d; }
.primary-button:not(:disabled):hover { background: #3f634d; }
.secondary-button { color: #486851; background: #fff; border: 1px solid #dee7dc; }
.secondary-button:not(:disabled):hover { background: #f3f8f3; border-color: #b9d3bd; }
.full-width { width: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  min-height: 116px; background: #fff; border: 1px solid #e9eee6; border-radius: 17px;
  padding: 21px 23px; display: flex; flex-direction: column; justify-content: space-between;
}
.stat span { color: #89968c; font-size: 12px; font-weight: 650; }
.stat strong { font-size: 29px; font-weight: 800; letter-spacing: -.065em; }
.stat.highlight { background: #eef4ed; border-color: #dfe9dd; }
.stat.highlight strong { color: #427654; }
.workspace { display: grid; grid-template-columns: minmax(350px, 1.08fr) minmax(350px, .92fr); gap: 20px; align-items: start; }
.panel {
  background: #fff; border: 1px solid #e7ece5; border-radius: 18px;
  box-shadow: 0 7px 30px rgba(35, 71, 44, .028);
  overflow: hidden;
}
.panel-head { padding: 28px 28px 22px; display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.panel-head h2 { font-size: 19px; font-weight: 760; letter-spacing: -.04em; margin: 0 0 5px; }
.count-chip { color: #7d8d80; background: #f3f5f0; border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.filter-area { padding: 0 28px 20px; }
.search-wrap { display: flex; gap: 7px; align-items: center; background: #f7f8f5; border: 1px solid #e9ede7; border-radius: 12px; height: 46px; padding: 0 14px; }
.search-wrap span { color: #96a296; font-size: 23px; line-height: 1; }
.search-wrap input { border: none; background: transparent; width: 100%; outline: none; font-size: 13px; }
.search-wrap:focus-within { outline: 2px solid #bfd5c3; }
.type-tabs { background: #f6f8f4; border-radius: 12px; padding: 4px; display: flex; gap: 4px; margin-top: 13px; }
.type-tabs button { border: none; border-radius: 9px; padding: 9px 10px; flex: 1; color: #89968c; font-size: 13px; font-weight: 650; background: transparent; }
.type-tabs button.active { background: #fff; color: #41644c; box-shadow: 0 2px 8px rgba(43, 68, 48, .055); }
.tag-filter-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; }
.tag-filter-row label { color: #8d988e; font-size: 12px; font-weight: 700; }
.tag-filter-row select { border: 1px solid #e4e9e1; background: #fff; color: #637365; border-radius: 9px; padding: 9px 26px 9px 12px; font-size: 12px; max-width: 65%; }
.catalog-list { max-height: 720px; overflow: auto; border-top: 1px solid #f0f2ee; }
.catalog-item {
  width: 100%; display: flex; align-items: center; gap: 13px; padding: 18px 27px;
  border: 0; border-bottom: 1px solid #f0f2ee; text-align: left; background: #fff; color: inherit;
}
.catalog-item:last-child { border-bottom: none; }
.catalog-item:hover { background: #fafcf8; }
.catalog-item.selected { background: #f1f7ef; box-shadow: inset 3px 0 0 #689779; }
.behavior-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #f0f4ef; color: #527a60; font-size: 20px; }
.catalog-item.let-go .behavior-icon { background: #f8f2ee; color: #b78c73; }
.behavior-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.behavior-main strong { font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.behavior-meta { font-size: 11px; color: #97a098; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.dot-separator { color: #ccd5ca; }
.small-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mini-tag { color: #50775d; background: #edf4ea; border-radius: 6px; font-size: 10px; font-weight: 700; padding: 3px 6px; }
.mini-tag.untagged { color: #a19e94; background: #f5f4f1; }
.chevron { font-size: 22px; color: #b8c6b9; line-height: 1; }
.empty-list { color: #9aa69b; text-align: center; padding: 65px 20px; font-size: 13px; }
.edit-panel { padding-bottom: 18px; }
.editor-head { padding-bottom: 12px; }
.editor-head .eyebrow { margin-bottom: 10px; }
.editor-head h2 { line-height: 1.35; font-size: 20px; }
.type-chip { background: #eff5ec; color: #5a795c; font-weight: 750; border-radius: 8px; padding: 6px 9px; font-size: 11px; white-space: nowrap; }
.type-chip.let-go { background: #fcf1eb; color: #af846c; }
.metadata { margin: 0 28px 27px; background: #f8faf6; border-radius: 12px; padding: 15px 17px; display: flex; flex-direction: column; gap: 12px; }
.metadata div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metadata span { color: #8e9b8d; font-size: 12px; }
.metadata code, .metadata strong { color: #6b7e70; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; text-align: right; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.section-heading h3 { font-size: 15px; letter-spacing: -.03em; margin: 0 0 6px; }
.section-heading p { font-size: 12px; color: #98a39a; line-height: 1.6; margin: 0; }
#editorContent > .section-heading { margin: 0 28px 20px; }
.tag-options { margin: 0 28px 25px; display: flex; flex-wrap: wrap; gap: 9px; }
.tag-option { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid #e6ebe3; border-radius: 9px; color: #829085; font-size: 12px; font-weight: 750; user-select: none; background: #fff; }
.tag-option:hover { background: #f7fbf6; }
.tag-option.checked { background: #eaf3e8; color: #476c51; border-color: #a8c8ae; }
.tag-option input { accent-color: #50775d; width: 14px; height: 14px; margin: 0; }
.action-row { display: flex; gap: 10px; padding: 0 28px; justify-content: flex-end; }
#editorContent > .hint { padding: 0 28px; margin: 12px 0 20px; }
.hint { color: #9aa49b; font-size: 11px; line-height: 1.7; }
.section-divider { height: 1px; background: #eef1ec; margin: 24px 28px; }
.create-tag { padding: 0 28px 12px; }
.create-tag .section-heading { margin-bottom: 19px; }
.create-tag form { display: flex; flex-direction: column; gap: 8px; }
.create-tag label, .email-form label { color: #819083; font-size: 12px; font-weight: 750; }
.optional { color: #afb9b0; font-weight: 500; }
.create-tag input, .email-form input { height: 43px; width: 100%; border: 1px solid #e2e8df; border-radius: 10px; padding: 0 12px; outline-color: #a6c8aa; background: #fff; font-size: 13px; }
.create-tag button[type=submit] { margin-top: 9px; }
.prefix-field { display: flex; align-items: center; border-radius: 10px; border: 1px solid #e2e8df; padding-left: 12px; color: #6f8e75; }
.prefix-field input { border: none; }
.prefix-field:focus-within { outline: 2px solid #bdd5c0; }
.empty-editor { text-align: center; padding: 64px 22px 45px; }
.empty-art { display: block; margin: 0 auto 20px; width: 74px; height: 74px; border-radius: 50%; background: #edf4ea; color: #799d80; font-size: 42px; line-height: 74px; }
.empty-editor h2 { font-size: 18px; margin-bottom: 8px; }
.empty-editor p { color: #9daa9d; font-size: 13px; }
.auth-card { max-width: 470px; background: #fff; border: 1px solid #e6eae4; border-radius: 20px; padding: 44px; margin: 9vh auto 0; }
.auth-card h1 { font-size: 29px; letter-spacing: -.06em; margin-bottom: 14px; }
.auth-card .muted { color: #8c9a90; line-height: 1.75; font-size: 14px; margin-bottom: 28px; }
.or-divider { border-top: 1px solid #eff1ee; height: 10px; margin: 35px 0 13px; text-align: center; }
.or-divider span { position: relative; top: -12px; background: #fff; padding: 0 12px; color: #a0aaa0; font-size: 11px; }
.email-form { display: flex; flex-direction: column; gap: 12px; }
.auth-card .hint { margin: 17px 0 0; }
.copy-field { display: flex; align-items: center; gap: 10px; }
.copy-field code { font-size: 12px; background: #f5f7f3; padding: 12px 8px; flex: 1; overflow-wrap: anywhere; }
.copy-field button { flex-shrink: 0; }
.footer { color: #a8b2a8; font-size: 11px; text-align: center; padding: 30px 0 0; }
.loading { text-align: center; margin-top: 90px; color: #849587; font-size: 14px; }
.toast { position: fixed; bottom: 27px; left: 50%; transform: translateX(-50%); padding: 13px 20px; border-radius: 12px; color: #fff; background: #3e6249; z-index: 10; font-size: 13px; font-weight: 650; box-shadow: 0 10px 30px #344d4424; max-width: calc(100vw - 32px); }
.toast.error { background: #a35b54; }
@media (max-width: 920px) {
  .workspace { grid-template-columns: 1fr; }
  .catalog-list { max-height: 400px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .container { padding: 28px 15px 45px; }
  .topbar-content { padding: 0 17px; height: 70px; }
  .identity { max-width: 100px; }
  .intro { flex-direction: column; align-items: start; gap: 18px; }
  .intro h1 { font-size: 36px; }
  .stats { gap: 9px; }
  .stat { min-height: 103px; padding: 16px; }
  .stat strong { font-size: 25px; }
  .panel-head { padding: 22px 18px 18px; }
  .filter-area { padding: 0 18px 15px; }
  .catalog-item { padding: 15px 17px; }
  .metadata { margin: 0 18px 22px; }
  #editorContent > .section-heading, .tag-options { margin-left: 18px; margin-right: 18px; }
  .action-row { padding: 0 18px; }
  #editorContent > .hint { padding: 0 18px; }
  .section-divider { margin-left: 18px; margin-right: 18px; }
  .create-tag { padding: 0 18px 10px; }
  .auth-card { padding: 29px 20px; margin-top: 5vh; }
  .intro-actions { width: 100%; justify-content: space-between; }
}
