/* [project]/app/globals.css [app-client] (css) */
:root {
  --bg: #f5f4fb;
  --sidebar-bg: #ffffffb8;
  --card-bg: #ffffffc7;
  --ink: #2b2740;
  --ink-soft: #6b6685;
  --ink-faint: #9a96b0;
  --line: #7c6cc41f;
  --line-soft: #7c6cc414;
  --violet: #8b5cf6;
  --violet-deep: #7c3aed;
  --pink: #ec4899;
  --blue: #38bdf8;
  --grad-main: linear-gradient(135deg,#a78bfa 0%,#ec4899 55%,#60a5fa 110%);
  --grad-soft: linear-gradient(135deg,#a78bfa29,#ec48991f 60%,#60a5fa24);
  --shadow-card: 0 8px 24px -12px #5b46a838,0 2px 6px -3px #5b46a81a;
  --shadow-float: 0 14px 40px -16px #7c3aed66;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
  background-image: radial-gradient(720px 460px at -6% -8%, #a78bfa38, #0000 60%), radial-gradient(680px 460px at 104% 4%, #ec489929, #0000 58%), radial-gradient(820px 560px at 60% 116%, #60a5fa2e, #0000 60%);
  background-attachment: fixed;
  font-family: Noto Sans TC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.app {
  grid-template-columns: 230px 1fr;
  width: 100%;
  min-height: 100vh;
  display: grid;
}

.sidebar {
  background: var(--sidebar-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-right: 1px solid var(--line);
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 22px 16px 16px;
  display: flex;
  position: sticky;
  top: 0;
}

.brand {
  align-items: center;
  gap: 11px;
  padding: 0 4px;
  display: flex;
}

.logo {
  background: var(--grad-main);
  color: #fff;
  border-radius: 12px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  box-shadow: 0 6px 16px -5px #ec489980;
}

.brand-text b {
  letter-spacing: .02em;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  display: block;
}

.brand-text span {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 500;
}

.btn-ai {
  border-radius: var(--radius-md);
  background: var(--grad-main);
  color: #fff;
  cursor: pointer;
  width: 100%;
  box-shadow: var(--shadow-float);
  letter-spacing: .04em;
  border: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: transform .15s, opacity .15s;
  display: flex;
}

.btn-ai:hover {
  opacity: .94;
}

.btn-ai:active {
  transform: translateY(1px);
}

.btn-ai.on {
  box-shadow: var(--shadow-float),inset 0 0 0 2px #ffffff80;
}

.btn-ai .spark {
  font-size: 16px;
}

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

.nav-item {
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  position: relative;
}

.nav-item .ic {
  text-align: center;
  width: 18px;
  font-size: 15px;
}

.nav-item .count {
  color: var(--ink-faint);
  background: #7c6cc414;
  border-radius: 999px;
  margin-left: auto;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
}

.nav-item:hover {
  background: #7c6cc40f;
}

.nav-item.active {
  background: var(--grad-soft);
  color: var(--violet-deep);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #a78bfa47;
}

.nav-item.active:before {
  content: "";
  background: var(--grad-main);
  border-radius: 0 4px 4px 0;
  width: 4px;
  height: 20px;
  position: absolute;
  top: 50%;
  left: -16px;
  transform: translateY(-50%);
}

.nav-item.active .count {
  color: var(--violet-deep);
  background: #fff9;
}

.divider {
  background: var(--line);
  height: 1px;
  margin: 4px;
}

.tags-head {
  letter-spacing: .12em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 2px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
}

.tags-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.tag-list {
  flex-direction: column;
  gap: 1px;
  display: flex;
}

.tag-row {
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
}

.tag-row:hover {
  background: #7c6cc40f;
}

.tag-row.active {
  background: var(--grad-soft);
  color: var(--violet-deep);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #a78bfa40;
}

.tag-row .dot {
  border-radius: 3px;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.tag-row .count {
  color: var(--ink-faint);
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
}

.dot-0 {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.dot-1 {
  background: linear-gradient(135deg, #fb7185, #ec4899);
}

.dot-2 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.dot-3 {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.dot-4 {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.dot-5 {
  background: linear-gradient(135deg, #f472b6, #a855f7);
}

.side-foot {
  border-top: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 8px 4px;
  display: flex;
}

.avatar {
  color: #fff;
  background: linear-gradient(135deg, #c084fc, #f472b6);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  box-shadow: 0 4px 10px -4px #ec489980;
}

.side-foot .who b {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  display: block;
}

.side-foot .who span {
  color: var(--ink-faint);
  font-size: 11px;
}

.logout {
  color: var(--ink-faint);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  margin-left: auto;
  padding: 6px;
  font-size: 16px;
}

.logout:hover {
  color: var(--ink);
  background: #7c6cc414;
}

.main {
  padding: 20px 28px 40px;
  overflow: hidden;
}

.topbar {
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  display: flex;
}

.search {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  display: flex;
}

.search .si {
  color: var(--violet);
  font-size: 15px;
}

.search input {
  color: var(--ink);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  font-family: inherit;
  font-size: 14px;
}

.search input::placeholder {
  color: var(--ink-faint);
}

.search button {
  color: var(--ink-faint);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 13px;
}

.search button:hover {
  color: var(--violet-deep);
}

.icon-btn {
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--line);
  width: 46px;
  height: 46px;
  box-shadow: var(--shadow-card);
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 17px;
  display: flex;
}

.ai-panel {
  border-radius: var(--radius-xl);
  background: var(--grad-main);
  box-shadow: var(--shadow-float);
  margin-bottom: 18px;
  padding: 1.5px;
}

.ai-inner {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #ffffffeb;
  border-radius: 22.5px;
  padding: 18px 20px 16px;
}

.ai-form {
  gap: 9px;
  margin-bottom: 13px;
  display: flex;
}

.ai-form input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  outline: none;
  flex: 1;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 14px;
}

.ai-form input:focus {
  box-shadow: inset 0 0 0 1px #a78bfa66;
}

.ai-form button {
  background: var(--grad-main);
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  padding: 0 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.ai-form button:disabled {
  opacity: .6;
  cursor: default;
}

.ai-q {
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  display: flex;
}

.ai-q .qbadge {
  letter-spacing: .05em;
  background: var(--grad-soft);
  color: var(--violet-deep);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #a78bfa40;
}

.ai-q .qtext {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.ai-a {
  gap: 11px;
  margin-bottom: 14px;
  display: flex;
}

.ai-a .spark {
  background: var(--grad-main);
  color: #fff;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-size: 15px;
  display: flex;
  box-shadow: 0 5px 12px -5px #7c3aed99;
}

.ai-a .atext {
  color: var(--ink);
  flex: 1;
  min-width: 0;
  padding-top: 3px;
  font-size: 15px;
  line-height: 1.7;
}

.ai-thinking {
  color: var(--ink-faint);
  align-items: center;
  gap: 7px;
  font-size: 13px;
  display: flex;
}

.ai-thinking .pulse {
  background: var(--violet);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  animation: 1.2s infinite pulse;
}

.ai-fallback {
  color: #c2730a;
  margin-bottom: 10px;
  font-size: 13px;
}

.cite {
  color: #fff;
  background: var(--violet);
  vertical-align: super;
  border-radius: 6px;
  margin-left: 3px;
  padding: 0 5px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
  display: inline-block;
}

.ai-src {
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  flex-direction: column;
  gap: 7px;
  padding-top: 11px;
  font-size: 12.5px;
  display: flex;
}

.ai-src-row {
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.ai-src .num {
  color: var(--violet-deep);
  background: #a78bfa29;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 1px;
  padding: 1px 5px;
  font-size: 10.5px;
  font-weight: 700;
}

.composer {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
  overflow: hidden;
}

.composer-body {
  padding: 6px 10px 4px;
}

.composer-foot {
  justify-content: flex-end;
  gap: 8px;
  padding: 0 14px 13px;
  display: flex;
}

.btn-save {
  background: var(--grad-main);
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  box-shadow: 0 8px 18px -8px #7c3aed8c;
}

.btn-cancel {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fff;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
}

.btn-save .kbd {
  opacity: .85;
  background: #ffffff38;
  border-radius: 5px;
  padding: 1px 6px;
  font-family: JetBrains Mono, monospace;
  font-size: 10.5px;
  font-weight: 600;
}

.composer .vditor {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.composer .vditor-toolbar {
  border-bottom: 1px solid var(--line-soft) !important;
  background: none !important;
  border-radius: 0 !important;
}

.composer .vditor-reset {
  font-family: inherit !important;
}

.wall {
  column-count: 2;
  column-gap: 18px;
}

.card {
  break-inside: avoid;
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
  padding: 16px 17px 15px;
  position: relative;
  overflow: hidden;
}

.card:before {
  content: "";
  background: var(--grad-main);
  opacity: .7;
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.card-head {
  align-items: center;
  margin-bottom: 10px;
  display: flex;
}

.card-time {
  color: var(--ink-faint);
  font-size: 11.5px;
  font-weight: 500;
}

.card-acts {
  gap: 4px;
  margin-left: auto;
  display: flex;
}

.card-acts button {
  color: var(--ink-faint);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  display: flex;
}

.card-acts button:hover {
  color: var(--violet-deep);
  background: #7c6cc417;
}

.card-body {
  color: var(--ink);
  word-break: break-word;
  font-size: 14.5px;
  line-height: 1.72;
}

.card-body p {
  margin-bottom: 9px;
}

.card-body p:last-child {
  margin-bottom: 0;
}

.card-body ul, .card-body ol {
  margin: 2px 0 9px;
  padding-left: 22px;
}

.card-body li {
  margin-bottom: 5px;
  font-size: 14px;
}

.card-body strong {
  font-weight: 700;
}

.card-body a {
  color: var(--violet-deep);
  text-decoration: underline;
}

.card-body h1, .card-body h2, .card-body h3 {
  margin: 6px 0 8px;
  font-size: 15.5px;
  font-weight: 700;
}

.card-body code {
  color: var(--violet-deep);
  background: #7c6cc41a;
  border-radius: 6px;
  padding: 1px 7px;
  font-family: JetBrains Mono, monospace;
  font-size: 13px;
  font-weight: 600;
}

.card-body pre {
  background: #2b2740eb;
  border-radius: 10px;
  margin: 4px 0;
  padding: 11px 13px;
  overflow-x: auto;
}

.card-body pre code {
  color: #e9e3ff;
  background: none;
  padding: 0;
  font-size: 12.5px;
  display: block;
}

.card-body blockquote {
  border-left: 3px solid var(--line);
  color: var(--ink-soft);
  margin: 4px 0 9px;
  padding-left: 10px;
}

.card-body img {
  border-radius: 8px;
  max-width: 100%;
}

.card-foot {
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  display: flex;
}

.chip {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.chip:before {
  content: "#";
  opacity: .6;
  font-weight: 700;
}

.chip-0 {
  color: #7c3aed;
  background: #a78bfa29;
}

.chip-1 {
  color: #e11d6f;
  background: #fb718529;
}

.chip-2 {
  color: #c2730a;
  background: #f59e0b2e;
}

.chip-3 {
  color: #0277b6;
  background: #38bdf82e;
}

.chip-4 {
  color: #047857;
  background: #10b9812e;
}

.chip-5 {
  color: #9333ea;
  background: #a855f729;
}

.badge-idx {
  color: var(--violet-deep);
  background: var(--grad-soft);
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  box-shadow: inset 0 0 0 1px #a78bfa40;
}

.badge-idx .pulse {
  background: var(--violet);
  border-radius: 50%;
  width: 6px;
  height: 6px;
  animation: 1.4s infinite pulse;
}

.badge-fail {
  color: #dc2626;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}

.badge-fail button {
  color: #dc2626;
  cursor: pointer;
  background: #dc26261f;
  border: none;
  border-radius: 999px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

.btn-restore {
  background: var(--grad-soft);
  color: var(--violet-deep);
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #a78bfa40;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 #8b5cf680;
  }

  70% {
    box-shadow: 0 0 0 6px #8b5cf600;
  }

  100% {
    box-shadow: 0 0 #8b5cf600;
  }
}

.empty {
  text-align: center;
  color: var(--ink-faint);
  padding: 48px 0;
  font-size: 14px;
}

.loading {
  color: var(--ink-faint);
  padding: 8px 2px;
  font-size: 13px;
}

.search-meta {
  color: var(--ink-faint);
  margin: 4px 2px 12px;
  font-size: 12px;
}

.degraded {
  color: #c2730a;
  margin: 4px 2px;
  font-size: 13px;
}

.login-wrap {
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  display: flex;
}

.login-card {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-float);
  flex-direction: column;
  gap: 16px;
  padding: 34px 30px 30px;
  display: flex;
}

.login-card .logo {
  margin: 0 auto;
}

.login-card h1 {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.login-card .sub {
  text-align: center;
  color: var(--ink-faint);
  margin-top: -8px;
  font-size: 12px;
}

.login-card input {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  outline: none;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
}

.login-card input:focus {
  box-shadow: inset 0 0 0 1px #a78bfa66;
}

.login-card button {
  background: var(--grad-main);
  color: #fff;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-float);
  border: none;
  padding: 13px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}

.login-card .err {
  color: #dc2626;
  text-align: center;
  font-size: 13px;
}

.search-wrap {
  flex: 1;
  position: relative;
}

.search-results {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  z-index: 30;
  background: #fffffff7;
  max-height: 60vh;
  padding: 12px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  overflow: auto;
}

.ai-a .atext p {
  margin-bottom: 8px;
}

.ai-a .atext p:last-child {
  margin-bottom: 0;
}

.ai-a .atext ul, .ai-a .atext ol {
  margin: 2px 0 8px;
  padding-left: 20px;
}

.ai-a .atext li {
  margin-bottom: 4px;
}

.ai-a .atext strong {
  font-weight: 700;
}

.ai-a .atext a {
  color: var(--violet-deep);
  text-decoration: underline;
}

.ai-a .atext code {
  color: var(--violet-deep);
  background: #7c6cc41a;
  border-radius: 5px;
  padding: 1px 6px;
  font-family: JetBrains Mono, monospace;
  font-size: 13px;
  font-weight: 600;
}

.ai-a .atext pre {
  background: #2b2740eb;
  border-radius: 10px;
  margin: 4px 0;
  padding: 10px 12px;
  overflow-x: auto;
}

.ai-a .atext pre code {
  color: #e9e3ff;
  background: none;
  padding: 0;
  font-size: 12.5px;
  display: block;
}

.ai-a .atext blockquote {
  border-left: 3px solid var(--line);
  color: var(--ink-soft);
  margin: 4px 0 8px;
  padding-left: 10px;
}

.ai-a .atext h1, .ai-a .atext h2, .ai-a .atext h3 {
  margin: 4px 0 6px;
  font-size: 15px;
  font-weight: 700;
}

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

  .sidebar {
    gap: 12px;
    padding: 18px 8px 12px;
  }

  .brand-text, .btn-ai span:not(.spark), .nav-item .count, .tags-head, .tag-row .count, .side-foot .who, .tag-row span:not(.dot) {
    display: none;
  }

  .btn-ai {
    padding: 12px 0;
  }

  .nav-item {
    justify-content: center;
    padding: 9px 0;
  }

  .nav-item .ic {
    width: auto;
  }

  .tag-row {
    justify-content: center;
    padding: 7px 0;
  }

  .main {
    padding: 16px 14px 32px;
  }

  .wall {
    column-count: 1;
  }
}

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