@charset "UTF-8";
:root {
  --tc-n-0: #ffffff;
  --tc-n-25: #fcfbfa;
  --tc-n-50: #f7f6f4;
  --tc-n-100: #f0eeeb;
  --tc-n-200: #e4e1dd;
  --tc-n-300: #d2cec8;
  --tc-n-400: #a8a29a;
  --tc-n-500: #7c7670;
  --tc-n-600: #5c5752;
  --tc-n-700: #413d39;
  --tc-n-800: #2a2724;
  --tc-n-850: #1f1d1b;
  --tc-n-900: #161413;
  --tc-n-950: #0e0d0c;
  --set-accent-h: 0;
  --set-accent-s: 100%;
  --set-accent-l: 20%;
  --set-radius: 1;
  --set-density: 1;
  --set-font-size: 15;
  --set-font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --set-login-image: url("../img/anmeldung.jpg");
  --bg: var(--tc-n-50);
  --bg-deep: var(--tc-n-100);
  --surface: var(--tc-n-0);
  --surface-2: var(--tc-n-50);
  --surface-3: var(--tc-n-100);
  --surface-glass: rgb(255 255 255 / 78%);
  --text: var(--tc-n-900);
  --text-muted: var(--tc-n-600);
  --text-subtle: var(--tc-n-500);
  --border: var(--tc-n-200);
  --border-strong: var(--tc-n-300);
  --accent: var(--set-accent-h) var(--set-accent-s) var(--set-accent-l);
  --accent-contrast: #ffffff;
  --accent-soft: hsl(var(--set-accent-h) calc(var(--set-accent-s) * 0.55) 96%);
  --accent-soft-border: hsl(var(--set-accent-h) calc(var(--set-accent-s) * 0.45) 88%);
  --accent-ink: hsl(var(--set-accent-h) var(--set-accent-s) calc(var(--set-accent-l) * 0.9));
  --accent-hover: hsl(var(--set-accent-h) var(--set-accent-s) calc(var(--set-accent-l) - 4%));
  --accent-active: hsl(var(--set-accent-h) var(--set-accent-s) calc(var(--set-accent-l) - 8%));
  --success: 152 55% 27%;
  --warning: 28 90% 32%;
  --error: 0 68% 42%;
  --info: 210 78% 40%;
  --success-soft: hsl(152 45% 95%);
  --warning-soft: hsl(38 90% 95%);
  --error-soft: hsl(0 75% 96%);
  --info-soft: hsl(210 80% 96%);
  --shadow-xs: 0 1px 1px rgb(24 20 18 / 4%);
  --shadow-sm: 0 1px 2px rgb(24 20 18 / 6%), 0 2px 8px -2px rgb(24 20 18 / 5%);
  --shadow-md: 0 1px 2px rgb(24 20 18 / 6%), 0 8px 24px -6px rgb(24 20 18 / 10%);
  --shadow-lg: 0 2px 4px rgb(24 20 18 / 6%), 0 24px 56px -12px rgb(24 20 18 / 18%);
  --ring: hsl(var(--set-accent-h) 85% 45%);
  --ring-width: 2px;
  --ring-offset: 2px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not(:has(#mode-light:checked)) {
    --bg: var(--tc-n-950);
    --bg-deep: #080807;
    --surface: var(--tc-n-900);
    --surface-2: var(--tc-n-850);
    --surface-3: var(--tc-n-800);
    --surface-glass: rgb(22 20 19 / 82%);
    --text: #f2efec;
    --text-muted: #a39d97;
    --text-subtle: #7c7670;
    --border: #2e2b28;
    --border-strong: #423e3a;
    --accent: var(--set-accent-h) calc(var(--set-accent-s) * 0.72) 62%;
    --accent-contrast: #17100f;
    --accent-soft: hsl(var(--set-accent-h) calc(var(--set-accent-s) * 0.35) 16%);
    --accent-soft-border: hsl(var(--set-accent-h) calc(var(--set-accent-s) * 0.35) 26%);
    --accent-ink: hsl(var(--set-accent-h) calc(var(--set-accent-s) * 0.6) 74%);
    --accent-hover: hsl(var(--set-accent-h) calc(var(--set-accent-s) * 0.72) 68%);
    --accent-active: hsl(var(--set-accent-h) calc(var(--set-accent-s) * 0.72) 56%);
    --success: 152 50% 55%;
    --warning: 38 85% 60%;
    --error: 0 75% 66%;
    --info: 210 80% 66%;
    --success-soft: hsl(152 30% 14%);
    --warning-soft: hsl(38 40% 14%);
    --error-soft: hsl(0 40% 15%);
    --info-soft: hsl(210 40% 15%);
    --shadow-xs: 0 1px 1px rgb(0 0 0 / 30%);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 45%), 0 2px 8px -2px rgb(0 0 0 / 35%);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 50%), 0 8px 24px -6px rgb(0 0 0 / 45%);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 50%), 0 24px 56px -12px rgb(0 0 0 / 60%);
    --ring: hsl(var(--set-accent-h) 70% 62%);
    color-scheme: dark;
  }
}
:root:has(#mode-dark:checked) {
  --bg: var(--tc-n-950);
  --bg-deep: #080807;
  --surface: var(--tc-n-900);
  --surface-2: var(--tc-n-850);
  --surface-3: var(--tc-n-800);
  --surface-glass: rgb(22 20 19 / 82%);
  --text: #f2efec;
  --text-muted: #a39d97;
  --text-subtle: #7c7670;
  --border: #2e2b28;
  --border-strong: #423e3a;
  --accent: var(--set-accent-h) calc(var(--set-accent-s) * 0.72) 62%;
  --accent-contrast: #17100f;
  --accent-soft: hsl(var(--set-accent-h) calc(var(--set-accent-s) * 0.35) 16%);
  --accent-soft-border: hsl(var(--set-accent-h) calc(var(--set-accent-s) * 0.35) 26%);
  --accent-ink: hsl(var(--set-accent-h) calc(var(--set-accent-s) * 0.6) 74%);
  --accent-hover: hsl(var(--set-accent-h) calc(var(--set-accent-s) * 0.72) 68%);
  --accent-active: hsl(var(--set-accent-h) calc(var(--set-accent-s) * 0.72) 56%);
  --success: 152 50% 55%;
  --warning: 38 85% 60%;
  --error: 0 75% 66%;
  --info: 210 80% 66%;
  --success-soft: hsl(152 30% 14%);
  --warning-soft: hsl(38 40% 14%);
  --error-soft: hsl(0 40% 15%);
  --info-soft: hsl(210 40% 15%);
  --shadow-xs: 0 1px 1px rgb(0 0 0 / 30%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 45%), 0 2px 8px -2px rgb(0 0 0 / 35%);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 50%), 0 8px 24px -6px rgb(0 0 0 / 45%);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 50%), 0 24px 56px -12px rgb(0 0 0 / 60%);
  --ring: hsl(var(--set-accent-h) 70% 62%);
  color-scheme: dark;
}
:root:has(#mode-light:checked) {
  color-scheme: light;
}
@media (prefers-contrast: more) {
  :root {
    --text-muted: var(--tc-n-700);
    --text-subtle: var(--tc-n-600);
    --border: var(--tc-n-400);
    --border-strong: var(--tc-n-500);
    --ring-width: 3px;
  }
  :root:has(#mode-dark:checked),
  :root:not(:has(#mode-light:checked)) {
    --text-muted: #d6d1cc;
    --text-subtle: #b8b2ac;
    --border: #5a5450;
    --border-strong: #7a736e;
  }
}
:root[data-contrast="high"] {
  --text-muted: var(--tc-n-700);
  --text-subtle: var(--tc-n-600);
  --border: var(--tc-n-400);
  --border-strong: var(--tc-n-500);
  --ring-width: 3px;
}
:root[data-contrast="high"]:has(#mode-dark:checked) {
  --text-muted: #d6d1cc;
  --text-subtle: #b8b2ac;
  --border: #5a5450;
  --border-strong: #7a736e;
}
:root {
  --radius-xs: calc(4px * var(--set-radius));
  --radius-sm: calc(8px * var(--set-radius));
  --radius: calc(13px * var(--set-radius));
  --radius-lg: calc(20px * var(--set-radius));
  --radius-pill: calc(999px * min(var(--set-radius), 1));
  --space-1: calc(0.25rem * var(--set-density));
  --space-2: calc(0.5rem * var(--set-density));
  --space-3: calc(0.75rem * var(--set-density));
  --space-4: calc(1rem * var(--set-density));
  --space-5: calc(1.5rem * var(--set-density));
  --space-6: calc(2rem * var(--set-density));
  --space-8: calc(3rem * var(--set-density));
  --gap: var(--space-4);
  --header-height: calc(60px * var(--set-density));
  --font: var(--set-font);
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --text-xs: calc(var(--set-font-size) * 0.74px);
  --text-sm: calc(var(--set-font-size) * 0.86px);
  --text-base: calc(var(--set-font-size) * 1px);
  --text-lg: calc(var(--set-font-size) * 1.14px);
  --text-xl: calc(var(--set-font-size) * 1.36px);
  --text-2xl: calc(var(--set-font-size) * 1.7px);
  --text-3xl: calc(var(--set-font-size) * 2.1px);
  --motion-fast: 120ms;
  --motion: 200ms;
  --motion-slow: 320ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-busy {
  cursor: progress;
}
#main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  position: relative;
}
#footer {
  flex-shrink: 0;
}
h1,
h2,
h3 {
  margin: 0 0 var(--space-2);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.018em;
  text-wrap: balance;
}
h1 {
  font-size: var(--text-2xl);
  font-weight: 650;
}
h2 {
  font-size: var(--text-lg);
}
h3,
.tc-eyebrow {
  font-size: var(--text-xs);
  margin-top: var(--space-5);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
}
p {
  margin: 0 0 .8rem;
}
a {
  color: hsl(var(--accent));
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.tc-page-title {
  margin-bottom: 1.2rem;
}
.tc-muted {
  color: var(--text-muted);
}
.tc-hint {
  color: var(--text-muted);
  font-size: .82rem;
  margin: .35rem 0 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 55%), transparent);
  pointer-events: none;
}
:root:has(#mode-dark:checked) .card::after {
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 8%), transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not(:has(#mode-light:checked)) .card::after {
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 8%), transparent);
  }
}
.tc-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 900;
}
.tc-loader__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--border);
  border-top-color: hsl(var(--accent));
  border-radius: 50%;
  animation: tc-spin .8s linear infinite;
}
@keyframes tc-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 1ms;
    --motion: 1ms;
    --motion-slow: 1ms;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
