html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--jb-bg-canvas);
}

.stage {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 800px;
    height: 600px;
    overflow: hidden;
    scale: var(--k, 1);
    transform-origin: 0 0;
    font: 12px/1 var(--jb-font);
    color: var(--jb-fg-tertiary);
}

.stage.wide {
    width: 1188px;
    height: 640px;
}

.bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    flex: none;
    padding-inline: 12px;
    background: var(--jb-bg-toolbar);
    border-bottom: 1px solid var(--jb-border);
}

.bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--jb-red-70);
}

.bar i:nth-child(2) {
    background: var(--jb-yellow-70);
}

.bar i:nth-child(3) {
    margin-right: 10px;
    background: var(--jb-green-70);
}

.bar svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--jb-fg-tertiary);
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bar span {
    flex: 1;
    margin-left: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--jb-bg-inset);
}

.stage iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: var(--jb-bg-canvas);
}

.stage iframe + iframe {
    position: absolute;
    left: 0;
    bottom: 0;
    height: calc(100% - 37px);
    opacity: 0;
}

.cursor {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 28px;
    height: 28px;
    pointer-events: none;
    transform-origin: 7px 2px;
    filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.3));
}

.cursor g,
.cursor.grab > svg > path {
    display: none;
}

.cursor.grab g {
    display: inline;
}

.phone {
    --ios-bg: #0B0B0C;
    --ios-surface: #1C1C1E;
    --ios-text: #F2F2F7;
    --ios-secondary: #98989F;
    --ios-separator: rgb(255 255 255 / 0.12);
    --ios-tint: #0A84FF;
    position: absolute;
    left: 12px;
    top: 50%;
    z-index: 1;
    width: 286px;
    height: 592px;
    translate: -340px -50%;
    scale: 0.82;
    transform-origin: 0 50%;
    font: 14px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    color: var(--ios-text);
}

.phone img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.phone > div {
    position: absolute;
    left: 11px;
    top: 10px;
    width: 264px;
    height: 572px;
    display: flex;
    flex-direction: column;
    border-radius: 41px;
    background: var(--ios-bg);
    overflow: hidden;
}

.phone header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 26px 6px;
    font-size: 13px;
    font-weight: 600;
}

.phone header span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone header em {
    display: flex;
    align-items: flex-end;
    gap: 1.5px;
    height: 10px;
}

.phone header i {
    width: 3px;
    height: 4px;
    border-radius: 1px;
    background: currentColor;
}

.phone header i:nth-child(2) {
    height: 6px;
}

.phone header i:nth-child(3) {
    height: 8px;
}

.phone header i:nth-child(4) {
    height: 10px;
}

.phone header svg {
    width: 13px;
    height: 10px;
    fill: currentColor;
}

.phone u {
    position: relative;
    width: 22px;
    height: 11px;
    box-sizing: border-box;
    border: 1px solid var(--ios-secondary);
    border-radius: 3px;
}

.phone u::before {
    content: "";
    position: absolute;
    inset: 1.5px 6px 1.5px 1.5px;
    border-radius: 1px;
    background: currentColor;
}

.phone u::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 3px;
    width: 2px;
    height: 5px;
    border-radius: 0 1px 1px 0;
    background: var(--ios-secondary);
}

.phone hr {
    width: 36%;
    height: 4px;
    margin: 6px auto 8px;
    border: 0;
    border-radius: 2px;
    background: var(--ios-text);
}

.slot {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0 16px;
    opacity: 0;
    overflow: hidden;
}

.banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 12px 14px;
    border: 1px solid var(--ios-separator);
    border-radius: 20px;
    background: rgb(217 148 36 / 0.14);
    overflow: hidden;
}

.banner svg:first-child {
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    fill: rgb(217 148 36);
}

.banner svg:last-child {
    flex: none;
    width: 11px;
    height: 11px;
    margin-top: 4px;
    fill: none;
    stroke: var(--ios-secondary);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.banner div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.banner p {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
    text-wrap: pretty;
    color: var(--ios-secondary);
}

.phone main {
    flex: 1;
    padding: 8px 16px 0;
}

.phone h1 {
    margin: 0 0 12px;
    font-size: 25px;
    letter-spacing: -0.4px;
}

.phone ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 12px;
    background: var(--ios-surface);
}

.phone main li {
    display: flex;
    justify-content: space-between;
    margin-left: 14px;
    padding: 12px 14px 12px 0;
}

.phone main li + li {
    border-top: 1px solid var(--ios-separator);
}

.phone main li span,
.phone nav {
    color: var(--ios-secondary);
}

.phone nav {
    display: flex;
    padding: 8px 0 2px;
    border-top: 1px solid var(--ios-separator);
    font-size: 11px;
}

.phone nav span {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.phone nav svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.phone nav .on {
    color: var(--ios-tint);
}

.xcode {
    display: grid;
    grid-template: 40px 1fr / 180px 1fr;
    background: #1E1E2E;
    font: 12px/1.5 var(--jb-font);
    color: rgb(205 214 244 / 0.72);
}

.xcode > header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-inline: 14px;
    background: #181825;
    border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.xcode > header i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF5F57;
}

.xcode > header i:nth-child(2) {
    background: #FEBC2E;
}

.xcode > header i:nth-child(3) {
    margin-right: 18px;
    background: #28C840;
}

.xcode > header button {
    display: grid;
    place-items: center;
    width: 26px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    color: #A6E3A1;
}

.xcode > header button + button {
    margin-right: 12px;
    color: rgb(205 214 244 / 0.3);
}

