@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --bg: #0a0a12;
  --shell: rgba(15, 15, 22, 0.94);
  --sidebar: rgba(29, 27, 42, 0.88);
  --panel: #1c1b25;
  --panel-soft: rgba(255, 255, 255, 0.045);
  --panel-hover: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.07);
  --line-soft: rgba(255, 255, 255, 0.045);
  --text: #ececf3;
  --sub: #9b9aa6;
  --dim: #62616d;
  --primary: #6366f1;
  --primary-2: #7c7ff5;
  --green: #34d399;
  --amber: #f59e0b;
  --blue: #60a5fa;
  --red: #ff5f57;
  --purple: #c084fc;
  --radius: 8px;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.56);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

* { box-sizing: border-box; }
html, body, #app { width: 100%; height: 100%; margin: 0; }
[hidden] { display: none !important; }

body {
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 0% 0%, #3a2b5e 0%, #1c1736 38%, #0a0a12 75%),
    var(--bg);
  color: var(--text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea, select {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { border: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.42); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, 0.66); }

.mono, pre, code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.boot,
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.boot { gap: 16px; align-content: center; }

.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  background: #112240;
  display: grid;
  place-items: center;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(100, 255, 218, 0.12);
  overflow: hidden;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--primary-2);
  animation: spin 0.8s linear infinite;
}

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

.auth-card {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 18, 22, 0.88);
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-card.compact { width: min(420px, 100%); }
.auth-card h1 { margin: 20px 0 6px; font-size: 24px; font-weight: 900; }
.auth-card p { margin: 0 0 20px; color: var(--sub); line-height: 1.6; font-size: 14px; }

.app-shell {
  height: 100vh;
  width: 100%;
  padding: 26px;
  display: flex;
  align-items: stretch;
}

