/* Shared by the app and the public gallery. All artwork is decorative. */
.template-scene {
  --scene-accent: #5a6edd;
  --scene-wash: color-mix(in srgb, var(--scene-accent) 9%, #f8fafc);
  --scene-soft: color-mix(in srgb, var(--scene-accent) 12%, white);
  position: relative;
  height: 226px;
  min-height: 226px;
  padding: 17px 19px 0;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background:
    radial-gradient(ellipse at 88% 9%, #ffffffd9, transparent 65%),
    var(--scene-wash);
  color: #304359;
  text-align: left;
  font-family: inherit;
}
.template-scene::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid color-mix(in srgb, var(--scene-accent) 12%, transparent);
  border-radius: 50%;
  right: -74px;
  top: 48px;
  z-index: -1;
  box-shadow:
    0 0 0 32px color-mix(in srgb, var(--scene-accent) 3%, transparent),
    0 0 0 64px color-mix(in srgb, var(--scene-accent) 2%, transparent);
}
.scene-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: color-mix(in srgb, var(--scene-accent) 72%, #27394e);
  margin: 0 1px 13px;
}
.scene-topline > span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.scene-topline > small {
  flex-shrink: 0;
  font-size: 6px;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.65;
}
.scene-surface {
  position: relative;
  background: #fff;
  border: 1px solid #fffffff0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 12px 30px #2c3a5420,
    0 2px 5px #2c3a5407;
  transform: translateY(0);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.scene-window-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border-bottom: 1px solid #edf0f5;
}
.scene-window-heading > strong {
  flex: 1;
  font-size: 9px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.scene-window-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--scene-accent) 13%, white);
  color: var(--scene-accent);
  background: var(--scene-soft);
  border-radius: 6px;
}
.scene-view-label {
  font-size: 7px;
  color: #718095;
  background: #f5f7fa;
  border: 1px solid #ecf0f5;
  border-radius: 4px;
  padding: 3px 5px;
}
.scene-window-heading > svg {
  color: #94a1b1;
}
.scene-floating-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px 6px 6px;
  border: 1px solid #ffffff;
  background: #fffffff5;
  box-shadow: 0 4px 18px #283b5617;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 650;
  color: #3c5268;
  transform: rotate(-3deg);
}
.scene-floating-label > span {
  background: var(--scene-soft);
  border-radius: 4px;
  color: var(--scene-accent);
  padding: 3px;
  display: flex;
}
.scene-floating-label > i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--scene-accent);
  margin-left: 6px;
}
.scene-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 9px 21px;
  background: #fbfcfe;
  min-height: 150px;
}
.scene-lane {
  min-width: 0;
}
.scene-lane-heading {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  font-size: 7px;
  color: #627187;
}
.scene-lane-heading > i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b9c4d4;
}
.scene-lane-1 .scene-lane-heading > i {
  background: var(--scene-accent);
}
.scene-lane-2 .scene-lane-heading > i {
  background: #76a995;
}
.scene-lane-heading > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scene-lane-heading > b {
  margin-left: auto;
  font-size: 6px;
  font-weight: 500;
  padding: 1px 3px;
  border-radius: 3px;
  background: #edf1f6;
}
.scene-record {
  padding: 9px 7px 6px;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 6px;
  min-height: 89px;
  box-shadow: 0 2px 4px #22324b04;
}
.scene-record-1 {
  border-top: 2px solid color-mix(in srgb, var(--scene-accent) 55%, white);
}
.scene-record-2 {
  border-top: 2px solid #93b6a3;
}
.scene-record > strong {
  font-size: 8px;
  line-height: 1.45;
  font-weight: 650;
  display: block;
  min-height: 24px;
}
.scene-record-subtitle {
  font-size: 6px;
  line-height: 1.5;
  color: #8995a5;
  margin-top: 5px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.scene-record-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  font-size: 6px;
  color: var(--scene-accent);
  margin-top: 9px;
}
.scene-record-footer > span {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 3px;
  background: var(--scene-soft);
  border-radius: 3px;
}
.scene-record-footer > svg {
  flex-shrink: 0;
  color: #a0adbc;
}
.scene-empty-lane {
  display: grid;
  place-items: center;
  height: 55px;
  border: 1px dashed #e2e7ee;
  border-radius: 6px;
  color: #bcc6d3;
}
.scene-avatar {
  height: 23px;
  width: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--scene-soft);
  color: var(--scene-accent);
  font-size: 7px;
  font-weight: 600;
  flex-shrink: 0;
}
.scene-record > .scene-avatar {
  margin-bottom: 6px;
}
.scene-kind-calendar .scene-surface {
  width: 91%;
}
.scene-calendar {
  padding: 9px 12px 16px;
}
.scene-calendar-month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 9px;
}
.scene-calendar-month > strong {
  font-size: 9px;
}
.scene-calendar-month > span {
  font-size: 10px;
  color: #9ba8b8;
}
.scene-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  gap: 1px;
}
.scene-calendar-grid > b {
  font-size: 6px;
  font-weight: 500;
  color: #8793a3;
  padding-bottom: 3px;
}
.scene-day {
  position: relative;
  height: 18px;
  font-size: 7px;
  padding-top: 3px;
  border-radius: 4px;
  color: #8995a5;
}
.scene-day-event {
  background: var(--scene-soft);
  color: var(--scene-accent);
  font-weight: 700;
}
.scene-day-event > i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--scene-accent);
  bottom: 1px;
  left: calc(50% - 1px);
}
.scene-calendar-event {
  position: absolute;
  left: 38%;
  right: -5%;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--scene-accent) 20%, white);
  box-shadow: 0 5px 18px #38445914;
  border-radius: 7px;
  transform: rotate(2deg);
}
.scene-date-tile {
  font-size: 16px;
  font-weight: 550;
  width: 30px;
  height: 34px;
  background: var(--scene-soft);
  color: var(--scene-accent);
  display: grid;
  place-items: center;
  border-radius: 5px;
  flex-shrink: 0;
}
.scene-calendar-event > div {
  min-width: 0;
}
.scene-calendar-event small {
  font-size: 6px;
  color: var(--scene-accent);
  display: block;
  margin-bottom: 3px;
}
.scene-calendar-event strong {
  display: block;
  font-size: 8px;
  line-height: 1.4;
}
.scene-kind-calendar .scene-surface {
  overflow: visible;
}
.scene-kind-calendar .scene-floating-label {
  right: 14px;
  bottom: 9px;
}
.scene-timeline {
  padding: 16px 14px 13px;
}
.scene-timeline-scale {
  position: relative;
  margin: 0 9px 19px 5px;
  height: 10px;
}
.scene-timeline-scale > span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 6px;
  white-space: nowrap;
  color: #93a0b1;
}
.scene-timeline-scale > span:first-child {
  transform: none;
}
.scene-timeline-scale > span:last-child {
  transform: translateX(-100%);
}
.scene-timeline-tracks {
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(33.333% - 1px),
    #edf1f6 calc(33.333% - 1px),
    #edf1f6 33.333%
  );
}
.scene-timeline-track {
  margin-bottom: 12px;
}
.scene-timeline-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 8px;
  margin-bottom: 6px;
}
.scene-timeline-label > small {
  font-size: 6px;
  color: #8d9aad;
}
.scene-timeline-rail {
  height: 21px;
  position: relative;
}
.scene-timeline-rail > span {
  position: absolute;
  height: 19px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--scene-accent) 20%, white);
  border: 1px solid color-mix(in srgb, var(--scene-accent) 30%, white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}