:root[data-motion="reduced"] {
  --motion-fast: 1ms;
  --motion: 1ms;
  --motion-slow: 1ms;
}
:root[data-motion="reduced"] *,
:root[data-motion="reduced"] *::before,
:root[data-motion="reduced"] *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 1ms !important;
}
.tc-skip {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  z-index: 1000;
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tc-skip:focus-visible {
  clip-path: none;
}
.tc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: var(--ring-width) solid var(--ring);
  outline-offset: var(--ring-offset);
  border-radius: var(--radius-xs);
}
.tc-row:focus-visible,
.tc-grid__cell:focus-visible {
  outline-offset: calc(var(--ring-offset) * -1);
}
.tc-brand {
  width: 84%;
  height: auto;
  overflow: visible;
}
.tc-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, transform .06s ease;
  white-space: nowrap;
}
.tc-btn:hover {
  background: var(--surface-2);
  border-color: hsl(var(--accent) / 45%);
}
.tc-btn:active {
  transform: translateY(1px);
}
.tc-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.tc-btn--primary {
  background: hsl(var(--accent));
  border-color: hsl(var(--accent));
  color: var(--accent-contrast);
}
.tc-btn--primary:hover {
  background: hsl(var(--accent) / 88%);
  border-color: hsl(var(--accent) / 88%);
}
.tc-btn--danger {
  color: hsl(var(--error));
  border-color: hsl(var(--error) / 45%);
}
.tc-btn--danger:hover {
  background: hsl(var(--error) / 10%);
}
.tc-btn--block {
  width: 100%;
  justify-content: center;
}
.tc-btn--small {
  padding: .28rem .6rem;
  font-size: .82rem;
}
.tc-btnrow {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.tc-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
}
.tc-iconbtn:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.tc-iconbtn--danger:hover {
  color: hsl(var(--error));
  border-color: hsl(var(--error) / 40%);
  background: hsl(var(--error) / 10%);
}
.tc-icon {
  flex: 0 0 auto;
}
.tc-field {
  margin-bottom: .9rem;
}
.tc-field label {
  display: block;
  margin-bottom: .3rem;
  font-size: .85rem;
  font-weight: 550;
  color: var(--text-muted);
}
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 1px;
}
input:disabled {
  background: var(--surface-2);
  color: var(--text-muted);
}
.tc-check {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  user-select: none;
}
.tc-check input {
  width: auto;
  accent-color: hsl(var(--accent));
}
.tc-checkrow {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: .6rem 0;
}
.tc-checkgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .4rem .9rem;
  margin-bottom: .8rem;
}
.tc-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0 1rem;
}
.tc-field--wide {
  grid-column: 1 / -1;
}
.tc-copyrow {
  display: flex;
  gap: .5rem;
}
.tc-copyrow input {
  font-family: var(--font-mono);
  font-size: .85rem;
}
.tc-badge {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--text-muted);
}
.tc-badge--primary {
  background: hsl(var(--accent) / 15%);
  color: hsl(var(--accent));
}
.tc-badge--success {
  background: hsl(var(--success) / 15%);
  color: hsl(var(--success));
}
.tc-badge--error {
  background: hsl(var(--error) / 15%);
  color: hsl(var(--error));
}
.tc-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: .78rem;
  cursor: pointer;
}
.tc-chip:hover {
  color: var(--text);
  border-color: hsl(var(--accent) / 45%);
}
.tc-notice {
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin: .8rem 0;
}
.tc-notice--error {
  border-color: hsl(var(--error) / 40%);
  background: hsl(var(--error) / 10%);
  color: hsl(var(--error));
}
.tc-notice--success {
  border-color: hsl(var(--success) / 40%);
  background: hsl(var(--success) / 10%);
}
.tc-notice--warning {
  border-color: hsl(var(--warning) / 40%);
  background: hsl(var(--warning) / 10%);
}
.tc-tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.2rem;
  overflow-x: auto;
}
.tc-tab {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .55rem .9rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}
.tc-tab:hover {
  color: var(--text);
}
.tc-tab.is-active {
  color: hsl(var(--accent));
  border-bottom-color: hsl(var(--accent));
}
.tc-tabpanel {
  display: none;
}
.tc-tabpanel.is-active {
  display: block;
}
.tc-deflist {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: .35rem .9rem;
  margin: 0;
}
.tc-deflist dt {
  color: var(--text-muted);
  font-size: .85rem;
}
.tc-deflist dd {
  margin: 0;
  word-break: break-word;
}
.tc-filelist {
  --col-select: 36px;
  --col-size: 100px;
  --col-date: 140px;
  --col-actions: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tc-filelist__head,
.tc-row {
  display: grid;
  grid-template-columns: var(--col-select) minmax(0, 1fr) var(--col-size) var(--col-date) var(--col-actions);
  align-items: center;
  gap: .5rem;
  padding: .45rem .8rem;
}
.tc-filelist__head {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tc-filelist__head button.tc-col {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.tc-filelist__head button.tc-col:hover {
  color: var(--text);
}
.tc-row {
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background .1s ease;
}
.tc-row:last-child {
  border-bottom: 0;
}
.tc-row:hover {
  background: var(--surface-2);
}
.tc-row.is-selected {
  background: hsl(var(--accent) / 12%);
}
.tc-col {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.tc-col--name {
  overflow: hidden;
}
.tc-row__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-col--size,
.tc-col--date {
  color: var(--text-muted);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}
.tc-col--actions {
  justify-content: flex-end;
}
.tc-col--target,
.tc-col--rights,
.tc-col--path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .87rem;
}
.tc-row__fav {
  color: hsl(var(--warning));
}
.tc-row__thumb {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-3);
  flex: 0 0 auto;
}
.tc-row__icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.tc-row__icon svg {
  width: 17px;
  height: 17px;
}
.tc-row__icon[data-kind="dir"] {
  background: hsl(var(--accent) / 16%);
  color: hsl(var(--accent));
}
.tc-row__icon[data-kind="pdf"]::after {
  content: "PDF";
  font-size: .6rem;
}
.tc-row__icon[data-kind="text"]::after {
  content: "TXT";
  font-size: .6rem;
}
.tc-row__icon[data-kind="doc"] {
  background: hsl(217 91% 55% / 16%);
  color: hsl(217 91% 45%);
}
.tc-row__icon[data-kind="doc"]::after {
  content: "DOC";
  font-size: .58rem;
}
.tc-row__icon[data-kind="sheet"] {
  background: hsl(142 71% 40% / 16%);
  color: hsl(142 71% 32%);
}
.tc-row__icon[data-kind="sheet"]::after {
  content: "XLS";
  font-size: .58rem;
}
.tc-row__icon[data-kind="slides"] {
  background: hsl(24 90% 50% / 16%);
  color: hsl(24 90% 42%);
}
.tc-row__icon[data-kind="slides"]::after {
  content: "PPT";
  font-size: .58rem;
}
.tc-filelist__empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
}
.tc-filelist[data-view="grid"] .tc-filelist__head {
  display: none;
}
.tc-filelist[data-view="grid"] .tc-filelist__body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
  padding: .8rem;
}
.tc-filelist[data-view="grid"] .tc-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem .5rem;
}
.tc-filelist[data-view="grid"] .tc-col--select,
.tc-filelist[data-view="grid"] .tc-col--date,
.tc-filelist[data-view="grid"] .tc-col--actions {
  display: none;
}
.tc-filelist[data-view="grid"] .tc-col--name {
  flex-direction: column;
}
.tc-filelist[data-view="grid"] .tc-row__thumb,
.tc-filelist[data-view="grid"] .tc-row__icon {
  width: 76px;
  height: 76px;
  font-size: 1.1rem;
}
.tc-minilist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tc-minirow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .65rem;
  padding: .5rem .55rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin: 0 -.55rem;
  transition: background var(--motion-fast) var(--ease);
}
.tc-minirow:hover {
  background: var(--surface-2);
}
.tc-minirow:last-child {
  border-bottom: 0;
}
.tc-minirow__icon {
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.tc-minirow__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 520;
}
.tc-minirow__meta,
.tc-minirow__time {
  color: var(--text-muted);
  font-size: var(--text-xs);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tc-minirow__badge {
  padding: .1rem .45rem;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 550;
  white-space: nowrap;
}
.tc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .8rem;
  margin-bottom: 1.4rem;
}
.tc-stat {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tc-stat__icon {
  color: hsl(var(--accent));
  margin-bottom: .2rem;
}
.tc-stat__value {
  font-size: 1.4rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.tc-stat__label {
  color: var(--text-muted);
  font-size: .85rem;
}
.tc-stat__hint {
  color: var(--text-muted);
  font-size: .75rem;
}
.tc-meter__bar {
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  box-shadow: inset 0 1px 2px rgb(24 20 18 / 10%);
  overflow: hidden;
}
.tc-meter__bar span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, hsl(var(--set-accent-h) var(--set-accent-s) calc(var(--set-accent-l) + 14%)), hsl(var(--accent)));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%);
  transition: width var(--motion-slow) var(--ease);
  min-width: 3px;
}
.tc-meter__labels {
  display: flex;
  gap: .4rem;
  align-items: baseline;
  margin-top: .4rem;
}
.tc-admin__bar {
  display: flex;
  gap: .6rem;
  align-items: center;
  margin-bottom: .9rem;
  flex-wrap: wrap;
}
.tc-admin__bar .tc-search {
  flex: 1 1 220px;
}
.tc-logview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem;
  max-height: 65vh;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: .78rem;
}
.tc-logline {
  display: grid;
  grid-template-columns: 155px 70px 130px minmax(0, 1fr);
  gap: .5rem;
  padding: .18rem .35rem;
  border-radius: 5px;
}
.tc-logline:hover {
  background: var(--surface-2);
}
.tc-logline__level {
  font-weight: 700;
}
.tc-logline--error .tc-logline__level {
  color: hsl(var(--error));
}
.tc-logline--warning .tc-logline__level {
  color: hsl(var(--warning));
}
.tc-logline--success .tc-logline__level {
  color: hsl(var(--success));
}
.tc-logline__time,
.tc-logline__source {
  color: var(--text-muted);
}
.tc-logline__message {
  word-break: break-word;
}
.tc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.tc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(8 11 18 / 55%);
  backdrop-filter: blur(2px);
}
.tc-modal--wide .tc-modal__box {
  width: min(760px, 100%);
}
.tc-modal--wide .tc-modal__body {
  max-height: 68vh;
  overflow-y: auto;
}
.tc-modal__box {
  position: relative;
  width: min(560px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  animation: tc-modal-in .14s ease-out;
}
@keyframes tc-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.99);
  }
}
.tc-modal__title {
  margin-bottom: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.tc-modal__body:empty + .tc-modal__actions {
  flex-direction: column;
  align-items: stretch;
}
.tc-modal__body:empty + .tc-modal__actions .tc-btn {
  justify-content: flex-start;
}
.tc-toasts {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  z-index: 1100;
  pointer-events: none;
  width: min(420px, calc(100vw - 2rem));
}
.tc-toast {
  padding: .65rem .9rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}
.tc-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.tc-toast--success {
  border-color: hsl(var(--success) / 50%);
}
.tc-toast--error {
  border-color: hsl(var(--error) / 55%);
  color: hsl(var(--error));
}
.tc-toast--warning {
  border-color: hsl(var(--warning) / 55%);
}
.tc-picker {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .4rem;
}
.tc-picker__path {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-muted);
  padding: .3rem .4rem .5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .3rem;
  word-break: break-all;
}
.tc-picker__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: .4rem .5rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.tc-picker__item:hover {
  background: var(--surface-2);
}
@media (max-width: 900px) {
  .tc-header__search {
    flex-basis: 180px;
  }
  .tc-user__name {
    display: none;
  }
  .tc-filelist {
    --col-date: 0px;
  }
  .tc-col--date {
    display: none;
  }
  .tc-files__body {
    grid-template-columns: 1fr;
  }
  .tc-details {
    position: fixed;
    inset: auto 0 0 0;
    max-height: 80vh;
    border-radius: var(--radius) var(--radius) 0 0;
    z-index: 700;
    box-shadow: var(--shadow-lg);
  }
  .tc-home__hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  #main {
    padding: 1rem .75rem 2.5rem;
  }
  .tc-header {
    padding: 0 .75rem;
    gap: .5rem;
  }
  .tc-nav__item span {
    display: none;
  }
  .tc-nav__item {
    padding: .42rem .5rem;
  }
  .tc-header__search {
    flex-basis: 120px;
  }
  .tc-filelist {
    --col-select: 0px;
    --col-size: 74px;
  }
  .tc-col--select {
    display: none;
  }
  .tc-files__toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .tc-files__actions {
    justify-content: space-between;
  }
  .tc-btn span {
    display: none;
  }
  .tc-btn--primary span,
  .tc-btn--block span {
    display: inline;
  }
  .tc-logline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tc-deflist {
    grid-template-columns: 1fr;
    gap: 0 0;
  }
  .tc-deflist dd {
    margin-bottom: .5rem;
  }
}
.tc-editor__bar {
  position: sticky;
  top: calc(var(--header-height) + 0px);
  z-index: 400;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem .7rem;
  box-shadow: var(--shadow-sm);
}
.tc-editor__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  margin-bottom: .5rem;
  min-width: 0;
}
.tc-editor__title > span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-editor__state {
  font-size: .75rem;
  font-weight: 500;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-muted);
  white-space: nowrap;
}
.tc-editor__state[data-state="saved"] {
  background: hsl(var(--success) / 15%);
  color: hsl(var(--success));
}
.tc-editor__state[data-state="dirty"] {
  background: hsl(var(--warning) / 15%);
  color: hsl(var(--warning));
}
.tc-editor__state[data-state="conflict"] {
  background: hsl(var(--error) / 15%);
  color: hsl(var(--error));
}
.tc-editor__tools {
  display: flex;
  align-items: center;
  gap: .2rem;
  flex-wrap: wrap;
}
.tc-editor__tools select {
  width: auto;
  padding: .3rem .4rem;
  font-size: .85rem;
}
.tc-editor__tools input[type="color"] {
  width: 32px;
  height: 32px;
  padding: 2px;
  cursor: pointer;
}
.tc-editor__sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 .3rem;
}
.tc-editor__spacer {
  flex: 1;
}
