.project-space {
  --pane-gap: clamp(18px, 2vw, 32px);
  min-width: 0;
}
.project-path {
  margin: 0 0 5px;
  min-height: 24px;
}
.project-path a {
  color: var(--muted);
  text-decoration: none;
}
.project-path a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}
#project-trail {
  display: contents;
}
.project-header {
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.project-header h1 {
  margin: 0;
  min-width: 0;
}
.project-header > .workspace-actions {
  gap: 6px;
}
.project-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: var(--pane-gap);
}
.project-columns > section {
  min-width: 0;
  scroll-margin-top: 12px;
}
.project-columns > .project-work {
  padding-left: var(--pane-gap);
  border-left: 1px solid var(--line);
  container-type: inline-size;
}
.project-columns .pane-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 37px;
  margin: 0 0 14px;
}
.pane-title h2 {
  margin: 0;
  color: var(--ink);
  font:
    500 22px/1.2 Inter,
    sans-serif;
  letter-spacing: -0.035em;
}
#file-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-new {
  position: relative;
}
.project-new summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}
.project-new summary::-webkit-details-marker {
  display: none;
}
.new-options {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 3;
  min-width: 155px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 4px 14px #17293d24;
}
.new-options button {
  display: block;
  width: 100%;
  padding: 9px 11px;
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
}
.new-options button:hover,
.new-options button:focus-visible {
  background: var(--surface-hover);
}
.project-files .folder-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0;
}
.folder-title-line h3 {
  margin: 0;
  overflow-wrap: anywhere;
}
.project-files .folder-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
}
.project-files .explorer-group + .file-table {
  margin-top: 14px;
}
.folder-item {
  display: flex;
  align-items: center;
  min-width: 0;
  border-radius: 10px;
  background: var(--surface-soft);
}
.folder-item:hover,
.folder-item:focus-within {
  background: var(--surface-hover);
}
.folder-item .folder-tile {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
}
.folder-item > button {
  flex: 0 0 auto;
  margin-right: 3px;
}
.project-files .file-grid {
  border: 0;
  border-radius: 0;
}
.project-files .file-grid th {
  background: transparent;
}
.project-files .file-grid th:last-child {
  width: 38px;
}
.project-files .file-grid .file-action {
  padding: 0;
}
.more-actions {
  font:
    700 20px/1 Inter,
    sans-serif;
}
.project-work .plan-canvas {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.project-work .plan-support {
  border-left: 0;
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
}
.project-work .plan-overview {
  gap: 8px 14px;
  border-radius: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
}
.project-work .plan-overview p {
  margin: 0 0 3px;
}
.project-work .plan-overview progress {
  width: 72px;
}
.project-work .task-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@container (max-width: 720px) {
  .project-work .task-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.project-work .task-heading h3 {
  font:
    500 25px/1.22 Inter,
    sans-serif;
  letter-spacing: -0.035em;
}
.project-work .task-heading > .workspace-actions {
  margin: 10px 0;
}
.project-jumps {
  display: none;
}
.trash-icon {
  display: inline-block;
  position: relative;
  width: 13px;
  height: 14px;
  margin: 0 3px;
  border: 1.5px solid currentColor;
  border-radius: 1px 1px 3px 3px;
}
.trash-icon::before {
  content: '';
  position: absolute;
  inset: -4px -3px auto;
  border-top: 1.5px solid currentColor;
}
.trash-icon::after {
  content: '';
  position: absolute;
  width: 6px;
  top: -6px;
  left: 2px;
  border-top: 1.5px solid currentColor;
}
.room-icon {
  display: inline-block;
  position: relative;
  width: 15px;
  height: 12px;
  margin: 2px 2px 0;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.room-icon::before {
  content: '';
  position: absolute;
  width: 7px;
  height: 3px;
  top: -5px;
  left: 2px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
.room-icon::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  border-top: 1.5px solid currentColor;
}
.star-icon {
  display: inline-block;
  width: 19px;
  text-align: center;
  font:
    23px/1 Arial,
    sans-serif;
}
.drive-menu {
  position: fixed;
  z-index: 30;
  width: 205px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--control-line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 28px #15253c27;
}
.drive-menu [role='menuitem'],
.picker-folders button {
  display: block;
  cursor: pointer;
  width: 100%;
  min-height: 33px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: inherit;
  text-align: left;
  padding: 6px 12px;
  font:
    500 13px/1.35 Inter,
    sans-serif;
}
.drive-menu [role='menuitem']:is(:hover, :focus-visible),
.picker-folders button:is(:hover, :focus-visible) {
  background: var(--surface-hover);
  color: var(--accent-ink);
}
.drive-menu hr {
  border: 0;
  margin: 4px 6px;
  border-top: 1px solid var(--line);
}
.drive-menu [role='menuitem']:disabled {
  color: var(--muted);
  cursor: wait;
}
.drive-dialog {
  width: min(460px, calc(100vw - 24px));
  color: var(--ink);
  background: var(--surface);
}
.drive-modal-body {
  padding: 0 22px 20px;
  overflow-wrap: anywhere;
}
.drive-modal-body p {
  line-height: 1.5;
}
.drive-modal-body .workspace-form {
  padding: 0;
}
.drive-modal-body .drive-danger {
  background: #a32b31 !important;
  color: white !important;
  border-color: transparent !important;
}
.drive-list {
  margin: 10px 0 16px;
  list-style: none;
  padding: 0;
}
.drive-list li,
.star-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
}
.drive-list li > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.drive-list small {
  color: var(--muted);
}
.star-row > button {
  flex: 0 0 auto;
}
.star-row > .file-row-main {
  flex: 1 1 auto;
  min-width: 0;
}
.picker-folders {
  max-height: 210px;
  overflow-y: auto;
  padding: 5px;
  background: var(--surface-soft);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.picker-folders button {
  color: var(--ink);
}
.picker-path {
  font-size: 13px;
  color: var(--muted);
}
.picker-path button {
  background: transparent;
  border: 0;
  padding: 5px 1px;
}
#trash-view section {
  margin: 0 0 24px;
}
#trash-view .workspace-field {
  max-width: 400px;
}
#project-copy-progress:not(:empty) {
  margin-bottom: 10px;
}
@media (min-width: 960px) and (max-width: 1500px) {
  .project-files .file-grid :is(th, td):nth-child(3) {
    display: none;
  }
  .project-files .file-grid th:first-child {
    width: 65%;
  }
  .project-files .file-grid th:nth-child(2) {
    width: auto;
  }
}
@media (max-width: 959px) {
  .project-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-columns > .project-work {
    border-left: 0;
    padding-left: 0;
  }
  .project-jumps {
    display: flex;
    gap: 5px;
    margin: -8px 0 18px;
  }
  .project-jumps button {
    min-height: 36px;
    padding: 0 13px;
    color: var(--accent-ink);
    background: var(--surface-soft);
    border: 0;
    border-radius: 20px;
  }
  .project-jumps button:hover {
    background: var(--surface-hover);
  }
  .task-selected .project-work {
    grid-row: 1;
  }
}
@media (max-width: 540px) {
  .project-header {
    align-items: flex-start;
    gap: 8px;
  }
  .project-header h1 {
    font-size: 27px;
  }
  .project-space .new-options {
    left: auto;
    right: 0;
  }
  .project-space .pane-title h2 {
    font-size: 20px;
  }
  .project-files .file-grid th:nth-child(2),
  .project-files .file-grid td:nth-child(2) {
    display: none;
  }
}

