#draw3 > .lf3-task-library-boot {
  display: none;
}

#draw3.lf3-task-library-pending > .lf3-task-library-boot {
  align-content: center;
  justify-items: center;
  min-height: calc(100vh - 4rem);
  display: grid;
  gap: .55rem;
  background: #fff;
  color: #172033;
  text-align: center;
}

#draw3.lf3-task-library-pending > .lf3-task-library-boot > span {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
}

#draw3.lf3-task-library-pending > .lf3-task-library-boot i {
  width: 1rem;
  height: 1rem;
  border: .125rem solid #bfd0f7;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: lf3TaskLibraryBootSpin .8s linear infinite;
}

#draw3.lf3-task-library-pending > .lf3-task-library-boot strong {
  font-size: .95rem;
}

#draw3.lf3-task-library-pending > .lf3-task-library-boot small {
  color: #8490a3;
  font-size: .74rem;
}

@keyframes lf3TaskLibraryBootSpin {
  to { transform: rotate(360deg); }
}

#draw3.lf3-task-library-mode > .lf-suite {
  display: none !important;
}

#draw3:not(.lf3-task-library-mode) > .lf3-task-library {
  display: none !important;
}

#draw3 .lf3-task-library.lf3-resume-info-open {
  padding-right: 23.5rem;
}

#draw3 .lf3-resume-info[hidden] {
  display: none !important;
}

#draw3 .lf3-resume-info {
  position: fixed;
  z-index: 120;
  top: 4rem;
  right: 0;
  bottom: 0;
  width: 22rem;
  min-width: 0;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: .0625rem solid #e2e8f0;
  background: #fff;
  color: #172033;
  box-shadow: -.75rem 0 2rem rgba(15, 23, 42, .05);
}

#draw3 .lf3-resume-info-head {
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.1rem;
  border-bottom: .0625rem solid #e8edf4;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(.75rem);
}

#draw3 .lf3-resume-info-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

#draw3 .lf3-resume-info-head div {
  min-width: 0;
}

#draw3 .lf3-resume-info-head span {
  display: block;
  margin-bottom: .28rem;
  color: #8a94a6;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

#draw3 .lf3-resume-info-head strong {
  display: block;
  overflow: hidden;
  color: #162033;
  font-size: 1rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#draw3 .lf3-resume-info-head button {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: .0625rem solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}

#draw3 .lf3-resume-info section {
  margin: 0 1.1rem;
  padding: 1rem 0;
  border-bottom: .0625rem solid #edf1f6;
}

#draw3 .lf3-resume-info section[hidden] {
  display: none !important;
}

#draw3 .lf3-resume-info h3 {
  margin: 0 0 .7rem;
  color: #344054;
  font-size: .82rem;
}

#draw3 .lf3-resume-references {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .48rem;
}

#draw3 .lf3-resume-reference {
  aspect-ratio: 1;
  overflow: hidden;
  border: .0625rem solid #e3e8ef;
  border-radius: .55rem;
  background: #f6f8fb;
}

#draw3 .lf3-resume-reference img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#draw3 .lf3-resume-info section p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #475467;
  font-size: .78rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
}

#draw3 .lf3-resume-meta {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  margin: 0;
  padding: .45rem 1.1rem 1.25rem;
}

#draw3 .lf3-resume-meta dt,
#draw3 .lf3-resume-meta dd {
  margin: 0;
  padding: .72rem 0;
  border-bottom: .0625rem solid #edf1f6;
  font-size: .78rem;
  line-height: 1.45;
}

#draw3 .lf3-resume-meta dt {
  color: #98a2b3;
}

#draw3 .lf3-resume-meta dd {
  min-width: 0;
  color: #344054;
  font-weight: 650;
  overflow-wrap: anywhere;
}

#draw3 .lf3-resume-info-footer {
  position: relative;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 1rem 1.1rem 1.15rem;
  border-top: .0625rem solid #e8edf4;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(.75rem);
}

#draw3 .lf3-resume-info-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 2.75rem;
  border: 0;
  border-radius: .68rem;
  background: #2166ee;
  color: #fff;
  font-size: .88rem;
  font-weight: 750;
  box-shadow: 0 .65rem 1.4rem rgba(33, 102, 238, .22);
  cursor: pointer;
}

#draw3 .lf3-resume-info-footer button:hover {
  background: #1557da;
}

@media (max-width: 80rem) {
  #draw3 .lf3-task-library.lf3-resume-info-open {
    padding-right: 1.5rem;
  }

  #draw3 .lf3-resume-info {
    position: fixed;
    z-index: 120;
    top: 4rem;
    right: 0;
    bottom: 0;
    width: min(21rem, calc(100vw - 2rem));
  }
}

#draw3 .lf3-task-library {
  position: relative;
  min-height: calc(100vh - 7.5rem);
  padding: 1.5rem;
  overflow: auto;
  background: #f8fafc;
  color: #172033;
}

/* Workbench utility actions: one compact, consistent control family. */
#draw3 .lf3-workbench-actions {
  gap: .35rem;
  padding: .2rem;
  border: .0625rem solid rgba(148, 163, 184, .24);
  border-radius: .72rem;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 .2rem .7rem rgba(15, 23, 42, .055);
}

#draw3 .lf3-workbench-actions .history,
#draw3 .lf3-workbench-actions #lf3MoreMenuBtn {
  min-height: 2rem;
  padding: 0 .68rem;
  border: .0625rem solid transparent;
  border-radius: .5rem;
  background: transparent;
  color: #475569;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

#draw3 .lf3-workbench-actions .history i,
#draw3 .lf3-workbench-actions #lf3MoreMenuBtn i {
  width: .9rem;
  color: #64748b;
  font-size: .72rem;
  text-align: center;
}

#draw3 .lf3-workbench-actions .lf3-library-back {
  border-color: #dbe3ed;
  background: #fff;
  color: #334155;
  box-shadow: 0 .12rem .3rem rgba(15, 23, 42, .05);
}

#draw3 .lf3-workbench-actions .history:hover,
#draw3 .lf3-workbench-actions #lf3MoreMenuBtn:hover,
#draw3 .lf3-workbench-actions #lf3MoreMenuBtn[aria-expanded="true"] {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  box-shadow: none;
}

#draw3 .lf3-workbench-actions .history:hover i,
#draw3 .lf3-workbench-actions #lf3MoreMenuBtn:hover i,
#draw3 .lf3-workbench-actions #lf3MoreMenuBtn[aria-expanded="true"] i {
  color: #ea580c;
}

#draw3 .lf3-workbench-actions .history:active,
#draw3 .lf3-workbench-actions #lf3MoreMenuBtn:active {
  transform: translateY(.0625rem);
}

#draw3 .lf3-workbench-actions .history:focus-visible,
#draw3 .lf3-workbench-actions #lf3MoreMenuBtn:focus-visible,
#draw3 .lf3-more-menu button:focus-visible {
  outline: .125rem solid rgba(249, 115, 22, .35);
  outline-offset: .125rem;
}

#draw3 .lf3-more-menu {
  top: calc(100% + .48rem);
  min-width: 11.25rem;
  padding: .38rem;
  border-color: #e2e8f0;
  border-radius: .72rem;
  box-shadow: 0 .8rem 2rem rgba(15, 23, 42, .13), 0 .12rem .35rem rgba(15, 23, 42, .06);
}

#draw3 .lf3-more-menu #lf3ClearWorkbenchBtn {
  min-height: 2.35rem;
  padding: 0 .68rem;
  border: .0625rem solid transparent;
  border-radius: .5rem;
  background: transparent;
  color: #b42318;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
}