.workspace {
  width: 100%;
  height: calc(100vh - 52px);
  min-height: 0;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(135deg, rgba(88, 70, 132, 0.24), rgba(255, 255, 255, 0.025)),
    rgba(14, 13, 22, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.sidebar {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(70, 55, 105, 0.18), rgba(18, 17, 28, 0.66)),
    rgba(21, 20, 31, 0.8);
  padding: 18px 14px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 20px;
}

.logo-title {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

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

.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  color: #8a8a94;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.nav-button svg {
  flex: none;
  color: currentColor;
}

.nav-button.active {
  background: rgba(255, 255, 255, 0.08);
  color: #f0f0f4;
}

.nav-button:hover { background: rgba(255, 255, 255, 0.06); color: #f0f0f4; }

.sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 8px;
  padding: 0 10px;
  color: #55555f;
  font-size: 11px;
  font-weight: 800;
}

.sidebar-add {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #8a8a94;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.sidebar-add:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #d8d8de;
}

.favorites {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  padding-bottom: 16px;
}

.favorite-drop-zone {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 6px;
  border-radius: 8px;
  overflow: visible;
}

.favorite-empty {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #8a8a94;
  font-size: 12.5px;
  font-weight: 650;
  text-align: left;
}

.favorite-empty:hover { background: rgba(255, 255, 255, 0.07); color: #d8d8de; }

.favorite-link-row {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  line-height: 1.25;
}

.favorite-link-row:hover {
  background: rgba(255, 255, 255, 0.055);
}

.favorite-link {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 4px 7px 10px;
  color: #9696a0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.favorite-link span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-link:hover { color: #d8d8de; }
.favorite-link-row.dragging { opacity: 0.42; }

.favorite-delete-button,
.favorite-folder-delete-button {
  width: 24px;
  height: 24px;
  flex: none;
  margin-right: 5px;
  border-radius: 7px;
  background: transparent;
  color: #6a6a74;
  font-size: 16px;
  line-height: 1;
  opacity: 0;
}

.favorite-link-row:hover .favorite-delete-button,
.favorite-delete-button:focus-visible,
.favorite-folder:hover .favorite-folder-delete-button,
.favorite-folder-delete-button:focus-visible {
  opacity: 1;
}

.favorite-folder-delete-button {
  opacity: 0.42;
}

.favorite-delete-button:hover,
.favorite-folder-delete-button:hover {
  background: rgba(251, 113, 133, 0.14);
  color: #fecdd3;
}

.favorite-folder {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
  padding: 2px 0 4px;
  border-radius: 9px;
  overflow: hidden;
}

.favorite-folder-title {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 8px;
  color: #777682;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.25;
}

.favorite-folder-toggle {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.14s ease;
}

.favorite-folder-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.7px solid #8a8a94;
  border-bottom: 1.7px solid #8a8a94;
  transform: translate(-50%, -62%) rotate(45deg);
  transform-origin: center;
  transition: border-color 0.14s ease, transform 0.14s ease;
}

.favorite-folder-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.favorite-folder-toggle:hover span {
  border-color: #d8d8de;
}

.favorite-folder.collapsed .favorite-folder-toggle span {
  transform: translate(-62%, -50%) rotate(-45deg);
}

.favorite-folder-title:hover .favorite-folder-toggle {
  background: rgba(255, 255, 255, 0.06);
}

.favorite-folder-title:hover .favorite-folder-toggle span {
  color: #d8d8de;
  border-color: #d8d8de;
}

.favorite-folder-title span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-folder-title small {
  flex: none;
  color: #55555f;
  font-size: 11px;
}

.favorite-folder-links {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}

.favorite-folder.collapsed .favorite-folder-links {
  display: none;
}

.favorite-folder .favorite-link-row,
.favorite-folder-empty {
  margin-left: 6px;
}

.favorite-folder-empty {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px 6px;
  color: #55555f;
  font-size: 12px;
  line-height: 1.25;
}

.favorite-drop-over {
  background: rgba(129, 140, 248, 0.11);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.24);
}

.favorite-popover {
  position: fixed;
  z-index: 65;
  width: 280px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(24, 23, 34, 0.98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.favorite-menu {
  display: grid;
  gap: 4px;
}

.favorite-menu button {
  min-height: 34px;
  border-radius: 8px;
  background: transparent;
  color: #d8d8de;
  text-align: left;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 650;
}

.favorite-menu button:hover {
  background: rgba(255, 255, 255, 0.065);
}

.favorite-mini-form {
  display: grid;
  gap: 9px;
}

.favorite-mini-form label {
  display: grid;
  gap: 5px;
  color: #8a8a94;
  font-size: 11.5px;
  font-weight: 650;
}

.favorite-mini-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.fav-mark {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.profile-card {
  margin-top: auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #1f1f27;
  text-align: left;
}

.profile-card strong,
.profile-card small {
  display: block;
}

.profile-card strong {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.profile-card small {
  margin-top: 2px;
  color: #6a6a74;
  font-size: 11px;
  font-weight: 600;
}

.profile-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f472b6, #c084fc);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.main {
  min-width: 0;
  display: grid;
  min-height: 0;
  grid-template-rows: 64px minmax(0, 1fr) 46px;
  background:
    radial-gradient(110% 90% at 16% 0%, rgba(86, 70, 128, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(25, 23, 36, 0.88), rgba(9, 9, 15, 0.9));
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 17, 28, 0.22);
}

.screen-title {
  color: #f0f0f4;
  font-size: 18px;
  font-weight: 750;
}

.screen-sub {
  margin-top: 2px;
  color: #6a6a74;
  font-size: 12px;
  font-weight: 600;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  width: 250px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.05);
  color: #6a6a74;
}

.search svg { flex: none; }

.input,
.textarea,
.select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #e8e8ec;
  padding: 10px 12px;
  outline: none;
  font-size: 13px;
  appearance: none;
}

.select {
  background:
    linear-gradient(45deg, transparent 50%, #8d96ff 50%) right 16px center / 6px 6px no-repeat,
    linear-gradient(135deg, #8d96ff 50%, transparent 50%) right 11px center / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.055);
  padding-right: 34px;
}

.search .input {
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c8c8d0;
}

.input::placeholder,
.textarea::placeholder { color: #6a6a74; }

.select option {
  background: #1c1b25;
  color: #e8e8ec;
}

.select option:checked {
  background: #2f2e3c;
  color: #fff;
}

.native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select.disabled {
  opacity: 0.72;
}

.custom-select.disabled .custom-select-button {
  cursor: default;
}

.custom-select-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.055);
  color: #e8e8ec;
  padding: 10px 13px;
  font-size: 13px;
  text-align: left;
}

.custom-select-button i {
  width: 8px;
  height: 8px;
  flex: none;
  border-right: 2px solid #8d96ff;
  border-bottom: 2px solid #8d96ff;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}

.custom-select.open .custom-select-button {
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.13);
}

.custom-select.open .custom-select-button i {
  transform: rotate(225deg) translateY(-2px);
}

.custom-select-menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 3px;
  max-height: 210px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(22, 21, 31, 0.98);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-select-option {
  min-height: 34px;
  border-radius: 9px;
  background: transparent;
  color: #c8c8d0;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}

.custom-select-option:hover,
.custom-select-option.active {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}

.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.13);
}

.primary-button,
.soft-button,
.danger-button,
.icon-button,
.add-plus-button,
.today-pill,
.mini-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.input[type="date"],
.live-input[type="date"],
.live-inline-input[type="date"] {
  appearance: auto;
  color-scheme: dark;
}

.input[type="date"]::-webkit-calendar-picker-indicator,
.live-input[type="date"]::-webkit-calendar-picker-indicator,
.live-inline-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.72;
  filter: invert(1);
}

.primary-button {
  min-height: 36px;
  padding: 0 14px;
  background: #6366f1;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.primary-button.small {
  min-height: 32px;
  padding: 0 12px;
}

.soft-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.07);
  color: #d9d9df;
}

