@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.home {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 96px) var(--pad) 78px;
}

.home.design-hero {
  padding-bottom: 0;
}

.home-overview {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px var(--pad) 78px;
}

.home-overview .home__taste {
  margin-top: 0;
  margin-bottom: 24px;
}

.home-overview .home__overview {
  margin-top: 0;
}

.home__hero {
  max-width: 900px;
  animation: rise 0.7s var(--ease) both;
}

.home__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  color: var(--muted);
}

.home__badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.12);
}

.home__title {
  margin-top: 22px;
  font-size: clamp(40px, 6.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  background: linear-gradient(115deg, #ffffff 12%, #d9d2ff 52%, #a7efff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[lang="fa"] .home__title {
  line-height: 1.28;
  letter-spacing: 0;
}

.home__lead {
  max-width: 640px;
  margin-top: 22px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted);
}

.home__scope {
  max-width: 640px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--faint);
}

.home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.home__note {
  margin-top: 18px;
  font-size: 11px;
  color: var(--faint);
}

.home__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 52px;
  border-block: 1px solid var(--line);
}

.home__stat {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 24px 20px 0;
  border-inline-end: 1px solid var(--line);
}

.home__stat:last-child {
  border-inline-end: 0;
}

.home__stat b {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.home__stat span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.home__taste {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 28px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.home__tasteLabel {
  font-size: 10px;
  color: var(--faint);
}

.home__overview {
  margin-top: 64px;
  animation: rise 0.7s 0.12s var(--ease) both;
}

.home__overviewHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.home__overviewHead h2 {
  font-size: clamp(22px, 2.6vw, 30px);
}

.home__overviewHead p {
  font-size: 12px;
  color: var(--muted);
}

.home__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 12px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.4);
  background: linear-gradient(170deg, rgba(124, 92, 255, 0.09), rgba(255, 255, 255, 0.015));
}

.home__grid .tile:last-child {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.1), rgba(34, 211, 238, 0.04) 55%, rgba(255, 255, 255, 0.015));
}

.tile__num {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.tile__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.tile__count {
  font-size: 10px;
  color: var(--faint);
}

.tile__status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile__dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--faint);
}

.tile.is-done {
  border-color: rgba(61, 220, 151, 0.22);
}

.tile.is-done .tile__status {
  color: var(--ok);
}

.tile.is-done .tile__dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.12);
}

.tile__arrow {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  color: var(--faint);
  transition: color 0.2s ease, transform 0.2s ease;
}

.tile:hover .tile__arrow {
  color: var(--accent-2);
  transform: translateX(-2px);
}

html[dir="rtl"] .tile:hover .tile__arrow {
  transform: translateX(2px);
}

html[dir="rtl"] .tile__arrow svg,
html[dir="rtl"] .srv-a__arrow svg,
html[dir="rtl"] .wrk-a__all svg,
html[dir="rtl"] .wrk-c__all svg {
  transform: scaleX(-1);
}

.workspace {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px var(--pad) 80px;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.side {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fade 0.4s ease both;
}

.side__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}

.side__head b {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.side__bar {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.side__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s var(--ease);
}

.side__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  padding-inline-end: 4px;
  scrollbar-width: thin;
}

.side__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.side__item:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.side__item.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.side__num {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--faint);
  min-width: 18px;
}

.side__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side__check {
  color: var(--ok);
  opacity: 0;
  display: inline-flex;
}

.side__item.is-done .side__check {
  opacity: 1;
}

.stage {
  min-width: 0;
  animation: rise 0.45s var(--ease) both;
}

