:root { --clay: #C25B2E; --clay-d: #A64A22; --soil: #2A211B; --muted: #6B5F55; --line: #E6DED3; --blue: #2F6DB5; --con: #F3EFE9; --ok: #2E7D4F; --bad: #B3261E;
  --head: 'Anybody', 'Arial Black', sans-serif; --body: 'Work Sans', system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--con); color: var(--soil); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--clay); }
h1, h2, h3 { font-family: var(--head); font-stretch: 112%; font-weight: 900; text-transform: uppercase; line-height: 1; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 6vw, 48px); } h2 { font-size: 24px; } h3 { font-size: 17px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .bad { color: var(--bad); }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 0 0 16px; }
.login { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; }
.login .logo { height: 44px; align-self: flex-start; }
input, select, textarea { font: inherit; color: var(--soil); border: 2px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--clay); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px var(--body); border: 0; border-radius: 99px; padding: 12px 20px; background: var(--clay); color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--clay-d); } .btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--soil); border: 2px solid var(--line); padding: 10px 16px; } .btn.ghost:hover { border-color: var(--soil); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.big { padding: 16px 22px; font-size: 17px; width: 100%; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--soil); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: transform .25s; z-index: 50; max-width: calc(100vw - 32px); }
#toast.show { transform: translate(-50%, 0); } #toast.bad { background: var(--bad); }

/* top bar and tabs */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topin { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--soil); font-family: var(--head); font-stretch: 112%; font-weight: 900; font-size: 18px; margin-right: auto; }
.brand img { width: 30px; height: 30px; } .brand b { color: var(--clay); font-weight: 900; }
.who { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
#pick { width: auto; max-width: 46vw; padding: 7px 10px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs button { font: 600 15px var(--body); color: var(--muted); background: none; border: 0; padding: 10px 12px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--soil); border-bottom-color: var(--clay); }
main.wrap { padding-top: 22px; padding-bottom: 60px; }

/* home */
.hello { margin: 4px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span, .chips label span { display: inline-block; border: 2px solid var(--line); border-radius: 99px; padding: 6px 12px; font-weight: 600; font-size: 14px; background: #fff; }
.chips label { cursor: pointer; } .chips input { position: absolute; opacity: 0; }
.chips input:checked + span { background: var(--clay); border-color: var(--clay); color: #fff; }
.chips.static span { background: var(--soil); border-color: var(--soil); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 26px; }
.tilebig { all: unset; box-sizing: border-box; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-height: 110px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; transition: transform .15s; }
.tilebig:hover { transform: translateY(-2px); } .tilebig:focus-visible { outline: 3px solid var(--blue); }
.tilebig b { font-family: var(--head); font-stretch: 112%; font-weight: 900; text-transform: uppercase; font-size: 18px; line-height: 1.05; }
.tilebig span { font-size: 14px; color: var(--muted); }
.tilebig.clay { background: var(--clay); color: #fff; border-color: var(--clay); } .tilebig.clay span { color: #FBE0D3; }
.tilebig.dark { background: var(--soil); color: #fff; border-color: var(--soil); } .tilebig.dark span { color: #CFC4BA; }

/* lists */
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.row-head h2 { margin: 0; }
.list { display: flex; flex-direction: column; gap: 8px; }
.req { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.req:hover { border-color: var(--soil); } .req:focus-visible { outline: 3px solid var(--blue); }
.rt { display: flex; flex-direction: column; flex: 1; min-width: 0; } .rt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { font-size: 22px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 4px 10px; white-space: nowrap; background: var(--con); }
.s-received { background: #FDE8DD; color: var(--clay-d); } .s-quoted { background: #E3ECF8; color: var(--blue); } .s-in_progress { background: #FFF1CC; color: #8A5A00; }
.s-done { background: #DDF1E4; color: var(--ok); } .s-declined { background: #EEE; color: #666; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.seg button { font: 600 14px var(--body); border: 0; background: none; border-radius: 99px; padding: 6px 12px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--soil); color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-weight: 600; font-size: 14px; border: 0; padding: 0; }
.field legend { margin-bottom: 8px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline { display: flex; gap: 8px; margin-top: 12px; } .inline input { flex: 1; }
.plain { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }

/* uploads */
.send .pick { margin-top: 4px; }
.queue { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.queue li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 14px; }
.queue .qn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .queue .qs { color: var(--muted); }
.queue progress { grid-column: 1 / -1; width: 100%; height: 8px; accent-color: var(--clay); }
.queue .qt { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.queue li.done .qt { color: var(--ok); font-weight: 700; } .queue li.failed .qt { color: var(--bad); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gday { grid-column: 1 / -1; font-size: 14px; margin: 10px 0 0; color: var(--muted); }
.tile { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.tile img, .tile video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #E9E3DA; }
.tile .file { display: grid; place-items: center; aspect-ratio: 1; padding: 10px; text-align: center; word-break: break-all; }
.tile figcaption { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.tdate { color: var(--muted); } .tnote { font-weight: 600; }
.tacts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.tacts button, .tacts a { font: 700 13px var(--body); background: none; border: 0; padding: 0; color: var(--clay); cursor: pointer; text-decoration: none; }
.tile.used { opacity: .7; } .used { color: var(--ok); font-weight: 700; }

/* request thread */
.back { all: unset; cursor: pointer; color: var(--clay); font-weight: 700; margin-bottom: 12px; display: inline-block; }
.thread .body { white-space: normal; }
.msgs { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.msg { padding: 10px 14px; border-radius: 14px; max-width: 88%; }
.msg.us { background: var(--soil); color: #fff; align-self: flex-start; } .msg.them { background: var(--con); align-self: flex-end; }
.msg .who { display: block; font-size: 12px; opacity: .75; margin-bottom: 4px; }
.reply { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
#rqStatus { width: auto; }

/* billing */
.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.addon { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.soon { background: #FBF8F4; }

@media (max-width: 640px) {
  .topin { height: 58px; } .brand span { display: none; }
  .tile figcaption { font-size: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
