:root {
  color-scheme: dark;
  --bg: #08090a;
  --panel: #0f1011;
  --surface: #161718;
  --line: #23252a;
  --ink: #f7f8f8;
  --muted: #8a8f98;
  --lime: #e4f222;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 600;
}
h2 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
svg {
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.brand img {
  display: block;
}
.quiet-link {
  color: var(--muted);
  font-size: 13px;
}
.quiet-link:hover {
  color: var(--ink);
}
.login-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
}
.login-main {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: calc(100svh - 88px);
  padding: 64px 24px;
  gap: 32px;
}
.login-panel {
  width: min(100%, 432px);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.login-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  background: var(--surface);
  color: var(--lime);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.login-symbol svg {
  width: 23px;
  height: 23px;
}
.section-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.login-description {
  color: var(--muted);
  margin: 14px 0 32px;
  line-height: 1.7;
}
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #171819;
  font-weight: 550;
}
.google-button:hover:not(:disabled) {
  background: #e4e6e7;
}
.login-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.login-note svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
}
.login-footer {
  color: var(--muted);
  font-size: 12px;
}
.message {
  font-size: 13px;
  line-height: 1.6;
  color: #ffb6ab;
  padding: 12px;
  border: 1px solid #58332d;
  background: #261b19;
  border-radius: 6px;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.admin-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100svh;
}
.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 30px 18px 20px;
  border-right: 1px solid var(--line);
  background: var(--panel);
}
.sidebar-brand {
  padding: 0 8px 36px;
}
.workspace-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
  padding-left: 42px;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}
