/* ============ Charlie HQ (admin) ============ */
.hq__wrap { max-width: 1120px; }
.hq { padding-top: clamp(18px, 4vw, 40px); }
.hq__tabs--sticky { position: sticky; top: 0; z-index: 20; margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter); background: rgba(255, 246, 233, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 2px dashed rgba(29, 26, 31, .18); margin-bottom: 18px !important; }
.hq__title { font-family: var(--font-display); font-size: clamp(28px, 5vw, 40px) !important; margin: 0 0 10px !important; line-height: 1; }
.hq__title span { color: var(--tangerine); }
.hq__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hq__tabs::-webkit-scrollbar { display: none; }
.hq__tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 15.5px/1 var(--font-display); color: var(--ink); background: var(--paper); border: 2.5px solid var(--ink); border-radius: 999px; padding: 9px 15px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.hq__tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); box-shadow: 2px 2px 0 var(--tangerine); }
.hq__badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font: 700 12px/20px var(--font-body); text-align: center; }
.hq__h2 { font-family: var(--font-display); font-size: 26px !important; margin: 0 0 4px !important; }
.hq__sub { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; }
.hq__sub a, .hq__fine a { color: var(--sky-2); font-weight: 700; }
.hq__hello { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0 0 14px; }
.hq__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.hq__tile { display: block; padding: 14px 12px; text-align: center; color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.hq__tile:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.hq__tile b { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1.1; }
.hq__tile span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.hq__card { padding: 20px; margin-bottom: 20px; }
.hq__card h2 { margin-top: 0; }
.hq__todo { list-style: none; margin: 0; padding: 0; }
.hq__todo li + li { border-top: 1px dashed rgba(29, 26, 31, .22); }
.hq__todoi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 4px; background: none; border: 0; text-align: left; font: inherit; font-size: 16.5px; color: var(--ink); cursor: pointer; }
.hq__todoi > span:first-child { font-size: 22px; }
.hq__todoi b { flex: 1; font-weight: 700; }
.hq__todoi.is-late b { color: #B23A3A; }
.hq__go { font-size: 26px; color: var(--ink-2); }
.hq__empty { color: var(--ink-2); font-style: italic; margin: 6px 0; list-style: none; }
.hq__emptycard { text-align: center; padding: 26px 16px; border: 2.5px dashed rgba(29, 26, 31, .3); border-radius: 18px; }
.hq__emptycard p { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.hq__fine { font-size: 13.5px; color: var(--ink-2); margin: 8px 0; line-height: 1.5; }
.hq__warn { color: #B23A3A; font-weight: 800; }
.hq__no { font: 700 11.5px/1 var(--font-display); background: #191C35; color: #E8C66A; padding: 3px 7px; border-radius: 999px; letter-spacing: .04em; vertical-align: 2px; }
@media (max-width: 720px) { .hq__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hq__tile b { font-size: 28px; } }

/* segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); margin: 0 0 14px; }
.seg button { font: 600 15px/1 var(--font-display); color: var(--ink); background: none; border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--butter); box-shadow: inset 0 0 0 2px var(--ink); }
.seg button i { font-style: normal; font-size: 12px; background: var(--red); color: #fff; border-radius: 999px; padding: 2px 6px; }
.seg button i:empty { display: none; }
.seg--sm button { font-size: 14px; padding: 7px 11px; }

/* ---------- Brand Deals list ---------- */
.deals__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.deals__filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; margin: 0 -2px 4px; }
.deals__filters::-webkit-scrollbar { display: none; }
.dchip { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 14.5px/1 var(--font-display); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.dchip i { font-style: normal; font-size: 12px; background: rgba(29, 26, 31, .1); border-radius: 999px; padding: 2px 7px; }
.dchip[aria-selected="true"], .dchip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.dchip[aria-selected="true"] i { background: rgba(255, 255, 255, .2); }
.deals__search .bw-input { margin: 0 0 14px; }
.deals__list { display: grid; gap: 12px; margin-bottom: 22px; }
.deal { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.deal:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.deal.is-new { background: #FFFBEA; border-color: var(--ink); }
.deal__ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; }
.deal__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.deal__row { display: flex; align-items: center; gap: 6px; }
.deal__brand { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.deal__star { color: #D9A400; font-size: 18px; }
.deal__meta { font-size: 14.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.deal__when { flex: none; font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.pill { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font: 700 12px/1 var(--font-body); padding: 5px 8px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; white-space: nowrap; }
.pill--due { background: #FFE1E1; border-color: #B23A3A; color: #8E1F1F; }
.pill--pub { background: var(--mint); }
.st-new { background: var(--butter); } .st-talking { background: var(--sky-3); } .st-approved { background: var(--mint); } .st-shipped { background: #FDE7DD; }
.st-testing { background: var(--pink-3); } .st-posting { background: #EFE4FA; } .st-done { background: #CFEBD9; } .st-declined { background: #ECE8EE; color: #625B68; }
.dchip--new i { background: var(--butter); color: var(--ink); } .dchip--due i { background: #FFE1E1; color: #8E1F1F; }
.deals__settings summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.deals__settings[open] summary { margin-bottom: 12px; }

/* ---------- drawer ---------- */
html.is-locked, html.is-locked body { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 900; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(29, 26, 31, .45); opacity: 0; transition: opacity .2s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--cream); border-left: 3px solid var(--ink); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; transform: translateX(104%); transition: transform .26s cubic-bezier(.3, .9, .4, 1); outline: none; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
@media (max-width: 720px) { .drawer__panel { border-left: 0; } }
.dw__head { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: var(--paper); border-bottom: 3px solid var(--ink); }
.dw__x { font: 700 17px/1 var(--font-display); color: var(--sky-2); background: none; border: 0; padding: 8px 4px; cursor: pointer; }
.dw__title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dw__title span { font-size: 22px; }
.dw__title h2 { font-family: var(--font-display); font-size: 21px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw__star { font-size: 24px; line-height: 1; width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper); color: #C9C3CC; cursor: pointer; }
.dw__star.is-on { background: var(--butter); color: #A97E00; }
.dw__body { padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }
.dw__sec { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px; padding: 16px; margin: 0 0 14px; }
.dw__sec h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 10px; display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
details.dw__sec > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.dw__sec > summary::-webkit-details-marker { display: none; }
details.dw__sec > summary::after { content: "＋"; font-weight: 800; font-size: 20px; }
details.dw__sec[open] > summary::after { content: "－"; }
details.dw__sec > summary h3 { margin: 0; }
details.dw__sec[open] > summary { margin-bottom: 12px; }
.dw__stage { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.dw__stagesel { display: flex; align-items: center; gap: 8px; font: 600 14px var(--font-display); }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin: 0; padding: 0; counter-reset: s; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 11px/1.15 var(--font-display); text-align: center; color: var(--ink-2); }
.stepper li span { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--paper); }
.stepper li::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: rgba(29, 26, 31, .2); }
.stepper li:first-child::before { display: none; }
.stepper li.is-done span { background: var(--mint); }
.stepper li.is-done::before, .stepper li.is-on::before { background: var(--ink); }
.stepper li.is-on { color: var(--ink); }
.stepper li.is-on span { background: var(--tangerine); box-shadow: 0 0 0 4px rgba(232, 137, 58, .3); }
.stepper--off { display: flex; }
.stepper--off li.is-on span { background: #C9C3CC; box-shadow: none; }
@media (max-width: 480px) { .stepper li { font-size: 0; } .stepper li.is-on { font-size: 11.5px; } }
.dw__next { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.dw__contact { margin: 0 0 4px; font-size: 16.5px; }
.dw__contact a, .dw__links a, .dw__sec a { color: var(--sky-2); font-weight: 700; }
.dw__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 6px; font-size: 14.5px; }
.dw__links:empty { display: none; }
.dw__src { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.dw__msg { margin: 0; padding: 10px 14px; background: var(--butter-3); border-left: 4px solid var(--tangerine); border-radius: 10px; white-space: pre-wrap; font-size: 15.5px; }
.dw__compose { border-color: var(--sky-2); box-shadow: 4px 4px 0 var(--sky-2); }
.dw__tpls { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.dw__to { font-size: 13.5px; color: var(--ink-2); margin: 0 0 10px; overflow-wrap: anywhere; }
.dw__text { min-height: 320px; font: 500 15.5px/1.5 var(--font-body) !important; resize: vertical; }
.dw__opts { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; margin: 0 0 8px; }
.dw__opts .bw-check { margin: 0; }
.dw__fu { font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.dw__frame { width: 100%; height: 560px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; margin-top: 12px; }
.dw__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.dw__grid > label { display: block; font: 600 14px var(--font-display); }
.dw__grid .bw-input { margin: 4px 0 12px; font-size: 16px; padding: 10px 12px; }
.dw__grid .span2 { grid-column: 1 / -1; }
@media (max-width: 520px) { .dw__grid { grid-template-columns: 1fr; } }
.dw__verdict { display: grid; grid-template-columns: 1fr 270px; gap: 18px; align-items: start; }
@media (max-width: 640px) { .dw__verdict { grid-template-columns: 1fr; } }
.paws { display: flex; gap: 6px; margin: 2px 0 12px; }
.paws button { font-size: 26px; width: 48px; height: 48px; border-radius: 14px; border: 2.5px solid var(--ink); background: var(--paper); cursor: pointer; filter: grayscale(1); opacity: .35; transition: transform .12s, opacity .12s; }
.paws button.is-on { filter: none; opacity: 1; background: var(--butter); }
.paws button:active { transform: scale(.92); }
.scorerows { display: grid; gap: 6px; margin-bottom: 6px; }
.scorerow { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; }
.scorerow .bw-input { margin: 0; padding: 8px 10px; font-size: 15px; }
.dw__photo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.dw__photo img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
.dw__photo label { cursor: pointer; }
.tl { list-style: none; margin: 16px 0 0; padding: 0; }
.tl__i { display: grid; grid-template-columns: 32px 1fr; gap: 8px; padding: 10px 0; border-top: 1px dashed rgba(29, 26, 31, .2); }
.tl__ico { font-size: 18px; text-align: center; }
.tl__h { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 15px; }
.tl__h small { color: var(--ink-2); font-size: 12.5px; }
.tl__del { font-size: 12.5px; margin-left: auto; }
.tl__t { margin: 4px 0 0; white-space: pre-wrap; font-size: 15px; }
.tl details { margin-top: 4px; }
.tl summary { cursor: pointer; color: var(--sky-2); font-weight: 700; font-size: 14.5px; }
.tl pre { white-space: pre-wrap; font: 500 14.5px/1.5 var(--font-body); background: var(--cream); border-radius: 10px; padding: 10px 12px; margin: 6px 0 0; }
.tl__i--email_in .tl__ico { filter: hue-rotate(160deg); }
.dw__danger { background: none; border-style: dashed; text-align: center; }
.dw__danger .bw-link { color: #B23A3A; }
.btn[data-armed] { background: var(--red); color: #fff; }
.bw-link[data-armed] { color: #B23A3A; }

/* ---------- Lounge desk ---------- */
.ld__list { display: grid; gap: 14px; margin-bottom: 22px; }
.ld { padding: 16px; box-shadow: 4px 4px 0 var(--ink); }
.ld--new, .ld--requested { background: #FFFBEA; }
.ld.is-hidden { opacity: .6; }
.ld__h { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14.5px; margin-bottom: 8px; }
.ld__h a { color: var(--sky-2); font-weight: 700; overflow-wrap: anywhere; }
.ld__q { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; margin: 0 0 12px; }
.ld__c { margin: 0 0 10px; white-space: pre-wrap; }
.ld .bw-input { font-size: 16px; }
.ld__addr { font: 600 15px/1.45 ui-monospace, Menlo, monospace; background: var(--cream); border: 2px dashed rgba(29, 26, 31, .3); border-radius: 12px; padding: 10px 12px; margin: 10px 0; white-space: pre-wrap; }
.ld__paw { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.ld__paw .seg { margin: 0; }
.ld__paw .bw-input { flex: 1 1 180px; margin: 0; padding: 9px 12px; }
.ld__paw .bw-check { margin: 0; flex-basis: 100%; }
.ld__del { margin-left: auto; color: #B23A3A !important; }
.qs-new, .ps-requested { background: var(--butter); } .qs-published, .ps-mailed { background: var(--mint); } .qs-private, .ps-pawed { background: var(--sky-3); } .qs-skipped, .ps-canceled { background: #ECE8EE; }

select.bw-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%231D1A1F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px !important; }
.dw__sec, .dw__compose { scroll-margin-top: 76px; }
.hqbody .nav { position: relative; }
