/* Mobile reading space and touch controls, shared by the additive frontend. */
.cream-body .hero h1{font-family:inherit;font-weight:650;font-synthesis:none;letter-spacing:0}
.ct-mobile-search{display:none}
.ux-contact-toggle{display:none}
/* User supplied titles, filenames and URLs must wrap inside their own panel. */
.cream-body :is(.detail-intro,.detail-grid>*,.forum-topic-copy,.forum-post-content,.ux-community-copy,.member-panel){min-width:0}
.cream-body :is(.rich-prose,.forum-topic-body,.forum-post-body,.ct-bubble){overflow-wrap:anywhere}
.cream-body :is(.rich-prose,.forum-topic-body) :is(img,video){max-width:100%;height:auto}
@media(max-width:760px){
  .cream-body .detail-actions{display:flex;flex-wrap:wrap;align-items:stretch}
  .cream-body .detail-actions>*{flex:1 1 130px;min-width:0;white-space:normal;text-align:center}
  .cream-body :is(.rich-prose,.forum-topic-body) table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
  .cream-body .ct-message-meta{flex-wrap:wrap;overflow-wrap:anywhere;row-gap:4px}
  .cream-body .ct-message-meta>button{max-width:100%;white-space:normal;text-align:left}
  .cream-body{padding-bottom:calc(62px + env(safe-area-inset-bottom));font-size:16px}
  .cream-body .cream-header{height:56px;min-height:56px;display:flex;gap:6px;padding:6px 12px;grid-template-rows:none;isolation:isolate}
  .cream-body .cream-header .brand{font-size:17px;gap:6px;min-width:0;flex:1;overflow:hidden;white-space:nowrap}
  .cream-body .brand-copy{min-width:0;overflow:hidden;text-overflow:ellipsis}
  .cream-body .brand-mark{width:32px;height:36px;flex:0 0 32px}
  .cream-body .cream-main-nav{display:none}
  .cream-body .cream-header .account-nav{display:flex;gap:0;margin:0;flex:none}
  .cream-body .cream-header .account-nav>*{display:none}
  .cream-body .cream-header .account-nav>a[href*="page=messages"]{display:grid;place-items:center;width:44px;height:44px;padding:0;font-size:0}
  .cream-body .cream-header .account-nav>a[href*="page=messages"] svg{width:20px;height:20px}
  .cream-body .ct-theme-toggle,.cream-body .ct-mobile-search{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;flex:none;border:0;border-radius:8px;background:transparent;color:var(--ink);display:grid;place-items:center}
  .ct-mobile-search svg{width:20px;height:20px}
  .cream-body .cream-header .global-search{display:none;position:absolute;top:56px;left:12px;right:12px;width:auto;max-width:none;margin:0;min-height:48px;z-index:3;background:var(--paper);border:1px solid var(--line);box-shadow:0 6px 16px #24324b14}
  .cream-body .cream-header.ct-search-open .global-search{display:flex}
  .cream-body .global-search input{font-size:16px;min-height:44px}
  .cream-body.ct-dl-page .ct-mobile-search{display:none}
  .cream-body .cream-preview-strip{display:none}
  .cream-body .site-main,.cream-body.cloudtail-discovery .site-main{width:calc(100% - 24px);max-width:none;padding:12px 0 20px;margin:0 auto}
  .cream-body .mobile-dock{min-height:58px;padding:3px 6px calc(3px + env(safe-area-inset-bottom));z-index:35;background:var(--paper)}
  .cream-body .mobile-dock a{min-height:48px;gap:2px;font-size:11px}
  .cream-body .daily-brief-trigger{display:none}
  .cream-body .site-footer{width:calc(100% - 24px);padding:20px 0;margin:0 auto;gap:10px}
  .cream-body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select){font-size:16px}
  .cream-body :is(.btn,.ux-button,.catalog-pagination a,.ct-dl-pagination a,.genre-options a,.cloudtail-filters>summary,.ux-attachments>summary){min-height:44px}
  .cream-body .cloudtail-masthead.hero,.cream-body .hero.catalog-compact{height:auto;min-height:0;padding:8px 0 12px;margin:0;background:none;grid-template-columns:minmax(0,1fr)}
  .cream-body.cloudtail-discovery .cloudtail-masthead h1,.cream-body .hero.catalog-compact h1{font-size:20px;line-height:1.5;letter-spacing:0;max-width:none;width:auto}
  .cream-body .cloudtail-masthead h1 br{display:none}
  .cream-body.cloudtail-discovery .cloudtail-masthead .hero-copy{width:100%;max-width:none;flex-basis:auto}
  .cream-body .cloudtail-masthead .hero-stage,.cream-body .hero.catalog-compact .hero-stage{display:none}
  .cream-body .cream-channels{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;scrollbar-width:none;padding:0 0 6px;margin:0 0 12px;overscroll-behavior-x:contain}
  .cream-body .cream-channels a{flex:none;white-space:nowrap;min-height:44px;padding:8px 10px;font-size:13px}
  .cream-body .cream-channels svg{width:18px;height:18px}
  .cloudtail-spotlight{gap:18px;margin-bottom:18px}
  .cream-body .cloudtail-hot{padding:12px 12px 0}
  .cloudtail-hot-head{margin-bottom:4px}.cloudtail-periods{margin:0 0 8px;gap:12px}
  .cloudtail-periods button{min-height:44px;font-size:13px;padding:8px 5px}
  .hot-feature-cover{height:90px}.hot-feature-copy{padding:7px}.hot-feature-copy strong{font-size:13px}
  .hot-runner-list a{padding:4px 0;min-height:40px}.hot-runner-title{font-size:12px}
  .cloudtail-hot-foot{padding:6px 0;margin-top:6px;min-height:32px}
  .cloudtail-fresh>header{margin:0 0 10px;gap:8px}.cloudtail-fresh>header>a{min-height:44px;align-items:center}
  .cream-body .cloudtail-fresh .spotlight-random{display:flex;min-height:44px;padding:8px;font-size:12px}
  .cream-body .catalog-grid,.cream-body .cloudtail-fresh-grid{gap:18px 10px}
  .cream-body .resource-card h3,.cream-body .cloudtail-fresh-grid .resource-card h3{font-size:14px;line-height:1.55}
  .cream-body .resource-card .card-body{padding:7px 1px 0}
  .cream-body .library-head{margin:12px 0 10px;gap:8px}.cream-body .library-head h2{font-size:21px}
  .cream-body .library-head p{font-size:12px;line-height:1.6;margin-top:4px}
  .cream-body .catalog-toolbar{gap:6px;margin:8px 0;min-height:0}
  .cream-body .catalog-sort{gap:4px;flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:none}
  .cream-body .catalog-sort a{min-height:44px;display:inline-flex;align-items:center;white-space:nowrap;flex:none;padding:7px 10px;font-size:13px}
  .cream-body .catalog-summary{font-size:12px}
  .cream-body .ux-community-strip{padding:12px 12px 4px;margin:18px 0}
  .cream-body .ux-community-strip-head{margin:0;gap:5px}
  .cream-body .ux-community-switch button{min-height:44px;font-size:13px;padding:8px 10px}
  .cream-body .ux-community-more{min-height:44px;display:flex;align-items:center;font-size:12px}
  .cream-body .ux-community-item{padding:9px 0;min-height:62px}
  .cream-body .ux-community-item strong{font-size:14px;line-height:1.6}
  .cream-body .ux-community-meta{gap:2px 8px;font-size:12px;margin-top:3px}
  .cream-body .ux-community-meta .ux-community-source{flex:1 1 45%}
  .cream-body .ux-community-meta .ux-community-author{max-width:48%;flex:0 1 auto}
  .cream-body .ux-community-meta time{font-size:11px}
  .cream-body.ux-messages-page .message-hero,.cream-body.ux-forum-page .forum-hero{padding:0 0 12px;gap:10px}
  .cream-body :is(.message-hero,.forum-hero) h1{font-size:23px}
  .cream-body :is(.message-hero,.forum-hero)>div>p{display:none}
  .cream-body .ux-inbox{gap:10px}.cream-body .ux-inbox-nav{padding:0;gap:4px;border-radius:0;scrollbar-width:none;position:static}
  .cream-body .ux-inbox-tab{min-height:44px;padding:9px 12px;font-size:13px}
  .cream-body .ux-message-head{padding:12px 14px}.cream-body .ux-message-panel{min-height:240px}
  .cream-body .ux-message-panel>.notification-list,.cream-body .ux-message-panel>.announcement-message-list{padding:0 14px}
  .cream-body .ux-message-panel .notification-list>a{padding:14px 0;gap:10px}
  .cream-body .ux-conversation-body{height:clamp(200px,42dvh,400px);padding:12px}
  .cream-body .ux-private-panel>.ux-message-head{display:none}
  .cream-body .ux-private-panel .ux-conversations{display:block;min-height:0}
  .cream-body .ux-contact-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;padding:10px 14px;border:0;border-bottom:1px solid var(--line);background:var(--paper);color:var(--muted);font-size:13px}
  .ux-contact-toggle strong{font-size:15px;color:var(--ink);font-weight:600}
  .cream-body .ux-private-panel .ux-contacts{display:none;padding:10px 12px}
  .cream-body .ux-private-panel .ux-conversation-head{display:none}
  .cream-body .ux-private-panel .ux-conversation-body{height:clamp(180px,30dvh,260px)}
  .cream-body .ux-conversations.is-choosing-contact .ux-contacts{display:block}
  .cream-body .ux-conversations.is-choosing-contact .ux-conversation{display:none}
  .cream-body .ux-private-panel .ux-contact-list{display:block;max-height:55dvh;overflow:auto}
  .cream-body .ux-private-panel .ux-contact{width:100%;min-height:62px}
  .cream-body .ux-message-composer{padding:12px}.cream-body .ux-compose-content textarea{font-size:16px}
  .cream-body .ux-forum-rail{padding:0;margin-bottom:10px}.cream-body .ux-forum-rail>h2{display:none}
  .cream-body.ux-forum-page .forum-sections{gap:6px;scrollbar-width:none}
  .cream-body.ux-forum-page .forum-sections{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap}
  .cream-body.ux-forum-page .forum-sections>a{flex:none}
  .cream-body.ux-forum-page .forum-sections>a{min-height:44px;padding:8px 11px}
  .cream-body.ux-forum-page .forum-topic-stream>header{padding:12px 14px;gap:8px}
  .cream-body.ux-forum-page .forum-topic-list>a{padding:15px 14px;gap:10px}
  .cream-body.ux-forum-page .forum-topic-copy strong{font-size:16px}
  .cream-body .ux-detail-breadcrumb,.cream-body .forum-breadcrumb{margin:0 0 10px;min-height:32px}
  .cream-body.ux-resource-page .ux-resource-hero.detail{gap:14px;padding:0}
  .cream-body.ux-resource-page .ux-cover-art.detail-cover{height:180px}
  .cream-body .ux-cover-glass{padding:6px}
  .cream-body.ux-resource-page .detail-intro h1{font-size:21px;line-height:1.55;margin-bottom:10px}
  .cream-body .detail-actions{gap:8px}.cream-body .detail-actions>*{min-height:44px}
  .cream-body .ux-resource-sections{margin-top:16px;gap:8px;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
  .cream-body .ux-resource-sections a{min-height:44px;display:inline-flex;align-items:center}
  .cream-body.ux-resource-page :is(.content-panel,.download-panel,.comments){padding:16px 14px}
  .cream-body.ux-resource-page .rich-prose,.cream-body.ux-topic-page .forum-topic-body{font-size:16px;line-height:1.8}
  .cream-body.ux-topic-page :is(.forum-topic-detail,.forum-reply-panel){padding:16px 14px}
  .cream-body .forum-topic-detail h1{font-size:22px}.cream-body .forum-post-list>article{padding:14px 0}
  .cream-body .ct-dl{padding:0 0 18px}.cream-body .ct-dl-heading{margin-bottom:12px;gap:8px}
  .cream-body .ct-dl-heading h1{font-size:23px}.cream-body .ct-dl-heading p{display:none}
  .cream-body .ct-dl-chat-link{min-height:44px;font-size:13px}
  .cream-body .ct-dl-search{margin-bottom:10px;min-height:48px}
  .cream-body .ct-dl-filters nav{gap:16px;scrollbar-width:none}
  .cream-body .ct-dl-filters button{min-height:44px;padding:8px 2px;font-size:14px}
  .cream-body .ct-dl-available{padding:7px 0;min-height:40px;font-size:13px}
  .cream-body .ct-dl-list-note{margin:6px 0 10px;font-size:12px}.cream-body .ct-dl-list-note button{min-height:44px}
  .cream-body .ct-dl-grid{gap:18px 10px}.cream-body .ct-dl-card h2{font-size:15px;line-height:1.5}
  .cream-body .ct-dl-card p,.cream-body .ct-dl-card footer{font-size:12px}
  .cream-body .ct-dl-back{min-height:40px;margin:0 0 8px}.cream-body .ct-dl-work{gap:14px}
  .cream-body .ct-dl-work-cover{max-height:180px;width:100%}.cream-body .ct-dl-work h1{font-size:21px}
  .cream-body .ct-dl-actions>*{min-height:44px}.cream-body .ct-dl-editions a{min-height:44px;display:flex;align-items:center}
  .cream-body .ct-dl-sections{margin-top:20px;gap:22px}.cream-body .ct-dl-description{font-size:16px}
  .cream-body :is(.member-dashboard-hero,.public-profile-hero,.auth-card,.member-panel,.tutorial){padding:16px 14px}
  .cream-body .auth-visual{min-height:88px;height:auto;padding:12px 12px 12px 64px;gap:10px;margin-bottom:14px}
  .cream-body .auth-visual>img{height:78px;width:52px;object-fit:contain}
  .cream-body .auth-visual h2{font-size:18px}.cream-body .auth-visual p{font-size:13px;line-height:1.6}
  .cream-body .member-dashboard-hero>img{height:100px;max-width:24%}
  .cream-body .member-stat{padding:12px}.cream-body .member-stat strong{font-size:22px}
  .cream-body .member-stat span{font-size:12px}.cream-body .member-resource-list a{min-height:48px}
  .cream-body .tutorial-hero{padding:16px 14px;min-height:0}.cream-body .tutorial-hero h1{font-size:23px}
  .cream-body .tutorial-hero>img{max-height:120px}.cream-body .tutorial-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
  .cream-body .tutorial-tabs>*{min-height:44px;white-space:nowrap}
  .cream-body .ct-search-open:focus-within{z-index:36}
}