#draw3 .lf3-more-menu #lf3ClearWorkbenchBtn i {
  width: .95rem;
  color: #d92d20;
  font-size: .78rem;
  text-align: center;
}

#draw3 .lf3-more-menu #lf3ClearWorkbenchBtn:hover {
  border-color: #fee4e2;
  background: #fff4f3;
  color: #912018;
}

body.theme-dark #draw3 .lf3-workbench-actions {
  border-color: #334155;
  background: rgba(15, 23, 42, .86);
  box-shadow: none;
}

body.theme-dark #draw3 .lf3-workbench-actions .lf3-library-back {
  border-color: #475569;
  background: #1e293b;
  color: #e2e8f0;
}

body.theme-dark #draw3 .lf3-more-menu {
  border-color: #334155;
  background: #172033;
}

body.theme-dark #draw3 .lf3-more-menu #lf3ClearWorkbenchBtn:hover {
  border-color: rgba(248, 113, 113, .25);
  background: rgba(127, 29, 29, .2);
}

#draw3 .lf3-task-library-shell {
  width: min(100%, 96rem);
  margin: 0 auto;
}

#draw3 .lf3-task-library-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

#draw3 .lf3-task-library-title h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.35;
}

#draw3 .lf3-task-library-title p {
  margin: .38rem 0 0;
  color: #64748b;
  font-size: .86rem;
}

#draw3 .lf3-task-new-button,
#draw3 .lf3-task-card-button,
#draw3 .lf3-library-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.35rem;
  padding: 0 .85rem;
  border: 1px solid #cbd5e1;
  border-radius: .58rem;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

#draw3 .lf3-task-new-button {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 .35rem .9rem rgba(37, 99, 235, .18);
}

#draw3 .lf3-task-new-button:hover {
  background: #1d4ed8;
}

#draw3 .lf3-task-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1rem;
}

#draw3 .lf3-task-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 .45rem 1.3rem rgba(15, 23, 42, .055);
}

#draw3 .lf3-task-card.is-current {
  border-color: #bfdbfe;
  box-shadow: 0 .45rem 1.3rem rgba(37, 99, 235, .09);
}

#draw3 .lf3-task-card-cover {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: .22rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
  background: #eef2f7;
}

#draw3 .lf3-task-card-cover.is-single {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

#draw3 .lf3-task-card-cover.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}

#draw3 .lf3-task-card-cover.is-three .lf3-task-card-cover-cell:first-child {
  grid-row: 1 / span 2;
}

#draw3 .lf3-task-card-cover-cell {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f1f5f9;
  color: #94a3b8;
}

#draw3 .lf3-task-card-cover-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#draw3 .lf3-task-card-cover-cell i {
  font-size: 1.15rem;
}

#draw3 .lf3-task-card-body {
  display: grid;
  gap: .72rem;
  padding: .9rem;
}

#draw3 .lf3-task-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

#draw3 .lf3-task-card-heading h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #172033;
  font-size: .95rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#draw3 .lf3-task-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0 .48rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: .65rem;
  font-weight: 800;
}

#draw3 .lf3-task-status.is-complete {
  background: #ecfdf3;
  color: #15803d;
}

#draw3 .lf3-task-status.is-running {
  background: #fff7ed;
  color: #c2410c;
}

#draw3 .lf3-task-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: #64748b;
  font-size: .73rem;
}

#draw3 .lf3-task-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}

#draw3 .lf3-task-card-image-count {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: #64748b;
  font-size: .71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#draw3 .lf3-task-card-button {
  flex: 0 0 auto;
}

#draw3 .lf3-task-card-button.is-primary {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
  color: #1d4ed8;
}

#draw3 .lf3-task-card-button:hover,
#draw3 .lf3-library-back:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

#draw3 .lf3-task-card-button:disabled {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

#draw3 .lf3-task-library-empty {
  display: grid;
  justify-items: center;
  gap: .75rem;
  padding: 5rem 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: .9rem;
  background: #fff;
  color: #64748b;
  text-align: center;
}

#draw3 .lf3-task-library-empty i {
  color: #93c5fd;
  font-size: 2rem;
}

#draw3 .lf3-task-library-empty strong {
  color: #334155;
  font-size: 1rem;
}

#draw3 .lf3-task-library-empty span {
  font-size: .8rem;
}

#draw3 .lf3-library-back {
  flex: 0 0 auto;
  min-height: 2rem;
  margin-right: .35rem;
  padding: 0 .65rem;
  font-size: .72rem;
}

.lf3-task-gallery-overlay[hidden] {
  display: none !important;
}

.lf3-task-gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lf3-task-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .68);
}

.lf3-task-gallery-dialog {
  position: relative;
  width: min(92vw, 90.625rem);
  height: min(94vh, 51rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 1rem;
  background: #fff;
  color: #172033;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .3);
}

.lf3-task-gallery-dialog:focus {
  outline: none;
}

.lf3-task-gallery-header {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.lf3-task-gallery-heading {
  min-width: 0;
}

.lf3-task-gallery-heading h2 {
  margin: 0;
  overflow: hidden;
  color: #172033;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf3-task-gallery-heading p {
  margin: .22rem 0 0;
  color: #64748b;
  font-size: .7rem;
}

.lf3-task-gallery-tools {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.lf3-task-gallery-counter {
  min-width: 3.55rem;
  padding: .38rem .72rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
}

.lf3-task-gallery-close,
.lf3-task-gallery-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #1e3a5f;
  cursor: pointer;
}

.lf3-task-gallery-close {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-color: transparent;
  border-radius: .58rem;
  background: #f8fafc;
}

.lf3-task-gallery-close:hover,
.lf3-task-gallery-arrow:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
}

.lf3-task-gallery-overview {
  min-height: 0;
  overflow: auto;
  padding: 1rem;
}

.lf3-task-gallery-overview[hidden],
.lf3-task-gallery-viewer[hidden],
.lf3-task-gallery-counter[hidden] {
  display: none !important;
}

.lf3-task-gallery-overview-head {
  margin-bottom: 1rem;
}

.lf3-task-gallery-overview-head h3 {
  margin: 0;
  color: #172033;
  font-size: 1rem;
}

.lf3-task-gallery-overview-head p {
  margin: .28rem 0 0;
  color: #64748b;
  font-size: .78rem;
}

.lf3-task-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.lf3-task-gallery-tile {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: .68rem;
  background: #fff;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

.lf3-task-gallery-tile:hover,
.lf3-task-gallery-tile:focus-visible {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .13);
}

.lf3-task-gallery-tile-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1f5f9;
}

.lf3-task-gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lf3-task-gallery-tile > span:last-child {
  padding: .62rem .72rem;
  overflow: hidden;
  border-top: 1px solid #e2e8f0;
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf3-task-gallery-viewer {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.lf3-task-gallery-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: #fff;
}

.lf3-task-gallery-canvas {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: .75rem;
  background: #f8fafc;
}

.lf3-task-gallery-main-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lf3-task-gallery-arrow {
  width: 3.5rem;
  height: 5rem;
  padding: 0;
  border-radius: .65rem;
  font-size: 1.1rem;
}

.lf3-task-gallery-arrow:disabled {
  opacity: .38;
  cursor: default;
}

.lf3-task-gallery-thumbnails {
  min-height: 7.5rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  overflow-x: auto;
  padding: .62rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.lf3-task-gallery-thumbnail {
  flex: 0 0 5.8rem;
  display: grid;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: .62rem;
  background: #fff;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

.lf3-task-gallery-thumbnail.is-active,
.lf3-task-gallery-thumbnail:focus-visible {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 1px #2563eb;
}

.lf3-task-gallery-thumbnail-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
}

.lf3-task-gallery-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lf3-task-gallery-thumbnail > span:last-child {
  padding: .36rem .48rem;
  overflow: hidden;
  font-size: .65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.lf3-task-gallery-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  #draw3 .lf3-task-library {
    padding: 1rem;
  }

  #draw3 .lf3-task-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lf3-task-gallery-overlay {
    padding: .75rem;
  }

  .lf3-task-gallery-dialog {
    width: calc(100vw - 1.5rem);
    height: calc(100vh - 1.5rem);
  }

  .lf3-task-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  #draw3 .lf3-task-library-head {
    align-items: stretch;
    flex-direction: column;
  }

  #draw3 .lf3-task-new-button {
    width: 100%;
  }

  #draw3 .lf3-task-library-grid,
  .lf3-task-gallery-grid {
    grid-template-columns: 1fr;
  }

  .lf3-task-gallery-stage {
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    gap: .35rem;
    padding-inline: .5rem;
  }

  .lf3-task-gallery-arrow {
    width: 2.5rem;
    height: 4rem;
  }
}