.stage__top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.counter {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.progress {
  flex: 1;
  min-width: 120px;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s var(--ease);
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.seg__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.seg__btn.is-active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.stage__head {
  position: relative;
  margin: 30px 0 24px;
  padding-inline-start: 46px;
}

.stage__num {
  position: absolute;
  top: 3px;
  inset-inline-start: 0;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
}

.stage__head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.stage__head h2:focus {
  outline: none;
}

.stage__head p {
  max-width: 680px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.stage__hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 10px;
  color: var(--faint);
}

.stage__hint::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.opt {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}

.opt:hover {
  border-color: var(--line-strong);
}

.opt.is-selected {
  border-color: rgba(124, 92, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.28), 0 20px 54px rgba(124, 92, 255, 0.14);
}

.opt__frame {
  position: relative;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #0b0b10;
}

.opt__chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding-inline: 10px;
  background: #13131b;
  border-bottom: 1px solid var(--line);
}

.opt__chrome i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.opt__chrome i:first-child {
  background: rgba(255, 92, 92, 0.55);
}

.opt__chrome i:nth-child(2) {
  background: rgba(255, 190, 92, 0.5);
}

.opt__chrome i:nth-child(3) {
  background: rgba(92, 220, 140, 0.5);
}

.opt__url {
  margin-inline: auto;
  padding-inline: 8px;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opt__view {
  position: relative;
  height: 300px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: #0b0b10;
  contain: size layout paint;
}

body[data-viewport="mobile"] .opt__view {
  height: 432px;
}

.opt__stage {
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: top center;
  transform: translateX(-50%) scale(0.4);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.opt.is-ready .opt__stage {
  opacity: 1;
}

.pv-host {
  display: block;
  width: 1200px;
}

.opt__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.opt__zoom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.opt__zoom:hover {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.55);
  background: rgba(124, 92, 255, 0.08);
}

.opt__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 3px;
}

.opt__info {
  min-width: 0;
}

.opt__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.opt__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.tag {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}

.opt__pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.opt__pick svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}

.opt__pick:hover {
  border-color: rgba(124, 92, 255, 0.6);
  background: rgba(124, 92, 255, 0.1);
}

.opt.is-selected .opt__pick {
  border-color: transparent;
  background: linear-gradient(135deg, #8a6bff, #6243f5);
  color: #fff;
}

.opt.is-selected .opt__pick svg {
  opacity: 1;
  transform: scale(1);
}

.stage__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stage__navRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

.linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  transition: color 0.2s ease;
}

.linkbtn:hover {
  color: var(--text);
}

.stage__skip {
  font-size: 10px;
  color: var(--faint);
}

.stage__footNote {
  margin-top: 16px;
  font-size: 10px;
  color: var(--faint);
  text-align: center;
}

.brief {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--pad) 80px;
}

.brief__head {
  max-width: 720px;
  animation: rise 0.55s var(--ease) both;
}

.brief__eyebrow {
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
}

.brief__head h1 {
  margin-top: 12px;
  font-size: clamp(30px, 4.2vw, 48px);
}

.brief__head p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.brief__empty {
  margin-top: 30px;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.brief__empty .btn {
  margin-top: 16px;
}

.brief__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 16px;
  margin-top: 28px;
  align-items: start;
}

.brief__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  padding: 22px;
}

.panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel__head h2 {
  font-size: 18px;
}

.panel__head p {
  font-size: 11px;
  color: var(--muted);
}

.taste {
  margin-top: 26px;
}

.taste__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.taste__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 11px;
}

.taste__chip b {
  font-weight: 600;
}

.taste__chip small {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding-inline: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 9px;
  color: var(--text);
}

.taste__empty {
  font-size: 11px;
  color: var(--faint);
}

