/* Hostinsync — auth & owner shell */
:root {
    --pb-accent: #0d9488;
    --pb-accent-hover: #0f766e;
    --pb-accent-soft: rgba(13, 148, 136, 0.12);
    --pb-text: #1e293b;
    --pb-muted: #64748b;
    --pb-border: #e2e8f0;
    --pb-bg: #f8fafc;
    --pb-danger: #dc2626;
    --pb-success: #059669;
    --pb-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --pb-radius: 10px;
}

* {
    box-sizing: border-box;
}

body.pb-app {
    margin: 0;
    font-family: var(--pb-font);
    color: var(--pb-text);
    background: var(--pb-bg);
    min-height: 100vh;
}

.pb-app a {
    color: var(--pb-accent);
}

.pb-app-header {
    background: #fff;
    border-bottom: 1px solid var(--pb-border);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hs-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    line-height: 1.15;
}

.hs-brand-name {
    display: block;
    font-weight: inherit;
    line-height: 1.2;
}

.hs-brand-mark {
    color: var(--pb-accent);
    font-weight: inherit;
}

.hs-tagline {
    display: block;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--pb-muted);
    margin-top: 0;
    line-height: 1.35;
    max-width: 10.5rem;
}

.pb-app-header__brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--pb-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pb-app-header__brand .hs-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
}

.pb-app-header__brand > span:first-child {
    margin-top: 0.05rem;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--pb-accent), #0891b2);
    color: #fff;
    font-size: 0.65rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.pb-app-main {
    width: min(100% - 2rem, 420px);
    margin: 2rem auto 3rem;
}

.pb-app-main--wide {
    width: min(100% - 2rem, 960px);
}

.pb-card {
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.pb-card h1 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
}

.pb-card .pb-lead {
    margin: 0 0 1.5rem;
    color: var(--pb-muted);
    font-size: 0.95rem;
}

.pb-field {
    margin-bottom: 1rem;
}

.pb-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.pb-field input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--pb-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.pb-field input:focus {
    outline: 2px solid rgba(13, 148, 136, 0.35);
    border-color: var(--pb-accent);
}

.pb-btn-block {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 999px;
    background: var(--pb-accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
}

.pb-btn-block:hover:not(:disabled) {
    background: var(--pb-accent-hover);
}

.pb-btn-block:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pb-btn-ghost {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--pb-border);
    background: #fff;
    color: var(--pb-text);
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
}

.pb-btn-ghost:hover {
    border-color: var(--pb-accent);
    color: var(--pb-accent);
}

.pb-alert {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pb-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.pb-alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.pb-form-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--pb-muted);
}

.pb-owner-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 720px) {
    .pb-owner-grid {
        grid-template-columns: 240px 1fr;
    }
}

.pb-owner-nav {
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 1rem;
    height: fit-content;
}

.pb-owner-nav h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pb-muted);
    margin: 0 0 0.75rem;
}

.pb-owner-nav a {
    display: block;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--pb-text);
    font-size: 0.925rem;
}

.pb-owner-nav a.is-active {
    background: rgba(13, 148, 136, 0.1);
    color: var(--pb-accent-hover);
    font-weight: 600;
}

.pb-owner-nav a.pb-disabled {
    color: var(--pb-muted);
    pointer-events: none;
    opacity: 0.7;
}

.pb-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pb-stat {
    background: var(--pb-bg);
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.pb-stat strong {
    display: block;
    font-size: 1.35rem;
    color: var(--pb-text);
}

.pb-stat span {
    font-size: 0.8rem;
    color: var(--pb-muted);
}

.pb-loading {
    text-align: center;
    padding: 3rem;
    color: var(--pb-muted);
}
