/* IBM Plex Sans Condensed and Kanit, served from this site (see fonts/README.txt). */
@font-face {
    font-family: 'IBM Plex Sans Condensed';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/ibm-plex-sans-condensed-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'IBM Plex Sans Condensed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/ibm-plex-sans-condensed-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'IBM Plex Sans Condensed';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/ibm-plex-sans-condensed-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'IBM Plex Sans Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/ibm-plex-sans-condensed-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'IBM Plex Sans Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/ibm-plex-sans-condensed-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/kanit-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/kanit-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/kanit-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: dark;
    --wide: 1240px;
    --teal: #00acb4;
    --teal-soft: rgba(0, 172, 180, .16);
    --ink: #f2f6f7;
    --muted: #9aa7ad;
    --card: #1c1f23;
    --line: rgba(255, 255, 255, .08);
    --orange: #ff9f0a;
    --red: #ff6b6b;
    --radius: 22px;
    /* The fonts of 118performance.com: Kanit for headings, IBM Plex Sans Condensed for text. */
    --heading: Kanit, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    font: 16px/1.5 "IBM Plex Sans Condensed", -apple-system, system-ui, sans-serif;
    color: var(--ink);
    background: #121419 linear-gradient(170deg, #00545c 0%, #1f2b33 45%, #121419 100%) no-repeat;
    background-attachment: fixed;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
    max-width: var(--wide); margin: 0 auto; padding: 22px 16px 8px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand strong { display: block; font: 700 30px/1 var(--heading); letter-spacing: .01em; }
/* On a phone the brand line keeps to the name; the quote shows from tablet width. */
@media (max-width: 560px) { .brand small .quote { display: none; } }
.brand small { display: block; font: 700 13px/1.3 var(--heading); color: var(--teal); letter-spacing: .04em; }
.sail { width: 32px; height: 40px; fill: none; stroke: var(--teal); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sail.big { width: 64px; height: 80px; display: block; margin: 0 auto 12px; }

.tabs { display: flex; gap: 4px; overflow-x: auto; margin-left: auto; scrollbar-width: none; }
.tabs a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current] { background: var(--teal-soft); color: var(--teal); }

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--teal-soft); }
.avatar.tiny { width: 22px; height: 22px; margin: -3px 7px -6px -6px; vertical-align: baseline; }
.avatar.large { width: 96px; height: 96px; display: block; margin-bottom: 14px; }
h1.page.with-avatar { display: flex; align-items: center; gap: 14px; }
h1.page.with-avatar .avatar { width: 52px; height: 52px; }

main { max-width: var(--wide); margin: 0 auto; padding: 8px 16px 32px; }

/* Like the app on an iPad: from tablet width, what something is on the left and how it was used on the right
   (.columns with two .col), groups of cards side by side (.masonry) and long lists in two columns (.list.split). */
.columns { display: grid; gap: 0 16px; align-items: start; }
.columns > .col { min-width: 0; }
.masonry > * { break-inside: avoid; }
@media (min-width: 900px) {
    .columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .masonry { columns: 2; column-gap: 16px; }
    .masonry > * { display: inline-block; width: 100%; vertical-align: top; }
    .list.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
    .list.split > :nth-child(2) { border-top: 0; }
}
@media (min-width: 1200px) { .masonry.three { columns: 3; } }
/* In a column there is no room for the drawings beside a piece of gear: they go below it. */
/* The mast base, boom height and footstrap drawings stay beside the settings, also in two columns. */
h1.page { font: 700 44px/1.05 var(--heading); margin: 18px 0 16px; letter-spacing: .005em; }
h1 { font: 700 34px/1.1 var(--heading); margin: 0 0 8px; }
h2 { font: 700 22px/1.2 var(--heading); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 12px; }
.lead { color: var(--muted); margin: -8px 0 18px; }
.crumb { margin: 8px 0 0; font-size: 15px; }

