/* Throwaway Projects prototype chrome. Does not change the staff app. */

.workspace{min-height:calc(100vh - 112px)}
@media(max-width:600px){.workspace{min-height:calc(100vh - 100px)}}

.proto-banner{
  position:sticky;
  top:0;
  z-index:80;
  flex-wrap:wrap;
  gap:8px 12px;
}
.proto-banner-copy{min-width:0}
.proto-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-left:auto;
}
.proto-switch{
  display:inline-flex;
  border:1px solid var(--line-strong, var(--line));
  border-radius:8px;
  overflow:hidden;
  background:var(--surface);
}
.proto-switch button{
  min-width:40px;
  min-height:32px;
  padding:0 12px;
  border:0;
  background:transparent;
  color:var(--ink);
  font-weight:700;
  letter-spacing:.02em;
}
.proto-switch button[aria-pressed="true"]{
  background:var(--blue);
  color:#fff;
}
.proto-switch button:not([aria-pressed="true"]):hover{background:var(--hover, var(--fill))}
.proto-reset{
  border:1px solid var(--line-strong, var(--line));
  background:var(--surface);
  color:var(--ink);
  border-radius:8px;
  min-height:32px;
  padding:0 10px;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
}
.proto-reset:hover{background:var(--hover, var(--fill))}

@media(max-width:600px){
  .proto-banner{padding:8px 12px}
  .proto-banner-copy{font-size:10px}
  .proto-switch button{min-width:36px;padding:0 10px}
}

/* Drag and drop */
.project-card{cursor:grab}
.project-card.is-ghost-source{opacity:.35}
body.is-dragging{cursor:grabbing}
body.is-dragging .project-card{cursor:grabbing}
.drag-ghost{
  position:fixed;
  z-index:200;
  pointer-events:none;
  margin:0;
  transform:rotate(1.5deg);
  box-shadow:0 10px 28px rgba(0,0,0,.45);
  opacity:.95;
}
.task-col.is-drop-target{
  outline:2px dashed var(--blue);
  outline-offset:2px;
  background:color-mix(in srgb,var(--blue) 12%,transparent);
}
.list-cards.is-drop-target{min-height:48px}

/* Editable notes */
.project-notes-edit{
  display:block;
  width:100%;
  min-height:88px;
  margin:0 0 16px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--field-bg, var(--surface-2, var(--surface)));
  color:var(--ink-2, var(--ink));
  font:inherit;
  font-size:13px;
  line-height:1.55;
  resize:vertical;
}
.project-card-detail .project-notes-edit,
.project-chip-detail .project-notes-edit{margin-bottom:12px;min-height:72px}

.move-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.move-row label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:650;
  color:var(--muted);
}
.move-row select{
  min-height:32px;
  padding:0 8px;
  border:1px solid var(--line-strong, var(--line));
  border-radius:8px;
  background:var(--field-bg, var(--surface));
  color:var(--ink);
  font:inherit;
  font-size:13px;
}

.project-panel-head{gap:12px}
.project-panel-close,
.chip-detail-close{
  border:0;
  background:transparent;
  color:var(--muted);
  width:32px;
  height:32px;
  border-radius:8px;
  font-size:18px;
  line-height:1;
  flex:0 0 auto;
}
.project-panel-close:hover,
.chip-detail-close:hover{background:var(--hover, var(--fill));color:var(--ink)}

/* C mini chips are buttons */
button.projects-mini-chip{
  border:0;
  cursor:pointer;
}
button.projects-mini-chip.is-open{
  outline:2px solid var(--blue);
  outline-offset:1px;
}
.projects-mini-kicker{cursor:pointer}
.projects-mini + .project-chip-detail{margin:0 4px 14px}

/* Placeholder modules */
.proto-placeholder{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  padding:28px 24px;
  max-width:520px;
}
.proto-placeholder h2{margin:0 0 8px}
.proto-placeholder p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}

