/* Website Maker on the web iOS kit (src/ioskit/ios.css): system grey lists, a blue tint, the site previewed in a browser frame. */
:root { --tint: #007aff; --forest: #007aff; --coral: #007aff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tint: #0a84ff; --forest: #0a84ff; --coral: #0a84ff; } }
:root[data-theme="dark"] { --tint: #0a84ff; --forest: #0a84ff; --coral: #0a84ff; }
.wm-wrap { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); max-width: 1320px; margin: 0 auto; }
@media (min-width: 960px) { .wm-wrap { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 28px; padding: 0 24px; } .wm-side { position: sticky; top: 0; align-self: start; padding-top: 12px; } .wm-wrap .form { padding-left: 0; padding-right: 0; } }
.browser { margin: 6px 16px 4px; border-radius: 14px; overflow: hidden; background: var(--row); box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 18px 46px rgba(0,0,0,.16); display: flex; flex-direction: column; height: min(72dvh, 640px); }
@media (min-width: 960px) { .browser { margin: 6px 0 4px; height: calc(100dvh - 150px); min-height: 460px; } }
.br-bar { flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; background: var(--fill2); border-bottom: .5px solid var(--sep); }
.br-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }.br-bar i:nth-child(2) { background: #febc2e; }.br-bar i:nth-child(3) { background: #28c840; }
.br-url { flex: 1; margin: 0 8px 0 10px; height: 24px; border-radius: 7px; background: var(--row); color: var(--text2); font-size: 12px; line-height: 24px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.site-frame { display: block; flex: 1; width: 100%; border: 0; background: #fff; }
.side-acts { display: flex; gap: 10px; justify-content: center; margin: 12px auto 0; flex-wrap: wrap; padding: 0 16px; }
.hi-tag { font-size: 11px; font-weight: 700; color: var(--tint); background: color-mix(in srgb, var(--tint) 13%, transparent); padding: 2px 7px; border-radius: 999px; margin-left: 6px; }
.pg-ic, .bl-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; background: var(--tint); font-size: 16px; }
.bl-ic { background: #8e8e93; }
.themes { display: flex; gap: 12px; overflow-x: auto; padding: 14px 16px; scrollbar-width: none; }
.themes::-webkit-scrollbar { display: none; }
.th { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; font-size: 12px; color: var(--text2); }
.th-sw { position: relative; width: 56px; height: 76px; border-radius: 14px; box-shadow: 0 0 0 .5px rgba(0,0,0,.14); overflow: hidden; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; justify-content: center; padding-left: 9px; }
.th-sw i { display: block; height: 7px; border-radius: 4px; }.th-sw i:nth-child(1) { width: 34px; }.th-sw i:nth-child(2) { width: 22px; }.th-sw i:nth-child(3) { width: 38px; height: 16px; border-radius: 4px; }
.th[aria-pressed="true"] .th-sw { box-shadow: 0 0 0 3px var(--tint); }
.th[aria-pressed="true"] { color: var(--text); font-weight: 600; }
.th .lock { position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 10px; }
.colors { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sw { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: 0 0 0 1px rgba(127,127,127,.35) inset; cursor: pointer; }
.sw::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--row), 0 0 0 4px var(--c); }
.sw-theme { background: linear-gradient(135deg, var(--c) 50%, var(--row) 50%); }
.sw-custom { overflow: hidden; background: conic-gradient(#f44, #fd4, #4d6, #4cf, #64f, #f4c, #f44); }
.sw-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.qr-box { display: grid; place-items: center; padding: 18px; }
.qr-box canvas { width: 240px; height: 240px; image-rendering: pixelated; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.url-box { font: 13px/1.45 ui-monospace, "SF Mono", Menlo, monospace; color: var(--text2); overflow-wrap: anywhere; max-height: 5.8em; overflow: hidden; }
/* a blank site's welcome: the templates */
.starter { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 4px 4px; }
.starter h2 { font: 700 28px/1.12 var(--sys, -apple-system, system-ui); letter-spacing: -0.02em; margin: 0; }
.starter p { color: var(--text2); font-size: 15px; line-height: 20px; margin: 0 0 6px; }
.tpls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 6px 0 10px; }
.tpl { display: flex; flex-direction: column; align-items: stretch; gap: 3px; text-align: left; padding: 0 0 12px; border: 0; border-radius: 18px; background: var(--row); color: var(--text); cursor: pointer; overflow: hidden; box-shadow: 0 0 0 .5px var(--sep); font: inherit; }
.tpl:active { transform: scale(.98); }
.tpl-h { font: 700 20px/1.2 var(--sys, -apple-system, system-ui); letter-spacing: -0.01em; margin: 8px 0 0; }
.tpl-sw { position: relative; display: block; height: 76px; padding: 14px 14px 0; margin-bottom: 8px; }
.tpl-sw b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.tpl-sw i { position: absolute; left: 14px; bottom: 14px; width: 54px; height: 16px; border-radius: 999px; background: currentColor; }
.tpl-n { font-weight: 600; font-size: 16px; padding: 0 14px; }
.tpl-a { font-size: 13px; line-height: 17px; color: var(--text2); padding: 0 14px; }
/* adding a block */
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 4px 16px 20px; }
.kind { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 0; border-radius: 16px; background: var(--row); color: var(--text); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 0 0 .5px var(--sep); min-height: 44px; }
.kind:active { transform: scale(.98); }
.kind-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--tint) 14%, transparent); color: var(--tint); font-size: 18px; margin-bottom: 4px; }
.kind-n { font-weight: 600; font-size: 15px; }
.kind-a { font-size: 12.5px; line-height: 16px; color: var(--text2); }
/* pictures and repeated items */
.pic-th { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; background: var(--fill2); display: grid; place-items: center; color: var(--text2); font-size: 20px; }
.item-acts { display: flex; gap: 8px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.item-acts .grow { flex: 1; }
.mini { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; min-width: 44px; justify-content: center; padding: 0 12px; border: 0; border-radius: 10px; background: var(--fill2); color: var(--text); font: 600 14px var(--sys, system-ui); cursor: pointer; position: relative; }
.mini::after { content: ""; position: absolute; inset: -4px 0; }
.mini.danger { color: var(--red); }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; margin-top: 1px; }
.step-t { font-weight: 600; }
.link-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; background: var(--c, #8e8e93); }
.link-ic svg { width: 18px; height: 18px; }
/* drag to reorder */
.row.sortable { position: relative; transition: transform .18s; }
.row.sortable > .swipe-inner { gap: 10px; }   /* as a plain row, so chevrons and grips line up whether a row swipes or not */
.row.sortable.dragging { transition: none; z-index: 5; box-shadow: 0 10px 28px rgba(0,0,0,.18); background: var(--row); border-radius: 12px; }
.grip { flex: none; min-width: 44px; min-height: 44px; margin: -8px -10px -8px 2px; border: 0; background: none; color: var(--text3); display: grid; place-items: center; cursor: grab; touch-action: none; font-size: 18px; }
.grip:active { cursor: grabbing; color: var(--text2); }

/* short links (js/short.js) */
.dim { opacity: .45; }
.st-big { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.st-big b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-big span { font-size: 13px; color: var(--text2); }
.st-bars { display: flex; align-items: flex-end; gap: 2px; height: 110px; width: 100%; }
.st-bars i { flex: 1; min-width: 2px; background: var(--tint); border-radius: 3px 3px 0 0; }
