/* Requests: the request form (one question at a time, folded answers, the Next bar low on a phone and above the
   keyboard), category tiles and the one rounded square for pictures, request rows and chips, Home's main panel and
   a request's own page. Colors come only from brand.css. Phone first; 900px and up is the laptop layout. */

/* Category colors: a fill behind a white line icon, never behind words. */
.tile { display: grid; place-items: center; flex: none; color: var(--white); background: var(--c-other); }
.cat-social { background: var(--c-social); }
.cat-print { background: var(--c-print); }
.cat-swag { background: var(--c-swag); }
.cat-web { background: var(--c-web); }
.cat-events { background: var(--c-events); }
.cat-other { background: var(--c-other); }

/* The one shape for pictures: a rounded square, filled edge to edge. */
.thumb { flex: none; display: block; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--ice); }
.thumb.tile { display: grid; }
.thumb .ic { width: 30px; height: 30px; }
.thumb.big { width: 88px; height: 88px; border-radius: 18px; }
.thumb.big .ic { width: 40px; height: 40px; }
.pic { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The form. */
.send { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.send-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 12px; }
.send-head .eyebrow { margin: 0; justify-self: end; text-align: right; }
.progress {
  grid-column: 1 / -1; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px;
  background: var(--ice); overflow: hidden; color: var(--blue);
}
.progress::-webkit-progress-bar { background: var(--ice); border-radius: 999px; }
.progress::-webkit-progress-value { background: var(--blue); border-radius: 999px; transition: width .3s var(--ease); }
.progress::-moz-progress-bar { background: var(--blue); border-radius: 999px; }
.flow { display: grid; gap: 8px; }
.q-card { margin: 6px 0; display: grid; gap: 10px; animation: rise .25s var(--ease); scroll-margin-top: 88px; }
.q-ask { font-size: 30px; line-height: 1.15; }
.q-card > .opts, .q-form { margin-top: 10px; }
.q-form { display: grid; gap: 16px; }
.q-card .keep { justify-self: start; }
.opt .tile { width: 52px; height: 52px; border-radius: 14px; }
.opt .tile .ic { width: 28px; height: 28px; }
.opt-name small { display: block; color: var(--slate); font-weight: 600; }
.opt-go { color: var(--slate); }
.opt[aria-pressed="true"] .opt-go { color: var(--navy); }
.chips.big .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 10px 18px; }
.chips.big .chip .ic { width: 20px; height: 20px; }
.input.date { max-width: 280px; }
.hint { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--off); border: 1px solid var(--hair); }
.hint .ic { color: var(--slate); }
.hint.rushy { background: var(--slip-bg); border-color: var(--slip-bg); }
.hint.rushy .ic { color: var(--slip); }
.hint b { font-weight: 800; }

/* The Next bar: low on a phone, riding above the keyboard (keyboard.js sets --kb). */
.q-next {
  position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 25; display: flex; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--hair);
}
.kb .q-next { padding-bottom: 12px; }
.q-next .btn { flex: 1; min-height: 56px; }
.q-next .btn.quiet { flex: 0 1 40%; }
.shell.focus .main { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.kb .tabs, .shell.focus .tabs { display: none; }

/* Folded answers: tap to change. */
.arow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; width: 100%;
  min-height: 56px; padding: 10px 14px; border: 1px solid var(--hair); border-radius: 14px; background: var(--white);
  text-align: left; cursor: pointer; transition: border-color .15s var(--ease);
}
.arow:hover { border-color: var(--navy); }
.arow-k { grid-column: 1; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.arow-v { grid-column: 1; font-weight: 800; overflow-wrap: anywhere; white-space: pre-line; }
.arow-ed { grid-column: 2; grid-row: 1 / span 2; color: var(--slate); }
.auto { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--ice); font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* Direction: photos in the one shape, and links. */
.mood { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.mood-item { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--ice); }
.mood-x { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hair); border-radius: 50%; background: var(--white); cursor: pointer; }
.mood-x .ic { width: 20px; height: 20px; }
.mood-add {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 4px; aspect-ratio: 1; padding: 8px;
  border: 2px dashed var(--hair); border-radius: 14px; background: var(--white); color: var(--navy); font-weight: 800; text-align: center; cursor: pointer;
}
.mood-add .ic { color: var(--blue); width: 28px; height: 28px; }
.mood-add:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.mood-add.busy { color: var(--slate); cursor: default; }
.file-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.links { list-style: none; padding: 0; display: grid; }
.links li { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.links li + li { border-top: 1px solid var(--hair); }
.links .ic { color: var(--blue); }
.link-text { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--navy); }
.link-add { display: grid; gap: 10px; align-items: end; }

/* Ready and sent. */
.big-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.big-check .ic { width: 34px; height: 34px; stroke-width: 2.4; }
.pop { animation: pop .4s var(--ease); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.sent { display: grid; gap: 16px; }
.sent .lead { margin-top: 0; }
.draft-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--slate); }
.draft-note .ic { width: 20px; height: 20px; color: var(--ok); }

/* Home: the one main panel, and request rows. */
.need .btn.big { gap: 12px; }
.draft-link { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--white); font-weight: 800; overflow-wrap: anywhere; }
.draft-link span { min-width: 0; }
.row-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow.pad { padding: 14px 12px 0; }
.reqs { list-style: none; padding: 0; display: grid; }
.reqs li + li { border-top: 1px solid var(--hair); }
.req-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 12px;
  border-radius: 14px; text-decoration: none; transition: background .15s var(--ease);
}
.req-row:hover { background: var(--off); }
.req-row .row-go { align-self: center; }
.req-main { display: grid; gap: 2px; min-width: 0; }
.req-title { font-weight: 800; overflow-wrap: anywhere; }
.req-main small { color: var(--slate); font-size: 17px; overflow-wrap: anywhere; }
.req-chip { margin-top: 6px; }
.chip-st {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}
.chip-st .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.chip-st.ok { background: var(--ok-bg); color: var(--ok); }
.chip-st.slip { background: var(--slip-bg); color: var(--slip); }
.chip-st.late { background: var(--late-bg); color: var(--late); }

/* A request's own page. */
.req-head { display: grid; gap: 20px; }
.req-top { display: flex; align-items: center; gap: 16px; }
.req-top-main { flex: 1; min-width: 0; display: grid; gap: 10px; }
.req-top-main .eyebrow { margin: 0; }
.req-h1 { font-size: 30px; }
.said dd.co { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.said dd.co .co-logo { width: 80px; height: 36px; }
.req-head .said { margin-top: -4px; }
.said { display: grid; }
.said div { display: grid; gap: 2px; padding: 12px 0; }
.said div + div { border-top: 1px solid var(--hair); }
.said dt { color: var(--slate); }
.said dd { font-weight: 800; overflow-wrap: anywhere; white-space: pre-line; }

@media (min-width: 640px) {
  .opts.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-add { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 900px) {
  .send { gap: 18px; }
  .q-ask { font-size: 44px; }
  .q-next { position: static; justify-content: flex-end; padding: 8px 0 0; border: 0; background: none; }
  .q-next .btn, .q-next .btn.quiet { flex: none; min-width: 200px; }
  .shell.focus .main { padding-bottom: 48px; }
  .shell.focus .tabs, .kb .tabs { display: flex; }
  .arow { padding: 12px 18px; }
  .thumb.big { width: 112px; height: 112px; border-radius: 20px; }
  .req-h1 { font-size: 44px; }
  .said div { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
}