/* Menus */
.proto-menu{
  position:fixed;
  z-index:120;
  min-width:200px;
  max-width:min(280px, calc(100vw - 16px));
  padding:6px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.proto-menu[hidden]{display:none}
.proto-menu button,
.proto-menu .proto-menu-item{
  display:block;
  width:100%;
  text-align:left;
  border:0;
  background:transparent;
  color:var(--ink);
  border-radius:7px;
  padding:8px 10px;
  font:inherit;
  font-size:13px;
}
.proto-menu button:hover{background:var(--hover, var(--fill))}
.proto-menu .proto-menu-note{
  padding:8px 10px;
  font-size:12px;
  color:var(--muted);
  line-height:1.4;
}

/* Tray + account */
.app-tray, .account-menu{
  position:fixed;
  z-index:120;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  padding:12px;
}
.app-tray{width:min(340px, calc(100vw - 24px))}
.app-tray h3{margin:0 0 8px;font-size:14px}
.app-tray p{margin:0 0 10px;color:var(--muted);font-size:12px;line-height:1.4}
.tray-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.tray-grid button{
  border:1px solid var(--line);
  background:var(--surface-2, var(--fill));
  color:var(--ink);
  border-radius:8px;
  padding:10px 8px;
  font-size:12px;
  font-weight:600;
}
.account-menu{min-width:220px}
.account-menu[hidden], .app-tray[hidden]{display:none}

/* Modal */
.proto-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:140;
  background:var(--backdrop, rgba(0,0,0,.5));
  display:grid;
  place-items:center;
  padding:16px;
}
.proto-modal-backdrop[hidden]{display:none}
.proto-modal{
  width:min(420px, 100%);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px 18px 16px;
  box-shadow:0 16px 40px rgba(0,0,0,.4);
}
.proto-modal h2{margin:0 0 12px;font-size:18px}
.proto-modal label{display:block;font-size:12px;font-weight:650;color:var(--muted);margin:0 0 12px}
.proto-modal input, .proto-modal select, .proto-modal textarea{
  display:block;
  width:100%;
  margin-top:6px;
  min-height:36px;
  padding:8px 10px;
  border:1px solid var(--line-strong, var(--line));
  border-radius:8px;
  background:var(--field-bg, var(--surface-2, var(--surface)));
  color:var(--ink);
  font:inherit;
  font-size:14px;
}
.proto-modal textarea{min-height:80px;resize:vertical}
.proto-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.proto-modal-actions button{
  min-height:36px;
  padding:0 14px;
  border-radius:8px;
  font-weight:650;
  font-size:13px;
}
.proto-modal-actions .secondary{
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink);
}
.proto-modal-actions .primary{
  border:0;
  background:var(--blue);
  color:#fff;
}

/* Toast */
.proto-toast{
  position:fixed;
  z-index:160;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  max-width:min(420px, calc(100vw - 24px));
  padding:10px 14px;
  border-radius:10px;
  background:#1f1a17;
  color:#fff;
  font-size:13px;
  line-height:1.4;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.proto-toast[hidden]{display:none}
@media(max-width:600px){
  .proto-toast{bottom:96px}
}

/* Table row done */
.tasks-table tr.is-done .cell-title{text-decoration:line-through;color:var(--muted)}
.th-check, .td-check{width:36px}
.row-check{
  width:28px;height:28px;border:0;background:transparent;color:currentColor;
  display:grid;place-items:center;
}
.row-check .gt-tick{opacity:0}
.row-check[aria-pressed="true"]{color:var(--brand-text)}
.row-check[aria-pressed="true"] .gt-tick{opacity:1}

/* Empty column */
.list-empty{color:var(--muted);font-size:12px;padding:8px 4px}

/* Search no results */
.proto-empty{color:var(--muted);font-size:13px;padding:16px 8px}

/* Keep Move-to visible on touch even when ⋯ would suffice */
@media(hover:none){
  .lead-move{opacity:1}
}