.danger-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(251, 113, 133, 0.25);
  background: rgba(251, 113, 133, 0.14);
  color: #fecdd3;
}

.icon-button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: #9696a0;
}

.today-pill {
  height: 26px;
  padding: 0 10px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}

.mini-button {
  height: 28px;
  margin-left: auto;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dashboard-actions,
.section-toolbar .mini-button,
.inline-add-button {
  display: none;
}

.bottom-add-row {
  display: flex;
  justify-content: center;
  padding: 6px 0 2px;
}

.calendar + .bottom-add-row {
  padding: 12px 0 18px;
}

.live-list-editor .bottom-add-row {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  padding: 7px 0;
}

.add-plus-button {
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: #8a8a94;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  box-shadow: none;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.add-plus-button:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.075);
  color: #d8d8de;
  transform: translateY(-1px);
}

.link-button {
  background: transparent;
  color: #8d96ff;
  padding: 0;
}

.content {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.34) rgba(255, 255, 255, 0.018);
  background: rgba(7, 7, 12, 0.44);
  contain: layout paint;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.content.content-ready {
  opacity: 1;
}

.content::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
}

.content::-webkit-scrollbar-thumb {
  border: 3px solid rgba(11, 12, 16, 0.85);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.38);
}

.split-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.26) transparent;
}

.split-list::-webkit-scrollbar {
  width: 6px;
}

.split-list::-webkit-scrollbar-track {
  background: transparent;
}

.split-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.26);
}

