/* Job History (/asked): layered on app.css and request.css (the list surface, .seg filter,
   .rs status chips, .prop-link and .shot). Tokens only. */
.ak-top { justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ak-h { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.ak-seg { flex-wrap: wrap; }
/* The search box (app.css .psearch): its own full-width row under the heading and the filter. */
.ak-search { flex: 1 1 100%; order: 3; margin: 0; background: var(--surface); min-height: 40px; }
.ak-search .pclear[hidden] { display: none; }
.ak-dim { opacity: 0.55; transition: opacity 120ms ease; }
.ak-list { list-style: none; margin-block: 0; padding: 0; }
.ak-row { border-bottom: 1px solid var(--line); min-width: 0; }
.ak-row:last-child { border-bottom: 0; }
.ak-row.needs-ok { background: color-mix(in srgb, var(--attn) 6%, var(--surface)); }
.ak-head { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; font: inherit; color: var(--fg); text-align: left; background: none; border: 0; cursor: pointer; min-height: 56px; text-decoration: none; }
.ak-head:hover { background: var(--sunken); }
.ak-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ak-head > .rs { justify-self: start; }
.ak-tw { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ak-t { font-weight: 600; overflow-wrap: anywhere; }
.ak-s { font-size: 0.84rem; color: var(--muted); overflow-wrap: anywhere; }
.ak-state { font-size: 0.84rem; color: var(--muted); white-space: nowrap; text-align: right; }
.ak-state.warn { color: var(--attn); font-weight: 600; }
.ak-state:empty { display: none; }
.ak-body { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 14px calc(16px + 118px + 14px); min-width: 0; }
/* The bots the ask's jobs are with (#2753): one quiet line under the title, each a link to its job. */
.ak-bots { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: -10px; min-width: 0; }
.ak-bot { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; max-width: 100%; font-size: 0.84rem; color: var(--muted); text-decoration: none; }
.ak-bot b { font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.ak-bot:hover b, .ak-bot:focus-visible b { text-decoration: underline; }
.ak-bot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ak-bot svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ak-why, .ak-result { margin: 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.ak-why b { font-weight: 600; }
.ak-whyline { display: flex; align-items: flex-start; gap: 12px; }
.ak-whyline .ak-why { flex: 1 1 auto; min-width: 0; }
.ak-ok { flex: none; min-width: 64px; min-height: 40px; padding: 6px 16px; font-weight: 600; }
.ak-got { display: flex; flex-direction: column; gap: 10px; }
.ak-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ak-shots { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-width: 620px; }
.ak-empty { margin: 0; color: var(--muted); }
.ak-more { align-self: center; min-height: 44px; }
.a-main > .ak-more { width: auto; }

@media (max-width: 600px) {
  .ak-h { font-size: 1.15rem; }
  .ak-top { flex-direction: column; align-items: stretch; }
  /* Under the heading and above the filter, the full width, a finger-sized target. */
  .ak-search { order: 1; min-height: 44px; }
  .ak-search input { font-size: 1rem; }  /* 16px: iOS does not zoom the page on focus */
  .ak-seg { order: 2; }
  /* The status filter takes the full width: five buttons sized to their labels, the count under each, one line each. */
  .ak-seg { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; overflow-x: auto; }
  .ak-seg button { flex-direction: column; gap: 0; padding: 4px 6px; font-size: 0.76rem; line-height: 1.2; min-height: 44px; justify-content: center; white-space: nowrap; }
  .ak-seg button .cnt { margin-left: 0; }
  /* The phone is the outer card: the list drops its own border, background and shadow. */
  .ak-list { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .ak-row { border-bottom: 1px solid var(--line); }
  .ak-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "st state" "tw tw"; gap: 6px 10px; padding: 12px 0; }
  .ak-head > .rs { grid-area: st; }
  .ak-head > .ak-tw { grid-area: tw; }
  .ak-head > .ak-state { grid-area: state; }
  .ak-body { padding: 0 0 14px; }
  .ak-bots { margin-top: -12px; gap: 0 16px; }
  .ak-bot { min-height: 36px; }
  .ak-row.needs-ok { margin: 0 -16px; padding: 0 16px; }
  .ak-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Designs (#2756): the designs he approved, each picture large enough to judge, full size on a tap. */
.ak-dz .ak-head { grid-template-columns: minmax(0, 1fr) auto; }
.ak-dz .ak-body { padding: 0 16px 16px; }
.ak-dzshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ak-dzshot { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--sunken); }
.ak-dzshot img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.ak-dzshot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .ak-seg { grid-template-columns: repeat(6, auto); }
  .ak-seg button { padding: 4px 4px; }
  .ak-dz .ak-head { grid-template-areas: "tw state"; }
  .ak-dz .ak-body { padding: 0 0 16px; }
  .ak-dzshots { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
