@charset "UTF-8";
#header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}
#header.is-scrolled {
  box-shadow: var(--shadow-sm);
}
.tc-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--header-height);
  padding: 0 var(--space-5);
  max-width: 1500px;
  margin: 0 auto;
}
.tc-header__brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  border: 0;
  background: none;
  padding: 0;
  color: var(--text);
  font: inherit;
  font-weight: 640;
  font-size: var(--text-lg);
  letter-spacing: -.02em;
  cursor: pointer;
  flex: 0 0 auto;
}
.tc-header__logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: calc(var(--radius-sm) + 1px);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: .95rem;
  background: linear-gradient(160deg, hsl(var(--set-accent-h) var(--set-accent-s) calc(var(--set-accent-l) + 16%)), hsl(var(--accent)) 62%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%), 0 2px 6px -1px hsl(var(--set-accent-h) var(--set-accent-s) 25% / 45%);
}
.tc-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px 0;
  margin: -3px 0;
}
.tc-nav::-webkit-scrollbar {
  display: none;
}
.tc-nav__item {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .4rem .68rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 530;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.tc-nav__item:hover {
  background: var(--surface-3);
  color: var(--text);
}
.tc-nav__item.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-soft-border);
  color: var(--accent-ink);
  font-weight: 600;
}
.tc-nav__item svg {
  opacity: .78;
}
.tc-nav__item.is-active svg {
  opacity: 1;
}
.tc-header__search {
  position: relative;
  margin-left: auto;
  flex: 1 1 0;
  min-width: 0;
  max-width: 320px;
}
.tc-search {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: 0 .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-muted);
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.tc-search:hover {
  border-color: var(--border-strong);
}
.tc-search:focus-within {
  background: var(--surface);
  border-color: hsl(var(--accent) / 45%);
  box-shadow: 0 0 0 3px hsl(var(--accent) / 12%);
}
.tc-search input {
  border: 0;
  background: transparent;
  padding: .45rem 0;
  color: var(--text);
  font: inherit;
  width: 100%;
  min-width: 0;
}
.tc-search input:focus-visible {
  outline: none;
}
.tc-search input::placeholder {
  color: var(--text-subtle);
}
.tc-search__results {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 60vh;
  overflow: auto;
  z-index: 600;
}
.tc-search__hit {
  display: block;
  width: 100%;
  text-align: left;
  padding: .45rem .7rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.tc-search__hit:hover {
  background: var(--surface-2);
}
.tc-search__hit-name {
  display: block;
  font-weight: 550;
}
.tc-search__hit-path {
  display: block;
  font-size: .76rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-search__empty {
  padding: .7rem;
  color: var(--text-muted);
}
.tc-header__right {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
}
.tc-mode {
  display: inline-flex;
  gap: 2px;
  margin: 0;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}
.tc-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
}
.tc-mode label {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  border-radius: 999px;
  font-size: .78rem;
  color: var(--text-muted);
  cursor: pointer;
}
.tc-mode:has(#mode-auto:checked) label[for="mode-auto"],
.tc-mode:has(#mode-light:checked) label[for="mode-light"],
.tc-mode:has(#mode-dark:checked) label[for="mode-dark"] {
  background: var(--surface);
  color: hsl(var(--accent));
  box-shadow: var(--shadow-sm);
}
.tc-user {
  position: relative;
}
.tc-user__button {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .5rem .25rem .25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.tc-user__button:hover {
  border-color: hsl(var(--accent) / 45%);
}
.tc-user__avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: hsl(var(--accent) / 18%);
  color: hsl(var(--accent));
  font-size: .72rem;
  font-weight: 700;
}
.tc-user__name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .88rem;
}
.tc-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  min-width: 250px;
  padding: .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 600;
}
.tc-menu hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: .3rem 0;
}
.tc-menu__item {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .45rem .55rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tc-menu__item:hover {
  background: var(--surface-2);
}
.tc-quota {
  padding: .5rem .55rem .7rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .3rem;
}
.tc-quota__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  margin-bottom: .35rem;
}
.tc-quota__bar span {
  display: block;
  height: 100%;
  background: hsl(var(--accent));
}
.tc-quota__text {
  font-size: .78rem;
  color: var(--text-muted);
}
.tc-header--anonymous {
  justify-content: space-between;
}
.setup-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  height: var(--header-height);
  padding: 0 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.setup-header__brand {
  font-weight: 700;
}
.setup-header__hint {
  color: var(--text-muted);
  font-size: .85rem;
}
.tc-header__search {
  flex: 0 0 auto;
  width: 240px;
  max-width: 240px;
}
.tc-nav {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 1180px) {
  .tc-header__search {
    display: none;
  }
}
@media (max-width: 760px) {
  .tc-header {
    padding: 0 var(--space-3);
    gap: var(--space-3);
  }
  .tc-header__brand span:last-child {
    display: none;
  }
}
.tc-nav {
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.tc-user__button {
  position: relative;
}
.tc-user__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: hsl(var(--error));
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
  font-variant-numeric: tabular-nums;
}
.tc-menu__item {
  position: relative;
}
.tc-menu__count {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: hsl(var(--error));
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tc-menu__section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: .35rem .7rem .5rem;
}
.tc-menu__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.tc-menu .tc-mode label {
  width: 32px;
  height: 28px;
}
