/* Icon Fitting Room. Built on the site tokens (site.css). The phones are drawn in container-query units (cqw: 1% of the
   phone's width), so every part of a home screen scales with the phone. Shapes are CSS masks set up by fitting.js. */

.fr {
  --fr-pad: 20px; --fr-thumb: #FFFFFF;
  --wall-dawn: radial-gradient(120% 70% at 18% 8%, #FFD7B5 0%, transparent 58%), radial-gradient(90% 60% at 92% 78%, #B58CFF 0%, transparent 62%),
    linear-gradient(172deg, #FFA08C 0%, #E3719C 46%, #6B57D8 100%);
  --wall-lagoon: radial-gradient(110% 60% at 82% 12%, #A4F5E2 0%, transparent 58%), linear-gradient(166deg, #2ECBB2 0%, #1B7FAE 52%, #0F2F5E 100%);
  --wall-grape: radial-gradient(100% 60% at 12% 88%, #FF8CC6 0%, transparent 60%), radial-gradient(80% 50% at 90% 10%, #8C7BFF 0%, transparent 60%),
    linear-gradient(160deg, #6A3BE0 0%, #3A1E8F 58%, #170B3B 100%);
  --wall-paper: radial-gradient(90% 55% at 88% 6%, #FFFFFF 0%, transparent 60%), radial-gradient(80% 50% at 0% 100%, #E9D8BE 0%, transparent 60%),
    linear-gradient(172deg, #F5F0E7 0%, #E7DDCC 100%);
  --ui: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: 96px;
}
@media (prefers-color-scheme: dark) { .fr { --fr-thumb: #2E2C38; } }
.fr [hidden] { display: none !important; }
.fr-file { display: none; }
.fr-head { padding-bottom: clamp(22px, 3vw, 30px); }
.fr-head > p { margin-bottom: 0; }
.fr-head-chips { margin-top: 18px; }
.fr-noscript { padding: 16px 20px; border-radius: var(--r-m); background: var(--raised); }

/* ------------------------------------------------------------ cards, bars, small controls */

.fr-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: var(--fr-pad); }
.fr-card-title { font-size: 1.05rem; letter-spacing: -0.01em; margin: 0; }
.fr-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.fr-bar-top { align-items: flex-start; }
.fr-bar-copy { flex: 1 1 260px; min-width: 0; }
.fr-bar-tools { display: flex; align-items: flex-end; gap: 12px 18px; flex-wrap: wrap; }
.fr-sub { margin: 4px 0 0; font-size: .92rem; line-height: 1.45; color: var(--muted); max-width: 620px; }
.fr-label { display: block; font: 650 .7rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.fr-opt { margin-left: 4px; font-size: .74rem; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--faint); }
.fr-fine { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--faint); }
.fr-btn-sm { min-height: 38px; padding: 8px 15px; font-size: .88rem; }
.fr-btn-sm svg { width: 17px; height: 17px; }
.fr .btn:disabled { opacity: .7; cursor: progress; transform: none; }

.fr-mini { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 650 .8rem/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background .15s, transform .15s var(--ease-out); }
.fr-mini:hover { background: var(--raised); }
.fr-mini:active { transform: scale(.96); }
.fr-mini:disabled { opacity: .6; cursor: progress; }
.fr-mini svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* segmented radios: the input sits invisibly over its label, the span is the pill */
.fr-seg { display: inline-flex; gap: 2px; margin: 0; padding: 4px; border: 0; border-radius: 999px; background: var(--raised); max-width: 100%; }
.fr-seg label { position: relative; display: block; }
.fr-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fr-seg span { display: inline-flex; align-items: center; min-height: 34px; padding: 8px 15px; border-radius: 999px; color: var(--muted);
  font: 650 .88rem/1 var(--sans); white-space: nowrap; transition: color .15s, background .2s, box-shadow .2s; }
.fr-seg label:hover span { color: var(--ink); }
.fr-seg input:checked + span { background: var(--fr-thumb); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 10%), 0 3px 10px rgb(0 0 0 / 7%); }
.fr-seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }
.fr-seg-sm span { min-height: 32px; padding: 7px 12px; font-size: .82rem; }
.fr-seg-wrap { display: grid; gap: 6px; justify-items: start; max-width: 100%; }
.fr-seg-wrap .fr-label { margin: 0 0 0 4px; }

/* switches: a real checkbox, drawn as a track */
.fr-switch { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font: 650 .88rem/1 var(--sans); color: var(--ink); cursor: pointer; }
.fr-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fr-switch-ui { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line); transition: background .2s; }
.fr-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform .25s var(--spring); }
.fr-switch input:checked + .fr-switch-ui { background: var(--accent); }
.fr-switch input:checked + .fr-switch-ui::after { transform: translateX(16px); }
.fr-switch input:focus-visible + .fr-switch-ui { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------ the input card */

.fr-workspace { display: grid; gap: 20px; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; }
.fr-input { display: grid; gap: 18px; }

.fr-drop { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; align-items: center; padding: 14px; border-radius: var(--r-m);
  border: 1.5px dashed color-mix(in srgb, var(--ink) 18%, var(--line)); background: var(--bg); transition: border-color .15s, background .15s; }
.fr-drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.fr-drop-icon { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--raised); box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgb(22 21 27 / 10%); }
.fr-drop-icon img { display: block; width: 100%; height: 100%; }
.fr-drop-lead { margin: 0 0 10px; font-size: .95rem; line-height: 1.35; color: var(--muted); }
.fr-drop-lead strong { color: var(--ink); }
.fr-drop-fine { grid-column: 1 / -1; }
.fr-error { margin: -6px 0 0; padding: 10px 14px; border-radius: var(--r-s); background: color-mix(in srgb, var(--coral) 13%, var(--surface)); font-size: .9rem; }

.fr-sample-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fr-sample { display: grid; justify-items: center; gap: 6px; min-width: 0; padding: 10px 4px 9px; border-radius: var(--r-s); border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font: 600 .74rem/1.15 var(--sans); cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s, transform .15s var(--ease-out); }
.fr-sample img { width: 40px; height: 40px; border-radius: 10px; }
.fr-sample:hover { color: var(--ink); }
.fr-sample:active { transform: scale(.96); }
.fr-sample[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

.fr-field { display: block; }
.fr-text { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: 500 .98rem/1.2 var(--sans); }
.fr-text:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

.fr-variants { display: grid; gap: 8px; }
.fr-variants > .fr-label { margin: 0; }
.fr-slot { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--bg); }
.fr-slot-thumb { flex: none; width: 44px; height: 44px; border-radius: 11px; overflow: hidden; background: var(--raised); }
.fr-slot-thumb img { display: block; width: 100%; height: 100%; }
.fr-slot-thumb-mono { background: #2A2833; }
.fr-slot-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.fr-slot-text b { font-size: .92rem; }
.fr-slot-state { font-size: .8rem; color: var(--faint); }
.fr-sens { padding: 6px 2px 0; }
.fr-sens-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fr-sens-head .fr-label { margin: 0; }
.fr-sens-head output { font: 600 .8rem/1 var(--mono); color: var(--muted); }
.fr-range { width: 100%; margin: 8px 0 6px; accent-color: var(--accent); }

.fr-fill-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.fr-fill-row .fr-label { margin: 0; }
.fr-fill-pick { display: inline-flex; align-items: center; gap: 8px; }
.fr-fill-pick input { width: 42px; height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.fr-fill-pick code { font-size: .8rem; color: var(--muted); }

.fr-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fr-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.fr-check b { display: block; margin-bottom: 1px; font-size: .9rem; color: var(--ink); }
.fr-check-ico { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--c); color: #fff; }
.fr-check-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.fr-check.is-ok { --c: #12936B; }
.fr-check.is-warn { --c: #D46B08; }
.fr-check.is-info { --c: #3478E0; }

/* ------------------------------------------------------------ the home screens */

.fr-stage .fr-bar { margin-bottom: 12px; }
/* a plain label beside the swatches (a floated legend lands above them in some browsers); the padding leaves room for the ring */
.fr-walls-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 18px; }
.fr-walls-row > .fr-label { margin: 0; }
.fr-walls { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 5px; border: 0; }
.fr-wall { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 14%); cursor: pointer;
  transition: box-shadow .2s, transform .18s var(--ease-out); }
.fr-wall:active { transform: scale(.92); }
.fr-wall input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fr-wall:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.fr-wall:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 6px; }
.fr-w-dawn { --sw: var(--wall-dawn); } .fr-w-lagoon { --sw: var(--wall-lagoon); } .fr-w-grape { --sw: var(--wall-grape); } .fr-w-paper { --sw: var(--wall-paper); }
.fr[data-wall="dawn"] { --wall: var(--wall-dawn); } .fr[data-wall="lagoon"] { --wall: var(--wall-lagoon); }
.fr[data-wall="grape"] { --wall: var(--wall-grape); } .fr[data-wall="paper"] { --wall: var(--wall-paper); }

.fr-phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 30px 20px; justify-items: center; }
.fr-device { width: 100%; max-width: 300px; margin: 0; display: grid; gap: 14px; justify-items: center; }
.fr-device figcaption { font: 650 .86rem/1.3 var(--sans); text-align: center; }
.fr-phone { width: 100%; container-type: inline-size; padding: 9px; border-radius: 50px; background: #0B0B0E;
  box-shadow: 0 0 0 1px #4A4853, inset 0 0 0 1px #26252C, 0 30px 50px -24px rgb(22 21 27 / 60%); }
.fr-android { padding: 8px; border-radius: 40px; }
.fr-stage-note { margin-top: 18px; text-align: center; text-wrap: balance; }

.fr-screen { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 393 / 852; border-radius: 41px; background: var(--wall);
  color: #fff; font-family: var(--ui); -webkit-user-select: none; user-select: none; --glass: rgb(255 255 255 / 24%); }
.fr-android .fr-screen { aspect-ratio: 412 / 915; border-radius: 32px; }
.fr-screen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(0 0 0 / var(--dim, 0)); transition: background .35s; }
.fr[data-look="dark"] { --dim: .42; }
.fr[data-look="tinted"] { --dim: .6; }
.fr[data-look="dark"] .fr-screen, .fr[data-look="tinted"] .fr-screen { --glass: rgb(38 38 44 / 50%); }
.fr[data-wall="paper"][data-look="light"] .fr-screen { color: #1F1C17; --glass: rgb(255 255 255 / 55%); --lab-shadow: none; }

.fr-status { position: relative; display: flex; align-items: center; justify-content: space-between; }
.fr-sys svg { display: block; height: auto; }
.fr-ios .fr-status { height: 14cqw; padding: 1.6cqw 7cqw 0 10.5cqw; font: 600 4.3cqw/1 var(--ui); letter-spacing: -.01em; }
.fr-ios .fr-sys svg { width: 16.5cqw; }
.fr-island { position: absolute; top: 3cqw; left: 50%; width: 31cqw; height: 9.2cqw; transform: translateX(-50%); border-radius: 99px; background: #000; }

.fr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fr-app { display: grid; justify-items: center; align-content: start; gap: 1.7cqw; min-width: 0; }
.fr-lab { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 2.95cqw/1.2 var(--ui);
  text-shadow: var(--lab-shadow, 0 .2cqw 1cqw rgb(0 0 0 / 30%)); }
.fr-grid-ios { padding: 3.6cqw 5.2cqw 0; row-gap: 4.2cqw; }
.fr-ios .fr-ico { width: 15.8cqw; height: 15.8cqw; }

.fr-widget { grid-column: 1 / 3; grid-row: 1 / 3; }
.fr-widget-card { display: flex; flex-direction: column; width: 38.2cqw; aspect-ratio: 1; padding: 3.6cqw 3.8cqw; border-radius: 5.6cqw; background: #FFFFFF;
  color: #1C1C1E; box-shadow: 0 .6cqw 2cqw rgb(0 0 0 / 12%); }
.fr-wd-day { font: 700 2.7cqw/1 var(--ui); letter-spacing: .03em; color: #EE4136; }
.fr-wd-num { margin: .8cqw 0 auto; font: 300 10.5cqw/1 var(--ui); letter-spacing: -.03em; }
.fr-wd-ev { display: grid; gap: .9cqw; margin-top: 1.6cqw; padding: .3cqw 0 .3cqw 2cqw; border-left: .8cqw solid #6A5CF0; }
.fr-wd-ev2 { border-left-color: #2FB45A; }
.fr-wd-ev i { display: block; width: 82%; height: 1.5cqw; border-radius: 1cqw; background: currentColor; opacity: .7; }
.fr-wd-ev i + i { width: 52%; opacity: .32; }
.fr[data-look="dark"] .fr-widget-card { background: #1C1C1E; color: #F2F2F7; }
.fr[data-look="tinted"] .fr-widget-card { background: color-mix(in srgb, var(--tint) 12%, #141416); color: var(--tint); }
.fr[data-look="tinted"] .fr-wd-day { color: var(--tint); }
.fr[data-look="tinted"] .fr-wd-ev { border-left-color: color-mix(in srgb, var(--tint) 70%, transparent); }

.fr-ios-bottom { position: absolute; inset: auto 0 0; display: grid; justify-items: center; gap: 3.2cqw; padding: 0 2.6cqw 2.2cqw; }
.fr-search { display: inline-flex; align-items: center; gap: 1.2cqw; padding: 1.8cqw 3.6cqw; border-radius: 99px; font: 600 3.1cqw/1 var(--ui);
  background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fr-search svg { width: 3.3cqw; height: 3.3cqw; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.fr-dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; width: 100%; }
.fr-ios .fr-dock { padding: 4.2cqw 3.2cqw; border-radius: 10.5cqw; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
.fr-homebar { width: 36cqw; height: 1.3cqw; margin-top: .4cqw; border-radius: 99px; background: currentColor; opacity: .9; }

.fr-android .fr-status { height: 9.5cqw; padding: 2.4cqw 6.4cqw 0; font: 500 3.7cqw/1 var(--ui); }
.fr-android .fr-sys svg { width: 9.5cqw; }
.fr-punch { position: absolute; top: 3.2cqw; left: 50%; width: 3.6cqw; height: 3.6cqw; transform: translateX(-50%); border-radius: 50%; background: #000;
  box-shadow: 0 0 0 .5cqw rgb(0 0 0 / 25%); }
.fr-glance { padding: 8cqw 7cqw 0; font: 400 6.4cqw/1.2 var(--ui); letter-spacing: -.01em; text-shadow: var(--lab-shadow, 0 .2cqw 1.2cqw rgb(0 0 0 / 25%)); }
.fr-android-bottom { position: absolute; inset: auto 0 0; display: grid; }
.fr-grid-android { padding: 0 3.6cqw; row-gap: 5.2cqw; }
.fr-android .fr-ico { width: 14.4cqw; height: 14.4cqw; }
.fr-dock-android { padding: 6.4cqw 3.6cqw 0; }
.fr-gsearch { display: flex; align-items: center; gap: 2.8cqw; height: 12.4cqw; margin: 5.2cqw 4.4cqw 0; padding: 0 4.4cqw; border-radius: 99px;
  background: rgb(255 255 255 / 88%); color: #3C3C44; font: 500 3.7cqw/1 var(--ui); }
.fr-gsearch span { flex: 1; }
.fr-gsearch svg { width: 5cqw; height: 5cqw; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fr[data-look="dark"] .fr-gsearch { background: rgb(36 36 42 / 92%); color: #DADAE2; }
.fr[data-look="tinted"] .fr-gsearch { background: var(--th-plate); color: var(--th-glyph); }
.fr-navbar { justify-self: center; width: 28cqw; height: 1.2cqw; margin: 4.6cqw 0 2.8cqw; border-radius: 99px; background: currentColor; opacity: .85; }

/* icons: one masked box; the other apps are a gradient and a line glyph, yours is an image */
.fr-ico { position: relative; display: grid; place-items: center; overflow: hidden; color: var(--gi, #fff); background: linear-gradient(180deg, var(--a), var(--b));
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.fr-ios .fr-ico { --m: var(--m-ios); }
.fr-android .fr-ico { --m: var(--m-current); }
.fr-ico svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fr-ico img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.fr-ico-mine, .fr-ico-tile { background: rgb(128 128 140 / 22%); }
.fr[data-layer="layer"] .fr-src-android, .fr[data-layer="layer"] .fr-android .fr-mine-img { transform: scale(1.5); }

/* in dark and tinted the other apps behave like apps that ship those variants */
.fr[data-look="dark"] .fr-ios .fr-ico:not(.fr-ico-mine) { background: linear-gradient(180deg, #3A3A41, #141417); color: var(--gd, color-mix(in srgb, var(--a) 78%, #fff)); }
.fr[data-look="tinted"] .fr-ios .fr-ico:not(.fr-ico-mine) { background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 16%, #1B1B1F), #08080A); color: var(--tint); }
.fr[data-look="tinted"] .fr-android .fr-ico:not(.fr-ico-mine) { background: var(--th-plate); color: var(--th-glyph); }

/* ------------------------------------------------------------ shapes */

.fr-shapes, .fr-pair { margin-top: 20px; }
.fr-shape-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.fr-shape { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 18px 8px 14px; border-radius: var(--r-m);
  border: 1px solid transparent; background: var(--bg); color: var(--ink); font: inherit; text-align: center; }
button.fr-shape { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .18s var(--ease-out); }
button.fr-shape:hover { border-color: var(--line); }
button.fr-shape:active { transform: scale(.97); }
button.fr-shape[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.fr-shape-art { position: relative; display: block; width: 80px; height: 80px; margin-bottom: 10px; }
.fr-shape-art .fr-ico { width: 100%; height: 100%; }
.fr-shape-name { font: 650 .86rem/1.2 var(--sans); }
.fr-shape-note { font-size: .74rem; line-height: 1.3; color: var(--faint); text-wrap: balance; }
.fr-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fr-ring circle { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3.5 3; }
.fr-ring .fr-ring-under { stroke: rgb(0 0 0 / 40%); stroke-width: 3; stroke-dasharray: none; }
.fr-layer-svg { display: block; width: 100%; height: 100%; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.fr-hatch-bg { fill: var(--raised); }
.fr-hatch-line { stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: 1.4; }
.fr-layer-dim { fill: rgb(14 13 18 / 60%); }
.fr-layer-edge { fill: none; stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.fr-layer-safe { fill: none; stroke: #fff; stroke-width: .9; stroke-dasharray: 2.4 2; }
.fr.fr-nosafe .fr-ring, .fr.fr-nosafe .fr-layer-safe { display: none; }

/* ------------------------------------------------------------ sizes and export */

.fr-pair { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.fr-ladder { display: flex; flex-wrap: wrap; gap: 10px; }
.fr-rung { flex: 1 1 72px; min-width: 72px; display: grid; text-align: center; --s: calc(var(--px) * 1px); }
.fr-rung-cell { display: grid; place-items: center; height: 92px; }
.fr-rung-light { border-radius: 14px 14px 0 0; background: #F2F2F7; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 5%); }
.fr-rung-dark { margin-bottom: 8px; border-radius: 0 0 14px 14px; background: #000; }
.fr-rung-blur { display: block; width: var(--s); height: var(--s); filter: var(--f, none); transition: filter .25s; }
.fr-rung .fr-ico { width: 100%; height: 100%; }
.fr-squint .fr-rung-blur { --f: blur(calc(var(--px) * .045px)); }
.fr-gray .fr-rung-blur { --f: grayscale(1); }
.fr-squint.fr-gray .fr-rung-blur { --f: blur(calc(var(--px) * .045px)) grayscale(1); }
.fr-rung-name { font: 650 .84rem/1.2 var(--sans); }
.fr-rung-note { font-size: .74rem; line-height: 1.3; color: var(--faint); }
.fr-ladder-note { flex-basis: 100%; margin-top: 6px; }

.fr-files { list-style: none; margin: 0; padding: 0; display: grid; }
.fr-file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.fr-file-row:first-child { padding-top: 2px; border-top: 0; }
.fr-file-text { display: grid; min-width: 0; line-height: 1.3; }
.fr-file-text b { font-size: .92rem; }
.fr-file-text span { font-size: .8rem; color: var(--faint); }
.fr-dl { flex: none; }

/* ------------------------------------------------------------ field notes */

.fr-guide { margin-top: clamp(64px, 9vw, 104px); }
.fr-guide-head { margin-bottom: 26px; }
.fr-guide-head h2 { margin: 0; }
.fr-tips { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.fr-tip { padding: 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.fr-tip h3 { margin: 16px 0 8px; font-size: 1.12rem; }
.fr-tip p { margin: 0; font-size: .97rem; color: var(--muted); }
.fr-tip code { padding: .1em .38em; border-radius: 5px; background: var(--raised); font-size: .84em; color: var(--ink); }
.fr-tip-ico { display: block; width: 48px; height: 48px; padding: 7px; border-radius: 14px; background: var(--raised); }
.fr-tip-ico path, .fr-tip-ico circle, .fr-tip-ico rect { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fr-tip-ico .fr-tip-axis { stroke: var(--faint); stroke-width: 2.4; }
.fr-built { margin-top: 24px; text-align: center; text-wrap: balance; }

/* ------------------------------------------------------------ narrower screens */

@media (max-width: 1000px) {
  .fr-workspace, .fr-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .fr { --fr-pad: 16px; }
  .fr-card { border-radius: 22px; }
  .fr-drop { grid-template-columns: 72px minmax(0, 1fr); }
  .fr-drop-icon { width: 72px; height: 72px; }
  .fr-shape-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
  .fr-shape { padding: 14px 2px 12px; }
  .fr-shape-name { font-size: .8rem; }
  .fr-shape-art { width: 64px; height: 64px; }
  .fr-tip { padding: 20px; }
}
