@charset "UTF-8";
:root {
  --canvas: #f3f1eb;
  --paper: #fffcf5;
  --ink: #343a32;
  --muted: #70766b;
  --line: #d8d9cd;
  --accent: #6b785a;
  --red: #ae6853;
  --shadow: 0 18px 36px -24px #585d4659;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:not(:disabled):active {
  transform: scale(0.97);
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #98a687;
  outline-offset: 1px;
}
button[hidden],
[hidden] {
  display: none !important;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff80;
  color: var(--ink);
  padding: 13px 14px;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 22px;
}
label > input,
label > textarea,
label > select {
  display: block;
  margin-top: 9px;
}
small {
  color: var(--muted);
  line-height: 1.8;
  font-size: 12px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
  font-weight: 550;
}
h3 {
  font-size: 18px;
  font-weight: 550;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 12px 23px;
  border-radius: 28px;
}
.primary {
  background: var(--ink);
  color: var(--paper);
}
.primary:hover {
  background: #4c5744;
}
.secondary {
  border: 1px solid var(--line);
  background: var(--paper);
}
.quiet {
  color: var(--muted);
  padding: 10px 12px;
  min-height: 44px;
}
.quiet:hover {
  color: var(--ink);
  background: #e9eadd;
  border-radius: 24px;
}
.round {
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.round:hover {
  background: #e5e8db;
}
.danger {
  color: #9d4339;
  padding: 12px 8px;
  min-height: 44px;
}
.error {
  color: #a44639;
  font-size: 13px;
  line-height: 1.6;
}
.error:not(:empty) {
  margin-top: 16px;
}
.wordmark {
  font-family: Georgia, "Songti SC", serif;
  font-size: 32px;
  letter-spacing: -1.5px;
}
.brand-dot {
  font-size: 9px;
  color: var(--accent);
  margin-left: 7px;
  vertical-align: middle;
}
.eyebrow {
  display: block;
  letter-spacing: 2.4px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.login-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  max-width: 1480px;
  margin: auto;
}
.login-story {
  position: relative;
  padding: 64px clamp(30px, 7vw, 110px);
  background: #e5e8dc;
  overflow: hidden;
  min-height: 750px;
}
.login-story > .eyebrow {
  margin-top: 80px;
}
.login-story h1 {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(48px, 5vw, 74px);
  line-height: 1.3;
  letter-spacing: -3px;
  margin: 24px 0;
}
.login-story > p {
  line-height: 2.1;
  color: var(--muted);
}
.sample-paper {
  position: absolute;
  bottom: 60px;
  right: 40px;
  width: 270px;
  padding: 35px 34px 29px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-7deg);
  border-radius: 3px 3px 18px 3px;
}
.sample-paper h2 {
  font-family: "Songti SC", Georgia, serif;
  font-size: 27px;
  line-height: 1.65;
  margin: 15px 0;
}
.sample-check {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--accent);
  text-align: center;
  line-height: 28px;
}
.pin {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 12px;
  height: 40px;
  background: #c6b08a;
  border: 1px solid #a8916a;
  border-radius: 3px;
  box-shadow: 2px 3px 4px #433b2824;
  transform: rotate(3deg);
}
.pin:after {
  content: "";
  display: block;
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 4px;
  border-top: 1px solid #967d58;
  border-bottom: 1px solid #967d58;
}
.login-form {
  align-self: center;
  justify-self: center;
  width: min(380px, 100% - 64px);
  padding: 45px 0;
}
.login-form h2 {
  margin-top: 17px;
  margin-bottom: 12px;
}
.login-form > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.login-form > .primary {
  margin: 28px 0 20px;
  width: 100%;
  justify-content: space-between;
}
.login-form .error {
  color: #a44639;
}
.login-form > small {
  display: block;
}
#workspace {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.workspace-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.topbar,
.bottom-bar {
  flex-shrink: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 34px clamp(24px, 5vw, 76px) 26px;
  border-bottom: 1px solid var(--line);
}
#today {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
  letter-spacing: 0.6px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
