/* [project]/app/globals.css [app-client] (css) */
:root {
  --bg: #f7f8fa;
  --surface: #fff;
  --surface-soft: #eef2f0;
  --ink: #17201b;
  --muted: #65716b;
  --line: #dbe2dd;
  --accent: #1f7a5c;
  --accent-dark: #155d46;
  --blue: #2563eb;
  --warning: #a16207;
  --danger: #b42318;
  --sidebar: #111815;
  --sidebar-muted: #aeb8b2;
  --shadow: 0 12px 30px #11181514;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.app-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.sidebar {
  background: var(--sidebar);
  color: #fff;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px;
  display: flex;
}

.brand-row {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.brand-row strong, .brand-row span {
  display: block;
}

.brand-row strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand-row span {
  color: var(--sidebar-muted);
  margin-top: 2px;
  font-size: 12px;
}

.brand-mark {
  background: var(--accent);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  display: grid;
}

.primary-action, .save-button, .ghost-button {
  border: 0;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
  display: inline-flex;
}

.primary-action, .save-button {
  background: var(--accent);
  color: #fff;
}

.primary-action:hover, .save-button:hover {
  background: var(--accent-dark);
}

.ghost-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.nav-section {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.section-heading {
  color: var(--sidebar-muted);
  letter-spacing: 0;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px 4px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
}

.nav-item {
  color: var(--sidebar-muted);
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  overflow: hidden;
}

.nav-item:hover, .nav-item.is-active {
  color: #fff;
  background: #ffffff17;
}

.icon-button {
  color: inherit;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: inline-flex;
}

.icon-button:hover {
  background: #ffffff17;
}

.icon-button.is-marked {
  color: var(--warning);
}

.icon-button.danger {
  color: var(--danger);
}

.main-area {
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  display: flex;
}

.topbar {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.search-box {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  display: flex;
}

.search-box input {
  color: var(--ink);
  background: none;
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
}

.error-banner {
  color: var(--danger);
  background: #fff1f0;
  border: 1px solid #ffd2cc;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.workspace-grid {
  flex: 1;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  display: grid;
}

.notes-list, .editor-pane {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  min-height: 0;
}

.notes-list {
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.list-header {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  align-items: center;
  height: 46px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

.note-item {
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  width: 100%;
  min-height: 116px;
  padding: 14px;
  display: block;
}

.note-item:hover, .note-item.is-active {
  background: var(--surface-soft);
}

.note-item-title {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  line-height: 1.3;
  display: flex;
}

.note-item-title span, .note-item p {
  text-overflow: ellipsis;
  overflow: hidden;
}

.note-item p {
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
}

.note-item-footer {
  color: var(--muted);
  justify-content: space-between;
  font-size: 12px;
  display: flex;
}

.empty-state, .editor-empty {
  color: var(--muted);
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
  display: flex;
}

.editor-pane {
  flex-direction: column;
  padding: 18px;
  display: flex;
  overflow: hidden;
}

.editor-toolbar, .toolbar-actions, .tag-picker, .editor-meta {
  align-items: center;
  gap: 10px;
  display: flex;
}

.editor-toolbar {
  justify-content: space-between;
  margin-bottom: 14px;
}

.editor-toolbar select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  min-width: 170px;
  height: 38px;
  padding: 0 10px;
}

.toolbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.title-input {
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  outline: 0;
  width: 100%;
  margin-bottom: 14px;
  padding: 8px 0 14px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.tag-picker {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag-chip {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #f2f5f3;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  display: inline-flex;
}

.tag-chip.is-active {
  color: var(--accent-dark);
  background: #e6f4ef;
  border-color: #a9d8c8;
}

.tag-dot {
  border-radius: 8px;
  flex: none;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.content-input {
  color: var(--ink);
  resize: none;
  border: 0;
  outline: 0;
  flex: 1;
  width: 100%;
  min-height: 320px;
  font-size: 15px;
  line-height: 1.7;
}

.editor-meta {
  border-top: 1px solid var(--line);
  color: var(--muted);
  justify-content: space-between;
  padding-top: 12px;
  font-size: 12px;
}

.spin {
  animation: .8s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .main-area {
    padding: 12px;
  }

  .topbar, .editor-toolbar, .editor-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-actions, .ghost-button, .save-button {
    width: 100%;
  }

  .title-input {
    font-size: 22px;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/