.famibou {
    --famibou-ink: #19382e;
    --famibou-green: #315d4a;
    --famibou-paper: #faf8f2;
    --famibou-border: #deded1;
    max-width: 720px;
    margin-inline: auto;
    font: inherit;
    color: var(--famibou-ink);
}
.famibou-login { max-width: 410px; }
.famibou h2 { font-size: 1.35rem; margin: 0 0 0.7rem; }
.famibou-card {
    margin: 0 0 1.25rem;
    padding: clamp(0.9rem, 3vw, 1.4rem);
    border: 1px solid var(--famibou-border);
    border-radius: 1rem;
    background: var(--famibou-paper);
}
.famibou label { display: block; font-weight: 700; }
.famibou input:not([type="checkbox"]), .famibou textarea {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    font: inherit;
}
.famibou input[type="file"] { margin-top: 0.3rem; }
.famibou input[type="text"], .famibou input[type="password"], .famibou textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #87978a;
    border-radius: 0.5rem;
    color: inherit;
    background: #fff;
}
.famibou textarea { resize: vertical; }
.famibou small { display: block; margin: 0.25rem 0 0.85rem; }
.famibou button, .famibou input[type="submit"] {
    margin-top: 0.8rem;
    min-height: 44px;
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: 0.55rem;
    background: var(--famibou-green);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.famibou :focus-visible { outline: 2px solid #315d4a; outline-offset: 3px; }
.famibou-post header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin-bottom: 0.65rem; }
.famibou-post time { font-size: 0.875rem; }
.famibou-post img, .famibou-preview {
    display: block;
    width: 100%;
    height: auto;
    max-height: 32rem;
    object-fit: contain;
    border-radius: 0.55rem;
}
.famibou-preview { width: auto; max-width: 100%; max-height: 15rem; margin-bottom: 0.85rem; }
.famibou-preview[hidden] { display: none; }
.famibou-post p { margin: 0.75rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.famibou-pagination { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.famibou-error, .famibou-success { padding: 0.7rem; border-radius: 0.45rem; }
.famibou-error { background: #f9e3df; color: #69251b; }
.famibou-success { background: #e5eee4; }

body.famibou-site {
    margin: 0;
    background: #f7f5ef;
    color: #19382e;
    font-family: var(--wp--preset--font-family--nunito, system-ui), sans-serif;
    font-size: 1.0625rem;
    line-height: 1.5;
}
.famibou-site .famibou-header {
    background: #fff;
    border-bottom: 1px solid #e8e4d8;
}
.famibou-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
    max-width: 760px;
    min-height: 68px;
    margin-inline: auto;
    padding: 0.65rem 1rem;
}
.famibou-brand { color: #19382e; font-weight: 700; font-size: 1.4rem; }
.famibou-brand-logo { display: block; width: auto; height: auto; max-width: min(185px, 42vw); max-height: 44px; object-fit: contain; }
.famibou-sign-out {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #315d4a;
    font-size: 0.875rem;
}
.famibou-main {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    padding: 1.15rem 1rem 2.5rem;
}
.famibou-site .famibou-page-title {
    margin: 0 0 0.85rem;
    font-family: inherit;
    font-size: clamp(1.7rem, 1.15rem + 2.2vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
}
.famibou-site .famibou-card { background: #fff; }
body.famibou-screen-login {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr;
    align-items: start;
}
.famibou-screen-login .famibou-header { background: transparent; border: 0; }
.famibou-screen-login .famibou-header-inner { justify-content: center; padding-top: clamp(1.5rem, 7vw, 4rem); }
.famibou-screen-login .famibou-brand-logo { max-width: min(250px, 72vw); max-height: 82px; }
.famibou-screen-login .famibou-main {
    max-width: 480px;
    margin-block: 0.9rem 2rem;
    padding: clamp(1.05rem, 4vw, 1.7rem);
    width: calc(100% - 2rem);
    background: #fff;
    border: 1px solid #e8e4d8;
    border-radius: 1.1rem;
}
.famibou-screen-login .famibou-page-title,
.famibou-login > p:first-child { text-align: center; }
.famibou-login > p { margin: 0 0 1rem; }
.famibou-login p:last-child { margin-bottom: 0; }
.famibou-login .login-remember label { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; }
.famibou-login .login-submit input { width: 100%; }
.famibou-photo-picker.is-enhanced {
    position: relative;
    display: inline-flex;
    border: 1px solid #9cad9f;
    background: #eff5ef;
    border-radius: 0.55rem;
}
.famibou-photo-picker.is-enhanced label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0.8rem;
}
.famibou-photo-picker.is-enhanced input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.famibou-photo-picker.is-enhanced:focus-within { outline: 2px solid #315d4a; outline-offset: 3px; }
.famibou-photo-picker.is-enhanced:hover { background: #e2eee3; }
.famibou-photo-name { margin: 0.35rem 0 0; font-size: 0.9rem; overflow-wrap: anywhere; }
