/* CronCraft live demo: the app's Build screen (dark mode) in an iPhone frame.
   Shared by app pages; markup in the page, behaviour in cron.js.
   Rebuilt from the homepage Lab (assets/home/home.css, "CronCraft (dark)"). */

.dphone{position:relative;width:min(100%,340px);aspect-ratio:360/720;padding:10px;border-radius:54px;margin:0 auto;
  background:linear-gradient(160deg,#343949,#0d0f16 38%,#20242f);
  box-shadow:0 0 0 1px rgba(255,255,255,.16),0 60px 110px -50px #000,0 40px 90px -45px var(--ac,#3EE6B5)}
.dphone__screen{position:relative;height:100%;border-radius:44px;overflow:hidden;background:#000;isolation:isolate}
.dphone__screen::before{content:"";position:absolute;top:11px;left:50%;z-index:20;width:94px;height:27px;transform:translateX(-50%);border-radius:20px;background:#000}
.dphone__still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top}
/* the store screenshot already shows an iPhone, so until the live demo takes over the frame steps aside */
.dphone:not(.is-live){padding:0;background:none;border-radius:24px;aspect-ratio:600/1304}
.dphone:not(.is-live) .dphone__screen{border-radius:24px}
.dphone:not(.is-live) .dphone__screen::before{display:none}
.dsprite{position:absolute;width:0;height:0;overflow:hidden}

.demo{position:absolute;top:0;left:0;width:340px;height:700px;transform:scale(var(--fit,1),var(--fity,var(--fit,1)));transform-origin:0 0;overflow:hidden;
  display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Inter',sans-serif;-webkit-font-smoothing:antialiased;line-height:1.3}
.demo[hidden]{display:none}
.demo svg{width:1em;height:1em;flex:none}
.demo button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.ios-bar{position:relative;z-index:21;flex:none;display:flex;align-items:center;justify-content:space-between;height:50px;padding:6px 26px 0 34px;font-size:15px;font-weight:600;letter-spacing:-.01em}
.demo__tag{font-size:9.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:3px 7px;border-radius:999px;border:1px solid currentColor;opacity:.75}

.cc{background:#000;color:#fff}
.cc__nav{flex:none;display:flex;justify-content:flex-end;padding:0 16px;height:36px}
.cc__gear{width:35px;height:35px;border-radius:50%;background:#1C1C1E;display:grid;place-items:center}
.cc__gear svg{width:19px;height:19px}
.cc__title{flex:none;padding:2px 16px 10px;font-size:29px;font-weight:700;line-height:1.15}
.cc__seg{flex:none;margin:0 16px;display:grid;grid-template-columns:1fr 1fr;padding:2px;border-radius:999px;background:#1C1C1E;font-size:13px;font-weight:500;text-align:center}
.cc__seg span{padding:5px 0;border-radius:999px}
.cc__seg .is-on{background:#636366}
.cc__fields{flex:none;display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:14px 12px 0}
.cc__col{display:flex;flex-direction:column;align-items:center;gap:5px}
.cc__col>span{font-size:10.5px;color:#8E8E93}
.cc__val{width:100%;height:32px;display:grid;place-items:center;border:1px solid #2C2C2E;border-radius:6px;
  font:600 13px/1 ui-monospace,'SF Mono',Menlo,monospace;color:#fff;overflow:hidden;white-space:nowrap}
.cc__pills{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%}
.cc__pill{min-width:36px;height:22px;padding:0 7px;border-radius:999px;background:#1C1C1E!important;
  font:600 11px/22px ui-monospace,'SF Mono',Menlo,monospace!important;color:#0A84FF!important}
.cc__pill[aria-pressed="true"]{background:rgba(10,132,255,.28)!important;color:#fff!important}
.cc__pill:focus-visible,.cc__copy:focus-visible{outline:2px solid #fff;outline-offset:1px}
.cc__preview{flex:none;margin:14px auto 0;width:74%;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 10px;border-radius:14px;background:#1C1C1E}
.cron__in{width:100%;border:0;background:transparent;text-align:center;color:#AEAEB2;font:600 18px/1.2 ui-monospace,'SF Mono',Menlo,monospace;letter-spacing:.08em;border-radius:6px}
.cron__in:focus{outline:1px solid #0A84FF;color:#fff}
.cron__in.is-bad{color:#FF453A}
.cc__copy{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 12px;border-radius:999px;background:rgba(10,132,255,.2)!important;color:#0A84FF!important;font-size:13px!important;font-weight:600}
.cc__copy svg{width:13px;height:13px}
.cron__say{flex:none;margin:10px 16px 0;min-height:2.6em;text-align:center;font-size:14.5px;font-weight:600;line-height:1.3;color:#8E8E93}
.cc__head{flex:none;display:flex;justify-content:space-between;align-items:baseline;padding:10px 16px 6px;font-size:15px;font-weight:600}
.cc__tz{font-size:13px;font-weight:400;color:#0A84FF}
.cron__next{list-style:none;padding:0 10px;margin:0}
.cron__next li{display:flex;justify-content:space-between;align-items:center;gap:8px;height:38px;padding:0 10px;border-radius:10px;
  animation:cron-in .4s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--i)*50ms)}
.cron__next li:first-child{background:#0B1A2A}
.cron__next b{font:500 13px ui-monospace,'SF Mono',Menlo,monospace;color:#fff}
.cron__next span{font-size:11.5px;color:#8E8E93;white-space:nowrap}
@keyframes cron-in{from{opacity:0;transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){.cron__next li{animation:none}}
