* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f6f8;
  color: #222b3d;
  font:
    14px "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #dfe4ec;
  background: white;
  border-radius: 8px;
  padding: 10px 16px;
  color: inherit;
}
button:hover {
  border-color: #5966db;
}
.primary {
  background: #5966db;
  color: white;
  border: 0;
}
aside {
  position: fixed;
  width: 218px;
  background: #fff;
  height: 100vh;
  padding: 30px 22px;
  border-right: 1px solid #e9ebf0;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 2px;
}
.brand span {
  color: #5966db;
}
aside small {
  display: block;
  color: #949bad;
  margin: 9px 0 42px;
}
.nav {
  padding: 13px;
  margin-bottom: 9px;
  border-radius: 9px;
  color: #778095;
}
.nav.active {
  background: #eef0ff;
  color: #5966db;
}
main {
  margin-left: 218px;
  padding: 30px 42px;
  max-width: 1600px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
h1 {
  font-size: 27px;
  margin: 8px 0;
}
h2 {
  font-size: 19px;
}
p {
  color: #8b93a4;
  line-height: 1.7;
}
.eyebrow {
  font-size: 12px;
  color: #939caf;
  letter-spacing: 2px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0;
}
.stat,
.panel {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 13px;
  padding: 22px;
}
.stat strong {
  font-size: 32px;
  display: block;
  margin-top: 12px;
}
.stat small {
  color: #929aac;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}
input,
select,
textarea {
  border: 1px solid #dfe3eb;
  background: #fff;
  border-radius: 7px;
  padding: 10px;
  color: #374158;
  min-width: 0;
}
input:focus,
textarea:focus {
  outline: 2px solid #c5caff;
}
.toolbar input {
  width: 290px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #24325912;
}
.cover {
  height: 115px;
  padding: 22px;
  color: #fff;
  position: relative;
  background: linear-gradient(125deg, #283b55, #7593a1);
}
.cover b {
  font-size: 25px;
  letter-spacing: 3px;
  opacity: 0.85;
}
.cover small {
  display: block;
  opacity: 0.7;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.cover:after {
  content: "▶";
  position: absolute;
  right: 24px;
  top: 44px;
  font-size: 22px;
  opacity: 0.55;
}
.card:nth-child(3n + 2) .cover {
  background: linear-gradient(125deg, #736753, #bca883);
}
.card:nth-child(3n) .cover {
  background: linear-gradient(125deg, #485374, #9296bc);
}
.body {
  padding: 20px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.badge {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 5px;
  background: #eef0ff;
  color: #6670cc;
}
.warn {
  background: #fff0e8;
  color: #d77743;
}
.green {
  background: #e7f7ee;
  color: #42996c;
}
.muted {
  color: #9199a9;
  font-size: 12px;
}
.bar {
  height: 5px;
  border-radius: 4px;
  background: #edf0f5;
  margin: 13px 0 18px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #6b77e0;
}
.card h2 {
  font-size: 16px;
  margin: 16px 0 8px;
}
.footer {
  margin-top: 20px;
  color: #9199a9;
  font-size: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
}
label {
  display: block;
  color: #858d9e;
  font-size: 12px;
  margin-bottom: 8px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fields input,
.fields select {
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
td,
th {
  padding: 14px 9px;
  border-bottom: 1px solid #edf0f5;
  font-size: 13px;
}
th {
  color: #9ba3b1;
  font-weight: 500;
}
td input {
  width: 145px;
}
td select {
  max-width: 115px;
}
td .owner {
  width: 85px;
}
.log {
  padding: 13px 0;
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
  color: #818b9e;
}
textarea {
  width: 100%;
  min-height: 100px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  background: #283248;
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  z-index: 9;
}
.empty {
  padding: 50px;
  text-align: center;
  color: #8992a3;
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 24px;
  }
  table {
    display: block;
    overflow: auto;
  }
}
@media (max-width: 700px) {
  aside {
    display: none;
  }
  main {
    margin: 0;
    padding: 18px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  header {
    gap: 15px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
}
/* Dark workspace palette */
:root {
  color-scheme: dark;
}
body {
  background: #0e1015;
  color: #e8eaf1;
}
aside {
  background: #14171e;
  border-color: #282d39;
}
.brand span {
  color: #a299ff;
}
aside small,
.eyebrow {
  color: #8992a7;
}
.nav {
  color: #a5adc0;
}
.nav.active {
  background: #28243e;
  color: #c3baff;
}
button {
  background: #1c212c;
  border-color: #353c4c;
  color: #e5e8f1;
}
button:hover {
  border-color: #a79bff;
  background: #272b39;
}
.primary {
  background: #8777ec;
  color: #fff;
}
.primary:hover {
  background: #9b89ff;
}
.stat,
.panel,
.card {
  background: #191d26;
  border-color: #2b3140;
}
.stat strong {
  color: #e7e9f2 !important;
}
.stat:last-child strong {
  color: #f2ad7f !important;
}
.stat strong span,
.stat small,
.muted,
.footer {
  color: #a1aabd !important;
}
p,
label,
th {
  color: #a5aec1;
}
.toolbar input,
input,
select,
textarea {
  background: #12161e;
  color: #e6e9f2;
  border-color: #394154;
}
input::placeholder {
  color: #8e98ad;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #8777ec;
  outline-offset: 1px;
}
.badge {
  background: #312b4c;
  color: #c6baff;
}
.warn {
  background: #442d23;
  color: #ffb486;
}
.green {
  background: #203c32;
  color: #90ddb2;
}
.bar {
  background: #303647;
}
.bar i {
  background: #9a88f7;
}
td,
th,
.log {
  border-color: #303747;
}
.log {
  color: #aeb7cb;
}
.card:hover {
  border-color: #61577f;
  box-shadow: 0 12px 28px #0005;
}
.cover {
  filter: brightness(0.8);
}
.toast {
  background: #e2dcff;
  color: #211b39;
  box-shadow: 0 8px 30px #0005;
}
td select:focus-visible,
button:focus-visible,
.card:focus-visible {
  outline: 2px solid #b5a6ff;
  outline-offset: 3px;
}
.categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 22px;
}
.categories button {
  border-radius: 20px;
  padding: 9px 18px;
}
.categories button.active,
.view-switch button.active {
  background: #302a47;
  border-color: #8472d3;
  color: #d6ccff;
}
.categories small {
  margin-left: 8px;
  opacity: 0.65;
}
.view-switch {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.project-table {
  background: #191d26;
  border: 1px solid #2b3140;
  border-radius: 12px;
  padding: 8px 16px;
  overflow: auto;
}
.project-table tbody tr {
  cursor: pointer;
}
.project-table tbody tr:hover {
  background: #232835;
}
.project-table td {
  padding: 19px 10px;
  white-space: nowrap;
}
.project-table td:first-child {
  min-width: 200px;
}
.project-table th {
  padding: 15px 10px;
}
.project-table tr:last-child td {
  border: 0;
}
.project-table button {
  padding: 7px 12px;
}
.status-summary {
  padding: 14px 0;
}
.status-summary .badge {
  font-size: 15px;
  padding: 9px 14px;
}
.card .row:last-child {
  margin-top: 22px;
}
@media (max-width: 700px) {
  .view-switch {
    margin-left: 0;
  }
  .toolbar input {
    width: 100%;
  }
}
.pin-button {
  padding: 6px 10px;
  font-size: 12px;
  color: #a8a1c4;
  white-space: nowrap;
}
.pin-button.pinned {
  background: #332b4d;
  border-color: #726097;
  color: #d5c7ff;
}
.card.pinned {
  border-color: #63517d;
}
.pin-column {
  width: 100px;
}
.pin-sidebar {
  margin-top: 25px;
  max-height: calc(100vh - 390px);
  overflow: auto;
}
.pin-sidebar h3 {
  font-size: 12px;
  color: #9eabc2;
  font-weight: 500;
  letter-spacing: 1px;
}
.pin-sidebar .pin-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}
.pin-entry .pin-link {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 9px 7px;
  border: 0;
  background: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.pin-entry .unpin {
  padding: 5px 7px;
  font-size: 11px;
}
.pin-sidebar .empty-pins {
  font-size: 12px;
  color: #778198;
  line-height: 1.7;
}
.sort-note {
  font-size: 12px;
  color: #a1aabd;
  margin: -5px 0 18px;
}
.project-table .pin-column,
.project-table td:first-child {
  width: 46px;
  min-width: 46px;
  padding: 12px 4px;
}
.project-table td:nth-child(2) {
  min-width: 200px;
}
.project-table .pin-icon-button {
  width: 30px;
  height: 30px;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: transparent;
  background: transparent;
  border-radius: 6px;
}
.project-table .pin-icon-button:hover {
  background: #302a47;
  border-color: #726097;
}
.project-table .pin-icon-button.pinned {
  color: #d5c7ff;
}
.pin-icon-button svg {
  width: 18px;
  height: 18px;
  display: block;
}
.brand-logo {
  background: #fff;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 14px;
}
.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.brand-name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #e8eaf1;
}
.brand-name span {
  display: block;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 400;
  color: #aeb7cb;
  margin-top: 5px;
}
aside small {
  font-size: 9px;
  letter-spacing: 0.7px;
  margin: 12px 0 25px;
}
.pin-sidebar {
  max-height: calc(100vh - 535px);
}
.brand-name {
  margin-bottom: 28px;
}
.stat strong {
  margin-bottom: 0;
}
header {
  margin-bottom: 26px;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.danger {
  background: #352027;
  border-color: #6d3542;
  color: #ffa6b6;
}
.danger:hover {
  background: #4c2731;
  border-color: #b4566d;
}
@media (max-width: 700px) {
  header:has(.detail-actions) {
    flex-wrap: wrap;
  }
  .detail-actions {
    width: 100%;
  }
}
.sidebar-bottom {
  position: absolute;
  bottom: 24px;
  left: 22px;
  right: 22px;
}
.trash-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: #aeb7cb;
  background: #1c212c;
}
.trash-link.active {
  background: #302a47;
  color: #d6ccff;
}
.sidebar-bottom p {
  font-size: 11px;
  margin: 12px 0 0;
  color: #808a9d;
}
.trash-count {
  border-radius: 10px;
  background: #353046;
  padding: 2px 7px;
  font-size: 11px;
}
.nav {
  cursor: pointer;
}
.trash-table td:first-child {
  min-width: 200px;
  width: auto;
  padding: 19px 10px;
}
.trash-table td:nth-child(2) {
  min-width: 0;
}
.trash-table tbody tr {
  cursor: default;
}
.trash-caption {
  color: #a1aabd;
  font-size: 13px;
  line-height: 1.8;
}
.mobile-trash {
  display: none;
}
@media (max-width: 700px) {
  .mobile-trash {
    display: block;
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 5;
    box-shadow: 0 4px 20px #0005;
  }
  main {
    padding-bottom: 80px;
  }
}
.brand-logo {
  background: transparent;
  border-radius: 0;
}
.categories {
  align-items: center;
}
.category-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #353c4c;
  border-radius: 22px;
  background: #151922;
  overflow: hidden;
}
.category-switch.selected {
  border-color: #8472d3;
}
.categories .category-switch button {
  border: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
  padding: 10px 18px;
  margin: 0;
}
.categories .category-switch button + button {
  border-left: 1px solid #353c4c;
}
.categories .category-switch button.active {
  background: #3a3057;
  color: #e0d4ff;
}
.categories .category-switch button:hover {
  background: #292438;
}
.categories .category-switch button.active:hover {
  background: #443666;
}
.categories .category-switch button:focus-visible {
  outline-offset: -3px;
  z-index: 1;
}
@media (max-width: 700px) {
  .categories .category-switch button {
    padding: 10px 12px;
  }
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(270px, 1fr);
  gap: 22px;
  align-items: start;
}
.calendar-panel {
  padding: 0;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
}
.calendar-head h2 {
  margin: 0 0 7px;
}
.calendar-head p {
  margin: 0;
  font-size: 12px;
}
.calendar-actions {
  display: flex;
  gap: 6px;
}
.calendar-actions button {
  padding: 7px 11px;
}
.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.month-weekdays {
  text-align: center;
  padding: 8px 14px 15px;
  font-size: 12px;
  color: #9ba6ba;
}
.month-grid {
  gap: 7px;
  padding: 0 14px 18px;
}
.month-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 94px;
  padding: 12px 2px;
  background: #151922;
  border: 1px solid transparent;
}
.month-cell.outside {
  background: #11141b;
  color: #60697b;
}
.month-cell.outside .day-count {
  color: #646d7e;
}
.month-cell.selected {
  border-color: #a08af1;
  background: #302940;
  box-shadow: inset 0 0 0 1px #a08af1;
}
.month-cell.is-today .date-number {
  color: #cbbaff;
}
.date-number {
  font-size: 20px;
}
.day-count {
  font-size: 11px;
  color: #929db2;
  white-space: nowrap;
}
.day-count.has-projects {
  color: #d1c1ff;
}
.today-dot {
  position: absolute;
  top: 5px;
  right: 7px;
  font-size: 9px;
  color: #cbbaff;
}
.calendar-item {
  padding: 18px 20px;
  border-top: 1px solid #303747;
}
.calendar-item-title {
  display: block;
  text-align: left;
  line-height: 1.7;
  border: 0;
  background: none;
  padding: 12px 0 5px;
  font-weight: 600;
  width: 100%;
}
.calendar-item-title:hover {
  background: none;
  color: #c6baff;
}
.calendar-item p {
  font-size: 12px;
  margin: 7px 0;
}
.calendar-empty {
  padding: 38px 20px;
  text-align: center;
  color: #929db2;
}
.calendar-note {
  padding: 0 20px 18px;
  font-size: 11px;
  color: #929db2;
}
@media (max-width: 1150px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .month-grid {
    gap: 3px;
    padding: 0 5px 12px;
  }
  .month-cell {
    min-height: 72px;
    gap: 7px;
  }
  .date-number {
    font-size: 17px;
  }
  .day-count {
    font-size: 9px;
  }
  .month-weekdays {
    padding-left: 5px;
    padding-right: 5px;
  }
  .calendar-head {
    padding: 16px;
  }
  .calendar-head h2 {
    font-size: 16px;
  }
}
.pin-sidebar {
  max-height: max(80px, calc(100vh - 500px));
}
.modified-time {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #303747;
  font-size: 12px;
  color: #a1aabd;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.project-table .modified-cell {
  font-size: 12px;
  color: #aeb7cb;
  white-space: nowrap;
}
.project-table .sort-header {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #a5aec1;
  font-size: 13px;
  white-space: nowrap;
}
.project-table .sort-header:hover,
.project-table .sort-header.selected {
  color: #d1c1ff;
}
.sort-header span {
  font-size: 12px;
  color: #827998;
}
.sort-header.selected span {
  color: #c7b3ff;
}
