/* src/style.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  --editor-bg: #fff;
  --preview-scale: 0.85;
}
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  background: #fff;
  color: #000;
}
.suggest-dropdown {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  min-width: 220px;
  max-width: 360px;
  max-height: 260px;
  overflow-y: auto;
}
.suggest-dropdown__item {
  padding: 8px 12px;
  cursor: pointer;
  overflow: hidden;
}
.suggest-dropdown__item:hover,
.suggest-dropdown__item--active {
  background: #f0f4ff;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}
.topbar__home,
.topbar__plus {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 4px;
}
.topbar__home:hover,
.topbar__plus:hover {
  background: #f0f0f0;
}
.topbar__search-wrap {
  position: relative;
  flex: 1;
  max-width: 400px;
}
.topbar__search {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 20;
}
.search-dropdown__item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  cursor: pointer;
  gap: 2px;
}
.search-dropdown__item:not(:last-child) {
  border-bottom: 1px solid #eee;
}
.search-dropdown__item:hover,
.search-dropdown__item--active {
  background: #f0f4ff;
}
.search-dropdown__title {
  font-weight: 600;
  font-size: 14px;
}
.search-dropdown__preview {
  font-size: 12px;
  color: #666;
}
.main {
  padding: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.empty-state {
  color: #888;
  margin-top: 48px;
  text-align: center;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-loading {
  color: #888;
}
.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f3f3;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 13px;
}
.badge__key {
  cursor: pointer;
  font-weight: 600;
}
.badge__type {
  cursor: pointer;
  color: #888;
  font-size: 11px;
}
.badge__value {
  cursor: pointer;
  min-width: 40px;
  display: inline-block;
}
.badge__value--empty {
  color: #bbb;
  font-style: italic;
}
.badge__delete {
  cursor: pointer;
  color: #aaa;
  margin-left: 2px;
}
.badge__delete:hover {
  color: #e00;
}
.badge__key-input,
.badge__value-input {
  border: none;
  background: transparent;
  font: inherit;
  outline: 1px solid #aaa;
  border-radius: 3px;
  padding: 0 4px;
  width: auto;
  min-width: 1ch;
}
.badge__type-dropdown {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px;
  position: absolute;
  z-index: 15;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.badge__type-option {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}
.badge__type-option:hover,
.badge__type-option--active {
  background: #e8e8e8;
}
.metadata__add {
  border: 1px dashed #ccc;
  background: none;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #888;
}
.metadata__add:hover {
  border-color: #888;
  color: #333;
}
.editor-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: #fafafa;
}
.editor-toolbar__btn {
  border: 1px solid transparent;
  background: none;
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 13px;
  cursor: pointer;
}
.editor-toolbar__btn:hover {
  background: #ebebeb;
  border-color: #ddd;
}
.editor-container > .ProseMirror {
  background: var(--editor-bg);
  border: 1px solid #e0e0e0;
  border-radius: 0 0 4px 4px;
  padding: 12px 16px;
  min-height: 200px;
  outline: none;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.editor-container > .ProseMirror:focus {
  border-color: #888;
}
.ProseMirror h1 {
  font-size: 1.6em;
  margin: .6em 0 .3em;
}
.ProseMirror h2 {
  font-size: 1.3em;
  margin: .6em 0 .3em;
}
.ProseMirror h3 {
  font-size: 1.1em;
  margin: .5em 0 .25em;
}
.ProseMirror h4 {
  font-size: 1em;
  margin: .5em 0 .25em;
}
.ProseMirror pre {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 10px 14px;
  overflow-x: auto;
}
.ProseMirror code {
  background: #f0f0f0;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: .9em;
}
.ProseMirror pre code {
  background: none;
  padding: 0;
}
.ProseMirror ul,
.ProseMirror ol {
  padding-left: 24px;
}
.ProseMirror li[data-checked=true] {
  text-decoration: line-through;
  color: #888;
}
.ProseMirror li[data-checked] {
  list-style: none;
  cursor: pointer;
}
.ProseMirror li[data-checked]::before {
  content: "\2610";
  margin-right: 6px;
}
.ProseMirror li[data-checked=true]::before {
  content: "\2611";
}
.card-link {
  background: #e8f0fe;
  border-radius: 3px;
  padding: 1px 5px;
  color: #1a56db;
  text-decoration: none;
  font-size: .9em;
  cursor: pointer;
}
.card-link:hover {
  background: #c7d9fc;
}
.card-link--inline {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.card-link__label {
  cursor: pointer;
}
.card-link__label .card-preview {
  height: auto !important;
  -webkit-mask-image: none;
  mask-image: none;
  white-space: nowrap;
  color: inherit;
  font-size: inherit;
}
.card-link__label .card-preview > * {
  margin: 0;
}
.list-item--single .card-preview {
  -webkit-mask-image: none;
  mask-image: none;
  white-space: nowrap;
}
.list-item--single .card-preview > * {
  margin: 0;
}
.card-link__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  font-size: 9px;
  line-height: 1;
  color: #555;
  vertical-align: middle;
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s;
}
.card-link__arrow:hover {
  background: #f3f3f3;
  border-color: #ccc;
}
.card-link-box {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin: 2px 0;
  padding: 6px 8px;
  border: 1px solid #d6e0f5;
  border-radius: 6px;
  background: #f6f9ff;
  cursor: pointer;
}
.card-link-box:hover {
  border-color: #9fb8ec;
}
.card-link-box--full {
  display: block;
}
.card-link-box__body {
  pointer-events: none;
  overflow: hidden;
}
.card-link-box .card-link__arrow {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
}
.link-mode-menu {
  position: fixed;
  z-index: 1100;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 110px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.link-mode-menu__item {
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.link-mode-menu__item:hover,
.link-mode-menu__item--active {
  background: #f0f4ff;
}
.view-config {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.view-config__chip {
  background: #eef;
  border: 1px solid #ccd;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 12px;
  color: #336;
}
.view-list {
  margin-top: 8px;
}
.view-list__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list-item {
  padding: 0;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}
.list-item:hover {
  background: #fafafa;
}
.list-item--preview {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.list-item__title {
  font-weight: 600;
}
.list-item__preview {
  font-size: 13px;
  color: #666;
}
.list-item--full .list-item__content {
  font-size: 13px;
  color: #444;
  margin-top: 4px;
}
.view-kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 8px;
}
.kanban-col {
  min-width: 200px;
  flex: 0 0 220px;
  background: #f7f7f7;
  border-radius: 6px;
  padding: 10px;
}
.kanban-col__title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
  color: #555;
}
.kanban-col__cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 40px;
}
.kanban-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  cursor: grab;
}
.kanban-card:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}
.kanban-card__title {
  font-weight: 600;
  font-size: 13px;
}
.kanban-card__preview {
  font-size: 12px;
  color: #888;
}
.view-network {
  position: relative;
  height: 480px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
  background:
    radial-gradient(
      circle,
      #e8e8e8 1px,
      transparent 1px) 0 0 / 22px 22px,
    #fafafa;
  cursor: grab;
}
.view-network:active {
  cursor: grabbing;
}
.network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.network-edges {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
}
.network-edges line {
  stroke: #b9c2cc;
  stroke-width: 1.5px;
}
.network-edges line.network-edges__hub {
  stroke-width: 1.5px;
  stroke-dasharray: 4 4;
  opacity: 0.7;
}
.network-hub {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 8px;
  border: 2px solid;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.network-node {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 0;
  cursor: pointer;
  transition: box-shadow 0.12s, border-color 0.12s;
}
.network-node:hover {
  border-color: #4a90e2;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25);
}
.network-node .card-preview {
  pointer-events: none;
}
.network-node__group {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  border-bottom-right-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.network-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.network-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  user-select: none;
}
.network-btn:hover {
  background: #f0f0f0;
  border-color: #4a90e2;
}
.card-preview-host {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--editor-bg);
  pointer-events: none;
}
.card-preview-editor {
  width: calc(100% / var(--preview-scale));
  height: calc(100% / var(--preview-scale));
  overflow: hidden;
  background: var(--editor-bg);
  transform: scale(var(--preview-scale));
  transform-origin: 0 0;
}
.card-preview-editor .ProseMirror {
  background: var(--editor-bg);
  padding: 12px 16px;
  min-height: 0;
  outline: none;
  font-size: 13px;
}
.card-preview-editor .ProseMirror > :first-child {
  margin-top: 0;
}
.card-link-ellipsis {
  color: #999;
  padding: 0 2px;
}
.preview-ellipsis {
  color: #999;
  line-height: 1;
  padding: 2px 16px 4px;
  font-weight: 700;
}
.view-block-ellipsis {
  color: #999;
  text-align: center;
  padding: 6px;
  border: 1px dashed #ddd;
  border-radius: 4px;
  font-size: 12px;
}
.suggest-dropdown__item {
  height: 64px;
}
.search-dropdown__item {
  display: block;
  height: 96px;
}
.modal__tile {
  height: 140px;
}
.modal__tile.modal__tile--preview {
  display: block;
  padding: 0;
  text-align: left;
  overflow: hidden;
}
.modal__tile.modal__tile--blank {
  height: auto;
  flex-direction: row;
  justify-content: center;
  padding: 14px;
}
.list-item--single {
  height: 26px;
}
.list-item--preview {
  display: block;
  height: 92px;
}
.list-item--full {
  height: 280px;
}
.kanban-card {
  display: block;
  height: 84px;
}
.card-link-box--preview {
  display: block;
}
.card-link-box--preview .card-link-box__body {
  width: 100%;
  height: 90px;
}
.card-link-box--full .card-link-box__body {
  width: 100%;
  height: auto;
}
.card-link-box--full .card-preview-editor {
  --preview-scale: 1;
  height: auto;
}
.card-link-popover {
  width: 340px;
  max-height: 240px;
  overflow: hidden;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  width: min(560px, 90vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 14px;
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal__title {
  margin: 0;
  font-size: 17px;
}
.modal__close {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}
.modal__close:hover {
  color: #000;
}
.modal__search {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
}
.modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 60vh;
}
.modal__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #999;
  text-align: center;
}
.modal__tile {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.modal__tile:hover {
  background: #f5f5f5;
  border-color: #aaa;
}
.modal__tile--blank {
  border-style: dashed;
}
.modal__tile-icon {
  font-size: 24px;
  color: #aaa;
}
.modal__tile-label {
  font-size: 13px;
  font-weight: 600;
}
.modal__tile-preview {
  font-size: 11px;
  color: #999;
}
.vb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.vb-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  width: min(420px, 90vw);
  padding: 20px;
}
.vb-dialog__title {
  margin: 0 0 16px;
  font-size: 16px;
}
.vb-dialog__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vb-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
.vb-label--disabled {
  opacity: 0.45;
}
.vb-hint {
  font-weight: 400;
  color: #999;
}
.vb-input {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
}
.vb-textarea {
  resize: vertical;
  font-family: inherit;
  min-height: 56px;
}
.vb-label--inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.vb-checkbox {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}
.vb-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.vb-btn {
  padding: 6px 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 13px;
}
.vb-btn--cancel {
  background: #fff;
}
.vb-btn--cancel:hover {
  background: #f5f5f5;
}
.vb-btn--insert {
  background: #1a56db;
  color: #fff;
  border-color: #1a56db;
}
.vb-btn--insert:hover {
  background: #1446b8;
}
.view-block-container {
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  margin: 10px 0;
  overflow: hidden;
  padding: 8px;
  background: #fafafa;
  position: relative;
}
.view-block-edit-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #555;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}
.view-block-container:hover .view-block-edit-btn {
  opacity: 1;
}
.view-block-edit-btn:hover {
  background: #f0f0f0;
  color: #1a56db;
  border-color: #1a56db;
}
div[data-view-block] {
  border: 1px dashed #aaa;
  border-radius: 4px;
  padding: 6px 12px;
  color: #888;
  font-size: 13px;
  margin: 6px 0;
}
div[data-view-block]::before {
  content: "\229e  View: " attr(data-view-type);
}
.card-preview {
  overflow: hidden;
  position: relative;
  font-size: 12px;
  line-height: 1.35;
  color: #444;
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      #000 70%,
      transparent);
  mask-image:
    linear-gradient(
      to bottom,
      #000 70%,
      transparent);
}
.card-preview > *:first-child {
  margin-top: 0;
}
.card-preview .cp-p,
.card-preview .cp-h {
  margin: 2px 0;
}
.card-preview .cp-h {
  font-weight: 600;
  font-size: 13px;
}
.card-preview .cp-code {
  background: #f4f4f4;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 11px;
  white-space: pre-wrap;
  margin: 2px 0;
}
.card-preview .cp-ul,
.card-preview .cp-ol {
  margin: 2px 0;
  padding-left: 16px;
}
.card-preview .cp-checklist {
  margin: 2px 0;
  padding-left: 0;
  list-style: none;
}
.card-preview .cp-checklist li {
  display: flex;
  gap: 4px;
}
.card-preview .cp-checked {
  color: #999;
  text-decoration: line-through;
}
.card-preview .cp-checkbox {
  flex: none;
}
.card-preview .cp-link {
  color: #2563eb;
  background: #eff4ff;
  border-radius: 3px;
  padding: 0 3px;
  white-space: nowrap;
}
.card-preview .cp-view {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-left: 2px solid #ddd;
  padding-left: 6px;
  margin: 3px 0;
}
.card-preview .cp-view .card-preview {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 3px;
}
.card-preview .cp-ellipsis {
  color: #999;
  font-size: 14px;
  padding: 2px 6px;
}
.card-link-popover {
  position: fixed;
  z-index: 1000;
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  padding: 8px;
}
.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 8px;
}
.card-actions__btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #555;
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s;
}
.card-actions__btn:hover {
  background: #f3f3f3;
}
.card-actions__btn--active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.card-actions__btn--active:hover {
  background: #1d4ed8;
}
.card-actions__btn--delete:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.modal.confirm {
  max-width: 360px;
  padding: 20px;
}
.confirm__title {
  margin: 0 0 8px;
  font-size: 17px;
}
.confirm__text {
  margin: 0 0 18px;
  color: #555;
  font-size: 14px;
}
.confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.confirm__btn {
  padding: 7px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}
.confirm__btn:hover {
  background: #f3f3f3;
}
.confirm__btn--danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.confirm__btn--danger:hover {
  background: #b91c1c;
}
.backlinks {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  background: #fafafa;
}
.backlinks__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.backlinks__title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}
.backlinks__count {
  font-size: 11px;
  color: #aaa;
}
.backlinks__toggle {
  margin-left: auto;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: #888;
  padding: 2px 4px;
  line-height: 1;
}
.backlinks__toggle:hover {
  color: #333;
}
.backlinks__empty {
  font-size: 12px;
  color: #aaa;
}
.backlinks__items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.backlinks__item {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.backlinks__item .card-link__label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f5f6f8;
}
.login-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 300px;
  padding: 32px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}
.login-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}
.login-input {
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.login-input:focus {
  outline: none;
  border-color: #6b8afd;
}
.login-button {
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #4a6cf7;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.login-button:hover {
  background: #3a5cf0;
}
.login-button:disabled {
  background: #aab4d4;
  cursor: default;
}
.login-error {
  min-height: 18px;
  font-size: 13px;
  color: #c0392b;
  text-align: center;
}
/*# sourceMappingURL=style.css.map */
