.tp {
  --orange: #ff7900;
  --ink: #20201e;
  --line: #dedbd4;
  --muted: #77736b;
  color: var(--ink);
  font:
    15px/1.5 Arial,
    sans-serif;
  min-width: 0;
}
.tp * {
  box-sizing: border-box;
}
.tp [hidden] {
  display: none !important;
}
.tp-head,
.tp-actions,
.tp-tabs,
.tp-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.tp-head {
  justify-content: space-between;
  margin-bottom: 22px;
}
.tp h1 {
  font-size: 32px;
  line-height: 1.1;
  margin: 4px 0 8px;
}
.tp h2 {
  font-size: 23px;
  margin: 10px 0;
}
.tp h3 {
  margin: 8px 0;
  font-size: 18px;
}
.tp-kicker {
  font-size: 11px;
  color: #d96600;
  font-weight: 800;
  letter-spacing: 2px;
}
.tp-muted {
  color: var(--muted);
  font-size: 13px;
}
.tp button,
.tp input,
.tp textarea,
.tp select {
  font: inherit;
}
.tp button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 16px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.tp button:hover {
  border-color: var(--orange);
}
.tp button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.tp button:focus-visible,
.tp input:focus-visible,
.tp select:focus-visible,
.tp textarea:focus-visible {
  outline: 3px solid #ffb86c;
  outline-offset: 2px;
}
.tp button.tp-primary,
.tp button[aria-selected="true"],
.tp button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.tp button.tp-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #171717;
}
.tp input,
.tp textarea,
.tp select {
  padding: 11px;
  border: 1px solid #d3cec5;
  border-radius: 9px;
  background: white;
  max-width: 100%;
  min-width: 0;
}
.tp textarea {
  width: 100%;
  min-height: 110px;
}
.tp input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--orange);
}
.tp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.tp-stat,
.tp-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.tp-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.tp-stat strong {
  font-size: 28px;
}
.tp-filter {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 16px 0;
}
.tp-filter > * {
  flex: 1 1 145px;
}
.tp-filter input[type="search"] {
  flex: 2 1 230px;
}
.tp-table {
  width: 100%;
  border-collapse: collapse;
}
.tp-table th,
.tp-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tp-table th {
  font-size: 12px;
  color: var(--muted);
}
.tp-table td button {
  padding: 0;
  border: 0;
  text-align: left;
  font-weight: 700;
  color: #222;
}
.tp-wrap {
  overflow: auto;
}
.tp-badge {
  display: inline-block;
  border-radius: 6px;
  background: #eee;
  padding: 3px 8px;
  font-size: 12px;
}
.tp-badge[data-state="blocked"],
.tp-badge[data-state="urgent"] {
  background: #ffe3df;
  color: #a42819;
}
.tp-badge[data-state="done"] {
  background: #dcefe4;
  color: #236443;
}
.tp-badge[data-state="review"] {
  background: #fff0cc;
  color: #815907;
}
.tp-overdue {
  color: #b22b1e;
  font-weight: 700;
}
.tp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tp-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 1fr);
  gap: 12px;
  overflow: auto;
  padding-bottom: 14px;
}
.tp-column {
  background: #ebe8e1;
  border: 1px solid #dedad1;
  border-radius: 16px;
  padding: 14px;
  min-height: 220px;
}
.tp-card {
  display: block;
  width: 100%;
  margin: 10px 0;
  text-align: left;
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--line);
}
.tp-card p {
  margin: 5px 0;
}
.tp-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.tp-day {
  min-height: 110px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  overflow-wrap: anywhere;
}
.tp-day button {
  display: block;
  font-size: 11px;
  padding: 5px;
  margin-top: 4px;
  max-width: 100%;
  text-align: left;
}
.tp-feedback {
  padding: 10px 0;
  color: var(--muted);
}
.tp-error {
  color: #ad2416;
  background: #fff0ed;
  padding: 12px;
  border-radius: 10px;
}
.tp-details {
  margin-top: 20px;
}
.tp-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tp-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tp-meta div {
  padding: 12px;
  background: #f7f6f2;
  border-radius: 9px;
  overflow-wrap: anywhere;
}
.tp-meta small {
  display: block;
  color: var(--muted);
}
.tp-tabs {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.tp-log {
  border-left: 2px solid #e4dfd5;
  padding-left: 18px;
  margin-left: 5px;
}
.tp-log article {
  position: relative;
  padding: 8px 0 16px;
}
.tp-log article:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ff7900;
  border-radius: 50%;
  left: -23px;
  top: 15px;
}
.tp-log pre {
  white-space: pre-wrap;
  font: 12px/1.5 Arial;
  background: #f5f4f0;
  padding: 8px;
  overflow-wrap: anywhere;
}
.tp-comment {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.tp-check {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.tp dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  width: min(820px, 94vw);
  max-height: 90vh;
  color: #20201e;
}
.tp dialog::backdrop {
  background: #1119;
}
.tp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.tp-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 700;
  font-size: 13px;
}
.tp-form label.tp-full {
  grid-column: 1/-1;
}
.tp-form input,
.tp-form select,
.tp-form textarea {
  width: 100%;
  font-weight: 400;
}
.tp-form select[multiple] {
  min-height: 120px;
}
.tp-form .tp-actions {
  grid-column: 1/-1;
  justify-content: flex-end;
}
.tp-bell {
  position: relative;
}
.tp-bell span {
  background: var(--orange);
  color: #171717;
  border-radius: 100%;
  min-width: 18px;
  display: inline-block;
  font-size: 12px;
}
.tp-notifications {
  position: fixed;
  right: 18px;
  top: 90px;
  width: min(430px, 92vw);
  max-height: 70vh;
  overflow: auto;
  z-index: 1000;
  box-shadow: 0 10px 40px #0003;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.tp-notifications button {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
}
.tp-notifications .unread {
  border-left: 4px solid var(--orange);
}
.tp-setting-row {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}
.tp-file {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.tp-file .tp-actions {
  margin-top: 8px;
}
@media (max-width: 750px) {
  .tp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tp-meta,
  .tp-grid {
    grid-template-columns: 1fr;
  }
  .tp-form {
    grid-template-columns: 1fr;
  }
  .tp-form label.tp-full {
    grid-column: auto;
  }
  .tp-table th:nth-child(n + 4),
  .tp-table td:nth-child(n + 4) {
    display: none;
  }
  .tp h1 {
    font-size: 27px;
  }
  .tp-stat,
  .tp-panel {
    padding: 15px;
  }
  .tp-calendar {
    grid-template-columns: 1fr;
  }
  .tp-day {
    min-height: auto;
  }
  .tp-day:empty {
    display: none;
  }
  .tp-head {
    align-items: flex-start;
  }
  .tp-filter > * {
    flex-basis: 100%;
  }
}

.tp-badge[data-state="in_progress"] {
  background: #e0ecff;
  color: #28548c;
}
.tp-badge[data-state="accepted"] {
  background: #e6e2f7;
  color: #5c4588;
}
.tp-badge[data-state="waiting"] {
  background: #fff0d9;
  color: #895805;
}
.tp-badge[data-state="high"] {
  background: #ffe8cf;
  color: #914b08;
}
.tp-audit-details {
  background: #f7f6f2;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
}
.tp-calweekday {
  text-align: center;
  color: #77736b;
  font-size: 12px;
}
@media (max-width: 750px) {
  .tp-calweekday,
  .tp-calblank {
    display: none !important;
  }
}
