:root {
  --charcoal: #292B28;
  --sand: #EEE6D7;
  --cream: #F8F5ED;
  --gum: #66735B;
  --amber: #B96B39;
  --line: #DDD3C0;
  --muted: #6E6A62;
  --bad: #A2412E;
  --good: #4F6B3E;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--charcoal);
  font: 16px/1.5 "Poppins", system-ui, sans-serif;
}
h1, h2, h3, .brand { font-family: "Manrope", system-ui, sans-serif; line-height: 1.2; }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; margin: 1.75rem 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .4rem; }
a { color: var(--amber); }
p { margin: .4rem 0 .8rem; }
.muted { color: var(--muted); font-size: .9rem; }

/* top bar and nav */
.top { background: var(--charcoal); color: var(--cream); }
.top-inner { max-width: 1040px; margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; }
.brand { font-weight: 800; letter-spacing: .02em; color: var(--cream); text-decoration: none; font-size: 1.05rem; }
.brand b { color: var(--amber); font-weight: 800; }
.nav { display: flex; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--sand); text-decoration: none; padding: .4rem .7rem; border-radius: 8px; font-size: .95rem; }
.nav a.on, .nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav form { margin: 0; }
.nav button { background: none; border: 0; color: var(--sand); font: inherit; font-size: .95rem; padding: .4rem .7rem; cursor: pointer; }

