/* Scoped social features; the site's navigation keeps its existing layout. */
body .cf-card,body .cf-photo-card,body .cf-photo-dialog{--cf-surface:var(--ui162-surface,#fff);--cf-soft:var(--ui162-soft,#f2f5f7);--cf-ink:var(--ui162-text,#1c2835);--cf-muted:var(--ui162-muted,#526278);--cf-line:var(--ui162-border,#dce4ec);--cf-accent:var(--ui162-link,#315ac3);box-sizing:border-box;background:var(--cf-surface);color:var(--cf-ink);border:1px solid var(--cf-line);border-radius:20px;min-width:0;overflow-wrap:anywhere}
body .cf-card{padding:24px;margin:18px 0}body .cf-card *,body .cf-photo-card *{box-sizing:border-box;min-width:0}body :is(.cf-card,.cf-photo-card) :is(h1,h2,h3,p){color:inherit;overflow-wrap:anywhere}body .cf-card h2{font-size:22px;line-height:1.3;margin:5px 0 12px}body .cf-card h3{font-size:18px;line-height:1.4;margin:10px 0}body .cf-card p{line-height:1.6}body .cf-muted{color:var(--ui162-muted,#526278)!important;font-size:13px;line-height:1.55}body .cf-kicker{font-size:10px;line-height:1.5;font-weight:800;letter-spacing:.12em;color:var(--ui162-link,#315ac3)}body .cf-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}body .cf-heading h2{margin:0}body .cf-text-link{color:var(--ui162-link,#315ac3);font-size:13px;font-weight:700}body .cf-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}body .cf-actions form{margin:0}body .cf-badge{display:inline-flex;align-items:center;gap:5px;padding:6px 11px;background:var(--ui162-soft,#f2f5f7);color:var(--ui162-link,#315ac3);border:1px solid var(--ui162-border,#dce4ec);border-radius:30px;font-size:11px;font-weight:700}body .cf-empty{padding:22px 0;color:var(--ui162-muted,#526278);text-align:center}body .cf-form{display:grid;gap:12px;margin:16px 0 0}body .cf-form label{display:grid;gap:7px;font-size:13px;font-weight:600}body .cf-form :is(input,textarea,select){width:100%;max-width:100%;box-sizing:border-box;min-width:0;background:var(--ui162-input,var(--ui162-soft,#f2f5f7));color:var(--ui162-text,#1c2835);border:1px solid var(--ui162-border,#dce4ec);border-radius:12px;font:inherit;padding:11px}body .cf-form textarea{resize:vertical}body .cf-form button{justify-self:start;white-space:normal;max-width:100%}body .cf-form .cf-check{display:flex;align-items:center;gap:10px}body .cf-check input{width:18px;height:18px;flex:none}body .cf-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}body .cf-settings{margin-top:15px}body .cf-settings>summary,body .cf-music-settings>summary{cursor:pointer;color:var(--ui162-link,#315ac3);font-size:13px;font-weight:700;padding:10px 0}body .cf-settings ol{padding-left:22px;line-height:1.75;color:var(--ui162-muted,#526278)}body .cf-settings li{margin:7px 0}
body .cf-music{display:grid;grid-template-columns:64px minmax(0,1fr);gap:18px;align-items:center}body .cf-music-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:var(--cf-soft);color:var(--cf-accent);font-size:38px}body .cf-music h2{font-size:21px;margin:4px 0}body .cf-music-main>p{margin:4px 0}body .cf-music audio{display:block;width:min(100%,480px);height:42px;max-width:100%;margin-top:12px;border-radius:24px}body .cf-music-settings{grid-column:1/-1;border-top:1px solid var(--cf-line)}body:is(.theme-dark,.theme-night,.theme-emerald,.theme-aurora,.theme-love) .cf-music audio{color-scheme:dark}body .cf-audio-status{min-height:20px;font-size:11px}
body .cf-question{padding:20px 0;border-top:1px solid var(--cf-line);margin-top:18px}body .cf-question p{white-space:normal;margin:12px 0}body .cf-person{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;font-weight:700}body .cf-person img{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:none}body .cf-person a{color:var(--ui162-text,#1c2835);overflow-wrap:anywhere}body .cf-question-text{font-size:16px;font-weight:650}body .cf-answer{padding:15px 18px;background:var(--cf-soft);border-radius:14px;border-left:3px solid var(--cf-accent)}body .cf-answer>small{color:var(--cf-accent);font-weight:700}body .cf-answer p{margin:7px 0 0}body .cf-private{background:var(--cf-soft);padding:18px;border-radius:15px;margin-top:18px}body .cf-private .cf-question:first-of-type{border-top:0;margin-top:0}body .cf-symbol{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--cf-line);border-radius:50%;font-size:24px;color:var(--cf-accent)}body .cf-section-title{margin-top:28px!important}
body .cf-home-challenge-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;align-items:center}body .cf-home-challenge h3{font-size:27px;line-height:1.25;margin:12px 0}body .cf-home-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}body .cf-home-photos>a{position:relative;display:block;min-width:0;aspect-ratio:3/4;overflow:hidden;border-radius:16px;background:var(--cf-soft)}body .cf-home-photos img{width:100%;height:100%;object-fit:cover}body .cf-home-photos a span{position:absolute;left:0;right:0;bottom:0;padding:18px 8px 9px;background:linear-gradient(transparent,#000c);color:#fff;font-size:11px;overflow-wrap:anywhere}body .cf-first-photo{grid-column:1/-1;display:grid;justify-items:center;align-content:center;text-align:center;gap:10px;min-height:200px;border:1px dashed var(--cf-line);background:var(--cf-soft);border-radius:18px;padding:20px;color:var(--cf-muted)}body .cf-first-photo>span{font-size:48px;color:var(--cf-accent)}body .cf-first-photo small{font-size:12px}body .cf-deadline{color:var(--cf-accent);font-size:12px;font-weight:700}body .cf-winner-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:20px;padding-top:14px;border-top:1px solid var(--cf-line);font-size:12px}
body .cf-challenges{min-width:0;width:100%;max-width:1120px;margin:0 auto}body .cf-challenge-hero{padding:30px}body .cf-challenge-hero h1{font-size:clamp(26px,4vw,42px);margin:10px 0;line-height:1.2}body .cf-challenge-hero>p{max-width:800px}body .cf-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:16px 0}body .cf-photo-card{overflow:hidden;display:flex;flex-direction:column}body .cf-photo-open{display:block;aspect-ratio:4/3;overflow:hidden;background:var(--cf-soft)}body .cf-photo-open img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}body .cf-photo-open:hover img{transform:scale(1.025)}body .cf-photo-copy{padding:16px;display:flex;flex-direction:column;gap:12px;flex:1}body .cf-photo-copy>p{font-size:14px;line-height:1.55;margin:0}body .cf-photo-copy>.cf-actions{margin-top:auto;justify-content:space-between}body .cf-votes{font-size:12px;font-weight:700}body .cf-photo-grid>.cf-empty{grid-column:1/-1}body .cf-upload-preview{width:220px;max-width:100%;max-height:220px;object-fit:contain;border-radius:12px}body .cf-pagination{justify-content:center;margin:20px 0}body .cf-archive{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}body .cf-archive>a{display:grid;gap:5px;padding:12px;border:1px solid var(--cf-line);border-radius:12px;color:var(--cf-ink);font-size:13px}body .cf-archive>a[aria-current]{border-color:var(--cf-accent)}body .cf-archive small{color:var(--cf-muted)}body .cf-photo-dialog{max-width:min(1000px,94vw);max-height:92dvh;padding:16px}body .cf-photo-dialog::backdrop{background:#000b}body .cf-photo-dialog img{max-width:100%;max-height:68dvh;object-fit:contain;display:block;margin:auto}body .cf-photo-dialog footer{display:flex;gap:18px;align-items:center;justify-content:space-between;padding-top:12px}body .cf-photo-dialog p{margin:0;font-size:14px;overflow-wrap:anywhere}body .cf-photo-dialog button{flex:none}body :is(.cf-card,.cf-challenges) [hidden]{display:none!important}
@media(max-width:1000px){body .cf-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .cf-home-challenge-grid{grid-template-columns:minmax(0,1fr)}body .cf-home-photos>a{aspect-ratio:4/3}body .cf-archive{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body .cf-card{padding:18px;border-radius:17px}body .cf-card h2{font-size:20px}body .cf-form-grid{grid-template-columns:minmax(0,1fr);gap:15px}body .cf-form :is(input,textarea,select){font-size:16px}body .cf-music{grid-template-columns:42px minmax(0,1fr);gap:12px}body .cf-music-icon{width:42px;height:42px;border-radius:13px;font-size:27px}body .cf-music h2{font-size:18px}body .cf-home-challenge h3{font-size:24px}body .cf-home-photos{gap:7px}body .cf-photo-grid{grid-template-columns:minmax(0,1fr);gap:15px}body .cf-photo-copy{padding:15px}body .cf-person{font-size:12px}body .cf-archive{grid-template-columns:minmax(0,1fr)}body .cf-private{padding:14px}body .cf-answer{padding:12px}body .cf-challenge-hero h1{font-size:28px}body .cf-photo-dialog footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){body .cf-photo-open img{transition:none}}
/* Published Q&A uses the shared comment rows without changing its private inbox. */
body .cf-questions .cf-published-question{padding:0;margin-top:12px;border-top:1px solid var(--cf-line)}
body .cf-questions .cf-published-question .cf-answer.site-comment-row{background:transparent;border-left:0;border-radius:0}
body .cf-questions .cf-published-question .cf-question-text.site-comment-body{font-size:14px;font-weight:500}
body[data-page] .cf-questions [data-site-discussion] .site-comment-menu-panel .cf-question-menu-action{display:flex!important;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:44px!important;margin:0;padding:8px 10px!important;border:0!important;border-radius:9px;background:transparent!important;color:var(--cf-ink)!important;box-shadow:none!important;text-align:left;font:inherit;font-size:13px;line-height:1.4;white-space:normal}
body[data-page] .cf-questions [data-site-discussion] .site-comment-menu-panel .cf-question-menu-action:hover{background:var(--cf-surface)!important}
