/* Presentation only. The existing routes, media URLs and API payloads remain authoritative. */
html.chipter59 { --cc59-focus:var(--chipter-accent,#00cbb4); }
html.chipter59 :is(button,a,input,textarea,select,[contenteditable]):focus-visible { outline:2px solid var(--cc59-focus);outline-offset:3px; }
html.chipter59 :is(.profile-identity,.profile-main-info,.profile-info-block,.ch51-card-description,.cc56-listing-copy) { min-width:0;overflow-wrap:anywhere; }
html.chipter59 .profile-identity h1 { line-height:1.25;word-break:normal; }
html.chipter59 .profile-actions { display:flex;flex-wrap:wrap;gap:8px; }
html.chipter59 .profile-actions button { min-height:44px;min-width:0;margin:0; }
html.chipter59 .profile-actions-block.cpp-owner-actions { display:flex!important;flex-wrap:wrap;gap:8px!important;align-items:center; }
html.chipter59 .profile-actions-block.cpp-owner-actions>.button { margin:0!important;min-height:44px;flex:1 1 160px!important;white-space:normal;line-height:1.35; }
html.chipter59 :is(.cc42-card,.ch51-post,.post-item) :is(.cc42-author,.item-info,.ch51-post-author) { min-width:0; }
html.chipter59 .cc45-post-header { display:flex!important;align-items:center!important;gap:10px!important; }
html.chipter59 .cc45-post-header>.item-info { flex:1 1 0%;min-width:0; }
html.chipter59 .cc45-post-header .item-date { display:block;float:none;line-height:1.4;white-space:normal; }
html.chipter59 #dialog[open] { display:flex;flex-direction:column;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;box-sizing:border-box;overflow:hidden!important; }
html.chipter59 #dialog>header { flex:0 0 auto;gap:12px;min-width:0; }
html.chipter59 #dialog #dialog-form { display:flex!important;flex-direction:column;min-height:0;max-height:calc(100dvh - 28px);overflow:hidden;margin:0; }
html.chipter59 #dialog #dialog-form>header { flex:0 0 auto;gap:12px;min-width:0; }
html.chipter59 #dialog #dialog-form>header h2 { min-width:0;overflow-wrap:anywhere;font-size:clamp(18px,2vw,24px);line-height:1.3; }
html.chipter59 #dialog #dialog-form>footer { flex:0 0 auto;display:flex;flex-wrap:wrap;gap:8px;padding-bottom:max(16px,env(safe-area-inset-bottom)); }
html.chipter59 #dialog #dialog-form>footer button { min-height:44px;margin:0; }
html.chipter59 #dialog>header h2 { min-width:0;overflow-wrap:anywhere;font-size:clamp(18px,2vw,24px);line-height:1.3; }
html.chipter59 #dialog-body { flex:1 1 auto;min-height:0;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable; }
html.chipter59 #dialog>footer { flex:0 0 auto;display:flex;flex-wrap:wrap;gap:8px;padding-bottom:max(16px,env(safe-area-inset-bottom)); }
html.chipter59 #dialog>footer button { min-height:44px;margin:0; }
html.chipter59 #dialog-close { flex:0 0 44px;width:44px;height:44px;min-height:44px;display:grid;place-items:center;border-radius:12px;line-height:1; }
html.chipter59 dialog.cc42-emoji-picker[open] { display:flex;flex-direction:column;width:min(430px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:hidden;padding:16px;box-sizing:border-box; }
html.chipter59 .cc42-emoji-grid { flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;grid-template-columns:repeat(auto-fit,minmax(38px,1fr));gap:3px; }
html.chipter59 .cc42-emoji-choice { min-width:0;width:100%;min-height:42px;padding:3px;font-family:'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif; }
html.chipter59 .cc42-emoji-tones { display:flex;flex-wrap:wrap;gap:4px;min-width:0; }
html.chipter59 .cc42-emoji-tones button { min-width:38px;min-height:42px; }
html.chipter59 .cc42-emoji-picker.cc45-emoji-side { inset:12px 12px 12px auto!important;width:min(430px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important; }
html.chipter59 .cc45-emoji-side header button { width:40px!important;height:40px!important;min-height:40px!important; }
html.chipter59 .cc45-emoji-side .cc42-emoji-grid { grid-template-columns:repeat(auto-fit,minmax(38px,1fr))!important; }
html.chipter59 .cc45-emoji-side .cc42-emoji-choice { height:42px!important;min-height:42px!important; }
html.chipter59 .cc45-emoji-side .cc42-emoji-tones select { min-height:40px!important;height:40px!important;width:100%!important;font-family:'Segoe UI Emoji','Apple Color Emoji',system-ui!important; }
html.chipter59 :is(.cc42-emoji-picker,.cc45-emoji-quick) button:focus-visible { outline-offset:-3px; }
html.chipter59 .cc56-market :is(.cc56-market-hero,.cc56-listing-copy) { overflow-wrap:anywhere; }
html.chipter59 .cc56-market .cc56-listing-copy h2 { margin-block:8px;line-height:1.4; }
html.chipter59 .ch51-directory .ch51-card footer { display:flex;flex-wrap:wrap;gap:8px; }
@media(max-width:480px) {
 html.chipter59 #dialog { margin:auto!important; }
 html.chipter59 #dialog-body { padding:16px!important; }
 html.chipter59 .profile-actions-block.cpp-owner-actions>.button { flex-basis:130px!important; }
 html.chipter59 .chipter-shell-rail .chipter-shell-nav-link { min-width:0;padding-inline:2px!important; }
 html.chipter59 .chipter-shell-rail .chipter-shell-nav-link>span:last-child { max-width:100%;font-size:10px;line-height:1.25;text-align:center;white-space:normal;overflow-wrap:normal; }
}
@media(max-height:500px) and (orientation:landscape) {
 html.chipter59 #dialog { margin:8px auto!important;max-height:calc(100dvh - 16px)!important; }
 html.chipter59 #dialog>header,html.chipter59 #dialog>footer { padding-block:8px!important; }
 html.chipter59 #dialog #dialog-form>header,html.chipter59 #dialog #dialog-form>footer { padding-block:8px!important; }
 html.chipter59 .cc42-emoji-picker { margin:8px auto!important;max-height:calc(100dvh - 16px)!important; }
}
