/* Diamond Pro Services: charcoal + copper. Mobile-first, view-only staging portal. */
:root { --charcoal: #23272e; --copper: #b87333; --bg: #f4f2ef; --card: #ffffff; --ink: #1d2126; --muted: #6b7280; --line: #e5e0d8; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); padding-bottom: 72px; }
a { color: var(--copper); }
.topbar { background: var(--charcoal); color: #fff; padding: 14px 16px 12px; position: sticky; top: 0; z-index: 10; }
.brand { font-size: 20px; font-weight: 700; }
.brand-sub { font-size: 12px; opacity: .75; margin: 2px 0 10px; }
.viewer-label { display: block; font-size: 12px; opacity: .8; margin-bottom: 4px; }
#viewer { width: 100%; font-size: 15px; padding: 8px; border-radius: 8px; border: 1px solid #444; background: #fff; color: var(--ink); }
main { padding: 16px; max-width: 720px; margin: 0 auto; }
h2 { font-size: 22px; margin: 4px 0 12px; }
h3 { font-size: 17px; margin: 0 0 8px; }
h4 { font-size: 14px; margin: 14px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.card.highlight { border-color: var(--copper); }
.big { font-size: 24px; font-weight: 700; margin: 4px 0; }
.muted { color: var(--muted); font-size: 14px; }
.warn { background: #fdf3e3; border: 1px solid #e8c88a; border-radius: 8px; padding: 10px; font-size: 14px; }
.flag { background: #b42318; color: #fff; border-radius: 999px; font-size: 11px; padding: 2px 8px; }
.fee-row { border-top: 1px solid var(--line); padding: 10px 0; }
.fee-row:first-of-type { border-top: 0; }
.fee-nums { font-size: 14px; margin-top: 2px; }
.fee-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.fee-total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 600; font-size: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; }
.stat { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px solid #f0ece6; padding: 3px 0; }
.stat b { font-variant-numeric: tabular-nums; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--charcoal); border-top: 1px solid #444; z-index: 10; }
.tab { flex: 1; text-align: center; color: #cfd3d8; text-decoration: none; font-size: 13px; padding: 14px 0 16px; }
.tab.active { color: #fff; font-weight: 700; box-shadow: inset 0 3px 0 var(--copper); }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-table { border-collapse: collapse; width: 100%; font-size: 0.85rem; overflow-x: auto; display: block; }
.stats-table th, .stats-table td { padding: 4px 6px; text-align: right; white-space: nowrap; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.stats-table tbody tr { border-top: 1px solid var(--hatch-widget-border, #ddd); }
#signin-form { display: flex; flex-direction: column; gap: 8px; max-width: 340px; margin-top: 8px; }
#signin-form[hidden] { display: none; }
#signin-form input, #signin-form button { padding: 9px 10px; font-size: 1rem; border-radius: 6px; }
#signin-form input { border: 1px solid var(--hatch-widget-border, #999); }
#signedin-wrap { margin-top: 8px; display: flex; gap: 10px; align-items: center; }
#signedin-wrap[hidden] { display: none; }
button.linklike { background: none; border: none; text-decoration: underline; cursor: pointer; padding: 4px !important; }