.banner { background: #F3E1C9; color: #6B3D1C; text-align: center; padding: .45rem 1rem; font-size: .88rem; }
main { max-width: 1040px; margin: 0 auto; padding: 1.25rem 1rem 6rem; }

/* page header */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.card.dark { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.card.dark .muted { color: #C9C2B4; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stat { font-family: "Manrope", sans-serif; font-size: 1.9rem; font-weight: 800; }

/* buttons */
.btn, button.btn {
  display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--charcoal);
  background: var(--charcoal); color: var(--cream); padding: .55rem 1rem; border-radius: 8px;
  font: 600 .95rem "Poppins", sans-serif; text-decoration: none; cursor: pointer; min-height: 42px;
}
.btn.ghost { background: transparent; color: var(--charcoal); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn.small { padding: .3rem .65rem; min-height: 32px; font-size: .85rem; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btns { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* forms */
label { display: block; font-weight: 600; font-size: .9rem; margin: .7rem 0 .25rem; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=time],
input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font: inherit; color: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gum); border-color: var(--gum); }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; margin: .4rem 0; }
.check input { width: 20px; height: 20px; accent-color: var(--gum); }
.row2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters input, .filters select { width: auto; flex: 1 1 160px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }

/* tables */
table { width: 100%; border-collapse: collapse; background: #fff; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: #fff; margin-bottom: 1rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid #EFE8DA; vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--sand); }
tr:last-child td { border-bottom: 0; }
td a { color: var(--charcoal); font-weight: 600; text-decoration: none; }
td a:hover { color: var(--amber); }

/* tags */
.tag { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--sand); color: var(--charcoal); white-space: nowrap; }
.tag.gum { background: #DCE3D3; color: #3C4834; }
.tag.amber { background: #F3DCC9; color: #7A3F18; }
.tag.bad { background: #F4D6CF; color: var(--bad); }
.tag.dark { background: var(--charcoal); color: var(--cream); }

/* flash */
.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .95rem; }
.flash.ok { background: #DCE3D3; color: #2F3B28; }
.flash.error { background: #F4D6CF; color: #6B2618; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .55rem 0; border-bottom: 1px solid #EFE8DA; display: flex; gap: .75rem; justify-content: space-between; align-items: center; }
.list li:last-child { border-bottom: 0; }

/* recipient picker */
.picker { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.picker label { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .55rem .75rem; border-bottom: 1px solid #F1EBDF; font-weight: 400; cursor: pointer; }
.picker label:last-child { border-bottom: 0; }
.picker input { width: 20px; height: 20px; accent-color: var(--gum); flex: none; }
.picker .who { flex: 1; }
.counter { font-size: .85rem; color: var(--muted); text-align: right; }

.sms-bubble { background: #E9E9EB; color: #111; border-radius: 18px; padding: .7rem 1rem; max-width: 340px; white-space: pre-wrap; font-size: .95rem; }

.login { max-width: 380px; margin: 12vh auto; }
.login .brand { color: var(--charcoal); font-size: 1.6rem; display: block; margin-bottom: 1rem; }

details summary { cursor: pointer; font-weight: 600; }

.show-sm { display: none; }
.more-links { display: contents; }

@media (max-width: 720px) {
  .top-inner { flex-wrap: wrap; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--charcoal); justify-content: space-around;
         padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); z-index: 10; flex-wrap: nowrap; }
  .nav a, .nav button { font-size: .8rem; padding: .45rem .5rem; }
  .row2 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .show-sm.block { display: block; }
  h1 { font-size: 1.35rem; }
  .banner { padding: .35rem .8rem; font-size: .85rem; }
  .head .btns { gap: .4rem; }
  .more-links { display: flex; flex-wrap: nowrap; gap: .4rem; overflow-x: auto; width: 100%; max-width: calc(100vw - 2rem); box-sizing: border-box; padding-bottom: .2rem; -webkit-overflow-scrolling: touch; }
  .more-links .btn { flex: 0 0 auto; }
  .filters { gap: .45rem; }
  .filters select, .filters input { padding-top: .55rem; padding-bottom: .55rem; }
}


/* brand imagery */
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.logo { height: 44px; width: auto; display: block; }
.btn.light { background: rgba(248,245,237,.12); color: var(--cream); border-color: rgba(248,245,237,.55); }
.hero {
  position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 1.25rem; color: var(--cream);
  background: var(--charcoal) url("landscape.svg") center bottom / cover no-repeat;
  min-height: 230px; display: flex; align-items: flex-start;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,33,30,.55) 0%, rgba(31,33,30,0) 55%); }
.hero-text { position: relative; z-index: 1; padding: 1.2rem 1.25rem 4.5rem; }
.hero h1 { color: #fff; }
.hero p { color: #EADFCB; margin: .2rem 0 .9rem; }
body.scene { background: #1F211E url("landscape.svg") center bottom / cover no-repeat fixed; min-height: 100vh; }
body.scene .login { box-shadow: 0 10px 40px rgba(0,0,0,.35); border: 0; }
.login-logo { width: 78%; max-width: 280px; height: auto; display: block; margin: .4rem auto .2rem; }
@media (max-width: 720px) {
  .hero { min-height: 260px; background-position: 58% bottom; }
  body.scene { background-position: 56% bottom; background-attachment: scroll; }
}

/* inbox and chat */
.badge { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; border-radius: 999px; background: var(--amber); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.2rem; }
.inbox li { padding: 0; display: block; }
.inbox-row { display: block; padding: .8rem 1.1rem; color: inherit; text-decoration: none; }
.inbox li.unread { background: #FBF3EA; }
.inbox li.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-right: .4rem; vertical-align: middle; }
.who-line { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.who-line .when { margin-left: auto; font-size: .8rem; }
.inbox .msg { margin-top: .2rem; }
.small-note { font-size: .8rem; margin-top: .2rem; }
.chat { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.bubble { max-width: 82%; padding: .6rem .9rem; border-radius: 18px; }
.bubble .text { white-space: pre-wrap; }
.bubble.in { align-self: flex-start; background: #E9E9EB; color: #111; border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: var(--gum); color: #fff; border-bottom-right-radius: 6px; }
.bubble .meta { font-size: .72rem; opacity: .75; margin-top: .25rem; }
.chat-box { display: flex; flex-direction: column; gap: .5rem; background: var(--cream); padding: .5rem 0 1rem; }
.chat-box textarea { min-height: 150px; font-size: 1.05rem; line-height: 1.45; padding: .8rem .9rem; border-radius: 12px; }
.chat-send { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.chat-send .btn { padding: .75rem 1.4rem; }
@media (max-width: 720px) { .chat-box { padding-bottom: 5rem; } .chat-send .btn { flex: 1; } .chat-send .counter:empty { display: none; } }

.btn.whatsapp { border-color: #25D366; color: #128C4B; }
.btn.whatsapp::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: #25D366; margin-right: .45rem; vertical-align: middle; }

/* gear orders */
.order-page { max-width: 560px; margin: 0 auto; }
.item-row { position: relative; }
.link-x { position: absolute; top: .7rem; right: .8rem; background: none; border: 0; color: var(--bad); font: inherit; font-size: .85rem; cursor: pointer; }
table.sizes th, table.sizes td { text-align: center; min-width: 2.6rem; }
@media print {
  .top, .banner, .noprint, .flash { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .sheet table { border-collapse: collapse; } .sheet th, .sheet td { border: 1px solid #999; }
}
.gear-photos { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gear-photos img { height: 260px; max-width: 85%; object-fit: cover; border-radius: 10px; scroll-snap-align: start; flex: 0 0 auto; cursor: zoom-in; }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.thumbs > div { position: relative; } .thumbs img { height: 90px; border-radius: 8px; display: block; }
.thumbs .link-x { position: static; padding: .2rem 0; }