.xcode > header svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.xcode output {
    margin-left: auto;
    padding: 4px 14px;
    border-radius: 6px;
    background: rgb(255 255 255 / 0.05);
}

.xcode > nav {
    padding: 10px 0;
    border-right: 1px solid rgb(255 255 255 / 0.08);
    background: #181825;
}

.xcode > nav div {
    padding: 3px 14px;
    white-space: nowrap;
}

.xcode > nav .in {
    padding-left: 30px;
}

.xcode > nav .on {
    background: rgb(137 180 250 / 0.16);
    color: #CDD6F4;
}

.xcode > main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-family: var(--jb-font-mono);
}

.xcode > main > span {
    align-self: flex-start;
    padding: 6px 14px;
    border-right: 1px solid rgb(255 255 255 / 0.06);
    background: #1E1E2E;
    font-family: var(--jb-font);
    color: rgb(255 255 255 / 0.85);
}

.xcode > main > pre {
    flex: 1;
    margin: 0;
    padding: 16px 20px;
    border-top: 1px solid rgb(255 255 255 / 0.06);
    font: inherit;
    line-height: 1.7;
    color: #CDD6F4;
}

.xcode pre b {
    font-weight: 400;
    color: #CBA6F7;
}

.xcode pre s {
    text-decoration: none;
    color: #A6E3A1;
}

.xcode pre var {
    font-style: normal;
    color: #89B4FA;
}

.xcode pre dfn {
    font-style: normal;
    color: #89DCEB;
}

.xcode > main > div {
    height: 0;
    overflow: hidden;
    border-top: 1px solid rgb(255 255 255 / 0.08);
}

.xcode > main > div p {
    margin: 0;
    padding-inline: 20px;
    opacity: 0;
}

.xcode > main > div p:first-child {
    margin-top: 10px;
}

.xcode > main > div p::before {
    content: "\203A\00a0\00a0";
    color: rgb(205 214 244 / 0.38);
}

.app {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.app h2 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    margin: 0;
    font-size: 14px;
}

.app h2 span {
    position: absolute;
    right: 11px;
    display: flex;
    gap: 13px;
    color: var(--jb-accent);
}

.app h2 svg,
.app label svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.app label {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    margin: 4px 11px 8px;
    padding: 0 6px;
    border-radius: 7px;
    background: rgb(118 118 128 / 0.24);
    font-size: 13px;
    color: var(--ios-secondary);
}

.app label svg {
    width: 11px;
    height: 11px;
}

.app > div {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
}

.app ol {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 8px 14px 0;
    list-style: none;
}

.app li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 17px;
    background: var(--ios-surface);
}

.app li > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-weight: 600;
    line-height: 1.25;
}

.app small {
    display: flex;
    gap: 8px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    color: var(--ios-secondary);
}

.app small span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.app small span:first-child {
    font-weight: 500;
}

.app small span:first-child::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.app small svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

.app li button {
    display: flex;
    flex: 0 0 38px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(152 152 159 / 0.14);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--jb-accent);
}

.app li button svg {
    width: 9px;
    height: 9px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app li button.on {
    background: var(--jb-accent);
    color: #FFF;
}

.app > div > p {
    margin: 0;
    padding: 8px 0 12px;
    text-align: center;
    font-size: 10px;
    color: var(--ios-secondary);
}

.sheet {
    position: absolute;
    inset: 44px 0 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    border-radius: 12px 12px 0 0;
    background: var(--ios-bg);
    box-shadow: 0 -1px 0 rgb(255 255 255 / 0.08);
    translate: 0 100%;
}

.sheet h2 {
    display: flex;
    gap: 8px;
    height: 34px;
    margin: 0;
    padding: 4px 11px 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--jb-accent);
}

.sheet h2 b {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: var(--ios-text);
}

.sheet h2 span:last-child {
    font-weight: 600;
}

.sheet form {
    display: flex;
    flex-direction: column;
    padding: 4px 13px;
    font-size: 11px;
    color: var(--ios-secondary);
}

.sheet form span {
    padding: 12px 11px 4px;
}

.sheet form p {
    min-height: 30px;
    margin: 0;
    padding: 8px 11px;
    border-radius: 7px;
    background: var(--ios-surface);
    font-size: 13px;
    color: var(--ios-text);
}

.sheet form p:empty::before {
    content: attr(title);
    color: rgb(235 235 245 / 0.3);
}

.sheet form p + p {
    min-height: 84px;
}

.sheet form .on::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 1px;
    vertical-align: -2px;
    background: var(--jb-accent);
}

.sheet form small {
    padding: 5px 11px 0;
    font-size: 11px;
    line-height: 1.35;
}

.done {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 30px 24px;
    text-align: center;
    font-size: 12px;
    line-height: 1.35;
    color: var(--ios-secondary);
}

.done svg {
    width: 30px;
    height: 30px;
    fill: var(--jb-accent);
}

.done b {
    font-size: 15px;
    color: var(--ios-text);
}

.done strong {
    margin-top: 3px;
    font-size: 13px;
    color: var(--ios-text);
}

.kb {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 8px 2px 30px;
    background: #212123;
    translate: 0 100%;
}

.kb div {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.kb span {
    display: grid;
    place-items: center;
    width: 21.5px;
    height: 32px;
    border-radius: 4px;
    background: #6B6B6E;
    box-shadow: 0 1px 0 #000;
    font-size: 15px;
}

.kb .wide {
    width: 28px;
    background: #464649;
    font-size: 11px;
}

.kb div:last-child .wide {
    width: 44px;
}

.kb .space {
    flex: 1;
    font-size: 11px;
}