/* Daily generation timeline — production layout */
#draw3 .lf3-task-library {
  min-height: calc(100vh - 5rem);
  padding: 2.25rem 2.5rem 0;
  background: #fff;
}

#draw3 .lf3-task-library-shell {
  width: 100%;
  max-width: none;
}

#draw3 .lf3-task-library-head {
  align-items: flex-end;
  gap: 2rem;
  margin: 0 0 1rem;
}

#draw3 .lf3-task-library-title {
  flex: 0 0 auto;
}

#draw3 .lf3-task-library-title > span {
  display: block;
  margin-bottom: .22rem;
  color: #1769f7;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .15em;
}

#draw3 .lf3-task-library-title h2 {
  color: #10213a;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1;
}

#draw3 .lf3-task-library-title p {
  margin-top: .45rem;
  color: #778293;
  font-family: "Songti SC", "SimSun", serif;
  font-size: .82rem;
}

#draw3 .lf3-task-library-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
}

#draw3 .lf3-task-search,
#draw3 .lf3-task-filter {
  height: 2.9rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  box-sizing: border-box;
  padding: 0 .75rem;
  border: 1px solid #dfe4eb;
  border-radius: .65rem;
  background: #fff;
  color: #8090a5;
}

#draw3 .lf3-task-search {
  width: min(19rem, 25vw);
  gap: 0;
  padding: .22rem;
  overflow: hidden;
}

#draw3 .lf3-task-search:focus-within {
  border-color: #89aef3;
  box-shadow: 0 0 0 3px rgba(33, 105, 221, .1);
}

#draw3 .lf3-task-search input,
#draw3 .lf3-task-filter select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #25334a;
  font: inherit;
  font-size: .82rem;
}

#draw3 .lf3-task-search input {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0 .7rem;
  border-radius: .45rem 0 0 .45rem;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

#draw3 .lf3-task-search input:focus {
  outline: 0;
  box-shadow: none;
}

#draw3 .lf3-task-search button {
  width: 2.48rem;
  height: 2.4rem;
  flex: 0 0 2.48rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: .48rem;
  background: #28476f;
  color: #fff;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

#draw3 .lf3-task-search button:hover {
  background: #1d3a60;
  box-shadow: 0 5px 12px rgba(27, 54, 91, .2);
}

#draw3 .lf3-task-search button:active {
  transform: scale(.96);
}

#draw3 .lf3-task-search button:focus-visible {
  outline: 2px solid #8ab0f2;
  outline-offset: 1px;
}

#draw3 .lf3-task-filter select {
  width: 6.4rem;
  cursor: pointer;
}

#draw3 .lf3-task-filter-control {
  position: relative;
  flex: 0 0 auto;
  padding-right: .42rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

#draw3 .lf3-task-filter-control.is-open {
  border-color: #89aef3;
  box-shadow: 0 0 0 3px rgba(33, 105, 221, .1);
}

#draw3 .lf3-task-filter-native {
  display: none !important;
}

#draw3 .lf3-task-filter-trigger {
  width: 6.4rem;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #25334a;
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}

#draw3 .lf3-task-filter-trigger > span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#draw3 .lf3-task-filter-trigger > i {
  flex: 0 0 auto;
  color: #526175;
  font-size: .65rem;
  transition: transform 150ms ease;
}

#draw3 .lf3-task-filter-control.is-open .lf3-task-filter-trigger > i {
  transform: rotate(180deg);
}

#draw3 .lf3-task-filter-trigger:focus-visible {
  border-radius: .35rem;
  box-shadow: 0 0 0 2px rgba(33, 105, 221, .22);
}

#draw3 .lf3-task-filter-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + .42rem);
  left: -.05rem;
  min-width: calc(100% + .1rem);
  max-width: 14rem;
  max-height: min(18rem, calc(100vh - 8rem));
  box-sizing: border-box;
  padding: .35rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dfe5ed;
  border-radius: .72rem;
  background: #fff;
  box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .14), 0 .12rem .35rem rgba(15, 23, 42, .06);
}

#draw3 .lf3-task-filter-popover[hidden] {
  display: none !important;
}

#draw3 .lf3-task-filter-option {
  width: 100%;
  min-height: 2rem;
  display: flex;
  align-items: center;
  padding: .42rem .62rem;
  border: 0;
  border-radius: .48rem;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: .8rem;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

#draw3 .lf3-task-filter-option:hover,
#draw3 .lf3-task-filter-option:focus-visible {
  outline: 0;
  background: #f4f7fb;
}

#draw3 .lf3-task-filter-option.is-selected {
  background: #edf4ff;
  color: #1769e8;
  font-weight: 800;
}

#draw3 .lf3-task-date-wrap {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
}

#draw3 .lf3-task-date-button {
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  box-sizing: border-box;
  padding: 0 .82rem;
  border: 1px solid #dfe4eb;
  border-radius: .65rem;
  background: #fff;
  color: #25334a;
  font: inherit;
  font-size: .82rem;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

#draw3 .lf3-task-date-button:hover,
#draw3 .lf3-task-date-wrap.open .lf3-task-date-button {
  border-color: #89aef3;
  box-shadow: 0 0 0 3px rgba(33, 105, 221, .1);
}

#draw3 .lf3-task-date-button.has-value {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #ea580c;
}

#draw3 .lf3-task-date-panel {
  top: calc(100% + .5rem);
  right: 0;
  left: auto;
  z-index: 90;
  width: 19rem;
  font-size: 16px;
}

#draw3 .lf3-task-date-wrap.open .lf3-task-date-panel {
  display: grid;
  gap: .5rem;
}

#draw3 .lf3-task-view-switch {
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  box-sizing: border-box;
  padding: .22rem;
  border: 1px solid #dfe4eb;
  border-radius: .65rem;
  background: #fff;
}

#draw3 .lf3-task-view-switch button {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: .48rem;
  background: transparent;
  color: #8390a2;
  cursor: pointer;
}

#draw3 .lf3-task-view-switch button.is-active {
  background: #edf4ff;
  color: #1769f7;
}

#draw3 .lf3-task-new-button {
  min-height: 2.9rem;
  padding: 0 1rem;
  border-radius: .65rem;
  background: #1769f7;
  font-size: .82rem;
  box-shadow: 0 .55rem 1.3rem rgba(23, 105, 247, .2);
}

#draw3 .lf3-task-library-grid {
  display: block;
  margin: 0 -2.5rem;
}

#draw3 .lf3-task-day {
  position: relative;
  min-height: 16.5rem;
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.15rem 2.5rem 1.3rem;
  border-top: 1px solid #e7eaf0;
}