#sync-status {
  font-size: 12px;
  color: var(--muted);
}
#sync-status:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 7px;
}
.collection-header {
  padding: 38px clamp(24px, 5vw, 76px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.collection-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}
.project-button {
  font-size: 16px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 12px;
  margin-left: -12px;
  border-radius: 12px;
}
.project-button:hover,
.project-button[aria-expanded="true"] {
  background: #e9ebdf;
}
.project-button > span:last-child {
  color: var(--muted);
  transition: transform 0.18s ease;
}
.project-button[aria-expanded="true"] > span:last-child {
  transform: rotate(180deg);
}
.project-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(300px, calc(100vw - 24px));
  padding: 6px;
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px -12px #343a3240;
}
.project-menu:popover-open {
  animation: panel-reveal 0.16s cubic-bezier(.22, 1, .36, 1);
}
.project-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  text-align: left;
}
.project-menu-item:hover,
.project-menu-item:focus-visible {
  background: #e9ebdf;
  transform: translateY(-1px);
}
.project-menu-item[aria-checked="true"] { background: #eef0e5; }
.project-menu-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-menu-check { width: 14px; color: var(--accent); }
.project-menu-count { color: var(--muted); font-size: 11px; }
.project-menu-divider { height: 1px; background: var(--line); margin: 5px 6px; }
.divider {
  color: #aeb4a3;
  font-size: 23px;
  font-weight: 200;
}
.collection-heading h1 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
.collection-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.collection-actions .quiet > span {
  font-size: 11px;
  margin-left: 7px;
}
.line-stage {
  position: relative;
  min-height: 360px;
  margin-top: 12px;
}
.rope {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55px;
  pointer-events: none;
}
.rope path {
  stroke: #a2a995;
  stroke-width: 1.5;
  fill: none;
}
.cards {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 35px max(32px, 5vw) 50px;
  scrollbar-width: thin;
  scrollbar-color: #bec5b0 transparent;
  scroll-behavior: smooth;
  align-items: flex-start;
  min-height: 360px;
}
.task-card,
.drag-preview,
.departure-card {
  position: relative;
  flex: 0 0 270px;
  padding: 26px 24px 18px;
  background: var(--paper);
  border: 1px solid #dedecf;
  box-shadow: var(--shadow);
  border-radius: 4px 4px 15px 4px;
  transform: rotate(var(--tilt));
  transform-origin: 50% -10px;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    border 0.22s ease;
  min-height: 180px;
  animation: arrive 0.3s ease both;
  animation-delay: var(--delay);
}
.task-card:hover {
  transform: rotate(0) translateY(-5px);
  border-color: #a7b196;
}
.task-card.drop-before {
  border-left: 3px solid var(--accent);
  transform: rotate(0) translate3d(5px, -3px, 0);
}
.task-card.drop-after {
  border-right: 3px solid var(--accent);
  transform: rotate(0) translate3d(-5px, -3px, 0);
}
.card-meta {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}
.card-title {
  display: block;
  width: 100%;
  font-size: 21px;
  font-weight: 550;
  line-height: 1.6;
  text-align: left;
  padding: 0;
  overflow-wrap: anywhere;
}
.card-notes {
  white-space: pre-wrap;
  font-size: 13px;
  color: #717568;
  line-height: 1.95;
  margin-top: 12px;
  overflow-wrap: anywhere;
  max-height: 330px;
  overflow: auto;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  border-top: 1px solid #e6e7dc;
  padding-top: 14px;
}
.complete {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  min-height: 36px;
}
.complete .check {
  width: 20px;
  height: 20px;
  border: 1px solid #bdc6ae;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.complete:hover {
  color: var(--accent);
}
.edit-card {
  color: var(--muted);
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.edit-card:hover {
  background: #e8ebdf;
}
.empty-line {
  max-width: 450px;
  margin: 70px auto;
  text-align: center;
}
.empty-line h2 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 34px;
  font-weight: 400;
}
.empty-line p {
  color: var(--muted);
  margin: 18px 0 25px;
  line-height: 1.9;
}
.bottom-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 28px max(24px, 5vw) 40px;
}
.paging {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.paging > span {
  font-size: 10px;
  color: var(--muted);
  max-width: 70px;
  line-height: 1.7;
  margin-left: 10px;
}
.paging .round {
  width: 36px;
  height: 36px;
  font-size: 17px;
}
.dock {
  grid-column: 2;
  display: flex;
  gap: 5px;
  border: 1px solid #d6dbca;
  background: #e9ebdf;
  padding: 7px;
  border-radius: 36px;
}
.dock button {
  padding: 10px 15px;
  border-radius: 25px;
  min-height: 44px;
  font-size: 12px;
  transform-origin: 50% 100%;
  white-space: nowrap;
}
.dock button.active {
  background: var(--paper);
  box-shadow: 0 2px 6px #55604412;
}
.dock button.near {
  transform: scale(1.08);
  background: var(--paper);
}
.dock button.drop-active {
  transform: scale(1.12);
  background: color-mix(in srgb, var(--quadrant-color) 15%, var(--paper));
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--quadrant-color) 40%, transparent);
}
.dock .count {
  margin-left: 9px;
  color: var(--muted);
  font-size: 10px;
}
.q-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--quadrant-color);
}
.quadrant-label {
  color: var(--quadrant-color);
}
.q-importantUrgent {
  --quadrant-color: #b33e36;
}
.q-importantNotUrgent {
  --quadrant-color: #346aa8;
}
.q-notImportantUrgent {
  --quadrant-color: #9b6719;
}
.q-neither {
  --quadrant-color: #52724a;
}
dialog {
  border: 1px solid #dddfd0;
  border-radius: 22px;
  background: var(--canvas);
  color: var(--ink);
  padding: 30px;
  width: min(500px, 100% - 28px);
  max-height: 90svh;
  box-shadow: 0 25px 90px #343a3230;
  overflow-y: auto;
}
dialog::backdrop {
  background: #343a3238;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 15px;
}
.dialog-heading .round {
  width: 36px;
  height: 36px;
  font-size: 22px;
}
.editor-dialog {
  margin-right: 20px;
  margin-top: 20px;
  min-height: calc(100svh - 40px);
  max-height: calc(100svh - 40px);
  padding: 32px;
}
.editor-dialog h2 {
  margin: 24px 0;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 24px 0 14px;
}
.form-actions .danger {
  margin-right: auto;
}
.inline-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.project-row,
.user-row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.project-name {
  flex: 1;
  text-align: left;
  font-size: 16px;
}
.project-row input {
  flex: 1;
}
.user-row .user-info {
  flex: 1;
  text-align: left;
  line-height: 1.8;
}
.user-info > small {
  display: block;
}
#account-content {
  padding: 10px 0 24px;
  line-height: 2;
}
#account-dialog > .secondary {
  width: 100%;
  margin-bottom: 12px;
}
#users-dialog form {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 24px;
}
.confirm-dialog {
  max-width: 400px;
}
.confirm-dialog p {
  line-height: 1.9;
  color: var(--muted);
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.conflict-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(740px, 100% - 32px);
  padding: 20px 24px;
  border: 1px solid #bcb49b;
  border-radius: 16px;
  background: #f7f0dd;
  box-shadow: var(--shadow);
  z-index: 5;
}
.conflict-banner p {
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.7;
}
.conflict-banner button {
  padding: 8px 12px;
  border: 1px solid #bcb49b;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 10px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 13px;
  box-shadow: var(--shadow);
  z-index: 10;
  max-width: 90%;
  line-height: 1.8;
}
.toast button {
  color: #ccd5be;
  font-weight: 600;
  margin-left: 20px;
  padding: 4px 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@keyframes arrive {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 1600px) {
  .task-card,
  .drag-preview,
  .departure-card {
    flex-basis: 310px;
    padding: 30px;
  }
  .cards {
    gap: 40px;
  }
  .line-stage {
    min-height: 470px;
  }
  .topbar {
    padding-top: 48px;
  }
  .collection-header {
    padding-top: 50px;
  }
}
@media (max-width: 1000px) {
  .bottom-bar {
    grid-template-columns: 1fr;
  }
  .paging { grid-row: 2; }
  .dock {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    justify-content: center;
  }
  .collection-heading {
    gap: 10px;
  }
  .login-story {
    padding: 50px 36px;
  }
  .sample-paper {
    right: 30px;
    width: 230px;
    bottom: 60px;
  }
  .login-story h1 {
    font-size: 54px;
  }
}
@media (max-width: 640px) {
  .login-layout {
    display: block;
  }
  .login-story {
    min-height: unset;
    padding: 30px;
    background: var(--canvas);
  }
  .login-story > .eyebrow {
    margin-top: 35px;
  }
  .login-story h1 {
    font-size: 40px;
    line-height: 1.35;
    margin: 18px 0;
  }
  .login-story > p,
  .sample-paper {
    display: none;
  }
  .login-form {
    width: auto;
    padding: 20px 30px 50px;
  }
  .login-form > .eyebrow {
    display: none;
  }
  .login-form h2 {
    font-size: 23px;
    margin-top: 0;
  }
  .topbar {
    padding: 24px;
  }
  .wordmark {
    font-size: 28px;
  }
  .top-actions {
    gap: 12px;
  }
  #sync-status {
    font-size: 10px;
  }
  .collection-header {
    padding: 26px 24px 20px;
    display: block;
  }
  .collection-heading h1 {
    font-size: 20px;
  }
  .collection-actions {
    margin-top: 20px;
    justify-content: space-between;
  }
  .collection-actions .primary {
    padding: 10px 20px;
  }
  .line-stage {
    margin-top: 16px;
    min-height: 320px;
  }
  .cards {
    padding: 30px 24px 36px;
    gap: 24px;
    min-height: 320px;
    scroll-snap-type: x proximity;
  }
  .task-card {
    flex-basis: calc(100vw - 90px);
    scroll-snap-align: center;
  }
  .bottom-bar {
    padding: 14px 24px 28px;
    gap: 16px;
  }
  .dock {
    border-radius: 16px;
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .dock button {
    padding: 9px 12px;
    text-align: left;
    border-radius: 12px;
  }
  .paging > span {
    max-width: unset;
    font-size: 10px;
  }
  .editor-dialog {
    margin: auto;
    min-height: unset;
    max-height: 90svh;
    padding: 26px;
  }
  .empty-line h2 {
    font-size: 28px;
  }
  .empty-line {
    margin: 50px 12px;
  }
  .rope {
    height: 40px;
  }
  .field-pair {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 24px;
  }
  .toast {
    width: max-content;
  }
}

/* Paper actions are one-shot compositor animations, with no bitmap resources. */
.paper-departure {
  position: fixed;
  pointer-events: none;
  z-index: 1001;
}
.departure-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  transform-origin: 50% 50%;
}
.departure-card .pin { opacity: 0; }
.fold-facet {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  background: var(--paper);
}
.fold-shade {
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
}
.saved-mark {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: inherit;
  pointer-events: none;
}
dialog[open] { animation: panel-reveal .2s cubic-bezier(.22,1,.36,1); }
.editor-dialog[open] { animation: editor-reveal .22s cubic-bezier(.22,1,.36,1); }
.toast { animation: toast-reveal .18s cubic-bezier(.22,1,.36,1); }
.error:not(:empty) { animation: error-reveal .18s ease-out; }
input, textarea, select { transition: border-color .15s ease-out, outline-color .15s ease-out; }
@keyframes panel-reveal {
  from { opacity: .4; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes editor-reveal {
  from { opacity: .4; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-reveal {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes error-reveal {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .paper-departure { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.project-drop-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px 24px;
}
.project-drop-targets .drop-active {
  background: #d3dcc2;
  transform: scale(1.08);
}

.session-boot {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
}

.task-card {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.card-title {
  cursor: grab;
}
.task-card.drag-origin {
  opacity: 0.25;
  animation: none;
}
.task-card.settling {
  animation: none;
}
.task-card.drop-landing {
  opacity: 0;
}
.drag-preview {
  position: fixed;
  margin: 0;
  z-index: 1000;
  pointer-events: none;
  animation: none;
  will-change: transform, translate;
  transform-origin: 50% 50%;
  box-shadow:
    0 28px 60px -18px #343a3260,
    0 6px 16px #343a321a;
}
.drag-preview.is-lifted {
  transform: rotate(var(--drag-angle, 0deg)) scale(1.055);
}
.drag-preview .pin {
  opacity: 0;
}
.dragging-active,
.dragging-active * {
  cursor: grabbing !important;
}
@media (prefers-reduced-motion: reduce) {
  .drag-preview.is-lifted {
    transform: none;
  }
}

.project-drop-targets {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 100% - 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  z-index: 3;
}

/* A completed paper keeps its empty place until the last folding flight finishes. */
.paper-vacancy {
  flex: 0 0 270px;
  visibility: hidden;
  pointer-events: none;
}

/* Copy feedback stays local to its card, preserving any completion Undo toast. */
.card-title { margin: 0; }
.task-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.card-copy-feedback {
  position: absolute;
  right: 16px;
  bottom: -13px;
  padding: 5px 11px;
  border: 1px solid #d8ddcc;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
  box-shadow: 0 3px 12px #343a3210;
  animation: toast-reveal .16s ease-out;
}
.card-copy-feedback.is-error { color: #ac443b; }
@media (prefers-reduced-motion: reduce) {
  .card-copy-feedback { animation: none; }
}