.dashboard-wrap {
  width: min(1500px, 100%);
  min-height: 100%;
  padding: 28px 22px 30px;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: -6px 0 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.metric-card {
  min-height: 126px;
  padding: 18px 22px;
}

.metric-label {
  color: #7a7a86;
  font-size: 12.5px;
  font-weight: 650;
}

.metric-value {
  margin-top: 8px;
  color: #f2f2f5;
  font-size: 31px;
  font-weight: 600;
}

.metric-value span {
  margin-left: 2px;
  color: #6a6a74;
  font-size: 15px;
  font-weight: 700;
}

.metric-help {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
}

.metric-help.primary { color: #6366f1; }
.metric-help.green { color: #34d399; }
.metric-help.amber { color: #f59e0b; }

.calendar {
  overflow: hidden;
}

.dashboard-wrap > .calendar {
  min-height: calc(100vh - 172px);
}

.calendar-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 67px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.calendar-title {
  margin-right: 8px;
  font-size: 18px;
  font-weight: 750;
}

.legend {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #7a7a86;
  font-size: 12px;
  font-weight: 700;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
}

.legend-dot.personal { background: #34d399; }
.legend-dot.deadline { background: #f59e0b; }

.weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8a94;
  font-size: 12px;
  font-weight: 650;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.day {
  min-height: 102px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 7px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: #c8c8d0;
  text-align: left;
}

.day:nth-child(7n+1) { border-left: 0; }
.day:hover { background: rgba(255, 255, 255, 0.025); }
.day.muted { background: rgba(0, 0, 0, 0.14); color: transparent; }
.day.today {
  background: rgba(124, 107, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(160, 145, 255, 0.22);
}

.day.today:hover {
  background: rgba(124, 107, 255, 0.2);
}

.day-num {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #c8c8d0;
  font-size: 12.5px;
  font-weight: 650;
}

.day.today .day-num {
  background: rgba(255, 255, 255, 0.08);
  color: #f3f0ff;
}

.chips {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.chip {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.25;
}

.tag-work {
  border: 1px solid rgba(129, 140, 248, 0.22);
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
}

.tag-personal {
  border: 1px solid rgba(52, 211, 153, 0.18);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}

.tag-deadline {
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}
.tag-muted { background: rgba(255, 255, 255, 0.08); color: #cfcfd6; }

.dashboard-todos {
  margin-top: 18px;
  overflow: hidden;
}

.section-toolbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.section-toolbar .split-eyebrow {
  margin: 0;
}

.section-toolbar .mini-button {
  margin-left: auto;
}

.compact-list {
  display: grid;
  gap: 6px;
  padding: 0 10px 12px;
}

.split-page {
  min-height: 100%;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

.split-list {
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 18, 0.18);
  padding: 14px;
  overflow: auto;
}

.split-eyebrow {
  margin: 8px 2px 12px;
  color: #6a6a74;
  font-size: 12px;
  font-weight: 650;
}

.note-list {
  display: grid;
  gap: 4px;
}

.note-item {
  width: 100%;
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  align-content: start;
  contain: paint;
}

.note-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.09);
}

.note-item strong {
  color: #e8e8ec;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-item small {
  color: #55555f;
  font-size: 11.5px;
  font-weight: 600;
}

.note-view {
  width: 100%;
  max-width: 1220px;
  padding: 34px 46px;
}

.empty-view {
  display: grid;
  align-content: start;
  gap: 12px;
}

.detail-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.detail-toolbar .project-hero,
.detail-toolbar .credential-hero {
  flex: 1;
  margin-bottom: 0;
}

.crud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.inline-panel,
.inline-editor {
  border-radius: 14px;
}

.inline-panel {
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.035);
  margin-bottom: 18px;
  padding: 18px;
}

.inline-editor {
  display: grid;
  gap: 15px;
  padding: 0;
  border: 0;
  background: transparent;
}

.inline-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.inline-panel-head p {
  margin: 4px 0 0;
  color: #6a6a74;
  font-size: 12px;
  font-weight: 700;
}

.inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(220px, 1.4fr) minmax(150px, 0.75fr) minmax(130px, 0.65fr);
  gap: 12px;
  align-items: end;
}

.title-input {
  width: min(780px, 100%);
  border: 0;
  outline: 0;
  background: transparent !important;
  color: #f0f0f4;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: 0;
  appearance: none;
}

.title-input::placeholder {
  color: #55555f;
}

.inline-tag-field {
  max-width: 240px;
}

.editor-textarea {
  min-height: 340px;
}

.note-editor .editor-textarea {
  min-height: 520px;
  border-color: transparent;
  background: transparent;
  padding: 4px 0;
}

.inline-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.inline-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.inline-row strong {
  overflow: hidden;
  color: #e8e8ec;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-row small {
  color: #6a6a74;
  font-size: 12px;
  font-weight: 600;
}

.danger-link {
  color: #fb7185;
}

.note-meta {
  margin: 0 0 10px;
  color: #6a6a74;
  font-size: 12px;
  font-weight: 650;
}

.markdown-preview {
  color: #c8c8d0;
  line-height: 1.9;
  font-size: 15px;
}

.markdown-preview h1 {
  margin: 0 0 28px;
  color: #f0f0f4;
  font-size: 30px;
  line-height: 1.2;
}

.markdown-preview h2 {
  margin: 26px 0 18px;
  color: #c8c8d0;
  font-size: 15px;
}

.markdown-preview p,
.markdown-preview li {
  margin-bottom: 18px;
  color: #b8b8c1;
  font-weight: 650;
}

.markdown-preview ul,
.markdown-preview ol { padding-left: 20px; }

.markdown-preview pre {
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0a0a0d;
  padding: 15px 16px;
}

.live-surface {
  width: 100%;
}

.live-input,
.live-textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent !important;
  color: #e8e8ec;
  outline: 0;
  appearance: none;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.live-input {
  min-height: 28px;
  padding: 3px 6px;
  font-size: 13px;
  font-weight: 600;
}

.sub-live-input {
  margin-top: 4px;
  color: #8a8a94;
}

.note-meta-input {
  width: min(220px, 100%);
  margin-bottom: 8px;
  color: #6a6a74;
  font-size: 12px;
  font-weight: 600;
}

.live-title {
  display: block;
}

.live-input:hover,
.live-textarea:hover,
.title-input:hover {
  background: rgba(255, 255, 255, 0.035) !important;
}

.live-input:focus,
.live-textarea:focus,
.title-input:focus {
  border-color: rgba(129, 140, 248, 0.42);
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.live-textarea {
  display: block;
  resize: vertical;
  color: #c8c8d0;
  line-height: 1.75;
}

.rich-editor-wrap {
  width: 100%;
}

.rich-editor {
  position: relative;
  min-height: 560px;
  padding: 4px 0 28px;
  outline: 0;
  caret-color: #ececf3;
  white-space: pre-wrap;
  word-break: break-word;
}

.rich-editor:focus {
  outline: 0;
}

.rich-editor.rich-empty::before {
  content: attr(data-placeholder);
  position: absolute;
  top: 4px;
  left: 0;
  color: #55555f;
  pointer-events: none;
}

.rich-editor *::selection {
  background: rgba(129, 140, 248, 0.28);
}

.rich-editor code {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 5px;
  font-size: 0.92em;
}

.rich-editor a {
  color: #818cf8;
}

.muted-preview {
  color: #55555f !important;
}

.compact-live-textarea {
  min-height: 150px;
  padding: 14px 16px;
  font-size: 13px;
}

.editable-block {
  padding: 0;
}

.live-hidden-list {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.live-inline-input {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent !important;
  color: #e8e8ec;
  padding: 2px 4px;
  outline: 0;
  font: inherit;
  font-weight: 600;
  appearance: none;
}

.live-inline-input::placeholder {
  color: #575663;
}

.live-inline-input:hover,
.live-inline-input:focus {
  background: rgba(255, 255, 255, 0.045) !important;
}

.live-contact-fields,
.live-log-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.contact-title-line {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.contact-title-line small {
  color: #6a6a74;
}

.contact-name-input,
.log-title-input {
  color: #e8e8ec;
  font-size: 13px;
  font-weight: 700;
}

.contact-name-input {
  width: 4.4em;
  max-width: 4.4em;
  flex: 0 0 4.4em;
}

.contact-role-input {
  width: 4.4em;
  flex: 0 0 4.4em;
  color: #6a6a74;
  font-size: 12px;
  font-weight: 600;
}

.contact-phone-input {
  color: #8d96ff;
  font-size: 12.5px;
}

.muted-inline-input {
  color: #6a6a74;
  font-size: 12px;
  font-weight: 650;
}

.live-flag-row .live-inline-input {
  color: #c8c8d0;
  font-size: 13px;
  font-weight: 600;
}

.live-date-input {
  width: 126px;
  min-width: 126px;
  color: #6a6a74;
  font-size: 12px;
  font-weight: 650;
}

.live-date-input[type="date"] {
  padding-right: 2px;
  letter-spacing: 0;
}

.log-tag-input {
  width: 70px;
  height: 24px;
  border-radius: 8px;
  background: #1e2a4a !important;
  color: #93b4f5;
  text-align: center;
  font-size: 11px;
}

.live-spec input {
  margin-top: 6px;
  padding: 4px 0;
  color: #e8e8ec;
  font-size: 15px;
  font-weight: 700;
}

.todo-inline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: #6a6a74;
  font-size: 12px;
  font-weight: 600;
}

.todo-inline-meta .live-input,
.todo-inline-meta .custom-select {
  width: 150px;
}

.todo-inline-meta .custom-select-button {
  min-height: 32px;
  padding: 6px 10px;
}

.save-status {
  min-width: 70px;
  min-height: 28px;
  min-width: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: #7c7b86;
  font-size: 12px;
  font-weight: 650;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.save-status.saving {
  color: #9696a0;
}

.save-status.error {
  color: #fb7185;
}

.project-list-shell,
.credentials-page .split-list {
  padding: 18px 14px;
}

.project-list,
.credentials-page .split-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-item,
.credential-item {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  contain: paint;
}

.project-item.active,
.credential-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.09);
}

.project-mark,
.credential-mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
}

.project-copy,
.credential-item span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.project-copy strong,
.credential-item strong {
  color: #f0f0f4;
  font-size: 14px;
  font-weight: 700;
}

.project-copy small,
.credential-item small {
  color: #6a6a74;
  font-size: 12px;
  font-weight: 650;
}

.credential-item em {
  margin-left: auto;
  color: #55555f;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: #34d399;
}

.status-dot.amber { background: #f59e0b; }
.status-dot.blue { background: #60a5fa; }

.project-view,
.credential-view,
.credential-edit-surface,
.credential-unlock {
  padding: 32px 40px;
  width: 100%;
  max-width: 1220px;
}

.project-hero,
.credential-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.project-logo,
.credential-logo {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-size: 26px;
  font-weight: 750;
}

.project-hero h2,
.credential-hero h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 750;
}

.project-hero p,
.credential-hero p {
  margin: 5px 0 0;
  color: #6a6a74;
  font-size: 13px;
  font-weight: 700;
}

.section-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 25px 0 13px;
  color: #d8d8de;
  font-size: 15px;
  font-weight: 700;
}

.inline-add-button {
  min-height: 32px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #f0f0f4;
  font-size: 12px;
  font-weight: 650;
}

.inline-add-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section-line svg { color: #818cf8; }
.section-line.green svg { color: #34d399; }
.section-line.amber svg { color: #f59e0b; }
.section-line.purple svg,
.section-line.purple .spark { color: #c084fc; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.spec {
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.spec small {
  display: block;
  color: #6a6a74;
  font-size: 11px;
  font-weight: 650;
}

.spec strong {
  display: block;
  margin-top: 7px;
  color: #e8e8ec;
  font-size: 15px;
  font-weight: 700;
}

.project-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card,
.flag-card,
.log-card,
.secret-card,
.generator-card,
.memo-card {
  overflow: hidden;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  contain: paint;
}

.contact-row:last-child { border-bottom: 0; }

.contact-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
}

.contact-row strong,
.contact-row em,
.contact-row small {
  display: block;
  font-style: normal;
}

.contact-row strong { color: #e8e8ec; font-size: 13px; font-weight: 700; }
.contact-row strong small { display: inline; color: #6a6a74; }
.contact-row em { color: #8d96ff; font-size: 12.5px; font-weight: 650; margin-top: 2px; }
.contact-row small { color: #6a6a74; font-size: 11.5px; font-weight: 650; margin-top: 2px; }

.flag-card {
  padding: 10px 0;
}

.flag-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 16px;
  color: #c8c8d0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.flag-row i {
  width: 8px;
  height: 8px;
  flex: none;
  margin-top: 5px;
  border-radius: 50%;
  background: #f59e0b;
}

.flag-row i.red { background: #ef4444; }
.flag-row i.green { background: #34d399; }

.log-row {
  min-height: 73px;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  contain: paint;
}

.log-row:last-child { border-bottom: 0; }
.log-row time { color: #6a6a74; font-size: 12px; font-weight: 650; }
.log-row strong { display: block; color: #e8e8ec; font-size: 13.5px; font-weight: 700; }
.log-row small { display: block; margin-top: 5px; color: #6a6a74; font-size: 12px; font-weight: 650; }
.log-row b {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  background: #1e2a4a;
  color: #93b4f5;
  font-size: 11px;
}
.log-row i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.secret-card {
  width: min(920px, 100%);
  margin-bottom: 28px;
}

.credential-edit-surface {
  min-height: 100%;
}

.credential-view > .credential-edit-surface {
  max-width: 920px;
  min-height: auto;
  padding: 0;
}

.credential-view > .credential-edit-surface .detail-toolbar {
  margin-bottom: 16px;
}

.credential-view > .credential-edit-surface .secret-card,
.credential-view > .credential-edit-surface .generator-card,
.credential-view > .credential-edit-surface .memo-card,
.credential-view > .credential-edit-surface .live-toolbar {
  width: 100%;
}

.credential-view > .credential-edit-surface .credential-logo {
  width: 54px;
  height: 54px;
  font-size: 24px;
}

.credential-view > .credential-edit-surface .compact-title {
  font-size: 21px;
}

.credential-view > .credential-edit-surface .memo-card textarea {
  min-height: 170px;
}

.live-toolbar {
  width: min(920px, 100%);
  margin-bottom: 18px;
}

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

.ghost-input {
  width: 100%;
  min-width: 0;
  margin-top: 3px;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  color: #e8e8ec;
  padding: 3px 0;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  appearance: none;
}

.ghost-input::placeholder {
  color: #5f5f6a;
}

.ghost-input:focus {
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.055);
}

.ghost-input:-webkit-autofill,
.live-input:-webkit-autofill,
.title-input:-webkit-autofill,
.live-textarea:-webkit-autofill {
  -webkit-text-fill-color: #e8e8ec;
  box-shadow: 0 0 0 1000px #171720 inset;
  caret-color: #e8e8ec;
}

.editable-row {
  cursor: text;
}

.editable-row span {
  flex: 1;
  min-width: 0;
}

.editable-card {
  background: rgba(255, 255, 255, 0.035);
}

.secret-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.secret-row:last-child { border-bottom: 0; }
.secret-row small { display: block; color: #6f6e79; font-size: 11px; font-weight: 650; }
.secret-row strong { display: block; margin-top: 5px; color: #e8e8ec; font-size: 14px; font-weight: 700; }

.secret-toggle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  flex: none;
  color: #a7a6b4;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

.secret-toggle:hover {
  color: #ececf3;
  background: rgba(255, 255, 255, 0.075);
}
.secret-actions { display: flex; gap: 12px; }

.generator-card {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 12px;
  padding: 18px 20px;
  margin-bottom: 26px;
}

.modal-generator {
  width: 100%;
  margin: 4px 0 13px;
  padding: 14px 16px;
}

.inline-generator {
  width: 100%;
  margin: 0;
}

.generated-password {
  color: #9696a0;
  font-size: 15px;
  letter-spacing: 0;
}

.strength {
  grid-column: 2 / 3;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.strength span {
  display: block;
  width: 90%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #6366f1);
}

.generator-card small { color: #6a6a74; font-size: 11px; font-weight: 650; }
.generator-card > strong { color: #34d399; font-size: 12px; }

.memo-card {
  width: min(920px, 100%);
  background: #0a0a0d;
}

.memo-top {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #101015;
}

.memo-top i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.memo-top i:nth-child(2) { background: #febc2e; }
.memo-top i:nth-child(3) { background: #28c840; }
.memo-top span { margin-left: 8px; color: #6a6a74; font-size: 11px; }

.memo-card pre {
  min-height: 190px;
  margin: 0;
  padding: 18px 20px;
  color: #c8c8d0;
  font-size: 12.5px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.editable-memo textarea {
  width: 100%;
  min-height: 250px;
  display: block;
  border: 0;
  background: transparent;
  color: #c8c8d0;
  padding: 18px 20px;
  outline: none;
  resize: vertical;
  font-size: 12.5px;
  line-height: 1.9;
}

.editable-memo textarea::placeholder {
  color: #55555f;
}

.credential-view > .credential-edit-surface .editable-memo textarea {
  min-height: 170px;
}

.secure-note {
  color: #6a6a74;
  font-size: 11.5px;
  line-height: 1.6;
}

.credential-unlock {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
}

.todo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.todo-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.todo-row strong,
.todo-list-item strong {
  color: #e8e8ec;
  font-size: 13.5px;
  font-weight: 700;
}

.todo-row small,
.todo-list-item small {
  color: #6a6a74;
  font-size: 12px;
  font-weight: 650;
}

.todo-list-item {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  contain: paint;
}

.todo-list-item:hover,
.todo-row:hover {
  background: rgba(255, 255, 255, 0.055);
}

.todo-list-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.09);
}

.todo-list-item > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.todo-check {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  border: 2px solid #34343e;
  background: transparent;
}

.todo-check.done {
  border-color: #6366f1;
  background: #6366f1;
}

.done-text {
  color: #55555f;
  text-decoration: line-through;
}

.kanban-page {
  min-height: 100%;
  padding: 26px 22px 30px;
}

.kanban-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.kanban-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.kanban-view-tabs button {
  min-height: 28px;
  padding: 0 13px;
  border-radius: 8px;
  background: transparent;
  color: #9696a0;
  font-size: 12px;
  font-weight: 700;
}

.kanban-view-tabs button.active {
  background: rgba(99, 102, 241, 0.22);
  color: #f0f0ff;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.24);
}

.kanban-summary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #8a8a94;
  font-size: 12px;
  font-weight: 750;
}

.kanban-summary strong {
  color: #34d399;
  font-weight: 800;
}

.kanban-progress-line {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  margin-bottom: 26px;
}

.kanban-progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c7ff5, #34d399);
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 14px;
  align-items: start;
}

.kanban-column {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  padding: 10px;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.kanban-column.kanban-drop-over {
  border-color: rgba(129, 140, 248, 0.38);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.12);
}

.kanban-column-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 4px 9px;
}

.kanban-column-head strong {
  color: #e8e8ec;
  font-size: 13px;
  font-weight: 750;
}

.kanban-column-head small {
  min-width: 22px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #8a8a94;
  font-size: 11px;
  font-weight: 800;
}

.kanban-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8a8a94;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.kanban-dot.primary { background: #7c7ff5; }
.kanban-dot.amber { background: #facc15; }
.kanban-dot.green { background: #34d399; }

.kanban-column-add {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: transparent;
  color: #8a8a94;
  font-size: 14px;
  font-weight: 800;
}

.kanban-column-add:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #d8d8de;
}

.kanban-cards {
  display: grid;
  gap: 9px;
}

.kanban-card {
  min-width: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.kanban-card[draggable="true"] {
  cursor: grab;
}

.kanban-card.dragging {
  opacity: 0.42;
  cursor: grabbing;
}

.kanban-card-body {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 13px;
  background: transparent;
  text-align: left;
}

.kanban-card-body:hover {
  background: rgba(255, 255, 255, 0.035);
}

.todo-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #8a8a94;
  font-size: 11px;
  font-weight: 800;
}

.todo-card-meta span,
.todo-card-meta time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.todo-card-meta time {
  max-width: 80px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 2px 8px;
  color: #a5a5af;
}

.priority-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #facc15;
}

.priority-dot.high { background: #ff6b6b; }
.priority-dot.low { background: #60a5fa; }

.kanban-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f0f0f4;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.kanban-card small {
  color: #7a7a86;
  font-size: 11.5px;
  font-weight: 650;
}

.todo-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.todo-progress::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.todo-progress i {
  grid-column: 1;
  grid-row: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c7ff5, #34d399);
}

.todo-progress em {
  color: #8a8a94;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.todo-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.todo-owner {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.todo-card-footer .link-button:first-of-type {
  margin-left: auto;
}

.todo-edit-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(99, 102, 241, 0.09);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.16);
}

.todo-card-edit-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.todo-card-edit-head .save-status {
  margin-left: auto;
}

.kanban-title-input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: transparent;
  color: #f0f0f4;
  padding: 3px 0 8px;
  outline: none;
  font-size: 15px;
  font-weight: 750;
}

.kanban-title-input::placeholder {
  color: #6a6a74;
}

.kanban-edit-grid {
  display: grid;
  gap: 8px;
}

.kanban-edit-grid label {
  display: grid;
  gap: 5px;
  color: #8a8a94;
  font-size: 11px;
  font-weight: 750;
}

.kanban-edit-grid .live-input,
.kanban-edit-grid .custom-select-button {
  min-height: 34px;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 12px;
}

.kanban-add-row,
.kanban-empty {
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #6a6a74;
  font-size: 12px;
  font-weight: 700;
}

.kanban-add-row:hover {
  border-color: rgba(129, 140, 248, 0.3);
  color: #a5adff;
}

.completed-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  color: #9696a0;
  font-size: 12.5px;
  font-weight: 600;
}

.statusbar .ok {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

.status-right {
  margin-left: auto;
  color: #6a6a74;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.field label {
  color: #8a8a94;
  font-size: 12px;
  font-weight: 650;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.empty {
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #6a6a74;
  text-align: center;
  font-size: 13px;
}

.action-empty p {
  margin: 0 0 12px;
}

.error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #e8e8ec;
  text-align: center;
}

.error h1 { margin: 0 0 8px; font-size: 44px; }
.error p { color: #9696a0; }

.skeleton {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 1.1s infinite;
}

@keyframes shimmer { to { transform: translateX(100%); } }

.loading-state {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #e8e8ec;
}

.loading-state .brand-mark {
  width: 48px;
  height: 48px;
  animation: floatLogo 1.6s ease-in-out infinite;
}

.loading-copy {
  display: grid;
  gap: 4px;
  text-align: center;
}

.loading-copy strong {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.loading-copy span {
  color: #6a6a74;
  font-size: 12px;
  font-weight: 750;
}

.loading-lines {
  width: min(280px, 42vw);
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.loading-lines i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.loading-lines i::after {
  content: "";
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #64ffda, #6366f1);
  animation: loadingLine 1.05s ease-in-out infinite;
}

.loading-lines i:nth-child(2)::after { animation-delay: 0.12s; }
.loading-lines i:nth-child(3)::after { animation-delay: 0.24s; }

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 0 rgba(100, 255, 218, 0)); }
  50% { transform: translateY(-4px); filter: drop-shadow(0 8px 22px rgba(100, 255, 218, 0.18)); }
}

@keyframes loadingLine {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(300%); }
}

.app-error {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.app-error .brand-mark {
  width: 50px;
  height: 50px;
}

.app-error h1 {
  margin: 4px 0 0;
  color: #f0f0f4;
  font-size: 52px;
  font-weight: 950;
}

.app-error p {
  margin: 0 0 8px;
  color: #8a8a94;
  font-size: 14px;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 40px));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #151722;
  color: #e8e8ec;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
}

.modal {
  width: min(640px, 100%);
  max-height: min(720px, 92vh);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 22, 0.98);
  box-shadow: var(--shadow);
}

.modal-head,
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-foot {
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 0;
}

.modal-body { padding: 18px; }
.section-title { color: #f0f0f4; font-size: 16px; font-weight: 700; }

.confirm-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 10px 6px 4px;
  text-align: center;
}

.confirm-box .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.confirm-box p {
  margin: 6px 0 0;
  color: #f0f0f4;
  font-size: 18px;
  font-weight: 700;
}

.confirm-box span {
  color: #8a8a94;
  font-size: 13px;
  font-weight: 650;
}

.modal-head .icon-button {
  font-size: 20px;
  line-height: 1;
}

.modal-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.modal-list-title {
  margin: 18px 0 4px;
  color: #8a8a94;
  font-size: 12px;
  font-weight: 650;
}

.modal-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.modal-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin-right: auto;
  color: #e8e8ec;
  font-size: 13px;
  font-weight: 700;
}

.modal-row small {
  overflow: hidden;
  color: #6a6a74;
  font-size: 11.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 230px minmax(0, 1fr); }
  .split-page { grid-template-columns: 270px minmax(0, 1fr); }
  .kanban-board { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .metric-grid,
  .spec-grid,
  .project-cols { grid-template-columns: 1fr; }
  .rich-editor { min-height: 420px; }
  .dashboard-wrap { width: 100%; }
  .inline-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { padding: 0; }
  .workspace {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .nav-button {
    justify-content: center;
    min-height: 38px;
    font-size: 12px;
    padding: 8px 4px;
  }
  .nav-button svg,
  .favorites,
  .sidebar-section-title,
  .profile-card { display: none; }
  .main { grid-template-rows: auto minmax(0, 1fr) 44px; }
  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 14px;
  }
  .topbar-actions {
    width: 100%;
    margin-left: 0;
  }
  .search { flex: 1; width: auto; }
  .dashboard-wrap,
  .kanban-page,
  .project-view,
  .credential-view,
  .credential-unlock,
  .note-view { padding: 16px; }
  .dashboard-actions { justify-content: flex-start; }
  .inline-panel,
  .inline-editor { padding: 14px; }
  .inline-panel-head,
  .detail-toolbar,
  .project-hero,
  .credential-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .crud-actions { justify-content: flex-start; }
  .inline-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
  .inline-form,
  .inline-row {
    grid-template-columns: 1fr;
  }
  .log-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }
  .live-log-row .live-date-input,
  .live-log-row .log-tag-input {
    width: 100%;
    min-width: 0;
    text-align: left;
  }
  .title-input { font-size: 22px; }
  .generator-card { grid-template-columns: 1fr; }
  .strength { grid-column: auto; width: 100%; }
  .modal-row { flex-wrap: wrap; }
  .split-page { grid-template-columns: 1fr; }
  .split-list { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .kanban-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .kanban-board {
    grid-template-columns: 1fr;
  }
  .calendar { overflow-x: auto; }
  .weekdays,
  .month-grid { min-width: 720px; }
}