.admin-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}
.admin-nav a.active {
  background: #232611;
  color: var(--lime);
}
.nav-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 8px 0;
}
.owner-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: #282b32;
  border: 1px solid #383c47;
  border-radius: 50%;
  font-weight: 500;
}
.owner-account div {
  min-width: 0;
}
.owner-account strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 550;
}
.owner-account div > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.signout-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.signout-button:hover {
  color: var(--ink);
}
.dashboard-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.access-label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.access-label svg {
  width: 14px;
  height: 14px;
}
.dashboard-content {
  max-width: 1280px;
  margin: auto;
  padding: 44px 40px 32px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 9px;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: 40px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.secondary-button:hover {
  border-color: #454851;
}
.secondary-button svg {
  width: 15px;
  height: 15px;
}
.account-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}
.account-check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #232611;
  border-radius: 50%;
  color: var(--lime);
  font-size: 17px;
}
.account-banner strong {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.account-banner p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.owner-badge {
  margin-left: auto;
  border: 1px solid #39401a;
  background: #1b2011;
  color: #d0db83;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0 40px;
}
.stats > div {
  padding: 2px 28px;
  border-right: 1px solid var(--line);
}
.stats > div:first-child {
  padding-left: 0;
}
.stats > div:last-child {
  border-right: 0;
}
.stats dt {
  font-size: 13px;
  color: #c3c6cb;
}
.stats dd {
  margin: 6px 0 4px;
  font-size: 38px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}
.stats p {
  color: var(--muted);
  font-size: 12px;
}
.directory-section {
  scroll-margin-top: 24px;
}
.directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.directory-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
}
.search-field svg {
  width: 16px;
  height: 16px;
}
.search-field input {
  width: 175px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  min-width: 0;
}
.search-field input::placeholder {
  color: var(--muted);
}
.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}
thead {
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}
th,
td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 500;
}
tbody {
  background: var(--panel);
}
tbody th {
  font-weight: 500;
}
tbody th a:hover {
  color: var(--lime);
}
tbody td {
  color: var(--muted);
}
tbody tr:hover {
  background: var(--surface);
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
td:last-child {
  width: 50px;
  padding-right: 14px;
  padding-left: 6px;
}
.category {
  text-transform: capitalize;
}
.priority {
  display: inline-block;
  padding: 2px 8px;
  background: #1d2024;
  border-radius: 4px;
  font-size: 11px;
}
.priority-high {
  color: #d4dda0;
  background: #252919;
}
.directory-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
}
.directory-link svg {
  width: 15px;
  height: 15px;
}
.directory-link:hover {
  color: var(--lime);
  background: #252919;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  font-size: 11px;
  color: var(--muted);
}
.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.data-note {
  max-width: 620px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 24px;
}
.library-category-tabs {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
}
.library-category-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 2px 12px;
  background: transparent;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
}
.library-category-tabs button:hover {
  color: var(--ink);
}
.library-category-tabs button[aria-selected="true"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
.library-category-tabs button:focus-visible {
  outline-offset: -3px;
}
.category-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.library-toolbar .search-field {
  width: min(100%, 340px);
}
.library-toolbar .search-field input {
  width: 100%;
}
.blog-column {
  text-align: center;
}
.blog-column input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--lime);
  cursor: pointer;
}
.library-summary {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.private-table table {
  min-width: 660px;
  table-layout: fixed;
}
.private-table th,
.private-table td {
  padding: 13px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.private-table thead th:nth-child(1) { width: 5%; }
.private-table thead th:nth-child(2) { width: 20%; }
.private-table thead th:nth-child(3) { width: 13%; }
.private-table thead th:nth-child(4) { width: 7%; }
.private-table thead th:nth-child(5) { width: 9%; }
.private-table thead th:nth-child(6) { width: 6%; }
.private-table thead th:nth-child(7) { width: 9%; }
.private-table thead th:nth-child(8) { width: 21%; }
.private-table thead th:nth-child(9) { width: 10%; }
.private-table .row-number {
  text-align: center;
  padding-inline: 4px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.private-table td:last-child {
  width: auto;
  padding: 13px 12px;
}
.private-table .numeric-column {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.private-table .library-empty-cell {
  height: 260px;
  padding: 48px 24px;
  text-align: center;
  white-space: normal;
  font-size: 12px;
}
.library-empty-title {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.private-directory-name {
  white-space: nowrap;
}
.unfinished-directory {
  color: #ff9690;
}
.private-directory-contact {
  white-space: nowrap;
}
.library-pagination > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.library-pagination button {
  min-height: 32px;
  padding: 6px 10px;
}
.library-pagination button:disabled {
  cursor: default;
}
.library-error {
  margin-bottom: 20px;
}
.library-error .message {
  margin: 0 0 10px;
}
.private-library .data-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.private-library .data-note svg {
  width: 14px;
  height: 14px;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .library-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .library-toolbar .search-field {
    width: 100%;
  }
  .library-pagination {
    flex-wrap: wrap;
  }
}
@media (min-width: 1440px) {
  .dashboard-content {
    padding-top: 56px;
  }
  .sidebar {
    padding-top: 30px;
  }
}
@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 212px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .dashboard-header {
    padding-inline: 28px;
  }
  .dashboard-content {
    padding: 32px 28px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .directory-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .search-field {
    width: 100%;
  }
  .search-field input {
    width: 100%;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 28px;
  }
  .admin-shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 18px;
  }
  .workspace-label {
    padding: 0;
    margin: 0;
    font-size: 11px;
  }
  .admin-nav {
    flex-direction: row;
    gap: 4px;
    flex-wrap: wrap;
  }
  .admin-nav a {
    font-size: 12px;
    gap: 8px;
    padding: 8px 10px;
    min-height: 36px;
  }
  .admin-nav svg {
    width: 16px;
    height: 16px;
  }
  .nav-count {
    display: none;
  }
  .sidebar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    padding: 14px 0 0;
    margin: 12px 0 0;
    border-top: 1px solid var(--line);
  }
  .owner-account {
    border: 0;
    padding: 0;
  }
  .owner-account div > span {
    display: none;
  }
  .avatar {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .sidebar-bottom .message {
    flex-basis: 100%;
  }
  .signout-button {
    padding: 5px 0;
  }
  .dashboard-header {
    height: 52px;
    padding-inline: 20px;
    font-size: 11px;
  }
  .dashboard-content {
    padding: 28px 20px;
  }
  .account-banner {
    padding: 16px 14px;
    gap: 10px;
  }
  .account-banner strong {
    font-size: 12px;
  }
  .owner-badge {
    display: none;
  }
  .stats {
    margin: 26px 0 32px;
  }
  .stats > div {
    padding-inline: 14px;
  }
  .stats dt {
    font-size: 11px;
  }
  .stats dd {
    font-size: 30px;
  }
  .stats p {
    font-size: 10px;
    max-width: 110px;
  }
  .table-footer {
    align-items: flex-start;
    font-size: 10px;
  }
  .table-footer span:last-child {
    text-align: right;
  }
  th,
  td {
    padding: 12px 14px;
  }
  .login-header {
    height: 72px;
    padding: 0 20px;
  }
  .login-header .brand {
    font-size: 14px;
  }
  .login-header .quiet-link {
    font-size: 12px;
  }
  .login-main {
    min-height: calc(100svh - 72px);
    padding: 40px 20px;
  }
  .login-panel {
    padding: 28px 24px;
  }
  .login-symbol {
    margin-bottom: 24px;
  }
  .data-note {
    margin-top: 16px;
  }
}
.sidebar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.sidebar-meta .workspace-label {
  margin: 0;
  padding: 0;
}
.sidebar-toggle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}
.sidebar-toggle:hover {
  background: var(--surface);
  color: var(--ink);
}
.sidebar-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.admin-shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}
.sidebar-collapsed .sidebar {
  padding-inline: 12px;
}
.sidebar-collapsed .sidebar-brand {
  padding-inline: 0;
  text-align: center;
}
.sidebar-collapsed .sidebar-meta {
  justify-content: center;
}
.sidebar-collapsed .brand > span,
.sidebar-collapsed .workspace-label,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-count,
.sidebar-collapsed .owner-account > div {
  display: none;
}
.sidebar-collapsed .admin-nav a {
  justify-content: center;
  padding-inline: 0;
}
.sidebar-collapsed .sidebar-bottom {
  padding-inline: 0;
}
.sidebar-collapsed .owner-account {
  justify-content: center;
}
.sidebar-collapsed .signout-button {
  justify-content: center;
  width: 100%;
  min-height: 40px;
}
.sidebar-collapsed .sidebar-bottom .message {
  position: absolute;
  z-index: 5;
  left: calc(100% + 8px);
  bottom: 20px;
  width: min(280px, calc(100vw - 96px));
}
@media (max-width: 700px) {
  .sidebar-meta {
    margin: 0;
  }
  .sidebar-meta .workspace-label {
    display: none;
  }
  .sidebar-collapsed .sidebar {
    padding-inline: 20px;
  }
  .sidebar-collapsed .sidebar-brand {
    padding-bottom: 12px;
  }
  .sidebar-collapsed .admin-nav a {
    width: 42px;
    min-height: 42px;
  }
  .sidebar-collapsed .signout-button {
    width: 42px;
  }
  .sidebar-collapsed .sidebar-bottom .message {
    position: static;
    width: auto;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.12s,
      color 0.12s,
      border-color 0.12s;
  }
}

.library-sort { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.library-sort [data-sort-icon] { font-size: 10px; color: var(--muted); }
.library-sort:hover, th[aria-sort="ascending"] .library-sort, th[aria-sort="descending"] .library-sort { color: var(--text); }
.library-sort:focus-visible { outline: 2px solid #e4f222; outline-offset: 3px; }
