/* App remains the base layout. Desktop is opt-in through a single root state. */
.desk-only,.desk-nav-label,.display-switch,.dm-desktop-list,.dm-desktop-welcome{display:none}
html[data-display=app] .shell>.bottom-nav>.desk-only{display:none!important}
.bottom-nav .create>svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6}
.desktop-recent-wrap{min-width:0;position:relative}
.desktop-topic-heading{padding:20px 16px;border-bottom:1px solid #24363e}
.desktop-topic-heading h1{font-size:23px;margin:20px 0 6px}
.desktop-topic-heading p{color:#8fa6b4;font-size:12px}
@media(min-width:1024px){
 body:has(#app>.shell) .display-switch{position:fixed;left:14px;bottom:78px;z-index:30;display:flex;gap:3px;padding:4px;background:#101a22;border:1px solid #2a3c48;border-radius:12px;box-shadow:0 6px 24px #0004}
 .display-switch button{display:flex;align-items:center;gap:7px;border:0;border-radius:8px;background:transparent;color:#9caebc;padding:7px 11px;font:600 12px 'Segoe UI',sans-serif;cursor:pointer}
 .display-switch button svg{width:17px;height:17px}
 .display-switch button[aria-pressed=true]{color:#f0f8fb;background:linear-gradient(110deg,#27313f,#153639);box-shadow:inset 0 -2px #60d8d0}
 .display-switch button:hover{color:white}
 html[data-display=app] .shell{max-width:430px}
 html[data-display=app] .shell>.bottom-nav{width:430px;max-width:100%}
 html[data-display=app] .feed-focus{width:430px;max-width:100%;left:50%;right:auto;transform:translateX(-50%)}
 body:has(.cutting-desk-open) .display-switch,body.feed-focus-open .display-switch{display:none}
 html[data-display=desktop]{--desktop-rail:216px;--desktop-header:76px;scroll-padding-top:88px}
 html[data-display=desktop] body{background:#080d12}
 html[data-display=desktop] .shell{max-width:1600px;margin-left:var(--desktop-rail);margin-right:auto;width:calc(100% - var(--desktop-rail));border:0;min-height:100dvh}
 html[data-display=desktop] .desk-only{display:block}
 html[data-display=desktop] .desk-nav-label{display:inline;white-space:nowrap;font-size:14px;font-weight:500;letter-spacing:.1px}
 html[data-display=desktop] .shell>.bottom-nav{position:fixed;inset:0 auto 0 0;width:var(--desktop-rail);height:100dvh;transform:none;display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:7px;padding:19px 14px 18px;background:#0b1219;border:0;border-right:1px solid #20303a;z-index:25;overflow-y:auto}
 html[data-display=desktop] .shell>.bottom-nav>button{flex:none;position:relative;display:flex;align-items:center;justify-content:flex-start;gap:15px;width:100%;height:48px;min-height:48px;padding:10px 17px;border:1px solid transparent;border-radius:10px;color:#b8c7d1;background:transparent;transform:none;transition:background .15s,color .15s}
 html[data-display=desktop] .shell>.bottom-nav>button:hover{background:#15212c;color:#f4f9fb}
 html[data-display=desktop] .shell>.bottom-nav>button.active{background:linear-gradient(105deg,#252636,#133136);color:#efffff;border-color:#30434d}
 html[data-display=desktop] .shell>.bottom-nav>button.active:before{content:'';position:absolute;left:-1px;top:13px;bottom:13px;width:3px;border-radius:3px;background:linear-gradient(#b89ade,#55dad0)}
 html[data-display=desktop] .shell>.bottom-nav .desk-brand{order:-10;height:70px;padding:0 16px;margin-bottom:14px;border:0;background:transparent}
 html[data-display=desktop] .desk-brand img{width:128px;height:auto}
 html[data-display=desktop] .bottom-nav [data-page=feed]{order:0}
 html[data-display=desktop] .shell>.bottom-nav [data-page=feed]{display:none!important}
 html[data-display=desktop] .bottom-nav .desk-feed-mode{order:0}
 html[data-display=desktop] .review-video-expand{display:none!important}
 html[data-display=desktop] .post-title,html[data-display=desktop] .focus-media-trigger{cursor:default}
 html[data-display=desktop] .bottom-nav [data-page=search]{order:1}
 html[data-display=desktop] .bottom-nav [data-page=messages]{order:2}
 html[data-display=desktop] .bottom-nav .desk-notifications{order:3}
 html[data-display=desktop] .bottom-nav .desk-saved{order:4}
 html[data-display=desktop] .bottom-nav [data-page=profile]{order:5}
 html[data-display=desktop] .shell>.bottom-nav [data-page=create]{order:6;margin-top:16px;border-color:#46616d;background:linear-gradient(110deg,#202334,#113438);color:#efffff;font-size:14px}
 html[data-display=desktop] .bottom-nav>.display-switch{position:static!important;order:8;margin-top:auto!important;flex-shrink:0;justify-content:center;box-shadow:none}
 html[data-display=desktop] .bottom-nav .desk-settings{order:9;margin-top:0}
 html[data-display=desktop] .bottom-nav>.critix-volume.is-inline{order:7;position:relative;margin:10px 12px 20px;z-index:auto;flex-shrink:0}
 html[data-display=desktop] .critix-volume.is-inline>.critix-sound-toggle{position:absolute;top:0;left:-4px;width:28px;height:26px;padding:4px;z-index:1}
 html[data-display=desktop] .critix-volume.is-inline>.critix-volume-panel{position:static;width:100%;padding:0;background:none;border:0;border-radius:0;box-shadow:none;font:12px/1.6 'Segoe UI',sans-serif}
 html[data-display=desktop] .critix-volume.is-inline .critix-volume-panel label>span{padding-left:30px;gap:4px;align-items:center;min-height:26px;font-size:11px;color:#b9cad4}
 html[data-display=desktop] .critix-volume.is-inline .critix-volume-panel output{font-size:10px;font-weight:600}
 html[data-display=desktop] .critix-volume.is-inline .critix-volume-panel input{appearance:none;height:4px;min-height:0;padding:0;margin:14px 0 10px;border:0;border-radius:4px;background:linear-gradient(90deg,#aa90ce,#53c8c4);outline-offset:6px}
 html[data-display=desktop] .critix-volume.is-inline input::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:#bde7e2;border:2px solid #1a373b;box-shadow:0 0 0 1px #72c8bf}
 html[data-display=desktop] .critix-volume.is-inline input::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#bde7e2;border:2px solid #1a373b}
 html[data-display=desktop] .critix-volume.is-inline:has(.is-muted) input{background:#43505c}
 html[data-display=desktop] .critix-volume.is-inline:has(.is-muted) output{color:#8a9ba7}
 html[data-display=desktop] .critix-volume.is-inline .critix-volume-panel small,html[data-display=desktop] .critix-volume.is-inline .critix-volume-panel:after{display:none}
 html[data-display=desktop] .shell>.bottom-nav .avatar{width:24px;height:30px;object-fit:cover;flex:none}
 html[data-display=desktop] .bottom-nav .notification-badge{position:absolute;top:8px;left:33px;right:auto;min-width:15px;height:15px;font-size:10px;line-height:15px}
 html[data-display=desktop] .shell>.app-header{height:var(--desktop-header);display:flex!important;align-items:center;justify-content:flex-start;gap:18px;position:sticky;top:0;padding:12px 250px 12px 32px;background:#080d12f2;border-bottom:1px solid #1b2a34;backdrop-filter:blur(18px);z-index:20}
 html[data-display=desktop] .shell>.app-header>:not(.desk-page-title):not(.critix-volume){display:none}
 html[data-display=desktop] .desk-page-title{display:flex;flex-direction:column;gap:4px;min-width:0}
 html[data-display=desktop] .desk-page-title>span{font-size:9px;letter-spacing:2.5px;color:#78c9c9}
 html[data-display=desktop] .desk-page-title strong{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html[data-display=desktop] .shell[data-view=feed]>.app-header .desk-page-title{display:none}
 html[data-display=desktop] .shell[data-view=feed]>.app-header{display:none!important}
 html[data-display=desktop] .shell>.app-header .critix-volume{margin-left:auto;flex:none}
 html[data-display=desktop] .shell>.page{padding-bottom:32px;min-width:0}
 /* Desktop shows the complete review without changing the compact App state. */
 html[data-display=desktop] .post .post-copy{display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;max-height:none!important;overflow:visible!important}
 html[data-display=desktop] .post[data-kind=review] .post-points,
 html[data-display=desktop] .post[data-kind=review] .post-points[hidden],
 html[data-display=desktop] .feed-focus-pane[data-kind=review] .post-points{display:block!important}
 html[data-display=desktop] .post[data-kind=review] .post-points .critique-point{display:block!important}
 html[data-display=desktop] .post .read-more,
 html[data-display=desktop] .post .focus-review-expand{display:none!important}
 html[data-display=desktop] .desktop-feed{display:grid;grid-template-columns:minmax(0,680px);justify-content:center;gap:0 32px;padding:18px 28px 40px!important;align-items:start}
 html[data-display=desktop] .desktop-feed>#stream{grid-column:1;min-width:0}
 html[data-display=desktop] .desktop-feed>#stream{position:relative}
 html[data-display=desktop] .desktop-feed>#stream:before,html[data-display=desktop] .desktop-feed>#stream:after{content:'';position:absolute;top:0;bottom:0;width:1px;pointer-events:none;background:linear-gradient(180deg,#b591c500,#b591c54d 120px,#62bfd24d 360px,#54b9a633 720px,#30414b88 1100px);z-index:1}
 html[data-display=desktop] .desktop-feed>#stream:before{left:-1px}
 html[data-display=desktop] .desktop-feed>#stream:after{right:-1px}
 html[data-display=desktop] .desktop-feed>.desktop-recent-wrap{grid-column:1;min-width:0;margin-bottom:10px;border-radius:14px}
 html[data-display=desktop] .desktop-stars-arrow{position:absolute;top:49px;width:28px;height:28px;padding:5px;display:grid;place-items:center;border:1px solid #354f5d;border-radius:50%;background:#11202fee;color:#d8edf0;box-shadow:0 2px 10px #0008;z-index:2;cursor:pointer}
 html[data-display=desktop] .desktop-stars-arrow.previous{left:-10px}
 html[data-display=desktop] .desktop-stars-arrow.next{right:-10px}
 html[data-display=desktop] .desktop-stars-arrow svg{width:17px;height:17px}
 html[data-display=desktop] #stream>.post{position:relative;margin:0;border:0;border-bottom:1px solid #26333c;border-radius:0;overflow:visible;padding-bottom:18px}
 html[data-display=desktop] #stream>.post:after{content:'';position:absolute;left:0;right:0;bottom:-2px;height:1px;background:linear-gradient(90deg,transparent 4%,#d9947955 23%,#ad88c577 43%,#57c9d088 60%,#36bba655 78%,transparent 96%);pointer-events:none}
 html[data-display=desktop] .desktop-discover{display:none}
 html[data-display=desktop] .desktop-self{display:flex;gap:12px;align-items:center;text-align:left;width:100%;padding:6px 0 23px;border:0;border-bottom:1px solid #22323d;background:transparent;color:#eaf4f8}
 html[data-display=desktop] .desktop-self .avatar{width:40px;height:52px;border-radius:10px;object-fit:cover;flex:none}
 html[data-display=desktop] .desktop-self>span:nth-child(2){display:grid;gap:4px;min-width:0;flex:1}
 html[data-display=desktop] .desktop-self strong{font-size:14px;overflow:hidden;text-overflow:ellipsis}
 html[data-display=desktop] .desktop-self small{color:#8fa6b5;font-size:12px}
 html[data-display=desktop] .desktop-self>span:last-child{color:#7ad2d1}
 html[data-display=desktop] .desktop-topics{padding:24px 0}
 html[data-display=desktop] .desktop-topics>small{font-size:9px;letter-spacing:1.2px;color:#7d96a7}
 html[data-display=desktop] .desktop-topics h2{font-size:17px;margin:7px 0 14px;font-weight:650}
 html[data-display=desktop] .desktop-topics button{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;border-radius:8px;padding:11px 2px;text-align:left;color:#c8d6df;font:500 12px 'Segoe UI',sans-serif}
 html[data-display=desktop] .desktop-topics button:hover{background:#121e27}
 html[data-display=desktop] .desktop-topics svg{width:20px;height:20px;flex:none}
 html[data-display=desktop] .desktop-topics i{margin-left:auto;font-style:normal;color:#66808f}
 html[data-display=desktop] .desktop-create-card{padding:21px;border:1px solid #344251;border-radius:16px;background:radial-gradient(ellipse at top right,#183a3c70,transparent 70%),linear-gradient(145deg,#1e1d2c,#0c161d)}
 html[data-display=desktop] .desktop-create-card>img{width:36px;height:36px;object-fit:contain}
 html[data-display=desktop] .desktop-create-card h2{font-size:20px;line-height:1.3;font-weight:650;margin:14px 0 9px}
 html[data-display=desktop] .desktop-create-card p{font-size:12px;color:#9ab0be;line-height:1.65;margin:0 0 18px}
 html[data-display=desktop] .desktop-create-card button{display:flex;justify-content:space-between;width:100%;padding:12px;border:1px solid #46706f;border-radius:9px;background:#173137;color:#dcf6f2;font-size:12px;font-weight:600}
 html[data-display=desktop] .desktop-signature{font-size:10px;color:#718695;line-height:1.8;margin-top:22px}
 html[data-display=desktop] .desktop-signature span{padding:0 5px;color:#9b8abe}
 html[data-display=desktop] .shell[data-view=profile]>.page{max-width:960px;margin:24px auto;padding-inline:24px}
 html[data-display=desktop] .profile-top{padding:22px}
 html[data-display=desktop] .profile-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 html[data-display=desktop] .shell[data-view=search]>.page{max-width:920px;margin:20px auto;padding-inline:24px}
 html[data-display=desktop] .shell[data-view=search-post]>.page{max-width:740px;margin:24px auto;padding-inline:24px}
 html[data-display=desktop] .shell[data-view=saved]>.page,html[data-display=desktop] .desktop-topic-page{max-width:740px;margin:24px auto;padding-inline:24px}
 html[data-display=desktop] .shell[data-view=create]>.page{max-width:1020px;margin:auto;padding:18px 24px 0}
 html[data-display=desktop] .editor{height:calc(100dvh - 96px);border:1px solid #263640;border-radius:14px}
 html[data-display=desktop] .shell.cutting-desk-open{position:fixed;inset:0;margin:0;width:100%;max-width:none;z-index:60}
 html[data-display=desktop] .shell.cutting-desk-open>.app-header,html[data-display=desktop] .shell.cutting-desk-open>.bottom-nav{display:none!important}
 html[data-display=desktop] .shell.cutting-desk-open>.page{max-width:none;height:100%;margin:0;padding:0}
 html[data-display=desktop] .shell.cutting-desk-open .editor{border:0;border-radius:0}
 html[data-display=desktop] .feed-focus{left:var(--desktop-rail)}
 html[data-display=desktop] .feed-focus-pane>.post{max-width:800px}
 html[data-display=desktop] .dm-chat-open .shell{height:auto;overflow:visible}
 html[data-display=desktop] .shell[data-view=messages]>.page{display:grid;grid-template-columns:300px minmax(0,1fr);max-width:1250px;margin:auto;padding:0!important;height:calc(100dvh - var(--desktop-header));min-height:0}
 html[data-display=desktop] .dm-inbox{padding:24px 16px;overflow-y:auto;border-right:1px solid #273842;min-width:0}
 html[data-display=desktop] .dm-heading{flex-wrap:wrap}
 html[data-display=desktop] .dm-heading h1{font-size:22px}
 html[data-display=desktop] .dm-desktop-welcome{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:40px;background:radial-gradient(ellipse at 50% 42%,#14273188,transparent 65%)}
 html[data-display=desktop] .dm-desktop-welcome img{width:72px;height:72px;object-fit:contain;opacity:.85}
 html[data-display=desktop] .dm-desktop-welcome h2{font-size:25px;font-weight:600;margin:24px 0 10px}
 html[data-display=desktop] .dm-desktop-welcome p{max-width:300px;color:#8fa7b6;line-height:1.7;font-size:14px}
 html[data-display=desktop] .dm-desktop-list{display:block;grid-column:1;grid-row:1;overflow-y:auto;min-width:0;padding:24px 12px;border-right:1px solid #273842}
 html[data-display=desktop] .dm-desktop-list h2{margin:0 8px 18px;font-size:22px}
 html[data-display=desktop] .dm-desktop-list>.dm-all-conversations{width:100%;margin-bottom:16px;padding:11px;border:1px solid #334a58;border-radius:9px;background:#13212b;color:#bdceda;text-align:left}
 html[data-display=desktop] .dm-desktop-list .dm-person{width:100%;border-radius:10px;padding:12px 8px}
 html[data-display=desktop] .dm-desktop-list .dm-person.active{background:#1b303a}
 html[data-display=desktop] .dm-desktop-list .dm-person-copy{min-width:0}
 html[data-display=desktop] .dm-desktop-list .dm-person-copy small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 html[data-display=desktop] .dm-conversation{grid-column:2;grid-row:1;height:calc(100dvh - var(--desktop-header))!important;max-height:none;min-width:0}
 html[data-display=desktop] .dm-history{padding:24px}
 html[data-display=desktop] .dm-composer{padding:14px 22px 20px}
 html[data-display=desktop] .dm-thread-heading{min-height:83px;padding:12px 22px}
 html[data-display=desktop] .dm-thread-heading>[data-back]{display:none}
 @media(min-width:1280px){html[data-display=desktop] .desktop-feed{grid-template-columns:minmax(0,650px) 250px;padding-inline:32px!important}html[data-display=desktop] .desktop-discover{display:block;grid-column:2;grid-row:1 / span 3;position:sticky;top:100px;padding-top:10px}}
 @media(min-width:1600px){html[data-display=desktop]{--desktop-rail:240px}html[data-display=desktop] .desktop-feed{grid-template-columns:minmax(0,700px) 280px;gap:0 48px;padding-top:26px!important}}
 @media(max-height:700px){html[data-display=desktop] .shell>.bottom-nav{gap:3px;padding-top:8px}html[data-display=desktop] .shell>.bottom-nav .desk-brand{height:54px;margin-bottom:5px}html[data-display=desktop] .shell>.bottom-nav>button{height:43px;min-height:43px}html[data-display=desktop] .shell>.bottom-nav [data-page=create]{margin-top:4px}}
 html[data-display=desktop] .shell[data-view=feed]>.desktop-feed{padding-top:10px!important}
 html[data-display=desktop] .shell[data-view=feed] .desktop-discover{top:24px}
 html[data-display=desktop] .shell>.bottom-nav .desk-brand{width:calc(100% - 44px);padding-inline:8px}
 html[data-display=desktop] .desk-brand img{width:112px;max-width:100%}
 html[data-display=desktop] .shell>.bottom-nav [data-page=create]{position:absolute;top:36px;right:14px;width:36px;height:36px;min-height:36px;margin:0;padding:6px;justify-content:center;gap:0;border:1px solid transparent;border-radius:11px;background:linear-gradient(#101c25,#101c25) padding-box,linear-gradient(125deg,#db8c82,#b28bdd,#52b7dd,#31c3ae) border-box;color:#edf5fa}
 html[data-display=desktop] .bottom-nav [data-page=create] .desk-nav-label{display:none}
 @media(max-height:700px){html[data-display=desktop] .shell>.bottom-nav [data-page=create]{top:17px;margin:0}}
}
