:root {
  --txy-primary: #33cabb;
  --txy-primary-dark: #229e91;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

[hidden] {
  display: none !important;
}

#overview,
#project-form,
#project-list {
  scroll-margin-top: 82px;
}

.txy-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .2px;
}

.txy-logo:hover {
  color: #333;
}

.txy-logo-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #33cabb, #358ed7);
  box-shadow: 0 6px 14px rgba(51, 202, 187, .25);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0;
}

.sidebar-header .txy-logo {
  height: 100%;
}

.sidebar-section-title {
  padding: 14px 24px 6px;
  color: #adb5bd;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-footer .copyright {
  line-height: 1.6;
}

.sidebar-footer .copyright a {
  white-space: nowrap;
}

.txy-page-title {
  margin: 0;
  color: #343a40;
  font-size: 17px;
  font-weight: 600;
}

.txy-page-subtitle {
  margin-left: 10px;
  color: #8b95a5;
  font-size: 12px;
}

.txy-stat-card {
  overflow: hidden;
  border: 0;
}

.txy-stat-card .card-body {
  position: relative;
  min-height: 118px;
}

.txy-stat-label {
  opacity: .82;
  font-size: 13px;
}

.txy-stat-number {
  margin-top: 8px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.txy-stat-icon {
  position: absolute;
  right: 18px;
  bottom: 10px;
  opacity: .18;
  font-size: 58px;
  line-height: 1;
}

.txy-form-card {
  position: sticky;
  top: 90px;
}

.txy-form-card .card-header,
.txy-project-card .card-header {
  min-height: 58px;
}

.txy-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.txy-list-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.txy-project-search {
  width: 280px;
}

.txy-form-card .form-control,
.txy-auth-card .form-control {
  min-height: 42px;
}

.txy-target-input {
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

.txy-card-description {
  margin: -4px 0 18px;
  color: #8b95a5;
  font-size: 12px;
  line-height: 1.6;
}

.txy-guide-list {
  margin-bottom: 22px;
}

.txy-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #f1f2f3;
}

.txy-guide-item:first-child {
  padding-top: 2px;
}

.txy-guide-item:last-child {
  border-bottom: 0;
}

.txy-guide-number {
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(31, 45, 61, .12);
  color: #fff;
  font-weight: 600;
}

.txy-guide-item strong {
  display: block;
  margin: 1px 0 4px;
}

.txy-guide-item p {
  margin: 0;
  color: #8b95a5;
  font-size: 12px;
  line-height: 1.6;
}

.txy-project-table {
  min-width: 1440px;
  margin-bottom: 0;
}

.txy-check-col {
  width: 38px;
  padding-right: 0;
  text-align: center;
}

.txy-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}

.txy-check input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.txy-check-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 2px solid #c5cdd8;
  border-radius: 4px;
  background: #fff;
  color: #fff;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
  pointer-events: none;
}

.txy-check-icon::after {
  content: "";
  box-sizing: border-box;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  margin-top: -2px;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .12s ease;
}

.txy-check:hover .txy-check-icon {
  border-color: #33cabb;
}

.txy-check input[type="checkbox"]:checked + .txy-check-icon,
.txy-check input[type="checkbox"]:indeterminate + .txy-check-icon {
  border-color: #33cabb;
  background-color: #33cabb;
}

.txy-check input[type="checkbox"]:checked + .txy-check-icon::after {
  opacity: 1;
}

.txy-check input[type="checkbox"]:indeterminate + .txy-check-icon::after {
  opacity: 1;
  width: 9px;
  height: 2px;
  margin-top: 0;
  border: 0;
  border-radius: 2px;
  background: #fff;
  transform: none;
}

.txy-check input[type="checkbox"]:focus-visible + .txy-check-icon {
  box-shadow: 0 0 0 3px rgba(51, 202, 187, .25);
}

.txy-project-id {
  color: #7a8699;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.txy-project-table th {
  border-top: 0;
  color: #7a8699;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.txy-project-table td {
  vertical-align: middle;
}

