:root{--ink:#f7f7f7;--muted:#dedede;--border:#242424;--blue:#fff;color-scheme:dark}
html,body{background:#0b0d0f!important;color:#f7f7f7!important}
body>aside,main>header,.ig-inbox,.ig-inbox-sidebar,.ig-conversation,.dark-direct,.direct-rail,.direct-sidebar,.direct-chat,.community-page .ig-post{background:#0b0d0f!important}
.metric,.stat,.surface,.panel,.card,.profilecard,.profile-new,.login-screen,.login-form,.notification,.messages-layout,.ig-comment-sheet,.ig-comments-list,.media-compose-modal,dialog{background:#111315!important;border-color:#26292c!important}
.feature,.primary-metric,.achievement,.sidebarcard,.login-art{background:#171a1d!important;border-color:#292c2f!important}
.scope-tab,.ranking-search,.ranking-context,.ranking-table th,.tag,.tabs,.search,.inbox-search,.direct-search,.demo-account,.hint,.semester,.media-draft-area,.ig-empty,.ig-text-art{background:#171a1d!important;border-color:#2b2e31!important}
.scope-tab.selected,.tabs button.on,nav button.active,.inbox-person.selected,.direct-person.selected,.rank-row.is-me{background:#25282b!important;border-color:#52565a!important}
nav button:hover,.scope-tab:hover,.rank-row:hover,.inbox-person:hover,.direct-person:hover{background:#1d2023!important}
body :is(h1,h2,h3,h4,b,strong,label,button,a,th,td,small,span,p,time,li,select,option,input,textarea){color:#f4f4f4!important}
body :is(input,textarea)::placeholder{color:#d4d4d4!important;opacity:1}
body :is(input,select,textarea){background-color:#191c1f!important;border-color:#34383c!important}
body :is(.breadcrumb,.eyebrow,.campus,.navlabel,.metric-top,.metric-foot,.stat small,.section-title p,.ranking-context,.ranking-table th,.rank-person small,.rank-major>span,.rank-class>span,.panelhead small,.profile-meta,.profile-connections,.ig-post-user small,.ig-post-copy time,.ig-view-comments,.ig-comment-meta,.inbox-person small,.direct-person small,.ig-message-note,.ig-demo-note,footer,.footersub){color:#dedede!important}
.community-page .ig-post-copy>p,.community-page .ig-post-copy>p>button,.community-page .ig-like-count,.ig-comment-row p,.ig-comment-caption p,.ig-discovery :is(b,small,p,span),.ig-story small{color:#f2f2f2!important}
body :is(.ig-icon-button,.iconbutton,.desktop-menu-toggle,.postactions button,.ig-post-actions button,.quick>button,.textbtn){color:#fff!important}
body :is(.ig-icon-button,.iconbutton,.desktop-menu-toggle) svg{color:#fff!important;stroke:#fff}
body :is(.blue,.photo-pick-button,.media-publish){background:#f2f2f2!important;color:#101214!important;border-color:#f2f2f2!important}
body :is(.blue,.photo-pick-button,.media-publish) :is(span,svg){color:#101214!important;stroke:#101214}
.rank-load-more .load-more-button,.ig-send-text,.ig-inline-comment button{background:#24272a!important;border-color:#464a4e!important;color:#fff!important}
body :is(.profilecover,.post-photo-gallery,.draft-photo){background-color:#111315}
body :is(.ranking-table td,.ig-post,.ig-sheet-title,.ig-comment-caption,.ig-comment-compose,.notification,.activity,footer,.sidebaraccount){border-color:#292c2f!important}
@media(max-width:760px){body>aside,.dark-direct .direct-mobile-dock,.community-page .ig-post,.dark-direct .ig-conversation{background:#0b0d0f!important}}
@media(max-width:760px){
 body:not(.fullscreen-inbox)>aside{position:fixed;inset:auto 12px calc(10px + env(safe-area-inset-bottom))!important;width:auto;height:64px;padding:0!important;background:#14181e!important;border:1px solid #424a55!important;border-radius:999px;box-shadow:0 8px 30px #0009;z-index:100;overflow:visible;backdrop-filter:blur(20px)}
 body:not(.fullscreen-inbox)>aside nav{display:flex!important;align-items:center;justify-content:space-around;width:100%;height:100%;margin:0;padding:0 11px;gap:0}
 body:not(.fullscreen-inbox)>aside nav button{position:relative;display:grid!important;place-items:center;flex:1;min-width:0;height:56px;min-height:56px;padding:0!important;margin:0!important;border:0;border-radius:999px;background:transparent!important;color:#f5f7f9!important}
 body:not(.fullscreen-inbox)>aside nav button .navicon{display:grid!important;place-items:center;width:46px;height:46px;min-height:46px;margin:0!important;border:0;border-radius:50%;background:transparent!important;color:#f5f7f9!important}
 body:not(.fullscreen-inbox)>aside nav button .navicon svg{width:29px!important;height:29px!important;stroke-width:1.8}
 body:not(.fullscreen-inbox)>aside nav button>span:not(.navicon),body:not(.fullscreen-inbox)>aside nav button .navcount{display:none!important}
 body:not(.fullscreen-inbox)>aside nav button[data-page="rank"]{order:2}
 body:not(.fullscreen-inbox)>aside nav button[data-page="home"]{order:1}
 body:not(.fullscreen-inbox)>aside nav button[data-page="feed"]{order:3}
 body:not(.fullscreen-inbox)>aside nav button[data-page="messages"]{order:4}
 body:not(.fullscreen-inbox)>aside nav button[data-page="people"]{order:5}
 body:not(.fullscreen-inbox)>aside nav button[data-page="profile"]{order:6}
 body:not(.fullscreen-inbox)>aside nav button[data-page="profile"] .navicon{width:43px;height:43px;min-height:43px;background:#9eacb9!important;color:#fff!important;font-size:12px;font-weight:700}
 body:not(.fullscreen-inbox)>aside nav button[data-page="profile"] .navicon svg{display:none}
 body:not(.fullscreen-inbox)>aside nav button[data-page="profile"] .navicon::after{content:'YS';color:#fff}
 body:not(.fullscreen-inbox)>aside nav button[data-page="messages"]::after{content:'';position:absolute;width:7px;height:7px;border-radius:50%;background:#ff3255;left:calc(50% + 17px);bottom:10px}
 body:not(.fullscreen-inbox)>aside nav button.active .navicon{color:#fff!important}
 body:not(.fullscreen-inbox)>main{padding-bottom:calc(94px + env(safe-area-inset-bottom))}
}

/* Story initials stay readable on light avatar backgrounds. */
.community-page .ig-story .story-face{color:#26313d!important;text-align:center;letter-spacing:0}
.community-page .ig-story .story-face.face-4{color:#fff!important;display:grid;place-items:center;font-weight:800;line-height:1;letter-spacing:0}

/* Clear controls and academic navigation */
.community-page .ig-new-post{width:auto!important;min-width:95px!important;height:40px!important;padding:0 14px!important;display:inline-flex!important;gap:7px;align-items:center;justify-content:center;border-radius:999px!important;background:#f4f4f4!important;border-color:#f4f4f4!important;color:#101214!important}
.community-page .ig-new-post span,.community-page .ig-new-post svg{color:#101214!important;stroke:#101214!important;font-size:12px;font-weight:700}
.community-page .ig-inline-comment{display:flex;align-items:center;gap:8px;border-top:1px solid #24282c!important;padding-top:10px!important;padding-bottom:10px!important}
.community-page .ig-inline-comment input{flex:1;min-width:0;border-radius:999px!important;padding:0 14px!important;background:#181b1f!important;color:#fff!important}
.community-page .ig-inline-comment button{border-radius:999px!important;padding:0 14px!important;background:#f2f2f2!important;color:#101214!important;font-weight:700}
.community-page .ig-inline-comment>span{display:none}
.welcome .datebadge{display:inline-flex!important;align-items:center;width:auto;max-width:100%;border-radius:999px;padding:9px 14px;background:#171a1d!important;color:#fff!important;font-size:11px}
.feature button{background:#f2f2f2!important;color:#101214!important;border-radius:12px!important;font-weight:700}
.feature button :is(span,svg){color:#101214!important;stroke:#101214!important}
.achievement{background:#141618!important;border-color:#292b2d!important}
.achievement p{max-width:360px;margin:0 auto;line-height:1.5}
.settings-layout{gap:18px}
.settings-layout .surface{padding:26px;border:1px solid #292c2f!important;border-radius:20px!important}
.settings-layout .section-title{margin-bottom:18px}
.settings-user{margin-top:0;padding:14px;border:1px solid #34383c;border-radius:14px;background:#1a1d20}
.settings-layout input:not([type=checkbox]){border-radius:11px!important;background:#1b1e21!important;color:#fff!important;font-size:13px}
.settings-layout label{color:#fff!important;font-size:12px}
.settings-layout .toggle-row{margin:0;padding:16px 0;border-top:1px solid #292c2f}
.toggle-row b{color:#fff!important;font-size:13px}
.toggle-row small{color:#ddd!important;font-size:11px;line-height:1.4}
@media(max-width:760px){
 body:not(.fullscreen-inbox)>aside nav{padding:0 6px}
 body:not(.fullscreen-inbox)>aside nav button .navicon{width:38px;height:38px;min-height:38px}
 body:not(.fullscreen-inbox)>aside nav button .navicon svg{width:25px!important;height:25px!important}
 body:not(.fullscreen-inbox)>aside nav button[data-page="profile"] .navicon{width:36px;height:36px;min-height:36px}
 .community-page .ig-new-post{min-width:78px!important;padding:0 10px!important}
 .welcome .datebadge{font-size:10px;padding:8px 11px}
 .settings-layout .surface{padding:20px}
}
.settings-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;margin-bottom:18px;background:#171a1d;border:1px solid #34383c;border-radius:20px}
.settings-summary>div{display:flex;align-items:center;gap:14px;min-width:0}
.settings-summary .av{width:56px;height:56px;min-width:56px;display:grid;place-items:center;border-radius:50%;background:#647384;color:#fff;font-weight:700}
.settings-summary span{display:grid;gap:5px}
.settings-summary small{font-size:10px;letter-spacing:.1em;color:#c5c5c5!important}
.settings-summary b{font-size:19px;color:#fff!important}
.settings-summary em{font-style:normal;font-size:12px;color:#ddd}
.settings-summary button{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;border:1px solid #44494d;border-radius:999px;background:#22262a;color:#fff!important;padding:12px 16px;font-size:12px;font-weight:650}
.settings-summary button svg{width:16px;height:16px}
@media(max-width:600px){.settings-summary{align-items:stretch;flex-direction:column;padding:18px}.settings-summary button{justify-content:center}}