#draw3 .lf3-task-day-stamp {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: .75rem;
  padding: .15rem 0 0 1.05rem;
  overflow: visible;
  border-left: 1px solid #dbe2eb;
}

#draw3 .lf3-task-day-stamp > i {
  position: absolute;
  top: .18rem;
  left: -.38rem;
  width: .68rem;
  height: .68rem;
  box-sizing: border-box;
  border: 2px solid #b7c3d2;
  border-radius: 50%;
  background: #fff;
}

#draw3 .lf3-task-day:first-child .lf3-task-day-stamp > i {
  border-color: #1769f7;
  background: #1769f7;
  box-shadow: 0 0 0 .35rem rgba(23, 105, 247, .08);
}

#draw3 .lf3-task-day-stamp > span {
  min-height: 1rem;
  color: #1d2a3e;
  font-size: .84rem;
  font-weight: 750;
}

#draw3 .lf3-task-day-stamp > strong {
  margin-top: .55rem;
  color: #0f172a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1;
}

#draw3 .lf3-task-day-stamp > strong small {
  color: #4a5870;
  font-size: 1.35rem;
  font-weight: 400;
}

#draw3 .lf3-task-day-stamp > em {
  margin-top: .7rem;
  color: #738095;
  font-size: .76rem;
  font-style: normal;
}

#draw3 .lf3-task-day-content {
  position: relative;
  min-width: 0;
}

#draw3 .lf3-task-day-track {
  min-width: 0;
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding: .1rem .1rem 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

#draw3 .lf3-task-day-track::-webkit-scrollbar {
  display: none;
}

#draw3 .lf3-task-card {
  width: 16.5rem;
  flex: 0 0 16.5rem;
  overflow: visible;
  border-radius: .62rem;
  box-shadow: 0 .12rem .35rem rgba(15, 23, 42, .035);
  scroll-snap-align: start;
}

#draw3 .lf3-task-card:hover {
  border-color: #c4d2e5;
  box-shadow: 0 .8rem 1.8rem rgba(15, 23, 42, .09);
  transform: translateY(-2px);
}

#draw3 .lf3-task-card-cover {
  width: 100%;
  height: 10.2rem;
  display: block;
  padding: 0;
  border: 0;
  border-radius: .62rem .62rem 0 0;
  background: #f2f3f5;
  cursor: pointer;
}

#draw3 .lf3-task-card-cover:disabled {
  cursor: default;
}

#draw3 .lf3-task-card-cover-cell,
#draw3 .lf3-task-card-cover-cell img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

#draw3 .lf3-task-card-cover-cell img {
  object-fit: contain;
  object-position: center;
  background: #f7f7f5;
}

#draw3 .lf3-task-day.is-recent {
  min-height: 15rem;
  background: linear-gradient(90deg, rgba(237, 244, 255, .66), rgba(255, 255, 255, 0) 55%);
}

#draw3 .lf3-recent-stamp > i {
  border-color: #1769f7;
  background: #1769f7;
  box-shadow: 0 0 0 .35rem rgba(23, 105, 247, .08);
}

#draw3 .lf3-recent-stamp > span {
  color: #1769f7;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .14em;
}

#draw3 .lf3-recent-stamp > strong {
  margin-top: .58rem;
  font-family: inherit;
  font-size: 1.72rem;
  font-weight: 780;
  letter-spacing: -.04em;
}

#draw3 .lf3-recent-image-track {
  min-width: 0;
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding: .1rem .1rem 1rem;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

#draw3 .lf3-recent-image-track::-webkit-scrollbar { display: none; }

#draw3 .lf3-recent-image-card {
  width: 13.6rem;
  flex: 0 0 13.6rem;
  display: grid;
  overflow: hidden;
  padding: 0;
  border: 1px solid #dce3ed;
  border-radius: .72rem;
  background: #fff;
  color: #172033;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 .2rem .6rem rgba(15, 23, 42, .045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#draw3 .lf3-recent-image-card:hover,
#draw3 .lf3-recent-image-card:focus-visible {
  border-color: #9dbcf4;
  outline: none;
  box-shadow: 0 .9rem 2rem rgba(23, 105, 247, .12);
  transform: translateY(-2px);
}

#draw3 .lf3-recent-image-media {
  height: 8.6rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f7f7f5;
}

#draw3 .lf3-recent-image-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

#draw3 .lf3-recent-image-copy {
  min-width: 0;
  display: grid;
  gap: .28rem;
  padding: .68rem .76rem .72rem;
}

#draw3 .lf3-recent-image-copy strong,
#draw3 .lf3-recent-image-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#draw3 .lf3-recent-image-copy strong { font-size: .82rem; }
#draw3 .lf3-recent-image-copy span { color: #5f6e83; font-size: .7rem; }
#draw3 .lf3-recent-image-copy em { color: #8c97a8; font-size: .66rem; font-style: normal; }

#draw3 .lf3-task-card-body {
  gap: .55rem;
  padding: .76rem .78rem .64rem;
}

#draw3 .lf3-task-card-heading button {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: #172033;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

#draw3 .lf3-task-card-meta {
  justify-content: flex-start;
  gap: .4rem;
  min-height: 1.35rem;
  font-size: .75rem;
}

#draw3 .lf3-task-card-meta > i {
  width: 1px;
  height: .62rem;
  background: #dce2ea;
}

#draw3 .lf3-task-card-meta .lf3-task-status {
  min-height: 1.15rem;
  padding: 0 .35rem;
  border-radius: .28rem;
  font-size: .7rem;
}

#draw3 .lf3-task-card-actions {
  min-height: 2.4rem;
  margin: .1rem -.78rem -.64rem;
  padding: 0 .4rem 0 .78rem;
  border-top: 1px solid #e8ebef;
}

#draw3 .lf3-task-card-button.is-primary {
  min-height: 2.2rem;
  margin: 0 auto 0 0;
  padding: 0;
  color: #1769f7;
  font-size: .8rem;
}

#draw3 .lf3-task-card-more {
  position: relative;
}

#draw3 .lf3-task-card-more summary {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: .45rem;
  color: #758196;
  cursor: pointer;
  list-style: none;
}

#draw3 .lf3-task-card-more summary::-webkit-details-marker { display: none; }

#draw3 .lf3-task-card-more > div {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: calc(100% + .35rem);
  width: 8.5rem;
  padding: .32rem;
  border: 1px solid #e0e5eb;
  border-radius: .6rem;
  background: #fff;
  box-shadow: 0 .8rem 2rem rgba(15, 23, 42, .16);
}

#draw3 .lf3-task-card-more button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .48rem;
  padding: .58rem .65rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: #dc2626;
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
}

#draw3 .lf3-task-card-more button:hover { background: #fff1f2; }

#draw3 .lf3-task-scroll-button {
  position: absolute;
  z-index: 7;
  top: 5.2rem;
  width: 2.55rem;
  height: 3.35rem;
  border: 1px solid #d5dde8;
  border-radius: .72rem;
  background: rgba(255,255,255,.96);
  color: #40516a;
  box-shadow: 0 .7rem 1.7rem rgba(15, 23, 42, .16);
  cursor: pointer;
}

#draw3 .lf3-task-scroll-button.is-left { left: .45rem; }
#draw3 .lf3-task-scroll-button.is-right { right: .45rem; }

#draw3 .lf3-task-library-grid.is-list .lf3-task-day {
  min-height: 0;
}

#draw3 .lf3-task-library-grid.is-list .lf3-task-day-track {
  display: grid;
  gap: .55rem;
  overflow: visible;
}

