/* Shared by the viewer and the admin sheet: brand tokens, type, buttons, popovers, header. */
@font-face { font-family: 'Eina 01'; src: url('../fonts/Eina01-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Eina 01'; src: url('../fonts/Eina01-RegularItalic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Eina 01'; src: url('../fonts/Eina01-SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Eina 01'; src: url('../fonts/Eina01-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Material Symbols Outlined'; src: url('../fonts/material-symbols-subset.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: block; }

:root {
  --ink: #0b0b0b; --ink-2: #2e2e2e; --ink-3: #4c4c4c; --muted: #666; --faint: #8f8d8a;
  --line: #e4e2de; --line-2: #efede9; --bg: #f5f4f1; --wash: #f0eeea; --card: #fff;
  --orange: #e87511; --orange-ink: #b5570d; --orange-deep: #8a420a; --orange-soft: #fbe6d2;
  --pos: #1f7a1f; --neu: #4c4c4c; --mix: #b5570d; --neg: #b5271f; --unk: #99968f;
  --r: 12px; --r-sm: 8px;
  --shadow-1: 0 1px 2px rgba(20, 16, 8, .05);
  --shadow-2: 0 10px 30px rgba(20, 16, 8, .13), 0 2px 6px rgba(20, 16, 8, .07);
  --focus: 0 0 0 3px rgba(232, 117, 17, .38);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 400 14px/1.45 'Eina 01', Roboto, 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.num { font-variant-numeric: tabular-nums; }
.grow { flex: 1 1 0; min-width: 0; }

.ms { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; flex-shrink: 0; user-select: none; }

/* tones: buyer and staff sentiment share one scale */
.tone-pos { --tone: var(--pos); } .tone-neu { --tone: var(--neu); } .tone-mix { --tone: var(--mix); } .tone-neg { --tone: var(--neg); } .tone-unk { --tone: var(--unk); }
.ms[class*='tone-'] { color: var(--tone); }

/* header */
.top { background: var(--ink); color: #fff; display: flex; align-items: center; gap: 14px; padding: 0 20px; height: 60px; flex-shrink: 0; }
.brand { display: flex; align-items: center; border-radius: 4px; }
.brand img { height: 26px; display: block; }
.top-rule { width: 1px; height: 26px; background: #3d3d3d; }
.top-title { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.conf { border: 1px solid #5a5a5a; color: #cfcfcf; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.top-meta { font-size: 12.5px; color: #b9b7b3; white-space: nowrap; }
.top-meta span { color: #8f8d8a; }
.avatar { width: 34px; height: 34px; border-radius: 999px; border: 0; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.avatar:hover { background: #f08a2c; }
.menu-wrap { position: relative; }

/* buttons */
.btn { height: 36px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid #d8d5d0; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; transition: border-color .12s, background .12s, color .12s; }
.btn:hover { border-color: #97948e; }
.btn:disabled { opacity: .45; cursor: default; }
.btn .ms { font-size: 19px; }
.btn-active { border-color: var(--ink); background: var(--wash); }
.btn-hot { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-deep); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-3); }
.btn-quiet:hover { border-color: transparent; background: var(--wash); color: var(--ink); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: #d2680b; border-color: #d2680b; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn-onink { background: transparent; border-color: #5a5a5a; color: #fff; }
.btn-onink:hover { background: #242424; border-color: #8a8a8a; }
.btn-danger { color: var(--neg); }
.btn-danger:hover { border-color: var(--neg); }
.count { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.iconbtn { width: 32px; height: 32px; border: 0; border-radius: var(--r-sm); background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); }
.iconbtn:hover { background: var(--wash); color: var(--ink); }
.iconbtn:disabled { opacity: .35; cursor: default; }
.iconbtn.onink { color: #fff; }
.iconbtn.onink:hover:not(:disabled) { background: #2a2a2a; color: #fff; }
.linkbtn { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; gap: 2px; color: var(--ink); }
.linkbtn:hover { color: var(--orange-ink); }
.linkbtn .ms { font-size: 16px; }

/* segmented control */
.seg { display: inline-flex; background: var(--wash); padding: 3px; border-radius: 10px; gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-3); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.seg .ms { font-size: 18px; }
.seg-full { display: flex; } .seg-full button { flex: 1; justify-content: center; }

/* pills and chips */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; line-height: 17px; font-weight: 700; white-space: nowrap; background: var(--tone, #666); color: #fff; }
.pill .ms { font-size: 14px; }
.pill-soft { background: var(--wash); color: var(--ink-3); }
.pill-warn { background: var(--orange-soft); color: var(--orange-deep); }
.pill-flight { background: #fff; color: var(--orange-ink); border: 1px solid var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; line-height: 20px; font-weight: 600; white-space: nowrap; background: #ebe9e5; color: var(--ink); border: 1px solid #ebe9e5; }
.chips-sm { gap: 4px; } .chips-sm .chip { font-size: 11.5px; line-height: 18px; padding: 1px 8px; }

/* popovers */
.pop-anchor { position: relative; }
.pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); padding: 14px; animation: pop-in .12s ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pop-head .iconbtn { margin: -6px -6px -6px 0; }
.pop-note { font-size: 12px; line-height: 17px; color: var(--muted); text-wrap: pretty; }
.pop-menu { left: auto; right: 0; top: calc(100% + 10px); width: 264px; padding: 8px; }
.menu-who { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.menu-who b { font-size: 14px; } .menu-who span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; } .menu-who .pill { margin-top: 6px; color: var(--ink-3); }
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: none; font-size: 13.5px; font-weight: 600; text-decoration: none; text-align: left; color: var(--ink); }
.menu-item:hover { background: var(--wash); }
.menu-item .ms { color: var(--ink-3); }

.field { display: grid; gap: 4px; }
.field > span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
select, input[type='text'], input[type='email'], input[type='search'], textarea { height: 36px; padding: 0 10px; border: 1px solid #d8d5d0; border-radius: var(--r-sm); background: #fff; font-size: 13.5px; outline: none; min-width: 0; }
select { cursor: pointer; padding-right: 6px; }
select.set { border-color: var(--ink); background: var(--wash); font-weight: 600; }
select:focus, input:focus, textarea:focus { border-color: var(--orange); box-shadow: var(--focus); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }

/* full-page states: loading, no access, errors */
.splash { min-height: 100vh; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px; }
.splash-logo { height: 34px; }
.splash-card { background: #fff; border-radius: 16px; padding: 28px 32px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.splash-card h1 { font-size: 20px; line-height: 26px; margin-bottom: 8px; }
.splash-card p { font-size: 14.5px; line-height: 22px; color: var(--ink-2); text-wrap: pretty; }
.splash-actions { display: flex; gap: 8px; margin-top: 20px; }
.loading { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.spinner { width: 18px; height: 18px; border-radius: 999px; border: 2.5px solid #e4e2de; border-top-color: var(--orange); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { margin: 32px auto; max-width: 560px; padding: 40px 32px; border: 1.5px dashed #b9b6b0; border-radius: var(--r); background: #faf9f7; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty b { font-size: 17px; } .empty span { font-size: 13.5px; color: var(--muted); } .empty .btn { margin-top: 14px; }
.empty.tall { margin-top: 12vh; }

/* notes, toasts and the account menu's backdrop: the admin sheet and the People page */
.menu-backdrop { position: fixed; inset: 0; z-index: 59; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 19px; }
.note > div { display: grid; gap: 2px; min-width: 0; } .note span { color: var(--ink-2); text-wrap: pretty; }
.note ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; max-height: 150px; overflow-y: auto; }
.note-ok { background: #e9f4e9; } .note-ok .ms { color: var(--pos); }
.note-warn { background: var(--orange-soft); } .note-warn .ms { color: var(--orange-ink); }
.note-bad { background: #fbe9e7; } .note-bad .ms { color: var(--neg); }
.lede { font-size: 14px; line-height: 21px; color: var(--ink-2); text-wrap: pretty; }
.error { font-size: 13.5px; color: var(--neg); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 56px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-2); z-index: 90; max-width: min(640px, 92vw); animation: pop-in .14s ease-out; text-wrap: pretty; }
.toast.t-error { background: #8d2a23; }

.banner { background: var(--orange-soft); color: var(--orange-deep); padding: 8px 20px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner a { margin-left: 6px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