.picks__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pick {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.pick:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pick__num {
  font-size: 9px;
  color: var(--faint);
  letter-spacing: 0.08em;
}

.pick__main {
  min-width: 0;
}

.pick__cat {
  display: block;
  font-size: 9px;
  color: var(--faint);
}

.pick__variant {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick__empty {
  color: var(--faint);
  font-weight: 400;
}

.pick__tags {
  display: flex;
  gap: 4px;
}

.pick__tags .tag {
  font-size: 8px;
  padding: 2px 6px;
}

.pick__edit {
  font-size: 10px;
}

.client {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field > span {
  font-size: 10px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea {
  min-height: 78px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(124, 92, 255, 0.65);
  background: #0b0b12;
}

.field--ltr input {
  direction: ltr;
  text-align: start;
}

.save .save__btn {
  width: 100%;
  justify-content: center;
}

.save__note {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--faint);
}

.save__empty {
  margin-top: 8px;
  font-size: 11px;
  color: #ffb3a1;
}

.save__status {
  min-height: 16px;
  margin-top: 6px;
  font-size: 11px;
  color: #ff9b9b;
}

.save__success {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(61, 220, 151, 0.3);
  border-radius: 10px;
  background: rgba(61, 220, 151, 0.08);
}

.save__check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(61, 220, 151, 0.16);
  color: var(--ok);
}

.save__success b {
  display: block;
  font-size: 13px;
}

.save__success p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.save__refLabel {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  color: var(--faint);
}

.save__success code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ok);
  direction: ltr;
  unicode-bidi: isolate;
}

.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.export pre {
  margin: 0;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #08080c;
  color: #b9b9c8;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
}

.export__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.export__actions .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 11px;
}

.brief__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.brief__footNote {
  font-size: 10px;
  color: var(--faint);
}

.modal {
  width: min(1240px, 96vw);
  max-width: min(1240px, 96vw);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(4, 4, 8, 0.8);
  backdrop-filter: blur(7px);
}

.modal__shell {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.modal__heading {
  min-width: 0;
}

.modal__eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.modal__title {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: #07070b;
  scrollbar-width: thin;
}

.modal__canvas {
  min-height: 240px;
  overflow: visible;
}

.modal__stage {
  margin-inline: auto;
  width: 1200px;
}

.modal__canvas .pv-host {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.modal__foot .btn {
  padding: 11px 20px;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    gap: 10px;
  }

  .side__list {
    flex-direction: row;
    gap: 6px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  .side__item {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    padding: 7px 11px;
  }

  .side__num {
    min-width: 0;
  }

  .side__check {
    display: none;
  }

  .brief__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .options {
    grid-template-columns: 1fr;
  }

  .brief__layout {
    margin-top: 20px;
  }

  .pick {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .pick__tags {
    display: none;
  }
}

@media (max-width: 720px) {
  .home-overview {
    padding: 32px var(--pad) 60px;
  }

  .home__stat {
    flex-basis: 100%;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    padding-inline: 0;
  }

  .home__stat:last-child {
    border-bottom: 0;
  }

  .home__overviewHead {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .home__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .tile {
    min-height: 118px;
    padding: 13px;
  }

  .stage__head {
    padding-inline-start: 0;
  }

  .stage__num {
    position: static;
    display: inline-block;
    margin-bottom: 6px;
  }

  .opt__view {
    height: 260px;
  }

  body[data-viewport="mobile"] .opt__view {
    height: 400px;
  }

  .opt__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .opt__actions {
    width: 100%;
  }

  .opt__pick {
    flex: 1;
    justify-content: center;
  }

  .opt__zoom {
    justify-content: center;
  }

  .stage__nav {
    flex-wrap: wrap;
  }

  .stage__navRight {
    margin-inline-start: auto;
  }

  .modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
  }

  .modal__shell {
    max-height: 100dvh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .modal__bar {
    flex-wrap: wrap;
  }

  .modal__title {
    white-space: normal;
  }

  .modal__canvas .pv-host {
    border-radius: 0;
  }

  .modal__foot {
    flex-wrap: wrap;
  }

  .modal__foot .btn {
    width: 100%;
  }

  .panel {
    padding: 16px;
  }

  .export pre {
    max-height: 200px;
  }
}

@media (hover: hover) {
  .opt:hover {
    transform: translateY(-2px);
  }

  .opt.is-selected:hover {
    box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.28), 0 24px 62px rgba(124, 92, 255, 0.18);
  }
}