#draw3 .lf3-task-library-grid.is-list .lf3-task-card {
  width: 100%;
  display: grid;
  grid-template-columns: 7rem minmax(11rem, 1fr);
}

#draw3 .lf3-task-library-grid.is-list .lf3-task-card-cover {
  height: 5rem;
  border-radius: .62rem 0 0 .62rem;
}

#draw3 .lf3-task-library-grid.is-list .lf3-task-card-body {
  grid-template-columns: minmax(10rem, 1fr) minmax(14rem, auto) auto;
  align-items: center;
  padding: .55rem .7rem;
}

#draw3 .lf3-task-library-grid.is-list .lf3-task-card-actions {
  min-width: 9rem;
  margin: 0;
  border: 0;
}

.lf3-task-gallery-dialog {
  width: min(96vw, 100rem);
  height: min(96vh, 57rem);
  border-radius: 1.15rem;
}

.lf3-task-gallery-header {
  min-height: 4.25rem;
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  padding: .5rem 1rem;
}

.lf3-task-gallery-back {
  grid-column: 1;
  justify-self: start;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0 .8rem;
  border: 1px solid #dce3ec;
  border-radius: .58rem;
  background: #fff;
  color: #46566d;
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
}

.lf3-task-gallery-back[hidden],
.lf3-task-gallery-download[hidden],
.lf3-task-gallery-info section[hidden] {
  display: none !important;
}

.lf3-task-gallery-heading {
  grid-column: 2;
  min-width: 0;
  text-align: center;
}

.lf3-task-gallery-tools {
  grid-column: 3;
  justify-self: end;
}

.lf3-task-gallery-download {
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: 0 .75rem;
  border: 1px solid #dce3ec;
  border-radius: .58rem;
  background: #fff;
  color: #415169;
  font: inherit;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
}

.lf3-task-gallery-close {
  border: 1px solid #dce3ec;
  border-radius: 50%;
  background: #fff;
}

.lf3-task-gallery-overview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 1rem 1.5rem 0;
  background: #fafaf8;
}

.lf3-task-gallery-grid {
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  align-content: start;
  align-items: start;
  overflow-y: auto;
  padding: 0 0 1rem;
}

.lf3-task-gallery-tile {
  position: relative;
  display: block;
  border-radius: .7rem;
}

.lf3-task-gallery-tile.is-selected {
  border-color: #1769f7;
  box-shadow: 0 0 0 2px rgba(23, 105, 247, .13);
}

