@import url("/fonts.css");
* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --bg: #080e17;
  --side: #0b121e;
  --card: #101b29;
  --card-hover: #162538;
  --line: #223043;
  --text: #edf2f9;
  --muted: #91a0b6;
  --blue: #72afff;
  --input: #0d1724;
  --accent: #4d8dfa;
  --shadow: 0 24px 80px #0006;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
button,
.card {
  transition:
    background 0.18s,
    border-color 0.18s;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.app {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 242px;
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 36px 20px 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand-dot {
  color: var(--blue);
  margin-left: -10px;
}
.sidebar .brand {
  padding-left: 9px;
}
.sidebar-caption {
  color: var(--muted);
  font-size: 10px;
  margin: 10px 0 38px 48px;
  white-space: nowrap;
}
.main-nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 13px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.nav-item:hover {
  background: var(--card);
}
.nav-item.active {
  color: var(--text);
  background: #1b2b43;
  box-shadow: inset 3px 0 #67b3ff;
}
.nav-item.active svg {
  color: #81bbff;
}
.nav-shortcut {
  margin-left: auto;
  opacity: 0.45;
  font-size: 10px;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  background: var(--card);
  padding: 2px 6px;
  border-radius: 5px;
}
.sidebar-label {
  font-size: 10px;
  color: #73849b;
  margin: 35px 14px 14px;
}
.project-nav {
  display: grid;
  gap: 3px;
}
.project-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  border-radius: 8px;
}
.project-item:hover,
.project-item.active {
  background: var(--card);
  color: var(--text);
}
.project-dot {
  width: 7px;
  height: 7px;
  background: #90a5ff;
  border-radius: 2px;
}
.project-item:nth-child(2) .project-dot {
  background: #50c6b0;
}
.project-item:nth-child(3) .project-dot {
  background: #d3a46b;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.private-note {
  margin: 20px 11px 23px;
  display: flex;
  gap: 11px;
  align-items: center;
  color: #9ab8af;
  font-size: 11px;
}
.private-note svg {
  width: 18px;
  color: #73b29f;
}
.private-note small {
  display: block;
  color: #748598;
  font-size: 10px;
  margin-top: 5px;
}
.profile {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 21px 0;
  margin-top: 16px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #28394f;
  border: 1px solid #3a4b61;
  border-radius: 50%;
  font-size: 11px;
}
.profile strong {
  font-size: 11px;
  font-weight: 600;
}
.profile small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.profile > .icon-btn {
  margin-left: auto;
}
.main {
  margin-left: 242px;
}
.topbar {
  height: 89px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb strong {
  color: var(--text);
  font-weight: 500;
}
.breadcrumb > span {
  color: #526078;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.access-label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.access-label svg {
  width: 13px;
  height: 13px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 7px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--card-hover);
  color: var(--text);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}
.topbar-divider {
  height: 22px;
  width: 1px;
  background: var(--line);
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 17px;
  font-weight: 650;
  font-size: 11px;
  min-height: 40px;
}
.primary {
  background: #558ef4;
  color: #fff;
  border: 1px solid #78a8ff;
  box-shadow: 0 3px 14px #2d6bd320;
}
.primary:hover {
  background: #6b9eff;
}
.primary svg {
  width: 16px;
  height: 16px;
}
.secondary {
  border: 1px solid var(--line);
  background: var(--card);
}
.secondary:hover {
  background: var(--card-hover);
}
.danger {
  background: #9c3b45;
  color: white;
}
.content {
  max-width: 1600px;
  margin: auto;
  padding: 0 44px;
}
.hero {
  position: relative;
  min-height: 312px;
  margin: 0 -44px;
  padding: 48px 44px 38px;
  overflow: hidden;
}
.mountains {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 2%, #080e17d9 29%, #080e1730 70%),
    url("/mountains.svg") right 42% / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
}
.mountains:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg), transparent 45%);
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.greeting {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: #a5b4c9;
  margin-bottom: 16px;
}
.greeting > span {
  color: #d9b86a;
  font-size: 17px;
}
.hero h1 {
  font-size: clamp(30px, 3.1vw, 47px);
  font-weight: 650;
  letter-spacing: -1.8px;
  line-height: 1.18;
}
.hero p {
  font-size: 11px;
  color: #9cacc3;
  margin-top: 17px;
}
.hero-meta {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 9px;
  color: #75889f;
  margin-top: 25px;
}
.hero-meta > span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #77bfa6;
  box-shadow: 0 0 8px #62c69e55;
}
.meta-divider {
  height: 10px;
  width: 1px;
  background: #344252;
}
.hero-note {
  position: absolute;
  right: 46px;
  bottom: 73px;
  font-size: 11px;
  line-height: 1.9;
  color: #c2ceda;
  letter-spacing: 0.1px;
}
.note-line {
  display: block;
  width: 25px;
  height: 2px;
  background: #8badca;
  margin-bottom: 13px;
}
.note-coordinate {
  display: block;
  font-size: 7px;
  letter-spacing: 2px;
  color: #7a8fa3;
  margin-top: 13px;
}
.workspace {
  padding-top: 11px;
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.workspace h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace h2 > span {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  padding: 2px 6px;
  font-weight: 500;
  letter-spacing: 0;
}
.workspace-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.view-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.view-switch .icon-btn {
  width: 29px;
  height: 26px;
}
.view-switch .selected {
  background: #24344a;
  color: #c4d6ec;
}
.filterbar {
  display: flex;
  gap: 12px;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  flex: 1;
  height: 44px;
  color: var(--muted);
}
.searchbox svg {
  width: 17px;
  height: 17px;
}
.searchbox input {
  background: none;
  border: 0;
  color: var(--text);
  min-width: 0;
  width: 100%;
  outline: none;
  font-size: 11px;
  height: 100%;
}
.searchbox:focus-within {
  border-color: var(--blue);
}
input::placeholder {
  color: #78889d;
}
.searchbox kbd {
  white-space: nowrap;
  font:
    9px Manrope,
    Arial;
  border: 1px solid #2b394c;
  padding: 3px 5px;
  border-radius: 4px;
  color: #8b9aaf;
}
.filterbar > select {
  width: 157px;
}
select {
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
}
.category-row {
  display: flex;
  gap: 7px;
  margin: 18px 0 27px;
  overflow: auto;
  scrollbar-width: none;
}
.category {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 10px;
  border-radius: 7px;
  white-space: nowrap;
}
.category span {
  font-size: 9px;
  opacity: 0.7;
}
.category:hover {
  color: var(--text);
  background: var(--card);
}
.category.active {
  background: #192b43;
  color: #9ac7ff;
  border-color: #2e4869;
}
.group {
  margin-bottom: 26px;
}
.group-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.group-title svg {
  color: #8fa5bd;
  width: 15px;
  height: 15px;
}
.group-title h3 {
  font-size: 12px;
  font-weight: 600;
}
.group-title .group-count {
  font-size: 9px;
  color: #6e819b;
}
.group-title .group-line {
  height: 1px;
  background: var(--line);
  opacity: 0.55;
  flex: 1;
  margin-left: 7px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.card {
  position: relative;
  min-width: 0;
  background: linear-gradient(110deg, #ffffff02, transparent), var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.card:hover {
  border-color: #3d5978;
  background: var(--card-hover);
}
.card-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 21px 15px 16px;
}
.project-icon {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 750;
  border-radius: 10px;
  background: #ffffff06;
  color: var(--blue);
}
.project-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.project-icon svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.7;
}
.card-text {
  min-width: 0;
  flex: 1;
}
.card-name {
  display: block;
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-desc {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.external {
  color: #687e97;
  position: absolute;
  right: 12px;
  top: 12px;
}
.external svg {
  width: 12px;
  height: 12px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 9px 16px;
}
.project-tag {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 8px;
  color: #8598b0;
}
.project-tag:before {
  content: "";
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #819abb;
}
.favorite-btn {
  width: 27px;
  height: 24px;
}
.favorite-btn svg {
  width: 13px;
  height: 13px;
}
.favorite-btn.is-favorite {
  color: #c9b482;
}
.favorite-btn.is-favorite svg {
  fill: #c9b48220;
}
.edit-actions {
  display: flex;
  margin-left: auto;
}
.edit-actions .icon-btn {
  width: 26px;
  height: 24px;
}
.edit-actions svg {
  width: 13px;
  height: 13px;
}
.list-mode .cards {
  grid-template-columns: 1fr;
}
.list-mode .card {
  display: flex;
  align-items: center;
}
.list-mode .card-link {
  flex: 1;
  padding: 13px 16px;
}
.list-mode .card-bottom {
  padding: 0 30px 0 0;
  gap: 22px;
}
.list-mode .external {
  right: 10px;
  top: 30px;
}
.empty-state {
  text-align: center;
  padding: 55px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.empty-state > svg {
  margin: 0 auto 15px;
  width: 30px;
  height: 30px;
  color: var(--muted);
}
.empty-state h3 {
  font-size: 17px;
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 18px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #718299;
  margin-top: 28px;
}
footer > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
footer img {
  opacity: 0.55;
}
.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6d8ca9;
}
.mobile-brand,
.mobile-nav {
  display: none;
}
.settings-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  background: var(--card);
}
.settings-panel > p {
  color: var(--muted);
  margin: 10px 0 24px;
  font-size: 12px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  gap: 20px;
}
.settings-row strong {
  font-size: 12px;
}
.settings-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.toggle {
  font-size: 12px;
  white-space: nowrap;
}
dialog {
  background: var(--side);
  color: var(--text);
  border: 1px solid #34455e;
  border-radius: 18px;
  width: min(480px, calc(100% - 28px));
  padding: 29px;
  box-shadow: var(--shadow);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #020811be;
  backdrop-filter: blur(7px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  color: var(--blue);
}
.dialog-heading h2 {
  font-size: 24px;
  margin-top: 5px;
  letter-spacing: -0.7px;
}
form label:not(.check-label) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 17px;
  color: var(--muted);
}
form input:not([type="checkbox"]),
form select {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  min-height: 44px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check-label {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-label input {
  accent-color: var(--accent);
}
.field-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin: 9px 0 14px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.error {
  font-size: 11px;
  color: #ffa6a6;
  line-height: 1.6;
  margin: 12px 0;
}
.error:empty {
  display: none;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #253b51;
  border: 1px solid #446582;
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 12px;
  max-width: 90vw;
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.login-art {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px 55px;
  justify-content: space-between;
  background:
    linear-gradient(0deg, #080e17 0%, #080e1722 60%),
    url("/mountains.svg") center/cover no-repeat;
  min-height: 100dvh;
}
.login-art:before {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, #080e1770, transparent);
}
.login-art > * {
  position: relative;
}
.login-intro h1 {
  font-size: clamp(33px, 3.7vw, 58px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 20px 0;
}
.login-intro p {
  font-size: 13px;
  color: #a8b9cc;
  line-height: 1.9;
}
.login-caption {
  font-size: 10px;
  color: var(--muted);
}
.login-side {
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--side);
}
.login-form {
  width: 100%;
  max-width: 330px;
}
.secure-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #1e3048;
  border: 1px solid #334963;
  border-radius: 13px;
  color: #8bbfff;
  margin-bottom: 30px;
}
.login-form h2 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.25;
  margin: 10px 0 14px;
}
.login-form > p:not(.error) {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 30px;
}
.wide {
  width: 100%;
  margin-top: 7px;
  font-size: 12px;
  min-height: 45px;
  justify-content: space-between;
}
.login-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 24px;
}
.login-note svg {
  width: 13px;
  height: 13px;
}
.loading {
  height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
body.light {
  color-scheme: light;
  --bg: #f3f6fa;
  --side: #fafcff;
  --card: #fff;
  --card-hover: #eaf1fa;
  --line: #dbe3ee;
  --text: #1d2b40;
  --muted: #63738a;
  --input: #fff;
  --blue: #2e6dce;
}
.light .mountains {
  opacity: 0.17;
  background-image:
    linear-gradient(90deg, var(--bg), transparent), url("/mountains.svg");
}
.light .hero h1,
.light .greeting,
.light .hero p,
.light .hero-note {
  color: #273c55;
}
.light .nav-item.active,
.light .category.active,
.light .view-switch .selected {
  background: #e4eefa;
  color: #2c65b7;
}
.light .avatar {
  background: #e2eaf5;
}
.light .login-art {
  color: #edf2f9;
}
.light .project-icon {
  background: #101b2908;
}
.light .card-desc {
  color: #64758b;
}
.light .card-name {
  color: #1d2b40;
}
@media (min-width: 1500px) {
  .content {
    padding: 0 60px;
  }
  .hero {
    margin: 0 -60px;
    padding-left: 60px;
  }
  .topbar {
    padding: 0 60px;
  }
  .hero {
    min-height: 350px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .card-link {
    padding: 24px 20px 20px;
  }
  .card-name {
    font-size: 14px;
  }
  .card-desc {
    font-size: 11px;
  }
  .card-bottom {
    padding: 0 18px 12px;
  }
  .project-tag {
    font-size: 9px;
  }
  .group {
    margin-bottom: 30px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 214px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .main {
    margin-left: 214px;
  }
  .content {
    padding: 0 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .hero {
    margin: 0 -28px;
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero-note {
    display: none;
  }
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .access-label {
    display: none;
  }
  .sidebar-caption {
    font-size: 9px;
  }
  .card-link {
    gap: 9px;
    padding-left: 12px;
  }
  .category {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 190px;
  }
  .main {
    margin-left: 190px;
  }
  .sidebar .brand {
    font-size: 20px;
    padding-left: 4px;
    gap: 7px;
  }
  .sidebar-caption {
    font-size: 8px;
    margin-left: 40px;
  }
  .nav-shortcut {
    display: none;
  }
  .profile small {
    font-size: 8px;
  }
  .profile {
    gap: 7px;
  }
  .profile .icon-btn {
    width: 24px;
  }
  .hero {
    min-height: 280px;
    padding-top: 35px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content {
    padding: 0 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .hero {
    margin: 0 -24px;
    padding-left: 24px;
  }
  .topbar-actions {
    gap: 9px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .topbar-divider {
    display: none;
  }
  .topbar .primary {
    padding: 10px;
    font-size: 10px;
  }
  .category-row {
    margin-bottom: 24px;
  }
  footer > span:last-child {
    display: none;
  }
  .login-art {
    padding: 35px;
  }
}
@media (max-width: 640px) {
  .sidebar,
  .breadcrumb,
  .topbar-divider,
  .topbar .add-link {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 76px;
    padding: 0 21px;
    border-bottom: 0;
  }
  .mobile-brand {
    display: flex;
    font-size: 20px;
  }
  .topbar-actions {
    gap: 0;
  }
  .content {
    padding: 0 20px;
  }
  .hero {
    margin: 0 -20px;
    min-height: 250px;
    padding: 24px 20px 25px;
  }
  .hero h1 {
    font-size: 33px;
    letter-spacing: -1.3px;
  }
  .greeting {
    font-size: 10px;
    margin-bottom: 15px;
  }
  .hero p {
    font-size: 11px;
    line-height: 1.7;
    max-width: 265px;
    margin-top: 13px;
  }
  .hero-meta {
    margin-top: 20px;
    font-size: 8px;
    gap: 9px;
  }
  .mountains {
    background-position: 67% center;
    background-size: auto 310px;
    opacity: 0.6;
    background-image:
      linear-gradient(90deg, var(--bg), #080e1760 60%), url("/mountains.svg");
  }
  .workspace {
    padding-top: 15px;
  }
  .workspace-heading {
    margin-bottom: 19px;
  }
  .workspace h2 {
    font-size: 18px;
  }
  .workspace-heading p {
    font-size: 10px;
  }
  .filterbar {
    gap: 8px;
  }
  .filterbar > select {
    width: 112px;
    font-size: 10px;
    padding: 8px;
  }
  .searchbox {
    padding: 0 10px;
    gap: 7px;
    height: 43px;
  }
  .searchbox input {
    font-size: 10px;
  }
  .searchbox kbd {
    display: none;
  }
  .category-row {
    margin: 15px -20px 23px;
    padding: 0 20px;
    gap: 5px;
  }
  .category {
    font-size: 10px;
    padding: 8px 10px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .card-link {
    padding: 19px 11px 14px;
    gap: 9px;
    align-items: flex-start;
    flex-direction: column;
  }
  .project-icon {
    width: 34px;
    height: 34px;
  }
  .project-icon img {
    width: 28px;
    height: 28px;
  }
  .card-text {
    max-width: 100%;
  }
  .card-name {
    font-size: 12px;
  }
  .card-desc {
    font-size: 9px;
  }
  .card-bottom {
    padding: 0 9px 8px 11px;
  }
  .project-tag {
    font-size: 8px;
  }
  .group {
    margin-bottom: 23px;
  }
  .group-title {
    margin-bottom: 11px;
  }
  .group-title h3 {
    font-size: 11px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: #0c1523f2;
    border-top: 1px solid #29384c;
    backdrop-filter: blur(18px);
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-nav button {
    font-size: 9px;
    color: #8a9bb2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 62px;
    padding: 5px;
    border-radius: 9px;
  }
  .mobile-nav .active {
    color: #9ecbff;
    background: #1c2e46;
  }
  .mobile-nav svg {
    width: 19px;
    height: 19px;
  }
  .light .mobile-nav {
    background: #fafcffed;
    border-color: var(--line);
  }
  .light .mobile-nav .active {
    background: #e5efff;
    color: #2865b8;
  }
  footer {
    margin-bottom: 76px;
    font-size: 9px;
    padding-top: 18px;
  }
  .list-mode .card-link {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
  }
  .list-mode .card-bottom {
    padding-right: 13px;
    gap: 0;
  }
  .list-mode .project-tag {
    display: none;
  }
  .list-mode .external {
    display: none;
  }
  .toast {
    bottom: 90px;
    width: max-content;
    max-width: 90vw;
  }
  .settings-panel {
    padding: 17px;
  }
  .settings-row {
    gap: 10px;
  }
  .settings-row .secondary {
    font-size: 10px;
    padding: 10px;
  }
  .settings-row p {
    line-height: 1.7;
  }
  .login-screen {
    display: block;
  }
  .login-art {
    min-height: unset;
    padding: 25px;
    background: var(--bg);
  }
  .login-intro,
  .login-caption {
    display: none;
  }
  .login-side {
    padding: 35px 28px 60px;
    min-height: calc(100dvh - 80px);
  }
  .login-form {
    max-width: 370px;
  }
  .login-form h2 {
    font-size: 33px;
  }
  dialog {
    padding: 23px;
  }
  .dialog-heading h2 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 901px) {
  .nav-item,
  .project-item {
    font-size: 13px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .hero p {
    font-size: 13px;
  }
  .greeting {
    font-size: 12px;
  }
  .workspace-heading p {
    font-size: 12px;
  }
  .searchbox input,
  .filterbar > select {
    font-size: 12px;
  }
  .category {
    font-size: 11px;
  }
  .group-title h3 {
    font-size: 13px;
  }
  .card-name {
    font-size: 14px;
  }
  .card-desc {
    font-size: 11px;
  }
  .project-tag {
    font-size: 9px;
  }
  .hero-meta {
    font-size: 10px;
  }
  .primary {
    font-size: 12px;
  }
}
/* Catalog and account editors inherit the existing portal palette and typography. */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  margin: 18px 0 6px;
}
.login-divider:before,
.login-divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
#passkey-login {
  justify-content: center;
}
#passkey-support {
  margin: 12px 0 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.section-heading h3 {
  font-size: 16px;
}
.section-heading p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 7px;
}
.passkey-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 4px;
}
.passkey-section .field-note {
  font-size: 11px;
}
.passkey-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.passkey-row > svg {
  color: var(--blue);
}
.passkey-copy {
  flex: 1;
  min-width: 0;
}
.passkey-copy strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.passkey-copy p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.row-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.row-actions .icon-btn {
  width: 40px;
  height: 40px;
}
.passkey-empty {
  padding: 20px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
#passkey-form > .field-note {
  margin-bottom: 23px;
  font-size: 12px;
}
#passkey-form input {
  font-size: 14px;
}
#create-project {
  margin-left: auto;
  margin-right: 12px;
  white-space: nowrap;
}
.project-manager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.project-manager-copy {
  min-width: 0;
}
.project-title {
  padding: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  text-align: left;
  overflow-wrap: anywhere;
}
.project-title:hover {
  color: var(--blue);
}
.project-manager-copy p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.project-manager-copy small {
  font-size: 11px;
  color: var(--muted);
}
#projects-panel {
  margin-bottom: 32px;
}
#project-delete-dialog h2 {
  font-size: 23px;
}
#project-delete-description {
  font-size: 13px;
  margin: 14px 0 24px;
}
#project-delete-warning {
  font-size: 12px;
}
.icon-editor {
  padding: 20px 0 10px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.icon-editor-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
}
.icon-editor h3 {
  font-size: 14px;
}
.icon-editor .field-note {
  margin: 7px 0;
  font-size: 11px;
}
#icon-preview {
  width: 48px;
  height: 48px;
  background: var(--card-hover);
}
#icon-preview img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
#icon-file {
  padding: 10px;
  line-height: 1.7;
}
input[type="file"]::file-selector-button {
  background: var(--card-hover);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 9px;
  margin-right: 10px;
  font: inherit;
  cursor: pointer;
}
.text-danger {
  margin-right: auto;
  color: #f09fa7;
  font-size: 12px;
  padding: 10px 0;
}
.text-danger:hover {
  color: #ffcbd0;
}
#link-form > label,
#project-form > label,
#passkey-form > label {
  font-size: 12px;
}
#link-form input:not([type="checkbox"]),
#link-form select,
#project-form input {
  font-size: 14px;
}
#link-dialog {
  width: min(530px, calc(100% - 28px));
}
.card .edit-actions .icon-btn,
.card .favorite-btn {
  width: 32px;
  height: 32px;
}
.card .edit-actions svg,
.card .favorite-btn svg {
  width: 15px;
  height: 15px;
}
.card-link {
  padding-bottom: 10px;
}
.project-item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-tag {
  max-width: calc(100% - 70px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-item .project-dot {
  flex-shrink: 0;
}
.light .project-icon:has(img[src$="notion.svg"]) {
  background: #263648;
}
.light .text-danger {
  color: #a32e40;
}
#project-form .dialog-heading h2,
#passkey-form .dialog-heading h2 {
  margin-top: 0;
}
.workspace-heading > div:first-child {
  min-width: 0;
}
.workspace h2 {
  overflow-wrap: anywhere;
}
button,
input,
select {
  scroll-margin: 20px;
}
input {
  caret-color: var(--blue);
}
::selection {
  color: var(--text);
  background: #426595;
}
#passkey-list,
#projects-panel {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .mobile-nav {
    padding-left: 5px;
    padding-right: 5px;
  }
  .mobile-nav button {
    min-width: 55px;
  }
  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-heading > div {
    flex: 1;
    min-width: 190px;
  }
  .section-heading .secondary {
    min-height: 40px;
  }
  .settings-panel {
    padding: 18px;
  }
  #create-project {
    font-size: 10px;
    padding: 10px;
    margin-right: 0;
    gap: 5px;
  }
  .workspace-heading:has(#create-project:not([hidden])) .view-switch {
    display: none;
  }
  .workspace-heading:has(#create-project:not([hidden])) {
    gap: 10px;
  }
  .workspace-heading:has(#create-project:not([hidden])) h2 {
    font-size: 17px;
  }
  .project-manager-row {
    padding: 17px 0;
  }
  .project-manager-copy p {
    font-size: 11px;
  }
  .project-title {
    font-size: 14px;
  }
  .card .edit-actions .icon-btn,
  .card .favorite-btn {
    width: 34px;
    height: 34px;
  }
  .card-bottom {
    padding-right: 5px;
  }
  .project-tag {
    font-size: 8px;
  }
  .passkey-row {
    gap: 9px;
  }
  .passkey-copy strong {
    font-size: 12px;
  }
  .passkey-copy p {
    font-size: 10px;
  }
  .row-actions {
    gap: 0;
  }
  .row-actions .icon-btn {
    width: 36px;
    height: 40px;
  }
  #link-form input:not([type="checkbox"]),
  #link-form select,
  #project-form input,
  #passkey-form input {
    font-size: 16px;
  }
  .form-columns {
    grid-template-columns: 1fr;
  }
  #link-dialog {
    max-height: 92dvh;
  }
  #link-form .dialog-actions {
    position: sticky;
    bottom: -23px;
    background: var(--side);
    padding: 13px 0;
    margin-bottom: -5px;
  }
  .dialog-heading h2 {
    font-size: 22px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .project-tag {
    max-width: calc(100% - 68px);
  }
}
.primary {
  background: #356dd4;
  border-color: #6b9df2;
  box-shadow: none;
}
.primary:hover {
  background: #2c5fc0;
}
.mobile-nav button {
  font-size: 11px;
}
.sidebar .project-nav {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.sidebar-bottom {
  flex-shrink: 0;
}
.sidebar-label {
  flex-shrink: 0;
}
.passkey-section .secondary,
.settings-row .secondary,
#create-project {
  font-size: 12px;
}
.settings-row p {
  font-size: 12px;
  line-height: 1.7;
}
.dialog-actions .primary,
.dialog-actions .secondary,
.dialog-actions .danger {
  font-size: 12px;
}
.settings-panel {
  margin-top: 15px;
}
.passkey-copy p {
  font-size: 11px;
}
.project-manager-copy p {
  font-size: 12px;
}
@media (max-width: 640px) {
  .workspace-heading:has(#create-project:not([hidden])) {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .workspace-heading:has(#create-project:not([hidden])) #create-project {
    margin-top: 3px;
  }
  .project-tag {
    font-size: 9px;
  }
  .mobile-nav {
    gap: 0;
  }
  .mobile-nav button {
    min-width: 0;
    flex: 1;
    font-size: 10px;
  }
}
.workspace:has(#projects-panel:not([hidden])) {
  padding-top: 30px;
}
.workspace:has(#projects-panel:not([hidden])) .filterbar {
  margin-bottom: 10px;
}