.txy-project-name {
  display: block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.txy-project-title {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.txy-title-fetch {
  padding: 2px 8px;
  border: 1px dashed #c4ccd8;
  border-radius: 6px;
  background: #f8fafc;
  color: #7a8698;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.txy-title-fetch:hover:not(:disabled) {
  border-color: #4b7bec;
  background: #eef4ff;
  color: #3563d1;
}

.txy-title-fetch:disabled {
  cursor: progress;
  opacity: .75;
}

.txy-key {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  color: #55606e;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.txy-copy-key {
  color: #8b95a5;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
}

.txy-copy-key:hover,
.txy-copy-key:focus {
  color: #33cabb;
}

.txy-target-link {
  display: inline-block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.txy-remark {
  display: block;
  max-width: 175px;
  overflow: hidden;
  color: #8b95a5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.txy-relative-time {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.txy-relative-time--fresh {
  color: #1f9d55;
  background: rgba(31, 157, 85, .12);
}

.txy-relative-time--recent {
  color: var(--txy-primary-dark);
  background: rgba(51, 202, 187, .12);
}

.txy-relative-time--normal {
  color: #2f7dd1;
  background: rgba(47, 125, 209, .12);
}

.txy-relative-time--warning {
  color: #d99a1b;
  background: rgba(217, 154, 27, .14);
}

.txy-relative-time--stale {
  color: #c0453a;
  background: rgba(192, 69, 58, .12);
}

.txy-editing-row td {
  background: rgba(51, 202, 187, .08);
}

.txy-editing-row td:nth-child(2) {
  box-shadow: inset 3px 0 0 var(--txy-primary);
}

.txy-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f2f3;
  background: rgba(51, 202, 187, .07);
}

.txy-batch-bar[hidden] {
  display: none;
}

.txy-batch-summary {
  color: #55606e;
  font-size: 13px;
}

.txy-batch-summary strong {
  font-variant-numeric: tabular-nums;
}

.txy-batch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.txy-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.txy-actions .btn {
  white-space: nowrap;
}

.txy-empty {
  padding: 58px 20px;
  color: #9aa2af;
  text-align: center;
}

.txy-empty .mdi {
  display: block;
  margin-bottom: 10px;
  color: #c8ced7;
  font-size: 48px;
}

.txy-inline-form {
  display: inline-flex;
  margin: 0;
}

.txy-message-stack .alert {
  box-shadow: 0 4px 16px rgba(31, 45, 61, .06);
}

.txy-message-stack:empty {
  display: none;
}

.txy-category-filter {
  width: 190px;
}

.txy-category-badge .badge {
  font-weight: 500;
}

.txy-link {
  color: var(--txy-primary);
  text-decoration: none;
}

.txy-link:hover,
.txy-link:focus {
  color: var(--txy-primary-dark);
  text-decoration: underline;
}

.txy-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f2f3;
}

.txy-category-item:last-child {
  border-bottom: 0;
}

.txy-category-rename {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.txy-category-rename .form-control {
  min-width: 0;
}

.txy-category-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.txy-busy-overlay {
  pointer-events: none;
  opacity: .72;
}

.txy-auth-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(51, 202, 187, .24), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(53, 142, 215, .20), transparent 34%),
    linear-gradient(145deg, #f2f8fa 0%, #f6f7fb 50%, #eef4f8 100%);
}

.txy-auth-page::before,
.txy-auth-page::after {
  position: absolute;
  border: 1px solid rgba(51, 202, 187, .12);
  border-radius: 50%;
  content: "";
}

.txy-auth-page::before {
  width: 420px;
  height: 420px;
  top: -210px;
  right: -90px;
}

.txy-auth-page::after {
  width: 300px;
  height: 300px;
  bottom: -170px;
  left: -80px;
}

.txy-auth-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.txy-auth-card {
  width: 100%;
  max-width: 430px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 18px 55px rgba(31, 45, 61, .13);
}

.txy-auth-logo {
  margin-bottom: 24px;
  text-align: center;
}

.txy-auth-title {
  margin: 0 0 6px;
  font-size: 21px;
  text-align: center;
}

.txy-auth-subtitle {
  margin-bottom: 24px;
  color: #8b95a5;
  font-size: 13px;
  text-align: center;
}

.txy-has-feedback {
  position: relative;
}

.txy-has-feedback .form-control {
  padding-left: 40px;
}

.txy-has-feedback > .mdi {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 40px;
  height: 42px;
  color: #b4bac3;
  line-height: 42px;
  text-align: center;
  pointer-events: none;
}

.txy-auth-footer {
  margin-top: 22px;
  color: #a0a7b2;
  font-size: 11px;
  text-align: center;
}

[data-theme="dark"] .txy-logo,
[data-theme="dark"] .txy-logo:hover,
[data-theme="dark"] .txy-page-title {
  color: #fff;
}

[data-theme="dark"] .txy-editing-row td {
  background: rgba(51, 202, 187, .10);
}

[data-theme="dark"] .txy-batch-bar {
  border-bottom-color: rgba(255, 255, 255, .08);
  background: rgba(51, 202, 187, .12);
}

[data-theme="dark"] .txy-batch-summary {
  color: #c9d1dd;
}

[data-theme="dark"] .txy-check-icon {
  background: #222b3a;
  border-color: #46526a;
}

[data-theme="dark"] .txy-check input[type="checkbox"]:checked + .txy-check-icon,
[data-theme="dark"] .txy-check input[type="checkbox"]:indeterminate + .txy-check-icon {
  background-color: #33cabb;
  border-color: #33cabb;
}

[data-theme="dark"] .txy-guide-item {
  border-bottom-color: rgba(255, 255, 255, .08);
}

@media (max-width: 1199px) {
  .txy-form-card {
    position: static;
  }
}

@media (max-width: 575px) {
  .txy-page-subtitle {
    display: none;
  }

  .txy-auth-card .card-body {
    padding: 28px 22px !important;
  }

  .lyear-layout-content .container-fluid {
    padding-right: 12px;
    padding-left: 12px;
  }

  .txy-list-header,
  .txy-list-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .txy-list-tools,
  .txy-project-search,
  .txy-category-filter {
    width: 100%;
  }
}
