:root {--hb-primary: #2563eb;
    --hb-primary-contrast: #ffffff;
    --hb-accent: #f59e0b;
    --hb-bg: #f5f7fb;
    --hb-surface: #ffffff;
    --hb-text: #0f172a;
    --hb-muted: #64748b;
    --hb-border: #e2e8f0;
    --hb-dark: #0b1020;
    --hb-success: #16a34a;
    --hb-danger: #dc2626;
    --hb-font-heading: system-ui, sans-serif;
    --hb-font-body: system-ui, sans-serif;
    --hb-radius: 20px;
    --hb-radius-sm: 12px;
    --hb-radius-lg: 28px;
    --hb-ease: cubic-bezier(.2, .7, .2, 1);
    --hb-ease-out: cubic-bezier(.16, 1, .3, 1);
    --hb-tint: color-mix(in srgb, var(--hb-primary) 10%, #ffffff);
    --hb-tint-accent: color-mix(in srgb, var(--hb-accent) 16%, #ffffff);
    --hb-on-dark: #f8fafc;
    --hb-on-dark-muted: rgba(248, 250, 252, .7);
    --hb-line-dark: rgba(248, 250, 252, .14);}
*, *::before, *::after {box-sizing: border-box;}
[hidden] {display: none !important;}
html {-webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;}
body {margin: 0;
    font-family: var(--hb-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--hb-text);
    background: var(--hb-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;}
img, svg {display: block;
    max-width: 100%;}
a {color: var(--hb-primary);
    text-underline-offset: 3px;}
h1, h2, h3, h4 {font-family: var(--hb-font-heading);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.02em;}
p {margin: 0 0 1em;}
button, input, select, textarea {font: inherit;
    color: inherit;}
:focus-visible {outline: 3px solid var(--hb-accent);
    outline-offset: 3px;}
.hb-sr {position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;}
.hb-h3 {font-size: 20px;
    font-weight: 700;}
.hb-meta {font-size: 14px;
    color: var(--hb-muted);}
.hb-brand {display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--hb-text);
    font-family: var(--hb-font-heading);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.02em;}
.hb-brand-dark {color: var(--hb-text);}
.hb-btn {display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    background: var(--hb-primary);
    color: var(--hb-primary-contrast);
    transition: transform .3s var(--hb-ease-out), opacity .25s;}
.hb-btn:active {transform: scale(.97);}
.hb-btn:disabled {opacity: .6;
    cursor: progress;}
.hb-btn-ghost {background: transparent;
    color: var(--hb-text);
    border-color: var(--hb-border);}
.hb-btn-block {width: 100%;}
.hb-rise {animation: hb-rise .8s var(--hb-ease-out) both;
    animation-delay: var(--hb-delay, 0ms);}
@keyframes hb-rise{
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes hb-pop{
    0% {
        opacity: 0;
        transform: scale(.94) translateY(12px);
    }
    65% {
        opacity: 1;
        transform: scale(1.01);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}
@keyframes hb-draw{
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes hb-bounce{
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}
@keyframes hb-shimmer{
    0%,
    100% {
        opacity: .35;
    }
    50% {
        opacity: 1;
    }
}
@keyframes hb-scan{
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(340%);
    }
}
@keyframes hb-ticker{
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
@keyframes hb-float{
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}
@keyframes hb-spin{
    to {
        transform: rotate(360deg);
    }
}
@keyframes hb-fallback{
    to {
        opacity: 0;
        visibility: hidden;
    }
}
.hb-hero {position: relative;
    overflow: hidden;
    background: var(--hb-dark);
    color: var(--hb-on-dark);
    padding: clamp(44px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);}
.hb-hero::before, .hb-hero::after {content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;}
.hb-hero::before {width: clamp(260px, 36vw, 520px);
    aspect-ratio: 1;
    top: -140px;
    right: -120px;
    border: 2px solid var(--hb-line-dark);}
.hb-hero::after {width: 120px;
    aspect-ratio: 1;
    left: 42%;
    bottom: 40px;
    background: var(--hb-accent);
    opacity: .9;
    animation: hb-float 7s var(--hb-ease) infinite;}
.hb-chip {padding: 11px 18px;
    border-radius: 999px;
    border: 2px solid var(--hb-text);
    background: var(--hb-surface);
    color: var(--hb-text);
    text-decoration: none;
    font-weight: 700;}
.hb-richtext img {height: auto;
    border-radius: var(--hb-radius-sm);}
.hb-alert {padding: 14px 16px;
    border-radius: var(--hb-radius-sm);
    border: 2px solid var(--hb-text);
    background: var(--hb-surface);
    margin-bottom: 18px;}
.hb-alert p {margin: 0 0 6px;}
.hb-alert ul {margin: 0;
    padding-left: 18px;}
.hb-alert-success {border-color: var(--hb-success);}
.hb-alert-danger {border-color: var(--hb-danger);
    color: var(--hb-danger);}
.hb-field {display: grid;
    gap: 6px;
    font-size: 14px;}
.hb-field > span, .hb-field > label {font-weight: 700;}
.hb-field input, .hb-field select, .hb-field textarea {width: 100%;
    padding: 12px 14px;
    border-radius: var(--hb-radius-sm);
    border: 2px solid var(--hb-border);
    background: var(--hb-surface);
    font-size: 15px;}
.hb-field textarea {resize: vertical;
    min-height: 80px;}
.hb-field input:focus, .hb-field select:focus, .hb-field textarea:focus {outline: 3px solid var(--hb-accent);
    outline-offset: 0;
    border-color: transparent;}
.hb-code {font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px !important;}
.hb-switch {display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;}
.hb-switch input {position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;}
.hb-switch-track {position: relative;
    flex: none;
    width: 50px;
    height: 28px;
    border-radius: 999px;
    background: var(--hb-border);
    transition: background-color .3s;}
.hb-switch-track::after {content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform .3s var(--hb-ease);}
.hb-switch input:checked + .hb-switch-track {background: var(--hb-primary);}
.hb-switch input:checked + .hb-switch-track::after {transform: translateX(22px);}
.hb-switch input:focus-visible + .hb-switch-track {outline: 3px solid var(--hb-accent);
    outline-offset: 2px;}
.hb-grid-2 {display: grid;
    gap: 16px;
    grid-template-columns: 1fr;}
.hb-grid-3 {display: grid;
    gap: 16px;
    grid-template-columns: 1fr;}
.hb-span-2, .hb-span-3 {grid-column: 1 / -1;}
.hb-hero {background: var(--hb-hero);
    color: var(--hb-text);}
html[data-hb-theme="dark"] .hb-hero {background: var(--hb-hero-dark);
    color: var(--hb-on-dark);}
.hb-hero::before {border-color: var(--hb-border);}
html[data-hb-theme="dark"] {--hb-text: #eef2ff;
    --hb-muted: #9aa6c2;
    --hb-dark: #070b16;
    --hb-tint: color-mix(in srgb, var(--hb-primary) 22%, var(--hb-bg));
    --hb-tint-accent: color-mix(in srgb, var(--hb-accent) 18%, var(--hb-bg));
    --hb-on-dark: #eef2ff;
    --hb-on-dark-muted: rgba(238, 242, 255, .72);
    --hb-line-dark: rgba(238, 242, 255, .16);}
html[data-hb-theme="dark"] body {color-scheme: dark;}
@media (min-width: 560px) {
  .hb-grid-2 {grid-template-columns: 1fr 1fr;}
  .hb-grid-3 {grid-template-columns: repeat(3, 1fr);}
}
@media (max-width: 899px) {
  .hb-hero::before {width: 300px;
        top: -120px;
        right: -140px;}
  .hb-hero::after {display: none;}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;}
}
.hb-meta {font-size: .9rem; color: var(--hb-muted); margin: 0 0 .75rem;}
.hb-pager {display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap;}
@media (max-width: 600px) {
  .hb-pager {justify-content: center; text-align: center;}
}
a.hb-brand {color: inherit;
    text-decoration: none;}

.hb-auth-foot{margin-top:18px;text-align:center}

/* Logo and branding (1.2.15). */
.hb-logo-img {display: block; height: 50px; width: auto; max-width: 220px; object-fit: contain;}
.hb-admin-wordmark + .hb-logo-img, .hb-brand-tile + .hb-brand-tile {margin-top: 0;}
.hb-brand-tile {display: flex; align-items: center; justify-content: center; min-height: 120px; margin: 16px 0; padding: 20px; border: 1px dashed var(--hb-border); border-radius: 14px; background: var(--hb-bg);}
.hb-brand-preview {display: block; max-width: 100%; max-height: 160px; width: auto; height: auto; object-fit: contain;}
.hb-captcha {margin: 4px 0 16px; min-height: 78px;}

/* Shared filter bar (admin Short links and Publisher Links) and inline forms. Flat, no shadows, no hover. */
.hb-filter-bar {display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 16px;}
.hb-filter-bar .hb-field {flex: 1 1 220px; min-width: 0;}
.hb-filter-bar .hb-filter-publisher {flex: 1 1 280px;}
.hb-filter-bar .hb-field select {width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; border: 1px solid var(--hb-border); border-radius: 10px; background: transparent; color: inherit;}
.hb-filter-bar .hb-btn {flex: 0 0 auto;}
.hb-inline-form {display: inline-flex; margin: 0;}

/* 1.2.23: progress for the social posts, on the admin link page and the creator link page. */
.hb-progress {display: grid; gap: 6px; width: 100%;}
.hb-progress[hidden] {display: none;}
.hb-progress-bar {height: 8px; border-radius: 999px; background: var(--hb-border); overflow: hidden;}
.hb-progress-bar span {display: block; height: 100%; width: 0; border-radius: inherit; background: var(--hb-primary); transition: width .5s ease;}
.hb-progress[data-stage="running"] .hb-progress-bar span {animation: hb-progress-run 1.6s ease-in-out infinite;}
.hb-progress[data-stage="failed"] .hb-progress-bar span {background: var(--hb-danger, #dc2626);}
@keyframes hb-progress-run {0%, 100% {opacity: 1;} 50% {opacity: .55;}}

/* Divider between the password form and Continue with Google (sign-in and register pages). */
.hb-divider {display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--hb-muted); font-size: .85rem;}
.hb-divider::before, .hb-divider::after {content: ""; flex: 1; height: 1px; background: var(--hb-border);}