.recents-list li {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
}
.recents-list .my-work-row {
  flex: 1;
  min-width: 0;
}

.folder-tools,
.selection-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 10px;
  min-width: 0;
}
.folder-tools {
  padding: 2px 0 8px;
  border-bottom: 1px solid var(--line);
}
.folder-tools label,
.folder-tools a {
  font-size: 0.78rem;
  color: var(--muted);
}
.folder-tools label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.folder-tools select {
  max-width: 100%;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.folder-tools .native-folder {
  margin-left: auto;
}
.selection-tools {
  background: var(--surface-soft);
  padding: 4px 8px;
  border-radius: 8px;
}
.selection-tools[hidden] {
  display: none;
}
.selection-count {
  font-size: 0.8rem;
  color: var(--accent-ink);
}
.selection-tools button {
  font-size: 0.8rem;
  min-height: 32px;
}
.bulk-feedback {
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.bulk-feedback p,
.bulk-feedback ul {
  margin: 6px 0 8px;
}
.folder-paging:not(:empty) {
  margin-top: 12px;
}
.file-name-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
}
.file-name-cell .file-row-main {
  flex: 1;
  min-width: 0;
}
.item-selector,
.select-shown input {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 0;
  accent-color: var(--accent-ink);
}
.folder-item .item-selector {
  margin-left: 7px;
}
.file-name-cell .item-selector {
  margin-inline: 2px;
}
.folder-item.item-selected,
.file-grid tr.item-selected {
  background: var(--surface-hover);
}
@media (max-width: 540px) {
  .selection-tools {
    gap: 2px 6px;
  }
  .folder-tools {
    gap: 5px 8px;
  }
}
