/* Honors (client/panels-honors.js): decorations, titles, offices. --c = the colour of a title tier. */
.hn-tabs button { flex: 1 1 0; padding: 6px 4px; }
.hn-strip { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.hn-strip .pn-chip { font-size: 12.5px; padding: 3px 9px; }
.hn-crate { margin-left: auto; min-height: 36px; padding: 4px 10px; font-size: 12.5px; white-space: nowrap; }
.hn-good { color: #8fe09a; }
.hn-gold { color: var(--pn-gold, var(--c-amber)); }
.hn-help { margin-top: 12px; }
.hn-sec { display: flex; flex-direction: column; gap: 1px; }
.hn-sec small { text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 400; color: var(--muted); }

/* the title badge: also used on the profile and in chat */
.hn-tag { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 1px 7px 1px 5px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap;
  color: var(--c, var(--c-muted)); background: color-mix(in srgb, var(--c, var(--c-muted)) 14%, var(--c-ink)); border: 1px solid color-mix(in srgb, var(--c, var(--c-muted)) 55%, transparent); overflow: hidden; text-overflow: ellipsis; }
.hn-tag i { font-style: normal; font-size: 11px; }
.hn-tag.big { font-size: 15px; padding: 3px 12px 3px 9px; }
.hn-tag.big i { font-size: 15px; }
.hn-tag.pf { display: flex; width: fit-content; margin: 4px auto 0; font-size: 12.5px; padding: 2px 10px 2px 7px; position: relative; }
.hn-tag.pf.hidden, .hn-tag.ch.hidden { display: none; }
.hn-tag.ch { font-size: 10px; padding: 0 6px 0 4px; flex: 0 1 auto; min-width: 0; }

/* icon tile */
.hn-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; line-height: 1; background: var(--c-ink); border: 1px solid var(--line); filter: grayscale(.9); opacity: .7; }
.hn-ico.on { filter: none; opacity: 1; border-color: var(--pn-gold2, var(--c-amber-lo)); background: radial-gradient(circle at 50% 35%, #3a2d12, #14100a); }
.hn-ico.sm { width: 38px; height: 38px; font-size: 20px; border-radius: 10px; }
.hn-ico.lg { width: 68px; height: 68px; font-size: 38px; border-radius: 16px; }
.hn-pips { display: inline-flex; gap: 2px; margin-left: 5px; vertical-align: middle; }
.hn-pips i { width: 7px; height: 7px; border-radius: 2px; background: var(--c-ink); border: 1px solid var(--line); }
.hn-pips i.on { background: var(--pn-gold, var(--c-amber)); border-color: var(--pn-gold2, var(--c-amber-lo)); }
.hn-max { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--pn-gold, var(--c-amber)); padding: 0 4px; }

/* decorations */
.hn-totals h3 { margin-bottom: 8px; }
.hn-total-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.hn-total { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; min-width: 0; }
.hn-total span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-total b { color: #8fe09a; }
.hn-total.cap b { color: var(--pn-gold, var(--c-amber)); }
.hn-toggle { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 32px; font-size: 13px; color: var(--muted); }
.hn-toggle input { width: 20px; height: 20px; accent-color: var(--pn-gold, var(--c-amber)); }
.hn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hn-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 9px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.hn-card.on { border-color: #6b5320; }
.hn-card.ready { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }
.hn-card-top { display: flex; gap: 8px; align-items: center; min-width: 0; }
.hn-card .mid { min-width: 0; display: grid; gap: 1px; }
.hn-card .mid b { font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.hn-lv { font-size: 11.5px; color: var(--pn-gold, var(--c-amber)); white-space: nowrap; }
.hn-lv.off { color: var(--muted); }
.hn-card.ready .hn-lv.off { color: var(--good); font-weight: 700; }
.hn-fx { font-size: 12px; color: #8fe09a; }
.hn-fx small { color: var(--muted); }
.hn-prog small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.hn-act { margin-top: auto; display: flex; justify-content: flex-end; min-height: 36px; align-items: center; }
.hn-act button { min-height: 36px; width: 100%; padding: 4px 8px; font-size: 13px; }
.hn-sheet-top { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.hn-sheet-top .hn-pips { margin: 6px 0 0; }
.hn-sheet-top .hn-pips i { width: 12px; height: 12px; border-radius: 3px; }

/* titles */
.hn-worn { display: flex; align-items: center; gap: 10px; }
.hn-worn-main { flex: 1; min-width: 0; display: grid; gap: 5px; justify-items: start; }
.hn-worn-main small { font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.hn-track { padding: 9px; margin-bottom: 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.hn-track-head { display: flex; gap: 9px; align-items: center; margin-bottom: 8px; }
.hn-track-head .mid { flex: 1; min-width: 0; display: grid; }
.hn-track-head small { font-size: 11.5px; color: var(--muted); }
.hn-tiers { display: grid; gap: 5px; }
.hn-tier { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; border-radius: 10px; background: #0f1512; border: 1px solid var(--line); border-left: 3px solid var(--c); }
.hn-tier .mid { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.hn-tier small { font-size: 11px; color: var(--muted); }
.hn-tier.locked .hn-tag { filter: grayscale(.8); opacity: .6; }
.hn-tier.ready { border-color: var(--good); border-left-color: var(--c); }
.hn-tier button { min-height: 34px; padding: 4px 12px; font-size: 13px; }
.hn-lock { opacity: .5; font-size: 14px; padding: 0 6px; }

/* offices */
.hn-pres { display: flex; gap: 12px; align-items: center; padding: 12px; margin-bottom: 10px; border-radius: 14px; border: 1px solid var(--pn-gold2, var(--c-amber-lo)); background: radial-gradient(circle at 12% 30%, #4a3610, #1a1509 70%); }
.hn-pres.none { border-color: var(--line); background: var(--panel); }
.hn-pres .medal { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--c-ink); border: 2px solid var(--pn-gold2, var(--c-amber-lo)); }
.hn-pres.none .medal { border-color: var(--line); filter: grayscale(.6); }
.hn-pres .mid { min-width: 0; display: grid; gap: 1px; }
.hn-pres small { font-size: 10.5px; letter-spacing: .12em; color: var(--pn-gold, var(--c-amber)); }
.hn-pres.none small { color: var(--muted); }
.hn-pres b { font-size: 17px; overflow-wrap: anywhere; }
.hn-pres p { margin: 0; font-size: 12px; color: var(--muted); }
.hn-pres p.fx { color: #8fe09a; }
.hn-hint { font-size: 12.5px; padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; background: #14201a; border: 1px solid var(--line); color: var(--muted); }
.hn-hint.gold { border-color: var(--pn-gold2, var(--c-amber-lo)); color: var(--text); }
.hn-hint b { color: var(--pn-gold, var(--c-amber)); }
.hn-office { display: flex; gap: 9px; align-items: center; padding: 9px; margin-bottom: 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.hn-office.held { border-color: #6b5320; }
.hn-office .mid { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hn-office .mid > b { font-size: 14px; }
.hn-office small.fx { font-size: 12px; color: #8fe09a; }
.hn-office.bad small.fx { color: #e59a92; }
.hn-office button { min-height: 40px; min-width: 64px; }
.hn-office.small { padding: 7px 9px; }
.hn-office.small > .hn-holder { flex: 0 1 42%; text-align: right; }
.hn-holder { font-size: 12.5px; min-width: 0; overflow-wrap: anywhere; }
.hn-holder small { color: var(--muted); font-size: 11.5px; }
.hn-holder.none { color: var(--muted); font-style: italic; }
.hn-clan { color: var(--blue); font-weight: 700; margin-right: 3px; }
.hn-wait { flex: 0 0 76px; font-size: 11px; color: var(--muted); text-align: right; }
.hn-find { display: grid; gap: 6px; margin: 8px 0; min-height: 52px; }
.hn-find-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 46px; text-align: left; }
.hn-find-row i { font-style: normal; color: var(--pn-gold, var(--c-amber)); font-size: 12.5px; white-space: nowrap; }

/* arranging decorations on the base: an instruction bar over the top of the base view */
.hn-arrange { margin-top: 10px; width: 100%; min-height: 40px; font-weight: 900; }
.hn-arrange-bar { position: fixed; z-index: 30; top: calc(86px + var(--safe-top, 0px)); left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 24px));
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 12px; background: rgba(20,16,10,.92); border: 1px solid var(--c-amber-lo, #b8741f);
  box-shadow: 0 6px 18px rgba(0,0,0,.5); color: #f4e6c4; font-weight: 800; font-size: 14px; }
.hn-arrange-bar span { flex: 1; min-width: 0; }
.hn-arrange-bar button { min-height: 36px; padding: 0 12px; font-weight: 900; }
.hn-arrange-bar .done { background: linear-gradient(#5fc35a, #2f8a2c); color: #fff; border-color: #1f5e1d; }
.hn-arrange-bar.hidden, .hn-arrange-bar .hidden { display: none; }
