/* V18 EVIONTA social identity: original monochrome profile with Instagram-like familiar affordances. */
.v18-theme-switch{display:grid;place-items:center;width:39px;height:39px;min-width:39px;border:1px solid #e7e7e7;background:transparent;color:inherit;border-radius:50%;padding:9px}.v18-theme-switch svg{width:20px;height:20px}.v18-theme-switch:hover{background:#f3f3f3}
.v18-bottom-create{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.v18-bottom-plus{background:#171717;color:white;border-radius:10px;width:38px;height:32px;display:grid;place-items:center;font:500 27px/1 'DM Sans',sans-serif;margin-top:-3px}
.v18-social-account{background:#fff;border:1px solid #e8e8e8;border-radius:18px;padding:28px;margin:22px 0 34px;max-width:100%;color:#171717}.v18-social-account-top{display:flex;gap:38px;align-items:center;padding-bottom:28px;border-bottom:1px solid #eaeaea}.v18-account-avatar-wrap{position:relative;flex:none;width:132px;height:132px}.v18-avatar{display:inline-grid;place-items:center;vertical-align:middle;border-radius:50%;background:#ececec;border:1px solid #e0e0e0;color:#111;width:41px;height:41px;overflow:hidden;font:700 19px/1 'Tajawal',sans-serif;flex-shrink:0}.v18-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.v18-avatar.xl{width:132px;height:132px;font-size:46px}.v18-avatar-story-plus{position:absolute;bottom:3px;left:2px;width:35px;height:35px;border:3px solid white;background:#111;color:#fff;border-radius:50%;font:700 22px/1 sans-serif;display:grid;place-items:center}.v18-account-info{min-width:0;flex:1}.v18-account-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.v18-account-heading h1{font-size:clamp(21px,3vw,29px);line-height:1.3;margin:0;color:inherit}.v18-account-heading>span{color:#707070;font:500 13px 'DM Sans',sans-serif}.v18-account-info p{max-width:670px;white-space:pre-wrap;font-size:14px;margin:12px 0;overflow-wrap:anywhere}.v18-social-counts{display:flex;gap:24px;margin:18px 0;font-size:14px;flex-wrap:wrap}.v18-social-counts b{font:800 18px/1 'DM Sans',sans-serif}.v18-account-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.v18-avatar-label{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.v18-avatar-label input{width:1px;height:1px;opacity:0;position:absolute;pointer-events:none}.v18-avatar-label:focus-within{outline:2px solid currentColor;outline-offset:2px}.v18-remove-avatar{border:0;background:transparent;font-size:13px;text-decoration:underline;cursor:pointer}.v18-social-account-tabs{display:flex;gap:40px;justify-content:center;padding:15px 0;border-bottom:1px solid #eaeaea;font-weight:800;font-size:13px}.v18-account-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px;padding-top:18px}.v18-account-library h2{font-size:16px;margin:6px 0 15px}.v18-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.v18-post-tile,.v18-reel-tile{aspect-ratio:1/1;background:#f5f5f5;border:1px solid #ececec;border-radius:7px;overflow:hidden;text-align:center;padding:0;display:grid;place-items:center;min-width:0;color:#191919;cursor:pointer;word-break:break-word}.v18-post-tile img{height:100%;width:100%;object-fit:cover}.v18-post-tile span{font-size:11px;padding:10px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}.v18-reel-tile{font-size:30px;gap:5px;align-content:center}.v18-reel-tile small{font-size:10px;max-width:100%;padding:0 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v18-none{font-size:13px;color:#777;margin:0 0 20px}.v18-create-menu{display:grid;gap:12px;max-width:520px;margin:auto}.v18-create-menu>button{display:flex;gap:20px;align-items:center;padding:18px 20px;border:1px solid #e5e5e5;border-radius:13px;background:#fff;text-align:start;color:#161616;width:100%;cursor:pointer}.v18-create-menu>button:hover{background:#f5f5f5;border-color:#bbb}.v18-create-menu b,.v18-create-menu small{display:block}.v18-create-menu b{font-size:18px}.v18-create-menu small{font-size:12px;color:#777;margin-top:3px}.v18-create-icon{font-size:27px;display:grid;place-items:center;width:50px;height:50px;border:1px solid #e5e5e5;border-radius:13px;background:#fafafa;flex:none}
.v18-upload-form{display:grid;gap:15px}.v18-upload-area{border:2px dashed #d8d8d8;border-radius:16px;padding:26px 17px;text-align:center;display:grid;place-items:center;gap:7px;cursor:pointer;background:#fafafa}.v18-upload-area strong{font-size:17px}.v18-upload-area small{font-size:12px;color:#666}.v18-upload-illustration{font-size:35px}.v18-upload-area input{font-size:12px;max-width:100%}.v18-upload-preview img,.v18-upload-preview video{display:block;width:min(100%,390px);max-height:370px;object-fit:contain;margin:auto;border-radius:10px;background:#101010}.v18-upload-preview:empty{display:none}.v18-upload-form .field{margin:0}.v18-upload-form .field textarea{min-height:95px}
.v18-story-strip{display:flex;gap:18px;align-items:start;overflow:auto hidden;overscroll-behavior-inline:contain;padding:16px 4px 20px;border-top:1px solid #eee;border-bottom:1px solid #eee;margin-bottom:27px;scrollbar-width:thin}.v18-story-person{display:flex;flex-direction:column;gap:9px;align-items:center;flex:none;width:82px;border:0;background:none;padding:0;cursor:pointer;color:inherit}.v18-story-circle{width:69px;height:69px;border-radius:50%;border:2px solid #222;display:grid;place-items:center;position:relative;padding:3px}.v18-story-circle .v18-avatar{width:59px;height:59px}.v18-story-person small{display:block;font-size:12px;font-weight:700;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v18-story-circle i{position:absolute;bottom:-3px;left:-3px;background:#161616;color:#fff;border-radius:50%;font-style:normal;width:23px;height:23px;display:grid;place-items:center;border:2px solid white}.v18-feed-reels-link{border:1px solid #e3e3e3;border-radius:8px;background:#fff;color:#121212;padding:8px 12px;font-weight:800;font-size:12px;margin-inline:8px}.v18-story-modal{max-width:440px;margin:auto}.v18-story-modal img,.v18-story-modal video{display:block;width:100%;max-height:60vh;object-fit:contain;background:#111;border-radius:12px}.v18-story-owner{display:flex;gap:9px;align-items:center;margin-bottom:12px}.v18-story-owner small{margin-inline-start:auto;color:#999}.v18-story-modal p{white-space:pre-wrap;overflow-wrap:anywhere}
.v18-creator-page{padding-top:34px}.v18-creator-page .v18-social-account{margin:0 0 30px}.v18-reels-page{padding-bottom:40px}.v18-reels-head{display:flex;gap:12px;margin:12px 0 24px;flex-wrap:wrap}.v18-reels-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.v18-reel-card{border:1px solid #e8e8e8;border-radius:14px;overflow:hidden;background:#fff;min-width:0;max-width:630px}.v18-reel-frame{background:#121212;display:flex;justify-content:center;align-items:center;aspect-ratio:9/12;max-height:590px;min-height:240px}.v18-reel-frame video{width:100%;height:100%;max-height:590px;object-fit:contain}.v18-media-error{color:#fff}.v18-reel-meta{padding:15px 18px}.v18-creator-link,.v18-person-trigger{display:inline-flex;align-items:center;gap:10px;background:transparent;border:0;color:inherit;text-align:start;cursor:pointer;padding:0}.v18-person-trigger .person-info b{font-size:13px}.v18-creator-link .v18-avatar{width:39px;height:39px}.v18-creator-link b,.v18-creator-link small{display:block}.v18-creator-link small{font-size:11px;color:#999}.v18-reel-meta p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.v18-reel-actions{border-top:1px solid #eee;padding-top:12px;display:flex;gap:18px}.v18-reel-actions button{border:0;background:transparent;color:inherit;font-weight:700;padding:4px;cursor:pointer}.v18-reel-actions button.active{color:#bb3445}
@media(max-width:960px){.v18-social-account-top{gap:20px}.v18-account-avatar-wrap,.v18-avatar.xl{width:100px;height:100px}.v18-account-library{grid-template-columns:1fr}}
@media(max-width:600px){.v18-social-account{padding:16px;border-radius:12px}.v18-social-account-top{align-items:start;gap:15px}.v18-account-avatar-wrap,.v18-avatar.xl{width:86px;height:86px}.v18-avatar.xl{font-size:36px}.v18-avatar-story-plus{height:30px;width:30px;bottom:-2px;left:-2px;font-size:18px}.v18-social-counts{gap:11px;font-size:11px;margin:10px 0}.v18-social-counts b{font-size:13px}.v18-account-heading h1{font-size:18px}.v18-account-heading>span{font-size:10px}.v18-account-info p{font-size:12px}.v18-account-actions .button{font-size:11px!important;padding:8px 12px!important;min-height:37px!important}.v18-post-grid{gap:5px}.v18-reels-grid{grid-template-columns:1fr}.v18-story-strip{gap:10px}.v18-story-person{width:72px}.v18-story-circle{width:60px;height:60px}.v18-story-circle .v18-avatar{width:50px;height:50px}.v18-theme-switch{width:33px;height:33px;min-width:33px;padding:7px}.mobile-nav{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:1px!important;justify-content:space-around}.mobile-nav .mobile-item{min-width:0!important;max-width:none!important;padding:4px 0!important;gap:4px!important;font-size:9px!important}.mobile-nav .mobile-item span[data-nav],.mobile-nav .mobile-item>span:not(.v18-bottom-plus){font-size:9px!important;white-space:nowrap!important}.v18-bottom-plus{height:30px;width:32px;border-radius:9px}.v18-social-account-tabs{gap:22px}}
/* Dark mode uses monochrome tokens and is applied after all previous light-theme layers. */
:root[data-theme="dark"]{color-scheme:dark;--ink:#f3f3f3!important;--navy:#f5f5f5!important;--muted:#b9b9b9!important;--line:#353535!important;--line-dark:#3c3c3c!important;--panel:#1a1a1a!important;--v17-line:#343434;--v17-ink:#f4f4f4}
:root[data-theme="dark"] body{background:#101010!important;color:#f1f1f1!important}
:root[data-theme="dark"] :is(.site-header,.site-footer,.mobile-nav,.form-panel,.profile-panels .form-panel,.v18-social-account,.v18-reel-card,.v18-create-menu>button,.v18-upload-area,.v18-feed-reels-link,.v18-post-tile,.v18-reel-tile,.v14-editorial-hero,.v14-compose-card,.v14-news-card,.v14-article-card,.v14-magazine-card,.v7-article-card,.v4-post-preview,.v14-post-card,.v14-market-card,.v4-station-item,.v4-news-card,.feed-card,.article-card,.listing-card,.simple-item,.modal-box,.v14-profile-card,.v4-panel,.feature-card,.empty-state,.v17-news-cover.no-photo){background:#1c1c1c!important;color:#f1f1f1!important;border-color:#383838!important}
:root[data-theme="dark"] :is(.v14-home-intro,.v14-home-intro h1,.v14-magazine h1,.v14-page-title,.v18-account-heading h1,.profile-heading,.page-header h1,.v14-post-card h2,.v14-news-card h3){color:#f2f2f2!important}
:root[data-theme="dark"] :is(.desk-nav,.wordmark,.header-account,.v5-ai-header,.v14-header-search,.v7-header-iconbtn,.v4-header-bell,.lang-control,.v18-theme-switch,.mobile-item,.v14-brand-mark,.v18-account-heading>span,.v18-reel-actions button,.v18-post-tile,.v18-reel-tile,.v18-creator-link,.v18-remove-avatar){color:#f5f5f5!important}
:root[data-theme="dark"] :is(.header-account,.button.outline,.v18-feed-reels-link,.v18-create-menu>button,.v18-upload-area,.v5-ai-composer,.v9-ai-message-content,.v5-ai-preset){background:#252525!important;border-color:#404040!important;color:#f5f5f5!important}
:root[data-theme="dark"] :is(.button.primary,.v18-bottom-plus,.v18-avatar-story-plus){background:#f1f1f1!important;color:#101010!important;border-color:#f1f1f1!important}
:root[data-theme="dark"] :is(input:not([type=checkbox]),textarea,select,.field input:not([type=file]),.field textarea,.field select,.chat-form input){background:#232323!important;color:#f5f5f5!important;border-color:#444!important}
:root[data-theme="dark"] :is(.v18-account-avatar-wrap,.v18-story-strip,.v18-social-account-top,.v18-social-account-tabs,.v18-reel-actions,.v14-story-strip){border-color:#414141!important}
:root[data-theme="dark"] :is(.v18-avatar,.v18-create-icon,.v18-post-tile,.v18-reel-tile){background:#313131!important;color:#fff!important;border-color:#454545!important}
:root[data-theme="dark"] :is(.v18-create-menu small,.v18-upload-area small,.v18-none,.v18-account-heading>span,.v18-creator-link small,.v14-home-intro p,.v14-magazine p,.muted,.small){color:#b6b6b6!important}
:root[data-theme="dark"] .v14-brand-mark img{filter:invert(1)}
:root[data-theme="dark"] .v18-avatar-story-plus{border-color:#1c1c1c!important}
:root[data-theme="dark"] .v18-news-cover.no-photo{background:linear-gradient(145deg,#1a1a1a,#2b2b2b)!important}
:root[data-theme="dark"] .v18-theme-switch:hover{background:#333!important}
:root[data-theme="dark"] body .header-account{background:#2b2b2b!important;color:#f3f3f3!important;border-color:#444!important}
:root[data-theme="dark"] body .button.primary,:root[data-theme="dark"] body .button:not(.outline):not(.v11-danger),:root[data-theme="dark"] body .v14-intro-actions .button.primary{background:#f3f3f3!important;color:#161616!important;border-color:#f3f3f3!important}
:root[data-theme="dark"] body .button.outline,:root[data-theme="dark"] body .v14-intro-actions .button.outline{background:#292929!important;color:#f3f3f3!important;border-color:#525252!important}
:root[data-theme="dark"] body .v18-bottom-create .v18-bottom-plus{background:#f4f4f4!important;color:#131313!important}
:root[data-theme="dark"] body .v18-story-circle i{border-color:#141414!important;background:#f3f3f3;color:#111}
/* Higher-specificity repairs for the original V14 !important declarations. */
:root[data-theme="dark"] body #app #accountButton{background:#292929!important;color:#f4f4f4!important;border-color:#444!important}
:root[data-theme="dark"] body #app .v14-intro-actions .button.primary{background:#f2f2f2!important;background-color:#f2f2f2!important;color:#121212!important;border-color:#f2f2f2!important}
:root[data-theme="dark"] body #app .v14-intro-actions .button.outline{background:#292929!important;background-color:#292929!important;color:#f4f4f4!important;border-color:#4b4b4b!important}
.v18-reel-tile{position:relative;isolation:isolate;background:#212121!important;color:#fff!important}.v18-reel-tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;opacity:.86}.v18-reel-tile:before{content:'';position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#0009);z-index:-1}.v18-reel-tile>span{font-size:25px;text-shadow:0 1px 6px #0009}.v18-reel-tile small{color:#fff;font-weight:800;text-shadow:0 1px 5px #000d}
.v8-follow-user .v18-person-trigger{flex:1;min-width:0}.v8-follow-user .v18-person-trigger .v8-follow-info{min-width:0;text-align:start}.v8-follow-user .v18-person-trigger .v18-avatar{height:40px;width:40px}