.lf3-task-gallery-tile-open {
  width: 100%;
  display: grid;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.lf3-task-gallery-tile-image { aspect-ratio: 16 / 10; }

.lf3-task-gallery-tile-open > span:last-child {
  padding: .58rem .7rem;
  overflow: hidden;
  border-top: 1px solid #e5e9ee;
  font-size: .72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf3-task-gallery-selector {
  position: absolute;
  top: .7rem;
  right: .7rem;
}

.lf3-task-gallery-selector input {
  position: absolute;
  opacity: 0;
}

.lf3-task-gallery-selector > span {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: .55rem;
  background: rgba(255,255,255,.94);
  color: transparent;
  box-shadow: 0 .25rem .8rem rgba(15,23,42,.12);
  cursor: pointer;
}

.lf3-task-gallery-selector input:checked + span {
  border-color: #1769f7;
  background: #1769f7;
  color: #fff;
}

.lf3-task-gallery-bulk {
  min-height: 3.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
  border-top: 1px solid #e1e5ea;
  background: #fff;
  color: #798498;
  font-size: .7rem;
}

.lf3-task-gallery-bulk > div { display: flex; gap: .5rem; }
.lf3-task-gallery-bulk button {
  height: 2.3rem;
  padding: 0 .8rem;
  border: 1px solid #dce3ec;
  border-radius: .55rem;
  background: #fff;
  color: #415169;
  font: inherit;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
}
.lf3-task-gallery-bulk button.is-primary { border-color: #1769f7; background: #1769f7; color: #fff; }
.lf3-task-gallery-bulk button:disabled { opacity: .45; cursor: not-allowed; }

.lf3-task-gallery-viewer { grid-template-rows: minmax(0, 1fr) 5.5rem auto; }

.lf3-task-gallery-stage {
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: .65rem;
  padding: .65rem .75rem .5rem;
  background: #efeee9;
}

.lf3-task-gallery-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
}

.lf3-task-gallery-canvas {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 1rem;
  overflow: hidden;
  border-radius: .75rem;
  background: #faf9f6;
}

.lf3-task-gallery-main-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.lf3-task-gallery-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lf3-task-gallery-main-image {
  flex: 0 1 auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
}

.lf3-task-gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  box-shadow: 0 .65rem 1.6rem rgba(15, 23, 42, .15);
  transform: translateY(-50%);
}

.lf3-task-gallery-arrow.is-left { left: 1rem; }
.lf3-task-gallery-arrow.is-right { right: 1rem; }

.lf3-task-gallery-stage-counter {
  position: absolute;
  right: 1rem;
  bottom: .85rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(20, 29, 43, .72);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
}

.lf3-task-gallery-info {
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #dfe3e8;
  border-radius: .75rem;
  background: #fff;
}

.lf3-task-gallery-info-head {
  display: grid;
  gap: .3rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #e7eaf0;
}

.lf3-task-gallery-info-head span {
  color: #8994a5;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.lf3-task-gallery-info-head strong { color: #172337; font-size: 1rem; }

.lf3-task-gallery-info section {
  padding: .85rem 0;
  border-bottom: 1px solid #e7eaf0;
}

.lf3-task-gallery-info h3 {
  margin: 0 0 .55rem;
  color: #657187;
  font-size: .76rem;
}

.lf3-task-gallery-info p {
  margin: 0;
  color: #34435a;
  font-size: .75rem;
  line-height: 1.65;
}

.lf3-task-gallery-references { display: flex; flex-wrap: wrap; gap: .42rem; }
.lf3-task-gallery-reference {
  width: 3.8rem;
  height: 3rem;
  overflow: hidden;
  padding: .15rem;
  border: 1px solid #dce2ea;
  border-radius: .45rem;
  background: #f8f8f6;
}
.lf3-task-gallery-reference img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: .3rem; }

.lf3-task-gallery-info dl { margin: .2rem 0 0; }
.lf3-task-gallery-info dl > div {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: .45rem;
  padding: .66rem 0;
  border-bottom: 1px solid #edf0f3;
}
.lf3-task-gallery-info dt,
.lf3-task-gallery-info dd { margin: 0; font-size: .72rem; line-height: 1.45; }
.lf3-task-gallery-info dt { color: #8a94a3; }
.lf3-task-gallery-info dd { color: #34435a; font-weight: 700; overflow-wrap: anywhere; }

.lf3-task-gallery-thumbnails {
  min-height: 5.5rem;
  justify-content: center;
  align-items: center;
  padding: .4rem .8rem;
}

.lf3-task-gallery-thumbnail { flex-basis: 4.7rem; }
.lf3-task-gallery-thumbnail > span:last-child { display: none; }

.lf3-task-gallery-recent-footer {
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .72rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.lf3-task-gallery-recent-footer[hidden] { display: none; }

.lf3-task-gallery-recent-footer > div:first-child {
  min-width: 0;
  display: grid;
  gap: .22rem;
}

.lf3-task-gallery-recent-footer strong {
  color: #172337;
  font-size: .84rem;
}

.lf3-task-gallery-recent-footer span {
  overflow: hidden;
  color: #7c899d;
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf3-task-gallery-recent-actions {
  flex: 0 0 auto;
  display: flex;
  gap: .58rem;
}

.lf3-task-gallery-recent-actions button {
  min-width: 7.6rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: 0 .95rem;
  border: 1px solid #cfd8e5;
  border-radius: .58rem;
  background: #fff;
  color: #34435a;
  font: inherit;
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}

.lf3-task-gallery-recent-actions button.is-primary {
  border-color: #1769f7;
  background: #1769f7;
  color: #fff;
  box-shadow: 0 .45rem 1rem rgba(23, 105, 247, .2);
}

.lf3-task-gallery-recent-actions button:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 1180px) {
  #draw3 .lf3-task-library-head { align-items: flex-start; flex-direction: column; }
  #draw3 .lf3-task-library-controls { width: 100%; }
  #draw3 .lf3-task-search { flex: 1; width: auto; }
}

@media (max-width: 760px) {
  #draw3 .lf3-task-library { padding: 1.2rem 1rem 0; }
  #draw3 .lf3-task-library-grid { margin-inline: -1rem; }
  #draw3 .lf3-task-library-controls { display: grid; grid-template-columns: 1fr 1fr auto; }
  #draw3 .lf3-task-search { grid-column: 1 / -1; width: 100%; }
  #draw3 .lf3-task-new-button { grid-column: 1 / -1; }
  #draw3 .lf3-task-day { grid-template-columns: 6.5rem minmax(0, 1fr); gap: .7rem; padding: 1rem; }
  #draw3 .lf3-task-card { width: 13rem; flex-basis: 13rem; }
  #draw3 .lf3-task-card-cover { height: 8rem; }
  .lf3-task-gallery-overlay { padding: 0; }
  .lf3-task-gallery-dialog { width: 100vw; height: 100vh; border-radius: 0; }
  .lf3-task-gallery-header { grid-template-columns: 6rem minmax(0,1fr) auto; }
  .lf3-task-gallery-download span { display: none; }
  .lf3-task-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lf3-task-gallery-stage { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; }
  .lf3-task-gallery-info { max-height: 10rem; }
}

/* Exit creation dialog — compact, deliberate, and consistent with the workbench. */
.lf3-exit-modal {
  padding: 1rem;
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(.5rem);
}

.lf3-exit-dialog {
  width: min(33rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1.75rem 5rem rgba(15, 23, 42, .28), 0 .15rem .55rem rgba(15, 23, 42, .08);
}

.lf3-exit-head {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr) 2.25rem;
  align-items: center;
  gap: .8rem;
  padding: 1.35rem 1.5rem 1.15rem;
  border-bottom: 1px solid #edf1f5;
}

.lf3-exit-head-icon {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: .85rem;
  background: #fff1e7;
  color: #f97316;
  font-size: 1rem;
}

.lf3-exit-head h3 {
  margin: 0;
  color: #172033;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.lf3-exit-head p {
  margin: .25rem 0 0;
  color: #7b8798;
  font-size: .76rem;
  line-height: 1.45;
}

.lf3-exit-close {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #8a95a5;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.lf3-exit-close:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #334155;
}

.lf3-exit-name {
  display: grid;
  gap: .42rem;
  margin: 1.1rem 1.5rem 1rem;
  padding: .85rem .95rem .9rem;
  border: 1px solid #edf1f5;
  border-radius: .9rem;
  background: #f8fafc;
  color: #344054;
  font-size: .76rem;
  font-weight: 750;
}

.lf3-exit-name > span { line-height: 1; }

.lf3-exit-name input {
  min-height: 2.65rem;
  padding: .65rem .75rem;
  border: 1px solid #d8e0ea;
  border-radius: .65rem;
  background: #fff;
  color: #172033;
  font-size: .82rem;
  font-weight: 650;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.lf3-exit-name input:hover { border-color: #c4cedb; }

.lf3-exit-name input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 .2rem rgba(249, 115, 22, .12);
}

.lf3-exit-name small {
  color: #8a95a5;
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.35;
}

.lf3-exit-options {
  display: grid;
  gap: .55rem;
  margin: 0 1.5rem;
}

.lf3-exit-option {
  min-height: 4.3rem;
  display: grid;
  grid-template-columns: 2.15rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .72rem;
  width: 100%;
  padding: .66rem .78rem;
  border: 1px solid #e5eaf0;
  border-radius: .88rem;
  background: #fff;
  color: #172033;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.lf3-exit-option:hover {
  border-color: #cfd7e2;
  background: #fafbfc;
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.lf3-exit-option > i:first-child {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: .68rem;
  background: #f1f5f9;
  color: #526175;
  font-size: .82rem;
}

.lf3-exit-option > i:last-child {
  color: #a3adbb;
  font-size: .72rem;
}

.lf3-exit-option span {
  min-width: 0;
  display: grid;
  gap: .18rem;
}

.lf3-exit-option strong {
  color: #27364a;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}

.lf3-exit-option small {
  color: #7b8798;
  font-size: .69rem;
  line-height: 1.4;
}

.lf3-exit-option em {
  max-width: 5.5rem;
  padding: .25rem .45rem;
  border-radius: 999px;
  background: #eef2f6;
  color: #8a95a5;
  font-size: .63rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.lf3-exit-option em:empty { display: none; }

.lf3-exit-option[data-lf3-exit-choice="draft"] {
  border-color: #fed7aa;
  background: #fffaf5;
}

.lf3-exit-option[data-lf3-exit-choice="draft"] > i:first-child {
  background: #ffedd5;
  color: #ea580c;
}

.lf3-exit-option[data-lf3-exit-choice="draft"]:hover {
  border-color: #fb923c;
  background: #fff7ed;
  box-shadow: 0 .45rem 1.2rem rgba(249, 115, 22, .1);
}

.lf3-exit-option[data-lf3-exit-choice="complete"]:not(:disabled) > i:first-child {
  background: #eaf9f0;
  color: #16a34a;
}

.lf3-exit-option:disabled {
  opacity: 1;
  border-color: #edf1f5;
  background: #f8fafc;
  color: #98a2b3;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.lf3-exit-option:disabled > i:first-child {
  background: #eef2f6;
  color: #a3adbb;
}

.lf3-exit-option:disabled strong,
.lf3-exit-option:disabled small { color: #98a2b3; }

.lf3-exit-option.is-danger {
  border-color: #f0e5e5;
  background: #fff;
}

.lf3-exit-option.is-danger > i:first-child {
  background: #fff0f0;
  color: #dc2626;
}

.lf3-exit-option.is-danger strong { color: #b42318; }

.lf3-exit-option.is-danger:hover {
  border-color: #fca5a5;
  background: #fff7f7;
  box-shadow: 0 .4rem 1.1rem rgba(220, 38, 38, .08);
}

.lf3-exit-close:focus-visible,
.lf3-exit-option:focus-visible,
.lf3-exit-cancel:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.lf3-exit-footer {
  margin-top: 1.05rem;
  padding: .9rem 1.5rem 1.25rem;
  border-top: 1px solid #edf1f5;
}

.lf3-exit-cancel {
  width: 100%;
  min-height: 2.6rem;
  margin: 0;
  padding: .62rem .85rem;
  border: 1px solid #dce3eb;
  border-radius: .72rem;
  background: #fff;
  color: #526175;
  font-size: .78rem;
  font-weight: 750;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.lf3-exit-cancel:hover {
  border-color: #c5cfdb;
  background: #f8fafc;
  color: #27364a;
}

body.theme-dark .lf3-exit-dialog {
  border-color: #334155;
  background: #111827;
  box-shadow: 0 1.75rem 5rem rgba(0, 0, 0, .5);
}

body.theme-dark .lf3-exit-head,
body.theme-dark .lf3-exit-footer { border-color: #283548; }
body.theme-dark .lf3-exit-head-icon { background: #3b2a1c; color: #fb923c; }
body.theme-dark .lf3-exit-head h3 { color: #f8fafc; }
body.theme-dark .lf3-exit-head p,
body.theme-dark .lf3-exit-name small { color: #94a3b8; }
body.theme-dark .lf3-exit-close:hover { border-color: #475569; background: #1e293b; color: #f8fafc; }
body.theme-dark .lf3-exit-name { border-color: #2b384b; background: #172033; color: #cbd5e1; }
body.theme-dark .lf3-exit-name input { border-color: #475569; background: #0f172a; color: #f8fafc; }
body.theme-dark .lf3-exit-option { border-color: #334155; background: #172033; }
body.theme-dark .lf3-exit-option strong { color: #e5e7eb; }
body.theme-dark .lf3-exit-option small { color: #94a3b8; }
body.theme-dark .lf3-exit-option:hover { border-color: #526175; background: #1e293b; }
body.theme-dark .lf3-exit-option[data-lf3-exit-choice="draft"] { border-color: #9a4b16; background: #2a211d; }
body.theme-dark .lf3-exit-option[data-lf3-exit-choice="draft"]:hover { border-color: #fb923c; background: #33251d; }
body.theme-dark .lf3-exit-option:disabled { border-color: #283548; background: #151e2e; }
body.theme-dark .lf3-exit-option:disabled strong,
body.theme-dark .lf3-exit-option:disabled small { color: #64748b; }
body.theme-dark .lf3-exit-option.is-danger { border-color: #4a2b30; background: #172033; }
body.theme-dark .lf3-exit-option.is-danger strong { color: #fca5a5; }
body.theme-dark .lf3-exit-option.is-danger:hover { border-color: #b91c1c; background: #2c1d24; }
body.theme-dark .lf3-exit-cancel { border-color: #334155; background: #172033; color: #cbd5e1; }
body.theme-dark .lf3-exit-cancel:hover { border-color: #526175; background: #1e293b; color: #f8fafc; }

@media (max-width: 560px) {
  .lf3-exit-modal { padding: .7rem; }
  .lf3-exit-dialog { max-height: calc(100vh - 1.4rem); border-radius: 1.05rem; }
  .lf3-exit-head { grid-template-columns: 2.45rem minmax(0, 1fr) 2rem; gap: .68rem; padding: 1.05rem; }
  .lf3-exit-head-icon { width: 2.45rem; height: 2.45rem; border-radius: .72rem; }
  .lf3-exit-name { margin: .9rem 1rem .8rem; }
  .lf3-exit-options { margin: 0 1rem; }
  .lf3-exit-option { min-height: 4rem; padding: .6rem .68rem; }
  .lf3-exit-footer { margin-top: .85rem; padding: .8rem 1rem 1rem; }
}

/* Recent additions: compact rail and focused preview */
#draw3 .lf3-recent-strip {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  min-height: 7.4rem;
  padding: .85rem 2.5rem;
  border-top: 1px solid #e7eaf0;
  border-bottom: 1px solid #e7eaf0;
  background: linear-gradient(90deg, rgba(239, 246, 255, .72), rgba(255, 255, 255, 0) 55%);
}

#draw3 .lf3-recent-strip-heading {
  display: flex;
  align-items: baseline;
  gap: .25rem;
  padding-left: 1.8rem;
  color: #172337;
}

#draw3 .lf3-recent-strip-heading strong { font-size: .86rem; font-weight: 800; }
#draw3 .lf3-recent-strip-heading span { color: #63728a; font-size: .74rem; }

#draw3 .lf3-recent-image-track {
  display: flex;
  align-items: center;
  gap: .62rem;
  min-width: 0;
  overflow-x: auto;
  padding: .15rem .1rem;
  scrollbar-width: none;
}

#draw3 .lf3-recent-image-card {
  position: relative;
  width: 4.8rem;
  height: 4.8rem;
  flex: 0 0 4.8rem;
  padding: .2rem;
  overflow: hidden;
  border: 1px solid #d8e0eb;
  border-radius: .62rem;
  background: #fff;
  box-shadow: none;
}

#draw3 .lf3-recent-image-card:hover,
#draw3 .lf3-recent-image-card:focus-visible {
  border-color: #1769f7;
  box-shadow: 0 0 0 2px rgba(23, 105, 247, .13);
  transform: none;
}

#draw3 .lf3-recent-image-media {
  width: 100%;
  height: 100%;
  border-radius: .42rem;
  background: #f7f7f5;
}

#draw3 .lf3-recent-image-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#draw3 .lf3-recent-image-index {
  position: absolute;
  right: .28rem;
  bottom: .28rem;
  min-width: 1.25rem;
  padding: .15rem .28rem;
  border-radius: 999px;
  background: rgba(23, 32, 48, .72);
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.lf3-task-gallery-main-image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.lf3-task-gallery-dialog.is-recent-preview {
  width: min(50rem, calc(100vw - 2rem));
  height: min(42.5rem, calc(100vh - 2rem));
  border-radius: .9rem;
  box-shadow: 0 1.3rem 3.6rem rgba(15, 23, 42, .28);
}

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-header {
  position: relative;
  min-height: 3.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: .55rem .85rem;
}

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-heading {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-heading h2 {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 .68rem;
  border-radius: 999px;
  background: #edf4ff;
  color: #1769f7;
  font-size: .7rem;
  font-weight: 800;
}

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-heading p { display: none; }
.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-tools { grid-column: 2; }
.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-counter {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: #5d6b80;
  transform: translate(-50%, -50%);
}

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-viewer {
  grid-template-rows: minmax(0, 1fr) 5.8rem auto;
}

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-stage {
  display: block;
  padding: .65rem 1.4rem .3rem;
  background: #fff;
}

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-media {
  width: 100%;
  height: 100%;
}

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-canvas {
  width: 100%;
  height: 100%;
  padding: .5rem;
  border: 0;
  border-radius: .65rem;
  background: #fff;
}

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-info { display: none; }
.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-arrow { width: 2.5rem; height: 2.5rem; }
.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-arrow.is-left { left: .1rem; }
.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-arrow.is-right { right: .1rem; }
.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-stage-counter { display: none; }

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-thumbnails {
  min-height: 5.8rem;
  gap: .55rem;
  padding: .45rem 1rem;
}

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-thumbnail {
  flex-basis: 4.7rem;
  border-radius: .52rem;
}

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-thumbnail-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-recent-footer {
  min-height: 4.7rem;
  padding: .7rem 1.1rem;
}

@media (max-width: 760px) {
  #draw3 .lf3-recent-strip { grid-template-columns: 1fr; gap: .6rem; padding: .8rem 1rem; }
  #draw3 .lf3-recent-strip-heading { padding-left: 0; }
  .lf3-task-gallery-dialog.is-recent-preview { width: 100vw; height: 100vh; border-radius: 0; }
  .lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-recent-footer { align-items: stretch; flex-direction: column; }
  .lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-recent-actions { width: 100%; }
  .lf3-task-gallery-dialog.is-recent-preview .lf3-task-gallery-recent-actions button { flex: 1; min-width: 0; }
}

/* Gallery fit v3: every entry point uses the same uncropped preview geometry. */
.lf3-task-gallery-dialog.is-gallery-overview {
  width: min(72rem, calc(100vw - 2rem));
  height: auto;
  max-height: calc(100vh - 2rem);
  border-radius: .95rem;
}

.lf3-task-gallery-dialog.is-gallery-overview .lf3-task-gallery-overview {
  max-height: calc(100vh - 6.5rem);
}

.lf3-task-gallery-dialog.is-gallery-overview .lf3-task-gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.lf3-task-gallery-dialog.is-gallery-overview .lf3-task-gallery-tile-image {
  aspect-ratio: 1 / 1;
  padding: .6rem;
  box-sizing: border-box;
  background: #f4f6f8;
}

.lf3-task-gallery-dialog.is-gallery-overview .lf3-task-gallery-tile-image img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.lf3-task-gallery-dialog.is-image-preview {
  width: min(52rem, calc(100vw - 2rem));
  height: min(44.5rem, calc(100vh - 2rem));
  border-radius: .95rem;
  box-shadow: 0 1.3rem 3.6rem rgba(15, 23, 42, .28);
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-header {
  position: relative;
  min-height: 3.8rem;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  padding: .55rem .85rem;
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-heading {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-tools {
  grid-column: 3;
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-counter {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: #5d6b80;
  transform: translate(-50%, -50%);
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-viewer {
  grid-template-rows: minmax(0, 1fr) 5.8rem auto;
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-stage {
  display: block;
  min-height: 0;
  padding: .65rem 1.4rem .3rem;
  background: #fff;
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-media,
.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .65rem;
  overflow: hidden;
  border: 1px solid #e2e7ed;
  border-radius: .65rem;
  background: #f4f5f7;
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-main-image {
  flex: 0 0 auto;
  display: block;
  object-position: center !important;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 32, 48, .06);
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-info,
.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-stage-counter {
  display: none !important;
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-arrow {
  width: 2.5rem;
  height: 2.5rem;
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-arrow.is-left { left: .1rem; }
.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-arrow.is-right { right: .1rem; }

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-thumbnails {
  min-height: 5.8rem;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem;
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-thumbnail {
  flex-basis: 4.7rem;
  border-radius: .52rem;
}

.lf3-task-gallery-dialog.is-image-preview .lf3-task-gallery-thumbnail-image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.lf3-task-gallery-canvas {
  overscroll-behavior: contain;
  touch-action: none;
}

.lf3-task-gallery-main-image {
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  transition: transform 80ms ease-out;
}

.lf3-task-gallery-canvas.is-zoomed { cursor: grab; }
.lf3-task-gallery-canvas.is-dragging { cursor: grabbing; }
.lf3-task-gallery-canvas.is-dragging .lf3-task-gallery-main-image { transition: none; }

/* Full image inspector: vertical filmstrip, maximum canvas, retained details. */
.lf3-task-gallery-dialog.is-gallery-inspector {
  width: min(96vw, 100rem);
  height: min(96vh, 57rem);
  border-radius: 1rem;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-header {
  min-height: 4.25rem;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  padding: .5rem 1rem;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-heading {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-heading h2 {
  padding: 0;
  background: transparent;
  color: #172337;
  font-size: 1rem;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-heading p {
  display: block;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-tools {
  grid-column: 3;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-counter {
  position: static;
  min-width: 3.55rem;
  padding: .38rem .72rem;
  background: #eff6ff;
  color: #2563eb;
  transform: none;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-viewer {
  min-height: 0;
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-stage {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: .7rem;
  padding: .7rem .8rem;
  background: #efeee9;
  transition: grid-template-columns 180ms ease;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-media {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: .75rem;
  background: #faf9f6;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-stage-counter {
  display: block;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-info {
  position: relative;
  display: block !important;
  min-width: 0;
  min-height: 0;
  padding: 1rem;
  overflow-y: auto;
  background: #fff;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-info-head {
  position: relative;
  padding-right: 2.3rem;
}

.lf3-task-gallery-info-head [data-lf3-info-toggle] {
  position: absolute;
  top: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dce3ec;
  border-radius: .5rem;
  background: #fff;
  color: #526178;
  cursor: pointer;
}

.lf3-task-gallery-dialog.is-gallery-inspector.is-info-collapsed .lf3-task-gallery-stage {
  grid-template-columns: minmax(0, 1fr) 3.35rem;
}

.lf3-task-gallery-dialog.is-gallery-inspector.is-info-collapsed .lf3-task-gallery-info {
  padding: .65rem;
  overflow: hidden;
}

.lf3-task-gallery-dialog.is-gallery-inspector.is-info-collapsed .lf3-task-gallery-info-head {
  height: 2rem;
  padding: 0;
  border: 0;
}

.lf3-task-gallery-dialog.is-gallery-inspector.is-info-collapsed .lf3-task-gallery-info-head > span,
.lf3-task-gallery-dialog.is-gallery-inspector.is-info-collapsed .lf3-task-gallery-info-head > strong,
.lf3-task-gallery-dialog.is-gallery-inspector.is-info-collapsed .lf3-task-gallery-info > section,
.lf3-task-gallery-dialog.is-gallery-inspector.is-info-collapsed .lf3-task-gallery-info > dl {
  display: none !important;
}

.lf3-task-gallery-dialog.is-gallery-inspector.is-info-collapsed .lf3-task-gallery-info-head [data-lf3-info-toggle] {
  position: static;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-thumbnails {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .55rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding: .7rem .55rem;
  border-top: 0;
  border-right: 1px solid #e2e8f0;
  background: #fff;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-thumbnail {
  width: 4.45rem;
  flex: 0 0 auto;
  border-radius: .52rem;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-thumbnail-image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-recent-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 4.7rem;
  padding: .7rem 1.1rem;
}

@media (max-width: 760px) {
  .lf3-task-gallery-dialog.is-gallery-inspector {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-viewer {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 5rem auto;
  }

  .lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-stage {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
  }

  .lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-info { display: none !important; }

  .lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-thumbnails {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid #e2e8f0;
    border-right: 0;
  }

  .lf3-task-gallery-dialog.is-gallery-inspector .lf3-task-gallery-recent-footer {
    grid-row: 3;
  }
}

.lf3-task-gallery-dialog.is-image-preview.is-recent-preview .lf3-task-gallery-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.lf3-task-gallery-dialog.is-image-preview.is-recent-preview .lf3-task-gallery-heading {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

.lf3-task-gallery-dialog.is-image-preview.is-recent-preview .lf3-task-gallery-tools {
  grid-column: 2;
}

#draw3 .lf3-task-card-actions {
  box-sizing: border-box;
}

#draw3 .lf3-task-card-more {
  flex: 0 0 2.55rem;
  align-self: stretch;
}

#draw3 .lf3-task-card-more > summary {
  width: 2.55rem;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
}

@media (max-width: 760px) {
  .lf3-task-gallery-dialog.is-gallery-overview,
  .lf3-task-gallery-dialog.is-image-preview {
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .lf3-task-gallery-dialog.is-gallery-overview .lf3-task-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Readable primary action and strictly contained task-card footer. */
.lf3-task-gallery-recent-actions button.is-primary,
.lf3-task-gallery-recent-actions button.is-primary span,
.lf3-task-gallery-recent-actions button.is-primary i {
  color: #fff !important;
}

#draw3 .lf3-task-card-body,
#draw3 .lf3-task-card-heading,
#draw3 .lf3-task-card-actions {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

#draw3 .lf3-task-card-heading button {
  width: 100%;
}

#draw3 .lf3-task-card-actions {
  gap: .35rem;
  margin: .1rem 0 -.64rem;
  padding: 0;
  overflow: visible;
}

#draw3 .lf3-task-card-button.is-primary {
  min-width: 0;
  flex: 1 1 auto;
}

#draw3 .lf3-task-card-more {
  flex: 0 0 2.25rem;
  max-width: 2.25rem;
}

#draw3 .lf3-task-card-more > summary {
  width: 2.25rem;
}
