:root {
  --ink: #252934;
  --muted: #838792;
  --line: #e9eaee;
  --blue: #4064db;
  --blue-soft: #edf1ff;
  --surface: #f8f9fb;
  --sidebar: 246px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #e5e6e9;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  background: white;
  border: 1px solid #dfe1e7;
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #7b94e8;
  box-shadow: 0 0 0 3px #4064db13;
}
textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.6;
}
select {
  cursor: pointer;
  padding-right: 26px;
  font-size: 12px;
  min-height: 36px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
}
label + label {
  margin-top: 18px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
form label + label {
  margin: 0;
}
:focus-visible {
  outline: 3px solid #4064db60;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: white;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button:hover {
  background: #3456c4;
  box-shadow: 0 3px 8px #4064db20;
}
.button.secondary {
  background: #fff;
  color: #4a5264;
  border-color: #e1e3e9;
}
.button.secondary:hover {
  background: #f8f9fc;
}
.button.small {
  padding: 7px 12px;
  min-height: 35px;
  font-size: 12px;
}
.button.danger {
  background: #b84242;
  border-color: #b84242;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: transparent;
  color: #858995;
  flex-shrink: 0;
  font-size: 24px;
}
.icon:hover,
.quiet:hover {
  background: #f0f2f6;
  color: var(--ink);
}
.icon .svg {
  width: 16px;
  height: 16px;
}
.quiet {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: transparent;
  color: #757c8b;
  border-radius: 7px;
  padding: 8px;
  font-size: 12px;
}
.quiet .svg {
  width: 17px;
  height: 17px;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.brand b {
  font-weight: 400;
}
.micro {
  font-size: 11px;
  color: #9095a0;
  font-weight: 400;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8b91a1;
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.boot {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b8292;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 600;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
.scroll {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  margin: 0;
  background: #fff;
  overflow: hidden;
}
.sidebar {
  background: linear-gradient(165deg, #fafbfc, #f1f3f6);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 27px 17px 16px;
  min-height: 0;
}
.sidebar .brand {
  margin: 0 8px 41px;
}
.side-caption {
  color: #979ba5;
  font-size: 11px;
  padding: 0 12px;
  margin-bottom: 10px;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 12px;
  background: transparent;
  width: 100%;
  text-align: left;
  min-width: 0;
  line-height: 1.4;
}
.side-item > .svg {
  color: #9a9eaa;
  width: 17px;
  height: 17px;
}
.side-item > span:not(.project-dot) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-item small {
  color: #9b9eaa;
  font-size: 11px;
  margin-left: auto;
  font-weight: 400;
}
.side-item.selected {
  background: #fff;
  box-shadow: 0 3px 12px #1f2c4920;
  color: #252a38;
}
.side-item:hover:not(.selected) {
  background: #e9edf3;
}
.projects-caption {
  margin: 30px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 3px;
}
.project-nav {
  overflow: auto;
  scrollbar-width: thin;
  min-height: 0;
}
.project-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin: 0 4px;
  flex-shrink: 0;
}
.color-0 {
  background: #7487cc;
}
.color-1 {
  background: #b596cc;
}
.color-2 {
  background: #e0b174;
}
.color-3 {
  background: #84b9ad;
}
.color-4 {
  background: #ce95a3;
}
.side-empty {
  font-size: 12px;
  line-height: 1.7;
  color: #a0a4ae;
  padding: 0 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 22px;
}
.account {
  margin-top: 16px;
  padding: 17px 5px 0;
  border-top: 1px solid #e2e5eb;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 9px;
  background: transparent;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #e3e8f8;
  color: #687dbb;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.account > span:nth-child(2) {
  overflow: hidden;
  flex: 1;
}
.account strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account small {
  display: block;
  font-size: 10px;
  color: #949aa6;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account > .svg {
  width: 15px;
  color: #979eac;
}
.main-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: white;
}
.topbar {
  height: 69px;
  min-height: 69px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 15px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 12px;
  color: #858b97;
}
.breadcrumb > .svg {
  color: #a4a9b3;
  width: 16px;
}
.breadcrumb span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 400px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  white-space: nowrap;
}
.mobile-menu,
.sidebar-shade {
  display: none;
}
.home {
  padding: 39px 37px;
  min-height: 0;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 29px;
}
.page-heading h1 {
  margin: 8px 0;
}
.page-heading p {
  color: #969ca8;
  margin: 0;
  font-size: 12px;
}
.summary-strip {
  display: flex;
  gap: 35px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 22px;
  margin-bottom: 28px;
}
.summary-strip > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.summary-strip .svg {
  color: #a5adbf;
  width: 16px;
}
.summary-strip strong {
  font-size: 16px;
  font-weight: 600;
}
.summary-strip span {
  font-size: 11px;
  color: #9499a5;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 18px;
}
.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid #e7e9ee;
  border-radius: 13px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.project-card:hover {
  box-shadow: 0 8px 24px #2731500b;
  transform: translateY(-2px);
}
.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.project-symbol {
  height: 35px;
  width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 10px;
}
.project-card h2 {
  font-size: 17px;
  margin: 0 0 9px;
  overflow-wrap: anywhere;
}
.project-card > p {
  color: #989da8;
  font-size: 12px;
  line-height: 1.6;
  min-height: 40px;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card progress {
  width: 100%;
  height: 4px;
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: #edf0f6;
  margin-top: auto;
}
.project-card progress::-webkit-progress-bar {
  background: #edf0f6;
  border-radius: 4px;
}
.project-card progress::-webkit-progress-value {
  background: #91a4e5;
  border-radius: 4px;
}
.project-card progress::-moz-progress-bar {
  background: #91a4e5;
  border-radius: 4px;
}
.project-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #989ea9;
  font-size: 11px;
  margin-top: 14px;
}
.project-card footer .svg {
  width: 16px;
}
.new-project-tile {
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  border: 1px dashed #dce0e9;
  border-radius: 13px;
  background: #fafbfc;
  color: #979ead;
  font-size: 12px;
}
.new-project-tile .svg {
  height: 25px;
  width: 25px;
}
.welcome {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  max-width: 600px;
  margin: 60px auto 30px;
}
.welcome-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8198de;
  background: #f0f3fd;
  border: 1px solid #e2e8fc;
  border-radius: 16px;
  margin-bottom: 20px;
}
.welcome-icon .svg {
  width: 27px;
  height: 27px;
}
.welcome h2 {
  font-size: 23px;
  margin-bottom: 10px;
}
.welcome > p {
  max-width: 390px;
  color: #9299a7;
  line-height: 1.8;
  font-size: 13px;
  margin-bottom: 24px;
}
.welcome-steps {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 23px;
  justify-content: center;
  margin-top: 45px;
  padding-top: 25px;
  color: #a2a8b4;
  font-size: 11px;
}
.welcome-steps span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.welcome-steps b {
  width: 19px;
  height: 19px;
  background: #f2f4f9;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
}
.archive {
  margin-top: 35px;
}
.archive summary {
  cursor: pointer;
  color: #969ca8;
  font-size: 12px;
  margin-bottom: 15px;
}
.project-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.project-heading {
  padding: 27px 30px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.project-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #9b9faa;
}
.project-kicker span {
  color: #c7cbd3;
}
.project-heading h1 {
  font-size: 24px;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.project-heading p {
  font-size: 12px;
  color: #9097a5;
  line-height: 1.6;
  margin: 9px 0 0;
  max-width: 640px;
}
.workspace-toolbar {
  min-height: 58px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.view-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
}
.view-tabs button {
  border-radius: 7px;
  padding: 9px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #8b909b;
  font-size: 12px;
  background: transparent;
}
.view-tabs button .svg {
  width: 15px;
  height: 15px;
}
.view-tabs button[aria-selected="true"] {
  background: #f2f4f8;
  color: #363b46;
}
.stage-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.stage-controls select {
  width: auto;
  max-width: 280px;
  border-color: #eceef2;
  background: #fff;
}
.board {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-height: 0;
  padding: 22px 25px 35px;
  background: #fff;
}
.column {
  min-width: 250px;
  flex: 1;
  max-width: 360px;
  border-radius: 12px;
  background: #f8f9fb;
  padding: 5px;
  min-height: 138px;
}
.column-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 13px;
  min-height: 43px;
}
.column-head h2 {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
}
.column-head .icon {
  margin-left: auto;
  width: 24px;
  height: 24px;
}
.count {
  font-size: 10px;
  color: #959ba8;
  background: white;
  border: 1px solid #eceef1;
  padding: 3px 6px;
  border-radius: 6px;
  min-width: 21px;
  text-align: center;
}
.status-circle {
  width: 12px;
  height: 12px;
  border: 1.5px solid #d7dbe3;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  position: relative;
}
.status-circle.in_progress {
  border-color: #5a78d7;
}
.status-circle.in_progress:after {
  content: "";
  position: absolute;
  background: #5a78d7;
  top: 1px;
  bottom: 1px;
  left: 1px;
  width: 3px;
  border-radius: 4px 0 0 4px;
}
.status-circle.ready {
  border-color: #6caf9b;
  background: #6caf9b;
}
.status-circle.accepted {
  border-color: #6688cb;
  background: #6688cb;
}
.status-circle.ready:after,
.status-circle.accepted:after {
  content: "";
  position: absolute;
  border: solid white;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  width: 2px;
  height: 4px;
  left: 3px;
  top: 1px;
}
.status-circle.blocked {
  border-color: #deb76e;
  background: #fcf1d9;
}
.task-card {
  display: block;
  border: 1px solid #e6e8ed;
  border-radius: 10px;
  background: #fff;
  padding: 16px 14px 0;
  margin-bottom: 7px;
  box-shadow: 0 1px 2px #18294706;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.task-card:hover {
  box-shadow: 0 4px 14px #24345a0d;
  border-color: #cdd7f3;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
  color: #9a9eaa;
  font-size: 10px;
}
.card-meta > span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}
.card-meta .svg {
  width: 14px;
  height: 14px;
}
.card-meta > .status-circle {
  width: 10px;
  height: 10px;
}
.task-card h3 {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.task-card > p {
  font-size: 11px;
  color: #9298a5;
  line-height: 1.8;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
  margin-bottom: 15px;
  min-height: 5px;
}
.date-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  background: #f7f8fa;
  color: #8d94a3;
  border-radius: 5px;
  padding: 4px 6px;
}
.date-chip > .svg {
  width: 12px;
  height: 12px;
  color: #a2a9b5;
}
.block-chip {
  font-size: 10px;
  color: #a2a8b4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-card footer {
  min-height: 41px;
  border-top: 1px solid #eff0f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.stage-label {
  font-size: 10px;
  color: #a0a8b7;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card-counts {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a0a7b5;
  font-size: 10px;
}
.card-counts > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-counts .svg {
  width: 13px;
  height: 13px;
}
.add-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a0a6b2;
  padding: 10px 12px;
  font-size: 11px;
  background: transparent;
}
.add-card .svg {
  width: 14px;
  height: 14px;
}
.add-card:hover {
  background: #f0f2f7;
  border-radius: 8px;
}
.list-view {
  flex: 1;
  min-height: 0;
  padding: 10px 30px 30px;
}
.table-head,
.table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px 145px 100px;
  gap: 20px;
  align-items: center;
}
.table-head {
  padding: 15px 12px;
  font-size: 10px;
  color: #a0a7b3;
  border-bottom: 1px solid var(--line);
}
.table-row {
  padding: 16px 12px;
  border-bottom: 1px solid #eff1f5;
  font-size: 11px;
  color: #929aa9;
}
.table-row:hover {
  background: #fafbfe;
}
.table-row > span:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
}
.table-row small {
  white-space: nowrap;
  color: #a3a9b4;
}
.table-row strong {
  font-size: 12px;
  line-height: 1.6;
  font-weight: 500;
  color: #474e5e;
  overflow-wrap: anywhere;
}
.status-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #8c94a4;
  white-space: nowrap;
}
.status-text .status-circle {
  width: 10px;
  height: 10px;
}
.task-workspace {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.task-rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: #fcfcfd;
  padding: 20px 10px 0;
}
.rail-back {
  padding: 0 9px 17px;
  color: #8991a1;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.rail-back > .svg {
  width: 15px;
  height: 15px;
}
.task-rail > select {
  width: calc(100% - 18px);
  margin: 0 9px 15px;
}
.task-rail-list {
  overflow: auto;
  scrollbar-width: thin;
  min-height: 0;
  padding-bottom: 20px;
}
.rail-task {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 10px;
  gap: 9px;
  align-items: center;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: #8c94a3;
  margin: 2px 0;
}
.rail-task.active {
  border-color: #e2e7f7;
  background: #f0f3ff;
  color: #536daa;
}
.rail-task:hover:not(.active) {
  background: #f2f4f8;
}
.rail-task > span:nth-child(2) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rail-task .status-circle {
  width: 9px;
  height: 9px;
}
.task-detail {
  padding: 29px clamp(24px, 3vw, 48px) 45px;
  min-width: 0;
}
.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.task-top .micro {
  font-size: 10px;
}
.task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.task-actions select {
  font-size: 11px;
  max-width: 170px;
  min-height: 33px;
  padding: 6px 25px 6px 9px;
}
.task-detail h1 {
  font-size: 24px;
  line-height: 1.5;
  margin: 23px 0 18px;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
.task-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: #7e8eaf;
}
.task-links a,
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.task-links .svg,
.link-button .svg {
  width: 13px;
  height: 13px;
}
.link-button {
  background: transparent;
  padding: 0;
  font-size: 11px;
  color: #8d98ac;
  line-height: 1.7;
}
.link-button:hover {
  color: var(--blue);
}
.detail-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin: 22px 0 26px;
}
.detail-tabs button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  color: #a0a6b3;
}
.detail-tabs button[aria-selected="true"] {
  border-color: var(--blue);
  color: #4c608c;
}
.detail-tabs small {
  font-size: 9px;
  min-width: 16px;
  padding: 1px 4px;
  background: #f0f2f7;
  border-radius: 4px;
  color: #969fb2;
}
.description {
  font-size: 13px;
  line-height: 1.9;
  color: #7c8596;
  white-space: pre-line;
  margin-bottom: 26px;
  overflow-wrap: anywhere;
}
.change-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #99a1af;
  font-size: 11px;
}
.section-label .svg {
  width: 15px;
  height: 15px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.dot.gray {
  background: #c4cad6;
}
.dot.blue {
  background: #8ca3e3;
}
.change-grid p,
.check-section p {
  color: #6f798b;
  font-size: 13px;
  line-height: 1.9;
  margin-top: 12px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.check-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 25px;
}
.upload-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px;
  border: 1px dashed #dde3ef;
  border-radius: 9px;
  color: #9ba6bb;
  font-size: 11px;
  margin-bottom: 28px;
}
.upload-prompt > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.upload-prompt .svg {
  width: 17px;
  height: 17px;
}
.scene {
  padding-bottom: 30px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.scene h2 {
  font-size: 15px;
  color: #79859c;
}
.device-pair {
  margin-top: 25px;
}
.device-pair h3 {
  font-size: 11px;
  color: #969fb0;
  font-weight: 500;
}
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.comparison .section-label {
  margin-bottom: 9px;
}
.comparison figure {
  margin: 0 0 12px;
}
.shot {
  display: block;
  padding: 0;
  border: 1px solid #e5e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafc;
  width: 100%;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: contain;
  object-position: top;
}
.comparison figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #a3abba;
  margin-top: 7px;
}
.comparison figcaption button {
  font-size: 9px;
}
.no-shot {
  min-height: 100px;
  border: 1px dashed #e1e5ee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b6c3;
  font-size: 10px;
  padding: 15px;
  text-align: center;
}
.empty-state {
  text-align: center;
  margin: 50px auto;
  color: #9ca5b6;
  max-width: 390px;
}
.empty-state h2 {
  font-size: 18px;
  color: #818da4;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.8;
}
.empty-note {
  font-size: 12px;
  color: #a2abba;
  margin: 0 0 24px;
}
.comment {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.comment > div {
  flex: 1;
  min-width: 0;
}
.comment header {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 3px;
}
.comment strong {
  font-size: 11px;
  color: #7c8aa3;
  font-weight: 500;
}
.comment time {
  font-size: 10px;
  color: #a5adba;
}
.comment p {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: #7f8b9e;
  margin: 8px 0 0;
}
.comment .avatar {
  width: 29px;
  height: 29px;
  font-size: 10px;
}
#comment-form {
  margin-top: 30px;
}
#comment-form button {
  align-self: flex-start;
}
.mobile-back {
  display: none;
}
.shared {
  grid-template-columns: 1fr;
  width: 100%;
}
.shared .task-workspace {
  grid-template-columns: 290px minmax(0, 1fr);
}
.readonly {
  font-size: 11px;
  color: #9ca5b4;
}
.shared .topbar .brand {
  font-size: 17px;
}
.shared .topbar .brand img {
  width: 28px;
  height: 28px;
}
dialog {
  border: 1px solid #e8ebf2;
  border-radius: 17px;
  padding: 25px;
  width: 480px;
  max-width: calc(100vw - 30px);
  max-height: calc(100dvh - 40px);
  box-shadow: 0 24px 80px #19244533;
  overflow: auto;
  color: var(--ink);
}
dialog.wide {
  width: 730px;
}
dialog::backdrop {
  background: #222d4350;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.modal-head h2 {
  font-size: 18px;
  margin: 0;
}
.modal-head > .icon {
  font-size: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  min-width: 0;
}
.form-row label {
  min-width: 0;
  margin: 0;
}
.form-note {
  font-size: 11px;
  color: #9ba3b2;
  line-height: 1.7;
  margin: 0;
}
.form-error {
  font-size: 12px;
  color: #b34d4d;
  line-height: 1.6;
  white-space: pre-line;
}
.form-error:empty {
  display: none;
}
form > .button {
  align-self: flex-start;
}
.stage-form {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.stage-form .button {
  align-self: flex-start;
}
.stages-editor + .new-stage-form {
  margin-top: 24px;
}
#new-stage-form h3 {
  margin: 0;
  color: #8b95a8;
  font-size: 13px;
}
.share-description {
  text-align: center;
}
.share-description p {
  font-size: 13px;
  line-height: 1.8;
  color: #8e98ab;
}
.share-description .welcome-icon {
  margin-bottom: 8px;
}
.share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0 20px;
}
.danger-link {
  padding: 0;
  background: transparent;
  color: #b17777;
  font-size: 11px;
}
.file-drop {
  border: 1px dashed #d7deed;
  border-radius: 12px;
  align-items: center;
  padding: 24px;
  color: #99a7bd;
  cursor: pointer;
  text-align: center;
  font-weight: 400;
}
.file-drop .svg {
  height: 27px;
  width: 27px;
  margin-bottom: 5px;
}
.file-drop strong {
  font-size: 13px;
  font-weight: 500;
}
.file-drop span {
  font-size: 10px;
  margin-bottom: 10px;
}
.file-drop input {
  border: 0;
  background: #f6f8fc;
  font-size: 10px;
  max-width: 100%;
}
.history-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.history-item strong {
  display: block;
  font-size: 12px;
  margin-top: 7px;
  color: #8290a7;
}
.history-item p {
  font-size: 11px;
  color: #9ca6b7;
  line-height: 1.7;
  overflow-wrap: anywhere;
  margin: 6px 0 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0 15px;
}
#lightbox {
  width: 1200px;
  max-width: 95vw;
}
#lightbox-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}
#lightbox-title {
  font-size: 12px;
  color: #8d99ad;
}
#toast {
  position: fixed;
  z-index: 10000;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 35px);
  background: #2e374a;
  color: #fff;
  box-shadow: 0 5px 20px #0002;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 12px;
}
.login-simple {
  min-height: 100dvh;
  background: #f3f5f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 24px;
  gap: 35px;
}
.login-simple > .brand {
  font-size: 22px;
}
.login-simple > .brand img {
  width: 36px;
  height: 36px;
}
.login-box {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 16px;
  padding: 30px;
}
.login-box h1 {
  font-size: 22px;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.login-box > p {
  font-size: 12px;
  color: #959ead;
  line-height: 1.8;
  margin-bottom: 25px;
  overflow-wrap: anywhere;
}
.login-box > p strong {
  color: #788bad;
  font-weight: 500;
}
.login-box form .button {
  width: 100%;
  min-height: 43px;
  justify-content: space-between;
}
.otp-input {
  font-size: 25px;
  letter-spacing: 9px;
  text-align: center;
  padding-left: 21px;
}
.resend {
  display: flex;
  margin-top: 20px;
  margin-bottom: 12px;
}
.error-page {
  min-height: 100dvh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
}
.error-page h1 {
  margin: 40px 0 14px;
}
.error-page p {
  color: #939fb5;
  line-height: 1.8;
}
.error-page .button {
  margin-top: 15px;
}
@media (min-width: 1600px) {
  .board {
    gap: 18px;
  }
  .column {
    min-width: 230px;
  }
  .column-head h2 {
    font-size: 13px;
  }
  .task-card {
    padding: 18px 17px 0;
  }
  .task-card h3 {
    font-size: 14px;
  }
  .task-card > p {
    font-size: 12px;
  }
  .sidebar {
    padding-top: 30px;
  }
  :root {
    --sidebar: 260px;
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar: 210px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sidebar .brand {
    font-size: 16px;
    gap: 6px;
    margin-left: 6px;
  }
  .sidebar .brand img {
    width: 29px;
    height: 29px;
  }
  .topbar {
    padding: 0 22px;
  }
  .home {
    padding: 30px 24px;
  }
  .project-heading {
    padding: 24px 22px 20px;
  }
  .workspace-toolbar {
    padding: 0 22px;
  }
  .board {
    padding: 20px;
  }
  .task-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .task-detail {
    padding: 25px 24px;
  }
  .task-top {
    gap: 10px;
  }
  .task-top .micro {
    width: 100%;
  }
  .task-detail h1 {
    font-size: 21px;
  }
  .change-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .comparison {
    gap: 10px;
  }
  .task-detail .detail-tabs {
    gap: 18px;
  }
  .task-detail .detail-tabs button {
    font-size: 11px;
  }
  .upload-prompt {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .table-head,
  .table-row {
    grid-template-columns: minmax(170px, 1fr) 90px 120px;
    gap: 12px;
  }
  .table-head > span:last-child,
  .table-row > span:last-child {
    display: none;
  }
  .shared .task-workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  :root {
    background: #fff;
    --sidebar: 250px;
  }
  .shell,
  .shared {
    margin: 0;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    display: flex;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: var(--sidebar);
    visibility: hidden;
    transform: translateX(-100%);
    transition:
      transform 0.18s,
      visibility 0.18s;
    box-shadow: 10px 0 40px #24345324;
  }
  .menu-open .sidebar {
    visibility: visible;
    transform: translateX(0);
  }
  .sidebar-shade {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #26365360;
    border: 0;
  }
  .menu-open .sidebar-shade {
    display: block;
  }
  .main-shell {
    width: 100%;
    height: 100%;
  }
  .topbar {
    height: 60px;
    min-height: 60px;
    padding: 0 15px;
    gap: 10px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar .breadcrumb {
    font-size: 11px;
  }
  .topbar .breadcrumb .svg {
    display: none;
  }
  .topbar .breadcrumb span {
    max-width: 130px;
  }
  .top-actions {
    gap: 3px;
  }
  .top-actions > .quiet span {
    display: none;
  }
  .top-actions > .quiet {
    padding: 7px;
  }
  .top-actions > .button {
    font-size: 10px;
    min-height: 32px;
    padding: 6px 8px;
  }
  .top-actions > .button .svg {
    width: 14px;
    height: 14px;
  }
  .home {
    padding: 28px 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .page-heading h1 {
    font-size: 27px;
    margin: 10px 0;
  }
  .summary-strip {
    gap: 23px;
  }
  .summary-strip > div {
    gap: 6px;
  }
  .summary-strip span {
    font-size: 10px;
  }
  .summary-strip .svg {
    width: 14px;
  }
  .summary-strip strong {
    font-size: 15px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 22px;
  }
  .new-project-tile {
    min-height: 110px;
  }
  .welcome {
    margin: 30px 0;
  }
  .welcome h2 {
    font-size: 21px;
  }
  .welcome-steps {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    margin-top: 30px;
    padding-left: 25px;
    padding-right: 25px;
  }
  .project-heading {
    padding: 22px 19px 19px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .project-heading h1 {
    font-size: 23px;
    line-height: 1.4;
  }
  .project-heading > .button {
    font-size: 11px;
  }
  .workspace-toolbar {
    padding: 10px 16px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .view-tabs button {
    font-size: 11px;
    padding: 8px;
    gap: 5px;
  }
  .stage-controls {
    min-width: 0;
    gap: 0;
    max-width: calc(100% - 157px);
  }
  .stage-controls select {
    font-size: 10px;
    width: 100%;
    max-width: 170px;
    padding-left: 7px;
    padding-right: 19px;
  }
  .stage-controls .icon {
    width: 25px;
  }
  .board {
    min-width: 0;
    padding: 17px 0 30px;
    gap: 0;
    scroll-snap-type: x mandatory;
  }
  .column {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 0 0 100%;
    border-radius: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .column-head {
    padding: 12px 10px 14px;
  }
  .column-head h2 {
    font-size: 13px;
  }
  .task-card {
    padding: 17px 15px 0;
  }
  .task-card h3 {
    font-size: 14px;
  }
  .task-card > p {
    font-size: 12px;
  }
  .card-meta {
    font-size: 11px;
  }
  .card-tags {
    margin-top: 18px;
    margin-bottom: 18px;
  }
  .date-chip {
    font-size: 11px;
  }
  .task-card footer {
    min-height: 44px;
  }
  .stage-label {
    font-size: 11px;
  }
  .add-card {
    font-size: 12px;
    padding: 12px;
  }
  .list-view {
    padding: 8px 13px;
  }
  .table-head {
    display: none;
  }
  .table-row {
    grid-template-columns: 1fr 110px;
    padding: 17px 6px;
    gap: 12px;
  }
  .table-row > span:nth-child(2) {
    display: none;
  }
  .table-row > span:first-child {
    gap: 8px;
  }
  .table-row strong {
    font-size: 11px;
  }
  .table-row .status-text {
    font-size: 10px;
    white-space: normal;
    line-height: 1.5;
  }
  .task-workspace,
  .shared .task-workspace {
    display: flex;
    min-height: 0;
  }
  .task-rail {
    display: none;
  }
  .task-detail {
    padding: 20px 20px 40px;
    flex: 1;
  }
  .mobile-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #99a5bb;
    margin-bottom: 23px;
  }
  .mobile-back .svg {
    width: 15px;
    height: 15px;
  }
  .task-detail h1 {
    font-size: 22px;
    line-height: 1.5;
    margin-top: 18px;
  }
  .task-actions {
    margin-top: 2px;
  }
  .task-actions select {
    font-size: 11px;
  }
  .task-top .micro {
    line-height: 1.8;
  }
  .detail-tabs {
    gap: 22px;
    margin-top: 15px;
  }
  .task-detail .detail-tabs button {
    font-size: 12px;
  }
  .task-detail .detail-tabs {
    gap: 23px;
  }
  .task-links {
    font-size: 10px;
    gap: 13px;
  }
  .change-grid {
    gap: 22px;
  }
  .change-grid p,
  .check-section p {
    font-size: 13px;
  }
  .description {
    font-size: 13px;
  }
  .upload-prompt {
    padding: 12px;
    font-size: 10px;
  }
  .upload-prompt .button {
    font-size: 10px;
  }
  .comparison {
    gap: 10px;
  }
  .comparison figcaption {
    font-size: 9px;
  }
  .shared .topbar {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .shared .topbar .brand {
    font-size: 14px;
    gap: 6px;
  }
  .shared .topbar .brand img {
    width: 26px;
    height: 26px;
  }
  .shared .readonly {
    display: none;
  }
  .shared .top-actions .button {
    font-size: 10px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  dialog {
    padding: 21px;
    max-height: calc(100dvh - 24px);
    max-width: calc(100vw - 24px);
    border-radius: 14px;
  }
  dialog .form-row:has(select) {
    grid-template-columns: 1fr 1fr;
  }
  .modal-head h2 {
    font-size: 17px;
  }
  .modal-head {
    margin-bottom: 20px;
  }
  #lightbox {
    padding: 12px;
  }
  .share-actions .button {
    font-size: 11px;
  }
  .file-drop {
    padding: 20px;
  }
  #toast {
    bottom: 17px;
    text-align: center;
    line-height: 1.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Prevent iPhone focus zoom without enlarging desktop form controls. */
@media (max-width: 760px) {
  :root input,
  :root select,
  :root textarea {
    font-size: 16px;
  }
  :root .otp-input {
    font-size: 25px;
  }
}

.review-details {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #959fb1;
}
.review-details summary {
  cursor: pointer;
}
.review-details p {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
  color: #7f8ba0;
  margin-top: 12px;
}
.task-shade,
.close-tasks,
.mobile-task-nav {
  display: none;
}
@media (max-width: 760px) {
  .mobile-task-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
  }
  .mobile-task-nav .mobile-back {
    margin: 0;
  }
  .mobile-task-nav .quiet {
    font-size: 11px;
    padding: 0;
  }
  .mobile-task-nav .quiet .svg {
    width: 14px;
    height: 14px;
  }
  .tasks-open .task-rail {
    display: flex;
    position: fixed;
    inset: 60px auto 0 0;
    z-index: 60;
    width: min(320px, 90vw);
    padding-top: 22px;
    box-shadow: 10px 0 30px #26334c20;
  }
  .tasks-open .task-shade {
    display: block;
    position: fixed;
    inset: 60px 0 0;
    z-index: 50;
    background: #26365360;
  }
  .close-tasks {
    display: flex;
    position: absolute;
    right: 9px;
    top: 10px;
  }
  .task-rail .rail-back {
    padding-right: 27px;
  }
  .login-box {
    padding: 25px;
  }
}
.column-cards,
.task-card {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 760px) {
  .column-head {
    min-width: 0;
  }
  .card-tags {
    min-width: 0;
  }
  .task-card h3,
  .task-card > p {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