.card { background: var(--card); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 16px; }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.more { font-size: 15px; white-space: nowrap; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.teal { color: var(--teal); }

.stats { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.stats .label { display: block; font: 700 14px/1 var(--heading); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stats .big { display: block; font: 700 48px/1.1 var(--heading); }
.stats .big small { font-size: 22px; color: var(--muted); }
.chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.chip strong { margin-left: 4px; }

.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 170px; align-items: end; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar .fill { width: 100%; max-width: 26px; min-height: 2px; background: var(--teal); border-radius: 6px 6px 2px 2px; }
.bar .value { font-size: 12px; color: var(--muted); min-height: 18px; }
.bar .month { font-size: 11px; color: var(--muted); margin-top: 6px; }

.ranked { list-style: none; counter-reset: rank; margin: 0 0 12px; padding: 0; }
.ranked li { counter-increment: rank; display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ranked li::before { content: counter(rank); color: var(--teal); font: 700 18px/1.3 var(--heading); width: 26px; }
.ranked li span:first-of-type { flex: 1; }

.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); }
.list > :first-child { border-top: 0; }
a.row:hover { text-decoration: none; background: rgba(255, 255, 255, .03); }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .date { color: var(--muted); font-size: 14px; text-align: right; white-space: nowrap; }
.badge { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font: 700 16px/1 var(--heading); }
.stars { color: var(--orange); letter-spacing: 2px; font-size: 14px; }
.stars .dim { color: rgba(255, 255, 255, .18); }
.row .date:has(.session-bubble) { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.session-bubble { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-weight: 600; font-size: 13px; }
.session-bubble.none { background: rgba(255, 255, 255, .06); color: var(--muted); font-weight: 500; }
/* A quiver group: a header band that stands out from the list below it. */
.card.group { padding-top: 0; overflow: hidden; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 -20px 4px; padding: 14px 20px;
    background: linear-gradient(90deg, rgba(0, 172, 180, .30), rgba(0, 172, 180, .10)); border-bottom: 1px solid rgba(0, 172, 180, .35); }
.group-head h2 { margin: 0; color: #fff; }
.count-bubble { min-width: 28px; padding: 3px 9px; border-radius: 999px; background: var(--teal); color: #fff; font: 700 14px/1.2 var(--heading); text-align: center; }
.tag { align-self: flex-start; margin-top: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); }

/* Photos taken in the app: an item's photo, and the photos of a session's settings. */
.item-photo { display: block; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; }
.item-photo img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.setting-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.setting-photos a { display: flex; flex-direction: column; gap: 4px; width: 96px; color: var(--muted); font-size: 12px; text-decoration: none; }
.setting-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts.compact { margin-top: 6px; font-size: 14px; gap: 2px 16px; }
.gear { padding: 12px 0; border-top: 1px solid var(--line); }
.gear .sizes { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.list > .gear:first-child { border-top: 0; }
.notes { margin: 0; white-space: normal; }
.maplink { display: block; }

.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter a { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink); font-size: 14px; }
.filter a[aria-current] { background: var(--teal); color: #fff; }
.filter a:hover { text-decoration: none; }

.map { height: min(70vh, 640px); }
.spot { display: flex; flex-direction: column; }
.minimap { flex: 1; min-height: 240px; border-radius: 14px; overflow: hidden; }
.leaflet-popup-content a { color: #007a80; }

.login { max-width: 420px; margin: 40px auto; text-align: center; padding: 32px 24px; }
.login form { text-align: left; margin-top: 16px; }
.login form.inline { text-align: center; margin-top: 8px; }
.field { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.field input {
    display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font: inherit; font-size: 17px; color: var(--ink);
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 12px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.field select, .field textarea {
    display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--ink);
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 12px;
}
.field select option { color: #000; }
.field textarea { resize: vertical; }

.title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title .button { flex: none; }
.title .buttons { flex: none; gap: 8px; }
.camber-spacers .camber { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.camber-spacers .camber > span:first-child { min-width: 80px; }
.camber-spacers .camber select { width: auto; }
.camber-spacers .camber[hidden] { display: none; }
.button.quiet { background: rgba(255, 255, 255, .08); color: var(--ink); }
.merge-choice { align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); margin: 0; }
.merge-choice > span { display: flex; flex-direction: column; gap: 2px; }
.merge-choice .tag { align-self: flex-start; }
.button { display: inline-block; padding: 9px 18px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-weight: 600; }
.button:hover { text-decoration: none; background: rgba(0, 172, 180, .26); }
.notice { background: var(--teal-soft); color: var(--ink); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; }
.edit { max-width: 640px; }
.edit h2 { margin-top: 8px; }
.edit h2 ~ h2 { margin-top: 24px; }
.straps { border: 0; padding: 0; margin: 0 0 12px; }
.straps legend { padding: 0; margin-bottom: 6px; }
.strap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 8px; color: var(--ink); }
.strap select { margin-top: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); margin: 4px 0 12px; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.actions { display: flex; gap: 12px; margin-top: 20px; }
.actions .primary, .actions .secondary { margin-top: 0; text-align: center; }
.actions .secondary:hover { text-decoration: none; }
@media (max-width: 480px) { .strap { grid-template-columns: 1fr 1fr; } .strap span { grid-column: 1 / -1; } }
.field input.code { font: 600 30px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .3em; text-align: center; }
button { font: inherit; cursor: pointer; border: 0; }
.primary, .secondary, .danger { width: 100%; padding: 14px; border-radius: 14px; font-weight: 600; font-size: 17px; }
.primary { background: var(--teal); color: #fff; }
.primary:hover { filter: brightness(1.08); }
.secondary { background: rgba(255, 255, 255, .08); color: var(--ink); margin-top: 18px; }
.danger { background: rgba(255, 107, 107, .14); color: var(--red); }
.link { background: none; color: var(--teal); padding: 6px; }
.apple {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px;
    padding: 14px; border-radius: 14px; background: #fff; color: #000; font-weight: 600; font-size: 17px;
}
.apple:hover { text-decoration: none; background: #eef0f1; }
.apple svg { width: 13px; height: 16px; flex: none; fill: currentColor; margin-top: -2px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.error { color: var(--red); font-size: 14px; }
.empty { max-width: 560px; margin: 40px auto; }

.faq { scroll-margin-top: 16px; }
.faq details { border-top: 1px solid var(--line); }
.faq h2 + details { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font: 700 22px/1 var(--heading); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--teal); }
.faq .answer { color: var(--muted); padding: 0 0 14px; }
.faq .answer p { margin: 0 0 8px; }
.faq .answer :is(ol, ul) { margin: 0 0 8px; padding-left: 20px; }
.faq .answer strong, .faq .answer em { color: var(--ink); }

/* Signing in: the brand background with the sail cycling through colours while the sign-in finishes. */
.signing-in { display: grid; place-items: center; }
.loading { text-align: center; padding: 24px; }
.loading .quote { margin-top: 18px; font: 700 16px/1.3 var(--heading); color: var(--teal); letter-spacing: .03em; text-transform: uppercase; }
.loading .wordmark { font: 700 34px/1 var(--heading); letter-spacing: .01em; margin: 4px 0 6px; }
.sail.cycling { animation: sail-colours 2.4s ease-in-out infinite; }
@keyframes sail-colours {
    0%, 100% { stroke: var(--teal); }
    25% { stroke: #7fe3e8; }
    50% { stroke: #ffffff; }
    75% { stroke: var(--orange); }
}
@media (prefers-reduced-motion: reduce) { .sail.cycling { animation-duration: 6s; } }

.foot { max-width: var(--wide); margin: 0 auto; text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 32px; }

/* On a phone, as in the iPhone app: a compact header and titles, and cards that keep more room for their content. */
@media (max-width: 640px) {
    .top { padding: 12px 16px 4px; gap: 8px 28px; }
    .brand strong { font-size: 24px; }
    .sail { width: 26px; height: 32px; }
    .tabs { margin-left: -6px; width: calc(100% + 6px); }
    .tabs a { padding: 7px 11px; }
    main { padding-top: 4px; }
    h1.page { font-size: 32px; margin: 10px 0 12px; }
    h1.page.with-avatar .avatar { width: 40px; height: 40px; }
    h2 { font-size: 19px; margin-bottom: 8px; }
    .lead { margin: -6px 0 14px; }
    .stats { gap: 12px 28px; }
    .stats .big { font-size: 40px; }
    .bars { gap: 3px; height: 140px; }
    .card { padding: 14px 16px; margin-bottom: 12px; }
    .card.group { padding-top: 0; }
    .group-head { margin: 0 -16px 4px; padding: 12px 16px; }
    .columns { gap: 0 12px; }
    .row { gap: 12px; padding: 10px 0; }
    .badge { width: 38px; height: 38px; font-size: 14px; }
}

/* Base and Pro */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan h2 { display: flex; align-items: center; gap: 8px; }
.plan.pro { box-shadow: inset 0 0 0 2px var(--teal), 0 10px 30px rgba(0, 0, 0, .18); }
.plan .price { font: 700 28px/1.1 var(--heading); color: var(--teal); margin: 4px 0 8px; }
.pro-badge { font: 700 12px/1 var(--heading); color: #fff; background: var(--teal); border-radius: 999px; padding: 3px 7px; letter-spacing: .04em; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 11px 8px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.compare thead th + th, .compare td { width: 72px; text-align: center; }
.compare tbody th { font-weight: 600; }
.compare tbody th small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: 13px; }
.compare .group th { padding-top: 22px; font: 700 18px/1.2 var(--heading); color: var(--teal); letter-spacing: .02em; border-top: 0; }
.compare .yes { color: var(--teal); font-weight: 800; font-size: 18px; }
.compare .no { color: var(--muted); }
@media (max-width: 560px) { .compare thead th + th, .compare td { width: 48px; } }

.plain { margin: 0 0 12px; padding-left: 18px; }
.plain li { margin: 6px 0; }

/* Privacy statement and terms */
.legal-text p, .legal-text li { line-height: 1.6; }
.legal-text ul { padding-left: 20px; }
.legal { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--line); }
.legal thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 560px) { .legal, .legal tbody, .legal tr, .legal td { display: block; } .legal thead { display: none; } .legal td { border-top: 0; padding: 2px 0; } .legal tr { border-top: 1px solid var(--line); padding: 10px 0; } }
.small-print { font-size: 13px; margin-top: 16px; }
.check span { line-height: 1.4; }

/* Mast base and boom height on a session, drawn as in the app */
.gear.with-figures { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, max-content); gap: 12px 18px; align-items: start; }
/* The drawings stack beside the gear and its settings. */
.setting-figures { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; }
@media (max-width: 420px) { .gear.with-figures { grid-template-columns: 1fr; } .setting-figures { justify-content: flex-start; } }
.setting-figure { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 12px; margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.figure-text { display: flex; flex-direction: column; min-width: 96px; }
.figure-name { color: var(--muted); font-size: 14px; }
.figure-text strong { font: 700 28px/1.2 var(--heading); color: var(--teal); }
.figure-text small, .figure-scale small { color: var(--muted); font-size: 12px; }
.figure-scale { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.setting-figure .track { fill: rgba(255, 255, 255, .28); }
.setting-figure .thumb { fill: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.setting-figure .dot { fill: var(--teal); }
.boom-scale .rail { fill: rgba(255, 255, 255, .14); }
.boom-scale .tick { fill: rgba(255, 255, 255, .35); }
.boom-scale .mid { fill: rgba(255, 255, 255, .7); }
.boom-scale .on { fill: var(--teal); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.boom-scale .pin { fill: #fff; }
.setting-figure .reference { stroke: var(--teal); stroke-width: 2; stroke-dasharray: 3 2; }
.setting-figure .reference-label { fill: var(--teal); font: 600 10px var(--heading); letter-spacing: .02em; }
.setting-figure .figure-scale { align-items: flex-start; } .setting-figure .figure-scale small { min-width: 40px; text-align: center; }


/* Sign-in: the app comes first */
.app-first { text-align: left; margin: 12px 0 4px; }
.app-first p { margin: 4px 0 0; font-size: 14px; }
.app-store { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.app-store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border-radius: 10px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.app-store-badge:hover { text-decoration: none; border-color: #fff; }
.app-store-badge svg { fill: #fff; }
.app-store-badge span { display: flex; flex-direction: column; align-items: flex-start; font: 600 20px/1 -apple-system, system-ui, sans-serif; letter-spacing: -.01em; }
.app-store-badge small { font: 400 11px/1.2 -apple-system, system-ui, sans-serif; letter-spacing: 0; }

/* Footstraps: the board from above with its inserts, as in the app */
.footstrap-board { display: block; flex: none; }
.footstrap-board .water { fill: #2a2d31; }
.footstrap-board .deck { fill: #e9ecee; }
.footstrap-board .strap { stroke: rgba(140, 140, 140, .55); stroke-width: 13; stroke-linecap: round; }
.footstrap-board .strap.used { stroke: rgba(0, 172, 180, .85); }
.footstrap-board .hole { fill: #1f1f1f; }
.footstrap-board .hole.screwed { fill: #fff; stroke: #1f1f1f; stroke-width: 1.2; }
.footstrap-board .base { stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; }
.setting-figure.footstraps .figure-text strong { font-size: 22px; }
.setting-figure.eyelets .figure-text strong { font-size: 20px; }
.clew { flex: none; background: rgba(255, 255, 255, .12); border-radius: 8px; }
.clew path { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.clew path.thick { stroke-width: 2; }
.clew circle { fill: none; stroke: var(--ink); stroke-width: .8; }
.clew circle.on { fill: var(--teal); stroke: none; }
.sail-setup { margin: 0; }
.sail-setup figcaption { margin-bottom: 8px; }
.sail-setup svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.sail-setup .sail { fill: rgba(255, 255, 255, .06); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.sail-setup .mast { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.sail-setup .batten { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.sail-setup .boom { stroke: var(--muted); stroke-width: 13; stroke-linecap: round; }
.sail-setup .camber { fill: var(--teal); }
.sail-setup .eyelet { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.sail-setup .eyelet.on { fill: var(--teal); stroke: none; }
.sail-setup text { font-family: inherit; font-size: 30px; font-weight: 600; fill: var(--ink); }
.sail-setup .spacer, .sail-setup .boom-label { text-anchor: end; }
.sail-setup .spacer { fill: var(--teal); }
.sail-setup .position { fill: var(--muted); font-size: 26px; text-anchor: middle; }
.footstrap-card .footstrap-board { margin: 4px auto 10px; max-width: 100%; height: auto; }
.straps .footstrap-board { margin: 10px 0 4px; }

.footstrap-board .slot { fill: #1f1f1f; }
.footstrap-board .mast-base { fill: var(--teal); stroke: #fff; stroke-width: 1.5; }

/* Ratings of a session, and the fin's star diagram */
.ratings-body { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.ratings .fin { margin: 0; text-align: center; }
.fin-radar .ring { fill: none; stroke-width: 1; opacity: .6; }
.fin-radar .axis { stroke: rgba(255, 255, 255, .45); stroke-width: 1; fill: none; }
.fin-radar .shape { fill: rgba(0, 172, 180, .25); stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; }
.fin-radar .dot { stroke: #fff; stroke-width: 1.5; }
.fin-radar .label { fill: var(--ink); font: 600 11px var(--heading); text-anchor: middle; }
.fin-radar .value, .fin-radar .scale { font: 700 10px var(--heading); text-anchor: middle; fill: var(--muted); }
.fin-radar .scale { text-anchor: start; font-size: 9px; }
/* The five rating steps, as in the app: the teal from pale (1) to full (5). */
.fin-radar .step1 { stroke: #b0dee0; } .fin-radar text.step1, .fin-radar .dot.step1 { fill: #b0dee0; }
.fin-radar .step2 { stroke: #7dccd1; } .fin-radar text.step2, .fin-radar .dot.step2 { fill: #7dccd1; }
.fin-radar .step3 { stroke: #4abdc4; } .fin-radar text.step3, .fin-radar .dot.step3 { fill: #4abdc4; }
.fin-radar .step4 { stroke: #1fb3bd; } .fin-radar text.step4, .fin-radar .dot.step4 { fill: #1fb3bd; }
.fin-radar .step5 { stroke: #00acb4; } .fin-radar text.step5, .fin-radar .dot.step5 { fill: #00acb4; }
.fin-radar .dot { stroke: #fff; }

.gear .nickname { color: var(--muted); font-weight: 400; }

/* Equipment import */
.steps h2 { margin-top: 18px; } .steps h2:first-child { margin-top: 0; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.import-table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14px; }
.import-table th, .import-table td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.import-table thead th { border-top: 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.import-table tr.exists td { color: var(--muted); }
.import-table tr.error .status { color: var(--orange); }
.import-table tr.exists .status { color: var(--muted); }
.import-table input { width: 18px; height: 18px; accent-color: var(--teal); }
input[type=file] { padding: 10px; }

/* What's new */
.current { margin: -6px 0 16px; color: var(--muted); }
.current strong { color: var(--teal); }
.changes { list-style: none; margin: 0; padding: 0; }
.changes li { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.changes li:first-child { border-top: 0; padding-top: 2px; }
.changes li::before { content: ""; grid-row: span 2; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--teal); }
.changes strong { display: block; }
.changes span { color: var(--muted); }

/* Retired gear: cost against use (Pro). */
.table-scroll { overflow-x: auto; }
.cost-table td:not(:first-child), .cost-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.cost-table tfoot th { border-top: 2px solid var(--line); color: var(--ink); font-size: 14px; text-transform: none; letter-spacing: 0; }

/* Koppelingen. */
.connection label { display: block; margin: 10px 0; }
.connection input[type=password] { width: 100%; max-width: 420px; }
.tag.source { background: none; padding: 0; font-size: 11px; font-style: italic; color: var(--teal); }
.tag.status-connected { background: var(--teal-soft); color: var(--teal); }
.tag.status-reconnect, .tag.status-error, .tag.status-paused { background: rgba(255, 159, 10, .16); color: var(--orange); }
.source-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
.source-note .tag { margin-top: 0; }
.source-note button { width: auto; margin-top: 0; padding: 6px 14px; font-size: 13px; border-radius: 999px; }
.disconnect { margin-top: 14px; }
.disconnect summary { cursor: pointer; color: var(--muted); }
.tag.experimental { background: rgba(255, 159, 10, .16); color: var(--orange); vertical-align: middle; font: 700 12px/1.4 var(--heading); text-transform: uppercase; letter-spacing: .04em; }
.import-progress h3, .write-back h3 { font-size: 14px; margin: 14px 0 6px; }
.write-back { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.import-progress progress { width: 100%; max-width: 420px; height: 8px; accent-color: var(--teal); }
.import-progress .earlier { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--teal-soft); }
.import-progress .earlier button { margin: 4px 8px 0 0; }


/* Foil side view (F-026): board as reference, mast and wings in teal. */
.foil-drawing { margin: 4px 0 0; }
.foil-drawing svg { width: 100%; max-width: 460px; display: block; margin: 0 auto; }
.foil-board { fill: none; stroke: var(--muted); stroke-width: 1; }
.foil-ref { stroke: var(--muted); stroke-width: .6; stroke-dasharray: 3 4; opacity: .7; }
.foil-plate { fill: var(--teal); opacity: .75; }
.foil-part { fill: var(--teal); }
.foil-fuselage { fill: var(--muted); opacity: .7; }
.foil-line { stroke: #378ADD; stroke-width: .6; stroke-dasharray: 4 4; opacity: .7; }
.foil-chord { stroke: #EF9F27; stroke-width: .7; stroke-dasharray: 3 3; }
.foil-drawing figcaption { display: flex; justify-content: space-between; gap: 8px; text-align: center; margin-top: 6px; }
.foil-drawing figcaption span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); flex: 1; }
.foil-drawing figcaption strong { font-size: 15px; color: var(--ink); }
.foil-drawing p { text-align: center; margin: 6px 0 0; }

/* Adding and editing gear (F-029). */
.add-gear { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 18px; }
.button.small { padding: 6px 12px; font-size: 13px; }
.group-head .add { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; }
.edit .sports { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.edit .sports legend { width: 100%; margin-bottom: 6px; }
.edit .sports .check { margin: 0; }
.edit .inserts .strap, .edit .boom-range .strap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.edit .inserts .strap > span:first-child { min-width: 96px; }
.edit .boom-range input { width: 80px; }
.edit .inserts .places { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0; }
.edit .inserts .places .check { margin: 0; }
.edit .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-field { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.photo-field img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.delete-item { margin-top: 4px; }
[data-when][hidden] { display: none; }
.source-logo { width: 32px; height: 32px; vertical-align: middle; margin-right: 4px; }

/* Admin panel */
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0 0 16px; }
.admin-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.admin-tile strong { font: 700 28px/1.2 var(--heading); color: var(--teal); }
.admin-tile small { color: var(--muted); font-size: 12px; }
.admin-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 12px; }
@media (max-width: 420px) { .admin-charts { grid-template-columns: 1fr; } }
.admin-chart { margin: 0; min-width: 0; }
.admin-chart svg { display: block; width: 100%; height: auto; }
.admin-chart rect { fill: var(--teal); }
.admin-chart rect:hover { opacity: .75; }
.admin-chart line { stroke: rgba(255, 255, 255, .25); }
.admin-chart .axis { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0; color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 600; }
.admin-table th, .admin-table td { padding: 6px 12px 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.admin-table th:not(:first-child), .admin-table td:not(:first-child) { text-align: right; }

/* Retired gear next to its name: archive box, bandage (broken), tag (sold). */
.status-icons { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 10px; color: var(--orange); }

/* A sail's specifications (F-050): the brand's logo in white (F-053); Type, Sports and Year side by side. */
.brand-logo { width: auto; height: 22px; max-width: 66px; vertical-align: middle; margin-right: 8px; object-fit: contain; }
.spec-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.spec-row small { display: block; color: var(--muted); font-size: 12px; }
.spec-row span { display: block; }
/* In the quiver list: grey, under the session count (F-052). */
.brand-logo.muted { height: 24px; max-width: 72px; margin: 0; opacity: .5; }
/* Behind a sail's name in the quiver: size and type, smaller (F-056). */
.row .name-line { display: block; }
.row .name-extra { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; white-space: nowrap; }
