[hidden] { display: none !important; }
:root { --card: #fff; --glass: rgba(255,255,255,.85); --glass-2: rgba(255,255,255,.6); --wall3d: #eee8dd; --paper: #f3efe6; --ink: #1f241f; --soft: #5f6a5f; --line: #d9d2c2; --soil: #6b4727; --soil-2: #4a2f18; --trail: #1c3fd6; --trail-ink: #1431a6;
        --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif; }
/* dark: the room after sunset; the kits themselves keep their printed colours */
:root[data-theme="dark"] { --card: #1f2420; --glass: rgba(26,30,27,.86); --glass-2: rgba(26,30,27,.7); --wall3d: #34352f;
  --paper: #161916; --ink: #ece7dc; --soft: #a7ad9f; --line: #373c35; --trail: #2f52e8; --trail-ink: #2444cf; }
:root[data-theme="dark"] h1 em, :root[data-theme="dark"] .wl-label, :root[data-theme="dark"] .guest-intro b { color: #8aa0ff; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--body); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 max(18px, env(safe-area-inset-left, 0px)) 60px max(18px, env(safe-area-inset-right, 0px)); }
h1, h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
h1 em { font-style: normal; color: var(--trail); }
.sub { color: var(--soft); margin: 10px 0 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 8px; border: 0; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; background: var(--trail); color: #fff; }
.btn:hover { background: var(--trail-ink); }
.btn.quiet, button.quiet, a.quiet { background: transparent; color: var(--ink); border: 2px solid var(--line); }
button { font: inherit; }

.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.acts button, .acts a { padding: 7px 12px; border-radius: 7px; border: 0; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; background: var(--trail); color: #fff; }
.acts .quiet { background: transparent; color: var(--ink); border: 2px solid var(--line); }

/* Add a trek */
.note { font-size: 14px; color: var(--soft); }
footer { color: var(--soft); font-size: 14px; border-top: 1px solid var(--line); padding: 18px 0; }

.btn:disabled { opacity: .45; cursor: not-allowed; }

/* The 3D wall fills the screen under the top bar; the title, link, add button and the picked
   kit's bar float over it. */
body.walling footer, body.walling main { display: none; }
.stage { position: relative; height: calc(100dvh - 59px); min-height: 360px; overflow: hidden; background: var(--wall3d); }
.wall3d { position: absolute; inset: 0; display: grid; place-items: center; }
.wall3d canvas { display: block; width: 100% !important; height: 100% !important; }
.ov { position: absolute; left: 0; right: 0; padding: 12px max(16px, calc((100% - 1100px) / 2)); pointer-events: none; display: grid; gap: 8px; }
.ov > * { pointer-events: auto; }
.ov-top { top: 0; }
.ov-bottom { bottom: 0; justify-items: center; }
.ov h1, .ov .sub { margin: 0; }
.ov .sub { color: var(--soft); }
.kitbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; width: min(100%, 720px); background: var(--glass); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.kitbar .kp-name { display: grid; line-height: 1.2; }
.kitbar .kp-name b { font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.kitbar .kp-name span { color: var(--soft); font-size: 14px; }
.kitbar .soon { padding: 7px 12px; border-radius: 7px; border: 2px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.wallhint { margin: 0; font-size: 13px; color: var(--soft); background: var(--glass-2); padding: 3px 10px; border-radius: 99px; }
.kitbar:not([hidden]) + .wallhint { display: none; }
/* the wall's link: one pill with the address (handle in bold) and small copy / share / open buttons */
.wlink { justify-self: start; display: flex; align-items: center; gap: 4px; max-width: 100%; background: var(--glass); backdrop-filter: blur(8px);
  border: 1px solid rgba(217,210,194,.9); border-radius: 999px; padding: 4px 4px 4px 12px; box-shadow: 0 4px 14px rgba(31,36,31,.06); }
.wl-label { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--trail); white-space: nowrap; margin-right: 8px; }
.wl-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--trail); stroke-width: 2.2; stroke-linecap: round; }
.wl-url { font-size: 14px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 8px 0 4px; min-width: 0; }
.wl-url { display: flex; }
.wl-url #wl-site { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wl-url b { color: var(--ink); font-weight: 600; flex: none; }
.wl-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ink); font: 600 13px/1 var(--body);
  padding: 8px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.wl-btn:hover { background: rgba(28,63,214,.08); color: var(--trail); }
.wl-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wl-btn.done { background: #e7f3e4; color: #2f7a2a; }
.wl-btn[hidden] { display: none; }
.wl-btn, .wl-label, .wl-ic { flex: none; }
@media (max-width: 640px) { .ov h1 { font-size: 30px; } .wl-site, #wl-site { display: none; } .wl-btn span { display: none; } .wl-btn { padding: 8px; } }
/* wide screens: the "show off" pill sits beside the title, as tall as the title's letters */
@media (min-width: 900px) {
  .ov-top#signed-in { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
  .ov-top#signed-in h1 { flex: none; }
  .ov-top#signed-in h1 { line-height: 1; }
  .ov-top#signed-in .wlink { height: 46px; padding: 4px 5px 4px 18px; gap: 6px; min-width: 0; flex: 0 1 auto; }
  .ov-top#signed-in .wl-label { font-size: 16px; }
  .ov-top#signed-in .wl-url { font-size: 15px; }
  .ov-top#signed-in .wl-btn { font-size: 14px; padding: 10px 14px; }
}

/* ---- adding a trek: preview and form as one block centred on the screen (at most 1180 px wide):
   the new tile hangs live in its left 45%, the form fills the right 55% (the bottom on phones) ---- */
body.editing .wlink, body.editing .wallhint, body.editing .kitbar { display: none !important; }
.addform { position: absolute; z-index: 3; right: max(0px, (100% - 1180px) / 2); top: 0; bottom: 0; width: calc(min(100%, 1180px) * .55); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box;
  background: var(--paper); border-left: 1px solid var(--line); border-right: 1px solid var(--line); box-shadow: 0 0 30px rgba(31,36,31,.08);
  padding: 22px 28px 28px; display: grid; align-content: start; gap: 18px; }
.af-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.af-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.af-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--soft); font-size: 20px; cursor: pointer; }
.af-x:hover { background: rgba(31,36,31,.07); color: var(--ink); }
.af-sec { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.af-sec h3 { margin: 0; font: 700 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.af-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.af-plans button { display: grid; gap: 2px; align-content: start; text-align: left; padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font: 14px/1.3 var(--body); }
.af-plans button:hover { border-color: var(--trail); }
.af-plans button b { font: 700 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.af-plans button i { font-style: normal; font: 800 22px/1.1 var(--display); color: var(--trail); }
.af-plans button span { color: var(--soft); font-size: 13px; }
.af-plans button[aria-checked="true"] { border-color: var(--trail); background: rgba(28,63,214,.07); box-shadow: inset 0 0 0 1px var(--trail); }
.af-row { display: flex; gap: 12px; flex-wrap: wrap; }
.af-row > .ff { flex: 1 1 140px; }
.af-row > .ff.grow { flex: 2 1 220px; }
.ff { display: grid; gap: 5px; min-width: 0; align-content: start; }
.ff > label, .ff-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.ff input, .ff select { font: 16px var(--body); color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px; min-width: 0; width: 100%; box-sizing: border-box; }
.ff input:focus, .ff select:focus { outline: none; border-color: var(--trail); box-shadow: 0 0 0 3px rgba(28,63,214,.15); }
#title, #name, #startPlace, #topPlace { text-transform: uppercase; }
#title::placeholder, #name::placeholder, #startPlace::placeholder, #topPlace::placeholder { text-transform: none; }
.ff input[readonly] { background: var(--paper); color: var(--soft); }
.ff.bad input, .ff.bad select, .ff.bad .af-upload { border-color: #a8401c; }
.ff-err { margin: 0; color: #a8401c; font-size: 13px; font-weight: 600; }
.ff-err:empty { display: none; }
.af-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px; }
.af-upload.over { border-color: var(--trail); background: rgba(28,63,214,.06); }
.af-pick { cursor: pointer; }
.af-file { color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.ed-help { justify-self: start; }
.af-found { margin: 0; font-size: 13px; color: var(--soft); }
.af-found:empty { display: none; }
.af-note { margin: 0; font-size: 13px; color: var(--soft); background: rgba(28,63,214,.07); border-radius: 8px; padding: 8px 10px; }
.ed-busy { display: grid; gap: 6px; }
.ed-busy p { margin: 0; font-size: 14px; color: var(--soft); }
.ed-busy .track { width: 100%; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.ed-busy .fill { height: 100%; width: 0; background: var(--trail); border-radius: 99px; transition: width .4s ease; }
.ed-msg { margin: 0; font-size: 13px; color: #a8401c; }
.ed-msg:not(:has(span:not(:empty))) { display: none; }
.af-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; position: sticky; bottom: -28px; background: var(--paper); padding: 12px 0 28px; margin-bottom: -28px; }
.af-acts .navbtn:disabled { opacity: .45; cursor: not-allowed; }
/* more of the form below the buttons: a soft fade over the last fields and a small cue */
.af-more { position: absolute; left: 0; right: 0; bottom: 100%; height: 56px; margin: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
  background: linear-gradient(to bottom, transparent, var(--paper) 80%); color: var(--soft); font: 600 12px/1 var(--body); letter-spacing: .02em;
  pointer-events: none; opacity: 0; transition: opacity .2s; }
.af-more::after { content: ""; width: 7px; height: 7px; margin: 0 0 3px 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.addform.has-more .af-more { opacity: 1; }
/* a field a plan switch just added glows briefly */
.ff.af-new { animation: afNew 1.5s ease-out; border-radius: 10px; }
@keyframes afNew { 0%, 25% { background: rgba(28,63,214,.12); box-shadow: 0 0 0 6px rgba(28,63,214,.12), 0 0 0 7px rgba(28,63,214,.45); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent, 0 0 0 7px transparent; } }
/* phones and small windows: a strip of preview on top, the form scrolling below it */
@media (max-width: 899px) {
  .addform { top: 36%; right: 0; width: 100%; border-left: 0; border-right: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(31,36,31,.12); padding: 16px 16px 20px; gap: 14px; }
  .af-head h2 { font-size: 26px; }
  .af-plans { gap: 6px; }
  .af-plans button { padding: 9px 8px; }
  .af-plans button b { font-size: 15px; } .af-plans button i { font-size: 18px; } .af-plans button span { font-size: 12px; }
  .af-sec { padding: 12px; }
  .af-acts { bottom: -20px; padding-bottom: 20px; margin-bottom: -20px; }
  .af-acts .navbtn { flex: 1 1 auto; }
  .af-acts #orderbtn { order: -1; flex-basis: 100%; font-size: 16px; padding: 11px; }
}

/* arranging the wall */

.arrange-hint { display: none; }
body.arranging .arrange-hint { display: block; margin: 0; color: var(--soft); font-size: 14px; }
body.arranging .wlink, body.arranging .wallhint { display: none !important; }
.kitbar .acts button:disabled { opacity: .4; cursor: default; }
@media (min-width: 900px) { body.arranging .ov-top#signed-in { flex-wrap: wrap; } }
.ed-confirm { position: fixed; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; gap: 4px; justify-items: center; text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; box-shadow: 0 12px 32px rgba(31,36,31,.22); width: min(290px, calc(100% - 16px)); box-sizing: border-box; max-height: calc(100dvh - 32px); overflow: auto; }
.ed-confirm b { font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.ed-confirm span { font-size: 14px; color: var(--soft); margin-bottom: 6px; }
.ed-confirm div { display: flex; gap: 8px; }
.ed-confirm[hidden] { display: none; }
/* while it asks, everything but the new kit and the question steps back */
body.asking .ov-top, body.asking .ov-bottom, body.asking header.nav, body.asking .addform { opacity: .35; pointer-events: none; transition: opacity .25s; }
.ov-top, .ov-bottom, header.nav, .addform { transition: opacity .25s; }
.navbtn.danger { background: #a8401c; border-color: #a8401c; }
.navbtn.danger:hover { background: #8a3316; border-color: #8a3316; }

/* signed-out visitors: a sample wall to try */
.guest-intro { display: grid; gap: 2px; max-width: 640px; background: var(--glass); backdrop-filter: blur(8px); border: 1px solid rgba(217,210,194,.9);
  border-radius: 14px; padding: 10px 14px; box-shadow: 0 4px 14px rgba(31,36,31,.06); }
.guest-intro b { font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .02em; color: var(--trail); }
.guest-intro span { font-size: 14px; color: var(--ink); }
.guest-intro[hidden] { display: none; }
body.guest .wlink { display: none !important; }
body.editing .guest-intro, body.arranging .guest-intro { display: none; }
.guest-save { width: min(340px, calc(100% - 16px)); gap: 8px; }
.guest-save .gbtn { width: 100%; margin-top: 4px; }
.guest-save .linklike { background: none; border: 0; color: var(--soft); text-decoration: underline; cursor: pointer; font: 600 13px/1 var(--body); padding: 4px; }
.guest-save .guest-err { margin: 0; color: #a8401c; font-size: 13px; min-height: 0; }

/* the wall's own tools (add a trek, arrange / done): top right of the wall, beside the share pill */
.walltools { display: flex; gap: 8px; align-items: center; justify-self: start; }   /* right beside the share pill */
.walltools .navbtn { box-shadow: 0 4px 14px rgba(31,36,31,.08); }
.walltools .navbtn.quiet { background: var(--glass); backdrop-filter: blur(8px); }
body.editing .walltools { display: none; }
@media (min-width: 900px) { .ov-top#signed-in .walltools { flex: none; } body.arranging .ov-top#signed-in { flex-wrap: nowrap; } }

/* the share sheet: preview on the left (9:16), choices on the right; stacked on phones */
.sharesheet { position: fixed; inset: 0; z-index: 50; background: rgba(8,10,12,.62); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.ss-panel { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 22px; width: min(860px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.ss-close { position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--soft); font-size: 26px; cursor: pointer; }
.ss-preview canvas, .ss-preview video { display: block; width: min(300px, 60vw); height: auto; aspect-ratio: 9 / 16; border-radius: 14px; background: #0b1020; object-fit: contain; }
.ss-preview canvas[hidden], .ss-preview video[hidden] { display: none; }
.ss-side { display: grid; align-content: start; gap: 12px; min-width: 0; }
.ss-side h2 { font-size: 30px; margin-right: 36px; }
.ss-side h2 em { font-style: normal; color: var(--trail); }
:root[data-theme="dark"] .ss-side h2 em { color: #8aa0ff; }
.ss-side p { margin: 0; color: var(--soft); font-size: 15px; }
.ss-tabs { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; justify-self: start; }
.ss-tabs button { border: 0; background: transparent; color: var(--soft); font: 700 15px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.ss-tabs button.on { background: var(--trail); color: #fff; }
.ss-tab { display: grid; gap: 10px; }
.ss-tab[hidden], .ss-out[hidden] { display: none; }
.ss-add { justify-self: start; border: 2px dashed var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; font: 700 15px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.ss-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.ss-card { display: grid; gap: 4px; width: 104px; }
.ss-card .ss-thumb { width: 104px; height: 78px; }
.ss-cap { width: 100%; box-sizing: border-box; font: 700 11px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; }
.ss-cap:focus { outline: none; border-color: var(--trail); }
.ss-thumbs:empty { display: none; }
.ss-thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.ss-thumb canvas { width: 100%; height: 100%; display: block; }
.ss-thumb { cursor: grab; touch-action: none; user-select: none; transition: transform .12s, box-shadow .12s; }
.ss-thumb.dragging { cursor: grabbing; transform: scale(1.08); box-shadow: 0 8px 20px rgba(0,0,0,.35); z-index: 2; }
.ss-thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; cursor: pointer; padding: 0; }
.ss-num { position: absolute; left: 4px; bottom: 4px; min-width: 20px; height: 20px; border-radius: 10px; background: #1c3fd6; color: #fff; font: 700 12px/20px var(--display); text-align: center; padding: 0 5px; box-sizing: border-box; }
.ss-note { font-size: 13px !important; }
.ss-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ss-acts .navbtn:disabled { opacity: .5; cursor: wait; }
.ss-status { font-size: 14px !important; min-height: 1.2em; }
@media (max-width: 640px) { .ss-panel { grid-template-columns: 1fr; } .ss-preview { justify-self: center; } .ss-preview canvas, .ss-preview video { width: min(240px, 62vw); } }

/* the order card: where to send the tile, then WhatsApp */
.order-card { width: min(360px, calc(100% - 16px)); gap: 8px; justify-items: stretch; text-align: left; }
.order-card b, .order-card > span { text-align: center; }
.order-card label { display: grid; gap: 3px; font-size: 13px; font-weight: 600; color: var(--soft); }
.order-card input, .order-card textarea { font: 15px var(--body); padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); resize: none; }
.order-card > div { justify-content: flex-end; }
.order-card .oc-note { margin: 0; font-size: 13px; color: var(--soft); }
.order-card .oc-note:empty, .order-card .guest-err:empty { display: none; }
.order-card .navbtn:disabled { opacity: .55; cursor: not-allowed; }
.order-card .guest-err { margin: 0; color: #a8401c; font-size: 13px; }

/* "How do I get my GPX file?": where each tracking app keeps its export */
.ed-help { font: 600 14px var(--body); color: var(--trail); background: none; border: 0; padding: 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gpx-help { position: fixed; inset: 0; z-index: 50; background: rgba(15,18,15,.55); display: grid; place-items: center; padding: 16px; }
.gpx-help[hidden] { display: none; }
.gh-card { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 14px; box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.gh-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gh-head b { font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.gh-x { background: none; border: 0; font-size: 18px; color: var(--soft); cursor: pointer; padding: 6px; }
.gh-sub { margin: 2px 0 12px; color: var(--soft); font-size: 14px; }
.gh-apps { display: flex; flex-wrap: wrap; gap: 6px; }
.gh-apps button { font: 600 14px var(--body); color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.gh-apps button[aria-selected="true"] { background: var(--trail); border-color: var(--trail); color: #fff; }
.gh-steps { margin: 14px 0 6px; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; line-height: 1.4; }
.gh-tip { margin: 6px 0 0; font-size: 13px; color: var(--soft); background: rgba(28,63,214,.07); border-radius: 8px; padding: 8px 10px; }
.gh-tip[hidden] { display: none; }
.gh-foot { margin: 12px 0 0; font-size: 13px; color: var(--soft); }

/* Connect Strava: Strava's own orange, and the list of recent activities to pick from */
.ed-strava { font: 700 15px var(--body); color: #fff; background: #fc4c02; border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.ed-strava[hidden] { display: none; }
.ed-strava:hover { background: #e34402; }
.sp-list { display: grid; gap: 6px; margin-top: 4px; }
.sp-item { display: grid; gap: 2px; text-align: left; font: 15px var(--body); color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.sp-item:hover { border-color: #fc4c02; }
.sp-item span { font-size: 13px; color: var(--soft); }

/* an ordered tile: where its order is, and the courier's tracking once shipped */
.ostat { display: flex; align-items: center; gap: 6px; flex: 1 1 100%; font-size: 13px; font-weight: 600; color: var(--soft); }
.ostat span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.ostat span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.ostat span.done::before { background: var(--trail); border-color: var(--trail); }
.ostat span.now { color: var(--ink); }
.ostat span.now::before { background: var(--trail); border-color: var(--trail); box-shadow: 0 0 0 3px rgba(28,63,214,.2); }
.ostat i { flex: 1 1 12px; max-width: 40px; height: 2px; background: var(--line); }
.kitbar .kp-note { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--soft); }

/* the Feedback tab would sit over the form while adding a trek on a phone */
@media (max-width: 640px) { body.editing .fb-tab { display: none; } }
/* small phones: the wall's link pill keeps its link and buttons; the words "Show off your wall" step aside */
@media (max-width: 440px) { .wl-label { display: none; } .wlink { padding-left: 12px; } .wl-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
/* touch screens: small links and chips get a finger-sized hit area */
@media (pointer: coarse) { .gh-apps button, .ed-help, .gh-x, .guest-save .linklike { min-height: 40px; min-width: 40px; } }
