.s1 {
  display: grid;
  gap: 14px;
}
.board {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 150px 120px;
  gap: 10px;
  position: relative;
}
.board .ph:nth-child(1) {
  grid-row: span 2;
}
.idc {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 20px var(--ar);
  flex: none;
}
.sw {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.sw div {
  width: 46px;
}
.sw > div > span {
  display: block;
  height: 46px;
  border-radius: 12px;
  background: var(--line-soft);
  transform: scale(0.55);
  opacity: 0.35;
  transition: all 0.5s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(11, 15, 36, 0.06);
}
.sw > div > span.go {
  transform: none;
  opacity: 1;
}
.sw small {
  display: block;
  font: 500 10px var(--mono);
  color: var(--mute);
  margin-top: 5px;
  text-align: center;
  direction: ltr;
  opacity: 0;
  transition: opacity 0.4s;
}
.sw > div > span.go + small {
  opacity: 1;
}
.tone {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  margin: 0 0 8px 6px;
}
.loupe {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 22px rgba(11, 15, 36, 0.4);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition:
    left 0.5s var(--ease),
    top 0.5s var(--ease),
    opacity 0.3s,
    background 0.3s;
  z-index: 5;
  pointer-events: none;
}
.dz {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  color: var(--d-paper);
  background: var(--d-ink);
  isolation: isolate;
  container-type: inline-size;
}
.dz img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.dz::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    transparent 30%,
    color-mix(in srgb, var(--d-ink) 88%, transparent) 100%
  );
}
.dz .db {
  position: absolute;
  top: 6%;
  right: 6%;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 max(10px, 4.4cqi) var(--ar);
  background: color-mix(in srgb, var(--d-paper) 92%, transparent);
  color: var(--d-ink);
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
}
.dz .db b {
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: var(--d-ink);
  color: var(--d-paper);
  display: grid;
  place-items: center;
  font-size: 0.8em;
}
.dz .dt {
  position: absolute;
  right: 7%;
  left: 7%;
  bottom: 7%;
}
.dz h4 {
  font: 700 max(16px, 10cqi)/1.15 var(--ar);
  letter-spacing: -0.01em;
}
.dz p {
  font: 500 max(10px, 4.2cqi) var(--ar);
  opacity: 0.92;
  margin-top: 0.35em;
}
.dz .dc {
  display: inline-block;
  margin-top: 0.8em;
  background: var(--d-primary);
  color: var(--d-on-primary, #fff);
  font: 700 max(10px, 4cqi) var(--ar);
  padding: 0.45em 1em;
  border-radius: 999px;
}
.dz.wide h4 {
  font-size: max(15px, 7cqi);
}
.idea {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  min-height: 46px;
}
.idea .t {
  flex: 1;
  min-width: 0;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 17px;
  background: var(--primary);
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
  margin-inline-start: 2px;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.s2 {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  background: var(--bg-soft);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.canvas .dz {
  height: 300px;
  width: 240px;
  transition:
    width 0.9s var(--ease),
    height 0.9s var(--ease),
    border-radius 0.9s var(--ease);
  box-shadow: var(--shadow);
}
.fmt-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.palette-apply {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}
.palette-apply i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.rail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--mute);
  transition: all 0.4s;
  background: var(--surface);
}
.rrow .ck {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
  transition: all 0.4s;
}
.rrow.cur {
  color: var(--ink);
  border-color: var(--mute);
}
.rrow.done {
  color: var(--ink);
}
.rrow.done .ck {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.capbox {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 14px;
  min-height: 88px;
}
.capbox .lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.s3 {
  display: grid;
  gap: 16px;
  align-items: start;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.day {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 6px 4px;
  min-height: 118px;
  border: 1px solid var(--line-soft);
}
.day .dn {
  font-size: 11px;
  color: var(--mute);
  text-align: center;
  font-weight: 600;
}
.day.best {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}
.day.wk .dn::after {
  content: ' · عطلة';
  font-weight: 500;
}
.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  padding: 5px 2px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
}
.slot .ph {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.bestcard {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  background: linear-gradient(180deg, var(--primary-soft), var(--surface) 70%);
}
.bestcard .big {
  font: 700 26px var(--ar);
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.why {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
}
.why div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.why i {
  color: var(--ok);
  font-size: 16px;
}
.s3-phone {
  display: flex;
  justify-content: center;
}
