:root {
  --bg: #f5f8fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #738095;
  --line: #e6ebf1;
  --primary: #168cc7;
  --primary-dark: #0d71a7;
  --primary-soft: #eaf7fc;
  --cyan: #43c7cc;
  --green: #20b86a;
  --green-soft: #eaf9f1;
  --purple: #7c3aed;
  --purple-soft: #f1ebff;
  --amber: #d99110;
  --amber-soft: #fff7df;
  --red: #d44747;
  --red-soft: #fff0f0;
  --shadow: 0 16px 45px rgba(19, 57, 91, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(74, 133, 171, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 133, 171, .055) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-font-smoothing: antialiased;
}

.minimal-page {
  background-color: #f8fafc;
  background-image:
    radial-gradient(circle at 48% 22%, rgba(66, 133, 255, .13), transparent 28%),
    radial-gradient(circle at 68% 54%, rgba(119, 74, 232, .09), transparent 30%),
    linear-gradient(rgba(74, 133, 171, .042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 133, 171, .042) 1px, transparent 1px);
}
.minimal-shell { min-height: 100vh; }
.minimal-notice { position: fixed; z-index: 30; top: 18px; left: 50%; width: min(520px, calc(100% - 28px)); transform: translateX(-50%); }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 760; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 11px; }
/* 官网公开原版 Logo 是横版字标（540×220），按高度显示，不压进方形图标位。 */
.brand img.brand-wordmark { width: auto; height: 34px; border-radius: 0; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.logout-form { margin: 0; }
.logout-button { white-space: nowrap; }
.user-chip img, .avatar, .avatar-fallback { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--cyan), #347ed5); font-weight: 700; }

.shell { width: min(1440px, calc(100% - 40px)); margin: 24px auto 54px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.sidebar { position: sticky; top: 90px; align-self: start; display: grid; gap: 6px; padding: 10px; border: 1px solid rgba(221, 229, 238, .9); background: rgba(255,255,255,.74); border-radius: 16px; backdrop-filter: blur(10px); }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 12px; border-radius: 11px; color: #5f6d82; font-size: 14px; font-weight: 600; transition: .16s ease; }
.nav-item:hover { color: var(--primary-dark); background: var(--primary-soft); }
.nav-item.active { color: #fff; background: linear-gradient(135deg, var(--primary), #36b7c6); box-shadow: 0 8px 20px rgba(22, 140, 199, .22); }
.nav-icon { width: 21px; text-align: center; font-size: 16px; }
.content { min-width: 0; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 4px 2px 22px; }
.page-header h1 { margin: 0 0 7px; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.page-header p { margin: 0; color: var(--muted); line-height: 1.65; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 18px; }
.card h2, .card h3 { margin-top: 0; }
.card h2 { font-size: 20px; }
.card h3 { font-size: 16px; }
.card-subtle { box-shadow: none; background: rgba(255,255,255,.74); }
.card-purple { background: linear-gradient(135deg, #6e37d8, #9149e8); color: #fff; border-color: transparent; }
.card-cyan { background: linear-gradient(135deg, #087eb9, #35bfc4); color: #fff; border-color: transparent; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.metric { min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.card-purple .metric-label, .card-cyan .metric-label { color: rgba(255,255,255,.76); }
.metric-value { margin: 12px 0 2px; font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.metric-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.card-purple .metric-note, .card-cyan .metric-note { color: rgba(255,255,255,.76); }

.two-column { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 18px; }
.three-column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack { display: grid; gap: 14px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-title h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 18px; border: 1px solid transparent; border-radius: 11px; font-weight: 700; line-height: 1; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--primary), #32b4c6); box-shadow: 0 9px 22px rgba(22, 140, 199, .2); }
.button-secondary { color: var(--primary-dark); background: var(--primary-soft); border-color: #cceaf5; }
.button-danger { color: var(--red); background: var(--red-soft); border-color: #ffd7d7; }
.button-small { min-height: 34px; padding: 7px 13px; font-size: 13px; }
.button-block { width: 100%; }
.button[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.notice { margin-bottom: 16px; padding: 13px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.notice-success { color: #167445; background: var(--green-soft); border: 1px solid #cdeedc; }
.notice-error { color: #a92e2e; background: var(--red-soft); border: 1px solid #ffd4d4; }

.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 750; }
.badge-green { color: #137547; background: var(--green-soft); }
.badge-purple { color: #6630c5; background: var(--purple-soft); }
.badge-blue { color: #126c9a; background: var(--primary-soft); }
.badge-amber { color: #8d5d00; background: var(--amber-soft); }
.badge-gray { color: #68758a; background: #edf1f5; }
.badge-red { color: #ad3434; background: var(--red-soft); }

.list { display: grid; gap: 0; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row:first-child { padding-top: 0; }
.list-main { min-width: 0; }
.list-title { font-weight: 700; }
.list-meta { margin-top: 5px; color: var(--muted); font-size: 13px; }
.points-positive { color: var(--green); font-weight: 800; }
.points-negative { color: var(--red); font-weight: 800; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed #d8e0e9; border-radius: 14px; }

.reward-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.reward-card { display: flex; flex-direction: column; min-height: 260px; }
.reward-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; font-size: 22px; font-weight: 800; background: linear-gradient(135deg, var(--purple), #ac56d4); }
.reward-card h3 { margin: 17px 0 8px; font-size: 18px; }
.reward-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; flex: 1; }
.reward-footer { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reward-cost { font-size: 23px; font-weight: 800; color: var(--purple); }
.reward-action { margin-top: 15px; }

.redeem-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 2px 20px; }
.back-link { color: var(--primary-dark); font-size: 14px; font-weight: 700; }
.back-link:hover { text-decoration: underline; }
.redeem-checkout { width: min(960px, 100%); display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 20px; }
.redeem-summary { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 440px; overflow: hidden; }
.redeem-summary::after { content: ""; position: absolute; right: -80px; bottom: -90px; width: 230px; height: 230px; border-radius: 50%; background: linear-gradient(135deg, rgba(124,58,237,.13), rgba(67,199,204,.12)); }
.redeem-summary .badge { margin-top: 18px; }
.redeem-summary h1 { position: relative; z-index: 1; margin: 20px 0 10px; font-size: 27px; letter-spacing: -.03em; }
.redeem-summary p { position: relative; z-index: 1; margin: 0; color: var(--muted); line-height: 1.75; }
.redeem-price { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 6px; margin-top: auto; color: var(--purple); }
.redeem-price strong { font-size: 42px; line-height: 1; letter-spacing: -.04em; }
.redeem-price span { font-weight: 750; }
.redeem-stock { position: relative; z-index: 1; margin-top: 8px; color: var(--muted); font-size: 13px; }
.checkout-card { padding: 30px; }
.checkout-heading > span { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.checkout-heading h2 { margin: 7px 0 8px; font-size: 27px; letter-spacing: -.03em; }
.checkout-heading p { margin: 0; color: var(--muted); line-height: 1.65; }
.checkout-form { display: grid; gap: 16px; margin-top: 26px; }
.checkout-form .textarea { min-height: 112px; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; padding: 15px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.checkout-total strong { color: var(--purple); font-size: 20px; }
.checkout-submit { min-height: 48px; }
.checkout-cancel { text-align: center; color: var(--muted); font-size: 13px; font-weight: 650; }
.checkout-cancel:hover { color: var(--primary-dark); }
.redeem-unavailable { display: grid; gap: 6px; margin: 26px 0 18px; padding: 18px; border: 1px solid #ffe0a8; border-radius: 13px; background: var(--amber-soft); }
.redeem-unavailable strong { color: #7f5503; }
.redeem-unavailable span { color: #9a6d18; font-size: 13px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: #526178; font-size: 13px; font-weight: 700; }
.input, .textarea, .select { width: 100%; border: 1px solid #dbe3ec; border-radius: 10px; background: #fff; color: var(--text); outline: none; padding: 10px 12px; transition: .15s ease; }
.input, .select { min-height: 42px; }
.textarea { min-height: 82px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: #78cbe9; box-shadow: 0 0 0 3px rgba(56, 169, 211, .12); }
.checkbox { display: inline-flex; align-items: center; gap: 7px; color: #526178; font-size: 13px; font-weight: 600; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }

.profile-block { display: flex; align-items: center; gap: 14px; }
.profile-block .avatar, .profile-block .avatar-fallback { width: 54px; height: 54px; }
.profile-name { font-size: 18px; font-weight: 800; }
.profile-meta { margin-top: 5px; color: var(--muted); font-size: 13px; }
.member-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.member-banner h2 { margin-bottom: 6px; }

.hero { min-height: 520px; display: grid; place-items: center; padding: 40px 18px; }
.hero-card { width: min(820px, 100%); padding: clamp(28px, 6vw, 58px); text-align: center; }
.hero-logo { width: 82px; height: 82px; object-fit: contain; margin-bottom: 18px; }
.hero h1 { margin: 0; font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -.05em; }
.hero p { max-width: 600px; margin: 18px auto 26px; color: var(--muted); line-height: 1.8; font-size: 16px; }
.hero-actions { display: flex; justify-content: center; gap: 11px; flex-wrap: wrap; }
.feature-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.feature { padding: 16px; border-radius: 13px; background: #f7fafc; border: 1px solid var(--line); }
.feature strong { display: block; margin-bottom: 5px; }
.feature span { color: var(--muted); font-size: 13px; line-height: 1.55; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 42px 20px; }
.login-panel { width: min(390px, 100%); text-align: center; }
.login-logo { width: 76px; height: 76px; object-fit: contain; padding: 8px; border: 1px solid rgba(210,220,233,.9); border-radius: 22px; background: rgba(255,255,255,.84); box-shadow: 0 18px 45px rgba(37, 87, 127, .13); }
.login-logo.login-wordmark { width: auto; height: 64px; max-width: 100%; padding: 6px 14px; border-radius: 18px; }
.login-brand { margin-top: 20px; color: var(--primary-dark); font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.login-panel h1 { margin: 9px 0 10px; font-size: 31px; letter-spacing: -.045em; }
.login-panel > p { margin: 0 auto; color: var(--muted); line-height: 1.7; }
.login-button { min-height: 48px; margin-top: 27px; border-radius: 14px; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 15px; color: #8390a2; font-size: 12px; }
.login-security span { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 10px; font-weight: 800; }
.login-back { display: inline-block; margin-top: 28px; color: #7d899a; font-size: 13px; }
.login-back:hover { color: var(--primary-dark); }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 42px 20px; }
.auth-panel { width: min(520px, 100%); padding: 30px; border: 1px solid rgba(218,225,234,.92); border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: 0 24px 70px rgba(24, 66, 104, .12); backdrop-filter: blur(16px); }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand .app-icon { width: 48px; height: 48px; border-radius: 15px; font-size: 20px; }
.auth-brand strong, .auth-brand span { display: block; }
.auth-brand strong { font-size: 16px; }
.auth-brand span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.auth-title { padding: 26px 0 20px; }
.auth-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #147247; background: var(--green-soft); font-size: 12px; font-weight: 750; }
.auth-title h1 { margin: 13px 0 7px; font-size: 28px; letter-spacing: -.035em; }
.auth-title p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-user { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.auth-user .avatar, .auth-user .avatar-fallback { width: 42px; height: 42px; }
.auth-user strong, .auth-user span { display: block; }
.auth-user span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.auth-permission { display: flex; align-items: center; gap: 12px; margin: 14px 0 22px; padding: 13px 14px; border-radius: 14px; background: var(--primary-soft); }
.auth-permission-icon { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--primary-dark); background: #fff; font-size: 13px; font-weight: 800; }
.auth-permission strong, .auth-permission span { display: block; }
.auth-permission strong { color: #275b76; font-size: 13px; }
.auth-permission span { margin-top: 4px; color: #618197; font-size: 12px; line-height: 1.5; }
.auth-actions { display: grid; gap: 10px; }
.auth-actions .button { min-height: 47px; }
.auth-deny { color: #66758a; background: transparent; border-color: var(--line); box-shadow: none; }
.auth-deny:hover { color: var(--primary-dark); background: #f7fafc; }
.auth-note { margin: 16px 4px 0; text-align: center; color: #8a96a8; font-size: 11px; line-height: 1.65; }

.consent-wrap { min-height: 560px; display: grid; place-items: center; }
.consent-card { width: min(620px, 100%); padding: 34px; }
.app-identity { display: flex; gap: 16px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.app-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, var(--purple), #4fa7d8); color: #fff; font-size: 26px; font-weight: 800; box-shadow: 0 10px 26px rgba(101, 63, 191, .24); }
.app-identity h1 { margin: 0 0 6px; font-size: 24px; }
.app-domain { color: var(--muted); font-size: 13px; }
.identity-status { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 13px 14px; border: 1px solid #cdeedc; border-radius: 13px; background: var(--green-soft); }
.identity-status-icon { width: 28px; height: 28px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-weight: 800; }
.identity-status strong, .identity-status span { display: block; }
.identity-status strong { color: #166f45; font-size: 14px; }
.identity-status div > span { margin-top: 3px; color: #477662; font-size: 12px; }
.consent-copy { margin: 17px 0 0; line-height: 1.7; }
.scope-list { display: grid; gap: 10px; margin: 22px 0; }
.scope-item { display: flex; gap: 11px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: #4f5f75; font-size: 14px; }
.scope-check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; }
.consent-user { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 11px; border-radius: 12px; background: #f7fafc; }
.consent-actions { display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px; }
.consent-note { margin: 16px 0 0; text-align: center; line-height: 1.65; }

.rank-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #66758a; background: #f0f4f8; font-weight: 800; }
.rank-row:nth-child(1) .rank-number { color: #8b5c00; background: #fff2c7; }
.rank-row:nth-child(2) .rank-number { color: #526579; background: #eaf0f5; }
.rank-row:nth-child(3) .rank-number { color: #875027; background: #f8e5d5; }
.rank-user { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rank-user .avatar, .rank-user .avatar-fallback { width: 38px; height: 38px; }
.rank-score { color: var(--primary-dark); font-size: 18px; font-weight: 800; }

.auth-log-page-header { align-items: center; }
.auth-log-list-card { padding: 0; overflow: hidden; }
.auth-log-grid { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(110px, .55fr) minmax(130px, .65fr) minmax(180px, .85fr); align-items: center; column-gap: 18px; }
.auth-log-head { min-height: 48px; padding: 0 20px; color: var(--muted); background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 750; }
.auth-log-row { position: relative; min-height: 68px; padding: 12px 20px; border-bottom: 1px solid var(--line); transition: background .15s ease; }
.auth-log-row:last-child { border-bottom: 0; }
.auth-log-row:hover { background: #f5fbfe; }
.auth-log-row::after { content: "›"; position: absolute; right: 10px; color: #b1bcc9; font-size: 20px; opacity: 0; transition: opacity .15s ease; }
.auth-log-row:hover::after { opacity: 1; }
.auth-log-app { min-width: 0; }
.auth-log-app strong, .auth-log-app small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-log-app strong { font-size: 14px; }
.auth-log-app small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.auth-log-location, .auth-log-time { color: #4f5e72; font-size: 13px; }
.auth-log-mobile-meta { display: none; }

.auth-detail-header { align-items: center; }
.auth-detail-header > div { min-width: 0; }
.auth-detail-header p { overflow-wrap: anywhere; }
.auth-detail-header .button { flex: 0 0 auto; white-space: nowrap; }
.auth-detail-card { padding: 28px; }
.detail-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.detail-section-title h2 { margin: 0; }
.detail-title-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--primary-dark); background: var(--primary-soft); font-size: 13px; font-weight: 800; }
.auth-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 34px; }
.detail-field { min-width: 0; }
.detail-field > span, .detail-field > strong, .detail-field > .privacy-control { display: block; }
.detail-field > span { margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.detail-field > strong, .privacy-control { color: #263246; font-size: 14px; line-height: 1.6; }
.detail-field-wide { grid-column: 1 / -1; }
.mono-value { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; overflow-wrap: anywhere; }
.user-agent-value { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; overflow-wrap: anywhere; font-weight: 550 !important; }
.privacy-control summary { display: inline-flex; max-width: 100%; align-items: center; gap: 8px; list-style: none; cursor: pointer; outline: none; }
.privacy-control summary::-webkit-details-marker { display: none; }
.privacy-control summary:focus-visible { border-radius: 7px; box-shadow: 0 0 0 3px rgba(56, 169, 211, .18); }
.privacy-full { display: none; overflow-wrap: anywhere; }
.privacy-control[open] .privacy-masked { display: none; }
.privacy-control[open] .privacy-full { display: inline; }
.privacy-eye { width: 27px; height: 27px; display: inline-grid; flex: 0 0 auto; place-items: center; border: 1px solid #d8e6ee; border-radius: 8px; color: #5e8195; background: #f6fbfd; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.privacy-control summary:hover .privacy-eye { color: var(--primary-dark); border-color: #b9deec; background: var(--primary-soft); }
.privacy-eye svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-eye-hide { display: none; }
.privacy-control[open] .privacy-eye-show { display: none; }
.privacy-control[open] .privacy-eye-hide { display: block; }
.detail-link { color: var(--primary); overflow-wrap: anywhere; }
.detail-link:hover { text-decoration: underline; }

.admin-section { scroll-margin-top: 85px; }
.inline-form { display: grid; grid-template-columns: minmax(160px, 1fr) 110px 110px auto auto; gap: 8px; align-items: end; }
.inline-form .field { gap: 4px; }
.mini-input { min-height: 36px; padding: 7px 9px; }

.footer { padding: 28px 20px 36px; text-align: center; color: #8a96a8; font-size: 12px; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reward-grid, .three-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { height: 60px; padding: 0 14px; }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .brand img.brand-wordmark { width: auto; height: 30px; }
  .user-chip span { display: none; }
  .logout-button { min-height: 34px; padding-inline: 11px; }
  .shell { width: min(100% - 20px, 720px); display: block; margin-top: 12px; }
  .sidebar { position: static; display: flex; overflow-x: auto; margin-bottom: 14px; padding: 7px; border-radius: 13px; scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 auto; min-height: 36px; padding: 7px 10px; font-size: 13px; }
  .nav-icon { width: auto; }
  .page-header { display: block; margin: 4px 3px 16px; }
  .page-header h1 { font-size: 26px; }
  .card { padding: 18px; border-radius: 15px; }
  .metric-grid, .reward-grid, .three-column, .form-grid, .feature-grid { grid-template-columns: 1fr; }
  .metric { min-height: 120px; }
  .metric-value { font-size: 33px; }
  .hero { min-height: 470px; padding: 10px 0; }
  .hero-card { padding: 32px 20px; }
  .feature-grid { text-align: center; }
  .consent-card { padding: 22px 18px; }
  .consent-actions { grid-template-columns: 1fr; }
  .login-screen, .auth-screen { padding: 28px 18px; }
  .login-panel h1 { font-size: 27px; }
  .auth-panel { padding: 22px 18px; border-radius: 18px; }
  .auth-title { padding-top: 22px; }
  .redeem-page-head { margin-top: 0; }
  .redeem-checkout { grid-template-columns: 1fr; }
  .redeem-summary { min-height: 320px; }
  .checkout-card { padding: 22px 18px; }
  .auth-log-page-header, .auth-detail-header { display: flex; align-items: flex-start; }
  .auth-log-page-header form { flex: 0 0 auto; }
  .auth-log-head { display: none; }
  .auth-log-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "app action" "meta meta"; gap: 7px 12px; padding: 15px 16px; }
  .auth-log-app { grid-area: app; }
  .auth-log-row > :nth-child(2) { grid-area: action; justify-self: end; }
  .auth-log-location, .auth-log-time { display: none; }
  .auth-log-mobile-meta { display: block; grid-area: meta; color: var(--muted); font-size: 12px; }
  .auth-log-row::after { display: none; }
  .auth-detail-card { padding: 20px 18px; }
  .auth-detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .detail-field-wide { grid-column: auto; }
  .member-banner { display: block; }
  .member-banner .button { margin-top: 14px; width: 100%; }
  .inline-form { grid-template-columns: 1fr 1fr; }
  .inline-form > :first-child { grid-column: 1 / -1; }
  .footer { padding-bottom: 24px; }
}