.scene-timeline-rail b {
  font-size: 6px;
  font-weight: 500;
  color: var(--scene-accent);
}
.scene-timeline-rail i {
  width: 4px;
  height: 4px;
  background: var(--scene-accent);
  transform: rotate(45deg);
}
.scene-timeline-track-1 .scene-timeline-rail > span {
  background: #e7f2ed;
  border-color: #d0e5da;
}
.scene-timeline-track-1 .scene-timeline-rail b {
  color: #4e9076;
}
.scene-timeline-track-1 .scene-timeline-rail i {
  background: #4e9076;
}
.scene-timeline-caption {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 6px;
  color: #8795a7;
  padding-top: 2px;
}
.scene-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 10px 10px 17px;
  background: #fbfcfd;
}
.scene-gallery-card {
  overflow: hidden;
  border: 1px solid #e7edf1;
  border-radius: 7px;
  background: #fff;
}
.scene-gallery-cover {
  position: relative;
  height: 67px;
  background: color-mix(in srgb, var(--scene-accent) 15%, #f6f9fc);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
}
.scene-gallery-cover > span {
  display: grid;
  place-items: center;
  background: #ffffffbf;
  width: 48px;
  height: 41px;
  border-radius: 10px;
  color: var(--scene-accent);
  box-shadow: 0 5px 10px #3853640b;
  transform: rotate(-6deg);
}
.scene-gallery-card-1 .scene-gallery-cover {
  background: #edf1ed;
}
.scene-gallery-card-1 .scene-gallery-cover > span {
  transform: rotate(5deg);
}
.scene-gallery-cover > small {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: 6px;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--scene-accent) 75%, #526574);
}
.scene-gallery-orbit {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid #ffffffb0;
  border-radius: 50%;
  right: -25px;
  top: -42px;
  z-index: -1;
  box-shadow: 0 0 0 13px #ffffff35;
}
.scene-gallery-info {
  padding: 8px;
}
.scene-gallery-info > strong {
  font-size: 8px;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.scene-gallery-info > span {
  font-size: 6px;
  color: #8c99a9;
  display: block;
  margin-top: 4px;
}
.scene-gallery-info > em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 6px;
  font-style: normal;
  color: #588978;
  margin-top: 8px;
}
.scene-gallery-info > em > i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #6eaa95;
}
.scene-flow {
  padding: 13px 12px 21px;
}
.scene-flow-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 15px;
}
.scene-flow-stages > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.scene-flow-step {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #e4eaf0;
  background: #fafbfd;
  font-size: 8px;
  color: #a0abba;
}
.scene-flow-step.active {
  background: var(--scene-soft);
  color: var(--scene-accent);
  border-color: color-mix(in srgb, var(--scene-accent) 30%, white);
}
.scene-flow-stages small {
  color: #8491a1;
  font-size: 6px;
}
.scene-flow-arrow {
  position: absolute;
  right: -11px;
  top: 7px;
  color: #bbc4cf;
}
.scene-flow-cards {
  display: grid;
  gap: 7px;
}
.scene-flow-request {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e8edf3;
  padding: 7px;
  border-radius: 6px;
  box-shadow: 0 2px 3px #31445905;
}
.scene-request-icon {
  width: 25px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--scene-accent);
  background: var(--scene-soft);
  flex-shrink: 0;
}
.scene-flow-request > div {
  min-width: 0;
  flex: 1;
}
.scene-flow-request strong {
  font-size: 8px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scene-flow-request small {
  font-size: 6px;
  color: #929faf;
  display: block;
  margin-top: 3px;
}
.scene-flow-request > b {
  font-size: 8px;
  font-weight: 600;
}
.scene-list {
  padding: 12px 13px 26px;
}
.scene-list-intro {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
}
.scene-list-check {
  height: 30px;
  width: 30px;
  border-radius: 9px;
  color: var(--scene-accent);
  background: var(--scene-soft);
  display: grid;
  place-items: center;
}
.scene-list-intro strong {
  font-size: 9px;
  display: block;
}
.scene-list-intro small {
  font-size: 7px;
  color: #8e9caa;
  display: block;
  margin-top: 3px;
}
.scene-list-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #edf1f5;
}
.scene-list-item > svg {
  color: #b8c7ca;
  flex-shrink: 0;
}
.scene-list-item > div {
  flex: 1;
  min-width: 0;
}
.scene-list-item strong {
  display: block;
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scene-list-item span {
  display: block;
  font-size: 6px;
  color: #96a2af;
  margin-top: 4px;
}
.scene-list-item > small {
  font-size: 6px;
  color: var(--scene-accent);
  padding: 4px;
  border-radius: 4px;
  background: var(--scene-soft);
  white-space: nowrap;
}
.scene-dashboard {
  padding: 12px 13px 16px;
}
.scene-dashboard-top {
  display: grid;
  grid-template-columns: 1fr 69px;
  gap: 10px;
  align-items: center;
}
.scene-dashboard-metric > small {
  display: block;
  font-size: 7px;
  color: #8c99aa;
}
.scene-dashboard-metric > strong {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 3px 0;
  letter-spacing: -0.08em;
}
.scene-dashboard-metric > strong > span {
  font-size: 14px;
  color: var(--scene-accent);
  background: var(--scene-soft);
  width: 22px;
  height: 22px;
  text-align: center;
  border-radius: 6px;
  font-weight: 400;
}
.scene-dashboard-metric > span {
  font-size: 6px;
  color: #9aa6b4;
}
.scene-donut {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: conic-gradient(
    var(--scene-accent) 0 var(--scene-split),
    color-mix(in srgb, var(--scene-accent) 30%, white) var(--scene-split) 100%
  );
  padding: 7px;
  transform: rotate(-45deg);
}
.scene-donut > div {
  background: white;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: rotate(45deg);
}
.scene-donut strong {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 650;
}
.scene-donut small {
  font-size: 6px;
  color: #96a2b0;
}
.scene-dashboard-legend {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  padding: 7px 0;
  border-bottom: 1px solid #eef1f5;
  border-top: 1px solid #eef1f5;
}
.scene-dashboard-legend > span {
  font-size: 6px;
  color: #8492a4;
  display: flex;
  gap: 4px;
  align-items: center;
}
.scene-dashboard-legend i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--scene-accent);
}
.scene-dashboard-legend > span:nth-child(2) i {
  opacity: 0.35;
}
.scene-dashboard-legend b {
  font-size: 6px;
  color: #4d6078;
  font-weight: 500;
}
.scene-dashboard-people {
  display: grid;
  gap: 7px;
}
.scene-dashboard-people > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.scene-dashboard-people strong {
  display: block;
  font-size: 7px;
}
.scene-dashboard-people small {
  font-size: 6px;
  color: #919faf;
  display: block;
  margin-top: 2px;
}
.scene-dashboard-people em {
  font-size: 6px;
  font-style: normal;
  color: var(--scene-accent);
  background: var(--scene-soft);
  padding: 3px 5px;
  border-radius: 4px;
  margin-left: auto;
}
.scene-kind-invoice .scene-surface {
  margin: 0 13px;
  transform: rotate(-2deg);
}
.scene-kind-invoice .scene-window-heading {
  display: none;
}
.scene-invoice {
  padding: 16px 18px 18px;
  border-top: 3px solid var(--scene-accent);
}
.scene-invoice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scene-invoice-header small {
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--scene-accent);
  display: block;
  margin-bottom: 4px;
}
.scene-invoice-header strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.scene-invoice-header > span {
  font-size: 7px;
  color: var(--scene-accent);
  padding: 4px 6px;
  background: var(--scene-soft);
  border-radius: 4px;
}
.scene-invoice-customer {
  margin: 17px 0 12px;
}
.scene-invoice-customer small {
  display: block;
  font-size: 5px;
  letter-spacing: 0.11em;
  color: #9aa6b1;
  margin-bottom: 4px;
}
.scene-invoice-customer strong {
  font-size: 9px;
}
.scene-invoice-lines > div {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  border-top: 1px solid #eaf0ee;
  padding: 7px 0;
}
.scene-invoice-lines span {
  font-size: 6px;
  color: #84968f;
}
.scene-invoice-lines b {
  font-size: 7px;
  font-weight: 500;
}
.scene-invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #dce8e2;
  margin-top: 2px;
}
.scene-invoice-total > span {
  font-size: 8px;
  color: #7d938a;
}
.scene-invoice-total > strong {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.045em;
  color: var(--scene-accent);
}
.template-card:hover .scene-surface {
  transform: translateY(-3px);
  box-shadow:
    0 15px 34px #2c3a5427,
    0 2px 5px #2c3a5407;
}
.template-card:hover .scene-kind-invoice .scene-surface {
  transform: translateY(-3px) rotate(-1deg);
}
@container (max-width: 260px) {
  .scene-topline > span {
    font-size: 7px;
  }
  .scene-board {
    gap: 5px;
    padding: 10px 6px 21px;
  }
  .scene-record {
    padding: 7px 5px 6px;
  }
  .scene-record > strong {
    font-size: 7px;
  }
  .scene-lane-heading {
    gap: 3px;
    font-size: 6px;
  }
  .scene-window-heading {
    gap: 5px;
  }
  .scene-window-heading > strong {
    font-size: 8px;
  }
  .scene-view-label {
    font-size: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .template-scene .scene-surface {
    transition: none;
  }
  .template-card:hover .scene-surface {
    transform: none;
  }
  .template-card:hover .scene-kind-invoice .scene-surface {
    transform: rotate(-2deg);
  }
}
/* Keep the complete example invoice, including its amount, inside the card. */
.scene-invoice {
  padding: 12px 16px 13px;
}
.scene-invoice-customer {
  margin: 11px 0 7px;
}
.scene-invoice-lines > div {
  padding: 6px 0;
}
.scene-invoice-total {
  padding-top: 7px;
  margin-top: 1px;
}
.scene-dashboard-metric > strong > span {
  display: grid;
  place-items: center;
}
.scene-kind-invoice .scene-floating-label {
  display: none;
}
/* The floating event is the calendar's focal point; its title stays unobstructed. */
.scene-kind-calendar .scene-floating-label {
  display: none;
}
