/* Patiyiz: monochrome pet community experience, inspired by user-provided mobile references.
   Original branding and existing Supabase-backed functionality are retained. */
:root{--pati-pink:#17181b;--pati-pink-strong:#0e0f11;--pati-soft:#f1f1f3;--pati-rose:#e9e9ec;--pati-line:#e5e5e9;--pati-ink:#191a1d;--pati-muted:#7b7d83;--pati-card:#fff;--pati-bg:#f7f7f8;--pati-shadow:0 11px 28px rgba(22,23,27,.07);--green:#17181b;--green-dark:#0e0f11;--mint:#f1f1f3;--mint-light:#fafafa;--bg:#f7f7f8;--ink:#202124}
html{scroll-padding-top:84px}body{background:var(--pati-bg)!important;color:var(--pati-ink)}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9a9ca2!important;outline-offset:2px}
#app-root .app-shell{max-width:1350px}
#app-root .sidebar .brand{margin-bottom:18px}#app-root .sidebar .brand-word{color:#1b1b1e;font-size:27px;letter-spacing:-1.2px}
#app-root .sidebar .nav-caption{color:#87888d}#app-root .sidebar .nav-link{border-radius:14px;min-height:43px;color:#66676e}
#app-root .sidebar .nav-link:hover{color:#1b1b1e;background:var(--pati-soft)}
#app-root .sidebar .nav-link.active{color:var(--pati-pink)!important;background:var(--pati-soft)!important}
#app-root .sidebar .nav-link.active::before{background:var(--pati-pink)!important}
#app-root .sidebar .nav-create,#app-root .primary-btn{background:linear-gradient(110deg,#2d2e33,#111214)!important;color:#fff!important;border:0!important}
#app-root .sidebar .nav-create{box-shadow:0 8px 19px rgba(22,23,27,.16);border-radius:15px}
#app-root .right-rail .pati-card,#app-root .pati-card{border-color:#e8e8eb;box-shadow:0 4px 20px rgba(22,23,27,.04)}
#main-content>.page-intro .hello{color:#45464b;letter-spacing:.11em}#main-content .page-title{font-size:clamp(23px,3vw,29px);letter-spacing:-.8px;color:#202124}
#main-content .page-intro p{color:#7d7e84!important;font-size:12px!important}
#main-content .pati-filter-tabs button.active,#main-content .pati-feed-follow button.active{background:#f1f1f3!important;border-color:#dadade!important;color:#202124!important}
#main-content .pati-feed-switch-btn.active{color:var(--pati-pink)!important;border-bottom-color:var(--pati-pink)!important}
#main-content .stories-section{background:#fff;border:1px solid #ececef;border-radius:19px;padding:15px 13px 6px;box-shadow:var(--pati-shadow);margin-bottom:14px}
#main-content .stories-heading strong{color:#35363a;font-weight:800}
#main-content .story-own-photo,#main-content .story-avatar{border-color:#242529!important}
#main-content .story-own-plus{background:var(--pati-pink)!important;color:#fff!important}
#main-content .pati-profile-row{max-width:100%}
#main-content .pati-reels-feed{max-width:730px;margin:13px auto}
#main-content .pati-reels-feed .pati-card{border-radius:21px;overflow:hidden;margin-bottom:16px}
#main-content .pati-reels-feed .pati-post-video{max-height:82dvh;background:#151517}
#main-content .pati-carousel-track,#main-content .pati-video-frame{background:#161719}
#main-content .pati-social-actions button.active,#main-content button.active .icon{color:var(--pati-pink)!important}
#main-content .pati-ig-profile{background:#fff!important}
#main-content .pati-ig-summary{position:relative;isolation:isolate;padding-top:32px!important}
#main-content .pati-ig-summary:before{content:' ';position:absolute;top:0;left:0;right:0;height:101px;background:linear-gradient(118deg,#34353a,#121316);border-radius:17px 17px 26px 26px;z-index:-1}
#main-content .pati-ig-avatar{padding:4px;border-radius:50%;background:#fff;border:2px solid #e0e0e3}
#main-content .pati-ig-name{color:#242529}
#main-content .pati-ig-handle{color:#898b91}
#main-content .pati-ig-actions button{background:#f1f1f3!important;border:1px solid #e3e3e6!important;color:#2a2b30!important}
#main-content .pati-ig-actions button:first-child{background:var(--pati-pink)!important;color:#fff!important;border-color:var(--pati-pink)!important}
#main-content .pati-ig-tabs button.active{color:var(--pati-pink)!important}
#main-content .pati-ig-profile .pati-ig-stats b{color:#202124}
#main-content .pati-edu-card,#main-content .pati-edu-step{border-color:#e6e6ea;background:#fff}
#main-content .pati-edu-hero{background:linear-gradient(125deg,#1b1c20,#4a4b51)!important;color:#fff!important}
#main-content .pati-card .pati-actionbar button{min-height:37px}
#main-content img{max-width:100%}
/* First five friendly onboarding steps, derived from real account data. */
#main-content .pati-progress-card{margin:7px 0 19px;padding:18px;background:#fff;border:1px solid var(--pati-line);border-radius:20px;box-shadow:var(--pati-shadow)}
#main-content .pati-progress-top{display:flex;gap:11px;align-items:center}
#main-content .pati-progress-flag{display:grid;place-items:center;flex:none;width:40px;height:40px;background:#ececef;border-radius:50%;font-size:21px}
#main-content .pati-progress-top>div{flex:1;min-width:0}#main-content .pati-progress-top strong{display:block;font-size:15px;color:#242529}
#main-content .pati-progress-top p{margin:2px 0 0;font-size:11px;color:#898a90}
#main-content .pati-progress-count{font-size:11px;font-weight:800;color:#2c2d31;background:#f1f1f3;border-radius:20px;padding:7px 10px}
#main-content .pati-progress-track{height:7px;background:#eeeeef;overflow:hidden;border-radius:99px;margin:14px 0}
#main-content .pati-progress-track>div{height:100%;background:linear-gradient(90deg,#515259,#191a1e);border-radius:99px;transition:width .2s}
#main-content .pati-progress-actions{display:grid;gap:6px}
#main-content .pati-progress-action{width:100%;background:#fff;border:0;border-radius:12px;display:flex;text-align:left;align-items:center;min-height:55px;padding:8px 10px;gap:11px}
#main-content .pati-progress-action:hover{background:#f4f4f6}
#main-content .pati-progress-action>span:first-child{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:50%;background:#ececef;color:#303137;font-weight:800;font-size:13px}
#main-content .pati-progress-action>span:nth-child(2){display:grid;gap:2px;min-width:0;flex:1}
#main-content .pati-progress-action b{font-size:12px;color:#2f3035}#main-content .pati-progress-action small{font-size:10px;color:#919299}
#main-content .pati-progress-action i{color:#3d3e43;font-size:21px;font-style:normal}
/* Share flow: post, story and video. All actions call original composer or story uploader. */
#pati-create-sheet[hidden]{display:none!important}
body.pati-create-open{overflow:hidden}
#pati-create-sheet{display:none}
@media(min-width:741px){
  #pati-create-sheet:not([hidden]){position:fixed;inset:0;z-index:180;display:grid;place-items:center}
  #pati-create-sheet .pati-create-modal{width:min(460px,calc(100% - 24px));border-radius:25px}
}
#pati-create-sheet .pati-create-mask{position:absolute;inset:0;background:rgba(0,0,0,.7);border:0;display:block;width:100%;height:100%}
#pati-create-sheet .pati-create-modal{position:relative;max-height:calc(100dvh - 35px);overflow-y:auto;padding:23px;background:#161719;color:#fff;box-shadow:0 22px 70px #0004}
#pati-create-sheet .pati-create-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}
#pati-create-sheet .pati-create-heading strong{font-size:19px;font-weight:800}
#pati-create-sheet .pati-create-dismiss{display:grid;place-items:center;border:0;width:40px;height:40px;border-radius:50%;background:#2d2e33;color:#fff;font-size:24px}
#pati-create-sheet .pati-create-choices{display:grid;gap:10px}
#pati-create-sheet .pati-create-choice{display:flex;align-items:center;gap:13px;min-height:73px;padding:13px 15px;text-align:left;border:1px solid #47484d;border-radius:15px;background:#222327;color:#fff}
#pati-create-sheet .pati-create-choice:hover{border-color:#77797f;background:#313236}
#pati-create-sheet .pati-create-choice .pati-choice-icon{width:43px;height:43px;flex:none;border-radius:13px;display:grid;place-items:center;font-size:22px;background:#38393e;color:#e1e2e5}
#pati-create-sheet .pati-create-choice span:nth-child(2){display:grid;gap:3px}
#pati-create-sheet .pati-create-choice b{font-size:14px}#pati-create-sheet .pati-create-choice small{color:#bcbec3;font-size:11px}
#pati-create-sheet .pati-create-heading em{font-style:normal;color:#e1e2e5}
@media(max-width:740px){
 body{background:#f7f7f8!important}
 #app-root>.mobile-header{position:fixed!important;inset:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:65px!important;padding:calc(9px + env(safe-area-inset-top,0px)) 15px 9px!important;background:rgba(255,255,255,.98)!important;border-bottom:1px solid #e8e8eb!important;box-shadow:0 3px 13px rgba(22,23,27,.05)!important;z-index:90!important}
 #app-root>.mobile-header .brand{margin:0!important;padding:0!important;gap:8px!important}
 #app-root>.mobile-header .brand-icon{width:35px;height:35px;border-radius:10px}
 #app-root>.mobile-header .brand-word{color:#1d1e22;font-size:24px!important;letter-spacing:-1px;font-weight:850}
 #app-root>.mobile-header .brand-caption{display:none}
 #app-root>.mobile-header .pati-header-notifications{width:39px;height:39px;min-width:39px;border:1px solid #e8e8ec;background:#f4f4f6!important;border-radius:14px!important;color:#25262a!important}
 #app-root>.app-shell{padding:calc(77px + env(safe-area-inset-top,0px)) 0 calc(108px + env(safe-area-inset-bottom,0px))!important;min-height:100dvh!important;max-width:660px;margin:0 auto}
 #app-root>.app-shell>.main{max-width:660px;min-width:0;width:100%;margin:0 auto}
 #app-root>.app-shell>.sidebar,#app-root>.app-shell>.right-rail{display:none!important}
 #app-root>.mobile-bottom{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:95!important;display:flex!important;justify-content:space-between!important;align-items:stretch!important;gap:2px!important;min-height:67px!important;padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px))!important;background:rgba(255,255,255,.99)!important;border-top:1px solid #e8e8eb!important;box-shadow:0 -6px 22px rgba(22,23,27,.05)!important}
 #app-root>.mobile-bottom>.mobile-nav-btn{flex:1 1 0!important;max-width:none!important;min-width:0!important;min-height:48px!important;padding:5px 2px!important;display:flex!important;flex-direction:column!important;gap:4px!important;justify-content:center!important;align-items:center!important;background:transparent!important;border:0!important;border-radius:13px!important;color:#888a90!important;font-weight:750!important}
 #app-root>.mobile-bottom>.mobile-nav-btn .icon{width:22px;height:22px}
 #app-root>.mobile-bottom>.mobile-nav-btn small{font-size:10px!important;color:inherit!important;white-space:nowrap!important}
 #app-root>.mobile-bottom>.mobile-nav-btn.active{color:var(--pati-pink)!important;background:#f1f1f3!important}
 #app-root>.mobile-bottom>.mobile-nav-btn.pati-create-nav{color:var(--pati-pink)!important}
 #app-root>.mobile-bottom>.mobile-nav-btn.pati-create-nav>.icon{width:34px!important;height:34px!important;padding:6px!important;background:var(--pati-pink)!important;color:white!important;border-radius:12px!important;stroke-width:2.5!important}
 #app-root>.mobile-fab{display:none!important}
 #main-content>.page-intro{margin:10px 12px 16px;gap:10px}
 #main-content>.page-intro .top-actions{display:flex!important;flex-wrap:wrap}
 #main-content>.page-intro .top-actions button{min-height:42px;padding:9px 13px}
 #main-content .stories-section{margin:10px 9px 16px;border-radius:17px;padding:13px 11px 6px}
 #main-content .story-own-photo,#main-content .story-avatar{width:67px!important;height:67px!important}
 #main-content .pati-progress-card{margin:10px 10px 17px;padding:15px}
 #main-content .pati-progress-action{min-height:53px}
 #main-content .pati-ig-profile{border-radius:0!important}
 #main-content .pati-ig-summary:before{border-radius:0 0 18px 18px}
 #main-content .pati-filter-tabs{overflow-x:auto;scrollbar-width:none}
 #main-content .pati-reels-feed{padding:0 5px 90px}
 .toast-stack{bottom:calc(87px + env(safe-area-inset-bottom,0px));left:10px;right:10px}
 #modal-root input:not([type="checkbox"]),#modal-root textarea,#modal-root select{font-size:16px!important}
 #pati-create-sheet:not([hidden]){position:fixed;inset:0;z-index:180;display:flex;align-items:flex-end}
 #pati-create-sheet .pati-create-modal{width:100%;max-height:85dvh;border-radius:24px 24px 0 0;padding:20px 18px calc(24px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:360px){#app-root>.mobile-bottom>.mobile-nav-btn small{font-size:9px!important}#app-root>.mobile-header .brand-word{font-size:22px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}#main-content .pati-progress-track>div{transition:none}}


/* Instagram-like media composer, retaining native mobile photo/gallery permissions. */
.pati-native-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;left:-9999px!important}
#modal-root .modal:has(#post-form),#modal-root .modal:has(#story-form){width:min(100%,590px);border-radius:23px;overflow:hidden}
#modal-root .modal:has(#post-form) .modal-header,#modal-root .modal:has(#story-form) .modal-header{padding:17px 20px;border-bottom:1px solid #ededf0;background:white}
#modal-root .modal:has(#post-form) .modal-header h2,#modal-root .modal:has(#story-form) .modal-header h2{font-size:18px;font-weight:800;letter-spacing:-.4px;color:#17181b}
#modal-root .modal:has(#post-form) .modal-content,#modal-root .modal:has(#story-form) .modal-content{overflow-y:auto;max-height:calc(88dvh - 148px);padding:14px 18px}
#post-form .pati-compose-media,#story-form .pati-compose-media{margin:0 0 15px}
.pati-compose-media{position:relative;border:1px solid #e8e8ec;border-radius:19px;padding:12px;background:#fbfbfc}
.pati-media-intro{display:flex;align-items:center;gap:11px;margin:2px 1px 12px}
.pati-media-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:11px;background:#18191c;color:white;font-size:19px}
.pati-media-intro strong{display:block;color:#1c1d21;font-size:13px;line-height:1.35}
.pati-media-intro p{font-size:11px;line-height:1.45;color:#73757b;margin:3px 0 0}
.pati-media-gallery{display:flex;position:relative;align-items:center;justify-content:center;min-height:220px;aspect-ratio:4/3;background:linear-gradient(135deg,#1f2024,#101114);color:#f4f4f5;border-radius:15px;overflow:hidden}
.pati-media-gallery.has-media{background:#101114}
.pati-media-gallery>img,.pati-media-gallery>video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.pati-media-gallery video{background:#101114}
.pati-media-empty{display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center;padding:20px;gap:8px}
.pati-media-empty>span{display:grid;place-items:center;font-size:38px;width:69px;height:69px;background:#ffffff14;border:1px solid #ffffff1e;border-radius:19px;margin-bottom:4px}
.pati-media-empty strong{font-size:14px;font-weight:800;color:white}
.pati-media-empty small{font-size:11px;color:#b6b7bc}
.pati-media-count,.pati-media-file-name{position:absolute;top:12px;right:12px;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#101114ba;border:1px solid #ffffff3d;padding:6px 10px;border-radius:100px;color:#fff;font-size:11px;font-weight:750}
.pati-media-file-name{top:auto;bottom:11px}
.pati-media-thumbs{display:flex;align-items:center;gap:7px;overflow-x:auto;padding:10px 2px 2px;scrollbar-width:thin}
.pati-media-thumbs[hidden]{display:none!important}
.pati-media-thumb{width:64px;height:64px;flex:0 0 64px;padding:2px;border-radius:10px;border:2px solid transparent;background:#ededf0;cursor:pointer;overflow:hidden}
.pati-media-thumb.active{border-color:#111214;background:#d5d5d8}
.pati-media-thumb img{width:100%;height:100%;object-fit:cover;border-radius:6px}
.pati-media-picker-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0 0}
.pati-media-picker-actions button{min-height:47px;border-radius:12px;font-size:12px;font-weight:800;cursor:pointer;border:1px solid #dedee2}
.pati-media-pick-primary{background:#18191c!important;color:white!important;border-color:#18191c!important}
.pati-media-pick-secondary{background:white!important;color:#18191c!important}
.pati-media-picker-actions button:active{transform:scale(.99)}
.pati-media-help{font-size:10px;color:#777980;margin:10px 2px 0;line-height:1.5}
#post-form .pati-media-controls{padding:12px;background:#f6f6f7;border:1px solid #ededf0;border-radius:14px;margin-bottom:12px}
#post-form .pati-crop-preview canvas{max-width:100%;height:auto;border-radius:10px;background:#161719}
#post-form .pati-crop-preview[hidden]{display:none!important}
#post-form .modal-footer .primary-btn,#story-form .modal-footer .primary-btn{background:#18191c!important;color:white!important}
#modal-root .modal:has(#post-form) .modal-footer,#modal-root .modal:has(#story-form) .modal-footer{position:sticky;bottom:0;background:white;border-top:1px solid #ededf0;padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px))}
@media(max-width:740px){
 #modal-root .modal-backdrop:has(#post-form),#modal-root .modal-backdrop:has(#story-form){padding:0!important;align-items:flex-end!important;z-index:195!important}
 #modal-root .modal:has(#post-form),#modal-root .modal:has(#story-form){width:100%!important;max-width:100%!important;max-height:100dvh!important;height:100dvh!important;border-radius:0!important;display:flex;flex-direction:column}
 #modal-root .modal:has(#post-form) .modal-header,#modal-root .modal:has(#story-form) .modal-header{flex:0 0 auto;padding:calc(16px + env(safe-area-inset-top,0px)) 16px 14px}
 #modal-root .modal:has(#post-form) form,#modal-root .modal:has(#story-form) form{min-height:0;flex:1;display:flex;flex-direction:column}
 #modal-root .modal:has(#post-form) .modal-content,#modal-root .modal:has(#story-form) .modal-content{flex:1;min-height:0;max-height:none!important;overflow-y:auto!important;padding:12px 13px 16px}
 #modal-root .modal:has(#post-form) .modal-footer,#modal-root .modal:has(#story-form) .modal-footer{margin-top:auto;flex:0 0 auto;padding:12px 13px calc(12px + env(safe-area-inset-bottom,0px))}
 .pati-compose-media{padding:10px;border-radius:18px}
 .pati-media-gallery{min-height:250px;aspect-ratio:1/1}
 .pati-media-picker-actions{gap:8px}
 .pati-media-picker-actions button{min-height:49px}
}
@media(max-width:365px){.pati-media-gallery{min-height:205px}.pati-media-picker-actions button{font-size:11px}}

@media(max-width:690px){#modal-root .modal-backdrop:has(#post-form) .modal,#modal-root .modal-backdrop:has(#story-form) .modal{max-height:100dvh!important}}


/* Instagram-style profile readability and circular permanent highlights */
#main-content .pati-ig-profile{background:#fff!important;color:#17181b!important}
#main-content .pati-ig-summary{isolation:auto!important;position:relative;background:linear-gradient(180deg,#f7f7f9 0%,#fff 90%)!important;border-radius:20px 20px 0 0;overflow:visible}
#main-content .pati-ig-summary::before{display:none!important;content:none!important}
#main-content .pati-ig-summary .pati-ig-info,#main-content .pati-ig-summary .pati-ig-name,
#main-content .pati-ig-profile .pati-ig-stats,#main-content .pati-ig-profile .pati-ig-stats b,
#main-content .pati-ig-profile .pati-ig-stats button,#main-content .pati-ig-profile .pati-ig-stats span{color:#18191c!important;opacity:1!important;visibility:visible!important}
#main-content .pati-ig-summary .pati-ig-handle{color:#686a72!important}
#main-content .pati-ig-profile .pati-ig-stats small{display:block!important;color:#686a72!important;opacity:1!important;font-size:11px!important;font-weight:650}
#main-content .pati-ig-profile .pati-ig-stats b{font-size:clamp(16px,4.5vw,21px)!important;line-height:1.35!important}
#main-content .pati-ig-profile .pati-ig-stats{padding:3px 1px 5px;align-items:center}
#main-content .pati-ig-avatar{background:none;border-color:transparent}
#main-content .pati-ig-highlight-section{padding:2px 0 4px}
#main-content .pati-ig-highlights{padding:10px 15px 19px;gap:14px;align-items:flex-start}
#main-content .pati-ig-highlight{flex:0 0 77px;width:77px;min-height:103px;gap:7px}
#main-content .pati-ig-highlight-ring{width:76px;height:76px;border:2px solid #dedfe3!important;border-radius:50%;padding:4px;box-shadow:0 0 0 1px #f4f4f6;background:#f8f8fa;display:grid;place-items:center;color:#1b1c20;font-size:28px;overflow:hidden}
#main-content .pati-ig-highlight-ring.is-saved{border-color:#303136!important}
#main-content .pati-ig-highlight-ring.is-pet{border-color:#e0e1e4!important}
#main-content .pati-ig-highlight-ring img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#main-content .pati-ig-highlight small{font-size:11px;font-weight:650;color:#2b2c30;max-width:77px;text-align:center}
#main-content .pati-new-highlight .pati-ig-highlight-ring{font-weight:400;background:#f1f1f3}
#main-content .pati-highlight-empty{font-size:12px;color:#7b7d82}
.story-player .pati-saved-story-label{position:absolute;bottom:68px;left:15px;padding:9px 13px;border-radius:100px;background:#ffffff2c;color:white;font-size:12px;font-weight:700;z-index:10}
.story-player .pati-story-no-photo{width:100%;height:100%;display:grid;place-items:center;font-size:85px;background:#151619}
#story-form .pati-story-highlight-option{display:flex;align-items:center;gap:10px;min-height:53px;margin:8px 1px 15px;background:#f5f5f7;border:1px solid #e9e9ec;padding:11px;border-radius:13px;cursor:pointer}
#story-form .pati-story-highlight-option input{width:19px;height:19px;accent-color:#191a1d;flex:0 0 19px}
#story-form .pati-story-highlight-option span{display:flex;flex-direction:column;gap:2px}
#story-form .pati-story-highlight-option strong{font-size:12px;color:#222327}
#story-form .pati-story-highlight-option small{font-size:10px;color:#74757b}
/* Completion card: all 5 tasks, with completed and incomplete states */
#main-content .pati-progress-actions{gap:4px}
#main-content .pati-progress-action{min-height:50px;border-radius:12px}
#main-content .pati-progress-action.is-done{background:#f9f9fa}
#main-content .pati-progress-action.is-pending{background:#fff}
#main-content .pati-progress-action .pati-task-check{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;font-size:17px;font-weight:800;background:#f0f0f2;color:#83848b}
#main-content .pati-progress-action.is-done .pati-task-check{background:#1e1f23;color:#fff}
#main-content .pati-progress-action.is-pending>i{color:#34353a}
#main-content .pati-progress-action.is-done>i{color:#44464b;font-size:15px}
#main-content .pati-progress-count{color:#222327!important;background:#ececef!important}
#comment-form .comment-list{min-height:100px;max-height:57dvh;overflow:auto}
#comment-form .modal-footer .primary-btn{background:#191a1e!important}
@media(max-width:690px){#main-content .pati-ig-summary{border-radius:0!important}#main-content .pati-ig-profile .pati-ig-stats small{font-size:10px!important}#main-content .pati-progress-action{min-height:46px}}

/* Professional Patiyiz vertical Reels viewer */
.pati-reels-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px}.pati-reels-head h1{font-size:21px;color:#141518;margin:0}.pati-reels-head button{border:0;background:#16171b;color:white;border-radius:12px;padding:11px 14px;font-weight:800}
.pati-reels-viewport{height:min(80dvh,850px);overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;background:#070809;border-radius:18px;scrollbar-width:none}
.pati-reels-viewport::-webkit-scrollbar{display:none}
.pati-reel-item{scroll-snap-align:start;position:relative;height:min(80dvh,850px);width:100%;max-width:540px;margin:auto;color:white;background:#070809;overflow:hidden}
.pati-reel-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#070809}
.pati-reel-item:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#000a);pointer-events:none}
.pati-reel-tap{position:absolute;inset:5% 22% 17% 5%;border:0;background:transparent;z-index:2}
.pati-reel-author{position:absolute;z-index:4;bottom:103px;left:15px;right:82px;display:flex;align-items:center;gap:9px}
.pati-reel-author span:not(.avatar){display:flex;flex-direction:column;min-width:0;gap:3px}
.pati-reel-author strong{font-size:13px}.pati-reel-author small{font-size:11px;color:#ddd}.pati-reel-author button{border:1px solid #fffd;background:#ffffff22;border-radius:8px;color:#fff;padding:6px 9px;font-size:11px}
.pati-reel-caption{position:absolute;z-index:4;bottom:33px;left:15px;right:88px;font-size:13px;line-height:1.45;max-height:64px;overflow:auto}
.pati-reel-rail{position:absolute;right:8px;bottom:32px;display:flex;z-index:5;flex-direction:column;gap:14px;align-items:center}
.pati-reel-rail button{border:0;background:transparent;color:white;min-width:50px;font-size:25px;font-weight:800;display:flex;flex-direction:column;align-items:center;cursor:pointer;text-shadow:0 1px 4px #000a}
.pati-reel-rail button small{font-size:11px;margin-top:2px}.pati-reel-rail button.is-liked{color:#ff6a79}.pati-reel-rail .pati-reel-mute{font-size:9px;min-width:65px;background:#0009;padding:7px;border-radius:10px}
.pati-reels-empty{padding:40px 20px;color:#fff;text-align:center}
.pati-pin-mark{position:absolute;top:5px;right:6px;background:#000c;color:white;border-radius:7px;font-size:10px;padding:4px 6px;z-index:3}
.pati-ig-profile .pati-profile-tile{position:relative}
.pati-draft-controls{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.pati-draft-controls button,.pati-share-quick button{border:1px solid #d9d9dd;background:#f4f4f6;color:#242529;border-radius:11px;padding:9px 11px;font-size:12px;font-weight:750}
.pati-hashtag{border:0;background:transparent;color:#30394d;font-weight:800;padding:0;cursor:pointer;font-size:inherit}
.pati-share-quick{display:flex;gap:8px;margin:9px 0 13px;flex-wrap:wrap}
.pati-album-manage{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #ededf0}.pati-album-manage b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.pati-album-manage button{border:1px solid #dedee2;border-radius:9px;padding:8px;background:#f6f6f7;font-weight:700}
.pati-compose-media .pati-media-picker-actions{grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}
@media(max-width:740px){.pati-reels-head{padding:8px 12px}.pati-reels-viewport,.pati-reel-item{height:calc(100dvh - 205px);min-height:480px;border-radius:0}.pati-reels-viewport{margin:0 -10px}.pati-reel-author{bottom:95px}.pati-reel-caption{bottom:23px}}

/* Story visual composer and Reels cover/subtitle controls */
#story-form .pati-story-editor,#post-form .pati-reels-editor{margin:12px 0;padding:12px;border-radius:14px;border:1px solid #e8e8eb;background:#f8f8f9;display:grid;gap:10px}
#story-form .pati-story-editor label,#post-form .pati-reels-editor label{display:flex;flex-direction:column;gap:5px;color:#2d2e32;font-weight:750;font-size:12px}
#story-form .pati-story-editor input,#story-form .pati-story-editor select,#post-form .pati-reels-editor input{width:100%;font-size:16px;padding:10px 11px;border:1px solid #dcdde0;border-radius:10px;background:#fff;color:#202125;min-height:42px}
#post-form .pati-reels-editor input[type=file]{padding:8px;background:#fff}
.pati-reel-rail .pati-reel-mute{font-size:11px;min-height:28px;touch-action:manipulation}
@media(max-width:740px){#story-form .pati-story-editor{grid-template-columns:1fr 1fr}#story-form .pati-story-editor label:first-child{grid-column:1/-1}.pati-reel-rail .pati-reel-mute{padding:8px 6px}}

/* Interactive stories and direct-message actions */
#story-form .pati-story-interactions{margin:10px 0;padding:11px;border:1px solid #e7e7eb;border-radius:13px;background:#f7f7f8;display:grid;grid-template-columns:1fr 1fr;gap:10px}
#story-form .pati-story-interactions label{font-size:12px;font-weight:700;color:#26272b;display:flex;flex-direction:column;gap:5px}
#story-form .pati-story-interactions label:nth-child(-n+2){grid-column:1/-1}
#story-form .pati-story-interactions input,#story-form .pati-story-interactions select{min-height:43px;width:100%;padding:9px;border-radius:10px;border:1px solid #dadbe0;background:#fff;color:#242529;font-size:16px}
.story-player .pati-story-interactive{position:absolute;left:11px;right:11px;bottom:70px;z-index:12;display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;padding:10px;background:#111b;border:1px solid #ffffff50;border-radius:14px;backdrop-filter:blur(8px)}
.story-player .pati-story-interactive b{flex-basis:100%;font-size:13px;text-align:center;color:#fff}
.story-player .pati-story-interactive div{display:flex;gap:7px;flex:1}
.story-player .pati-story-interactive button{background:#fff;color:#222327;border:0;border-radius:10px;padding:9px 12px;font-weight:800;font-size:12px;min-height:41px;cursor:pointer}
.pati-dm-reply-preview{padding:6px 9px;background:#ffffff26;border-left:3px solid #82838a;border-radius:5px;font-size:11px;margin-bottom:5px}
.pati-dm-msg-tools{display:flex;gap:6px;justify-content:flex-end;padding:5px 0 0}
.pati-dm-msg-tools button{background:#fff1;color:#45464b;border:1px solid #a6a6a648;border-radius:8px;padding:4px 6px;font-size:10px;cursor:pointer}
@media(max-width:690px){.story-player .pati-story-interactive{bottom:88px}.pati-dm-msg-tools button{min-height:32px;padding:7px}}

/* 2026 Reels Studio — timeline-style creation, mobile first */
#post-form .prs-studio{margin:16px 0 20px;padding:16px;border:1px solid #e4e6ea;border-radius:18px;background:#f8f9fa;color:#18191b;display:grid;gap:13px;box-shadow:0 7px 30px #0000000c}
#post-form .prs-head{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
#post-form .prs-head strong{font-size:17px;font-weight:900;letter-spacing:-.5px}
#post-form .prs-head span{color:#6c7079;font-size:11px}
#post-form .prs-screen{width:min(230px,100%);aspect-ratio:9/16;border-radius:18px;overflow:hidden;background:#101014;position:relative;margin:auto;box-shadow:0 12px 30px #080b1250}
#post-form .prs-preview{width:100%;height:100%;object-fit:contain;display:block;background:#101014}
#post-form .prs-overlay{position:absolute;left:6%;right:6%;top:74%;color:white;font-size:17px;line-height:1.25;letter-spacing:-.25px;word-break:break-word;text-align:center;font-weight:900;pointer-events:none;text-shadow:0 2px 7px #000,0 -1px 4px #0009}
#post-form .prs-overlay[data-position=top]{top:19%}
#post-form .prs-overlay[data-position=center]{top:47%}
#post-form .prs-current{font-size:12px;color:#3a3b3f;font-weight:800;text-align:center}
#post-form .prs-clip-list{display:flex;gap:8px;overflow-x:auto;padding:4px 0 8px;scrollbar-width:thin}
#post-form .prs-empty{font-size:12px;color:#6f7179;margin:0}
#post-form .prs-clip{border:1px solid #d8d9de;border-radius:14px;background:white;min-width:162px;max-width:220px;display:flex;align-items:center;padding:6px 7px;gap:4px}
#post-form .prs-clip.active{border-color:#17181a;box-shadow:0 0 0 1px #17181a}
#post-form .prs-pick{min-width:0;display:flex;align-items:flex-start;flex-direction:column;gap:3px;flex:1;text-align:left;background:transparent;border:0;color:#222326;font-weight:700;font-size:11px;cursor:pointer}
#post-form .prs-pick span:not(.prs-num){text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:112px}
#post-form .prs-num{background:#18191b;color:white;padding:3px 7px;border-radius:8px}
#post-form .prs-pick small{color:#777a80}
#post-form .prs-clip-buttons{display:flex;gap:2px;flex-direction:column}
#post-form .prs-clip-buttons button{border:0;background:#f0f1f3;border-radius:7px;color:#333;font-size:15px;min-width:27px;min-height:25px;cursor:pointer}
#post-form .prs-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#post-form .prs-global{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#post-form .prs-times label,#post-form .prs-global label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;color:#373a40;font-weight:800}
#post-form .prs-global label:nth-child(3),#post-form .prs-mute{grid-column:span 2}
#post-form .prs-times input,#post-form .prs-times select,#post-form .prs-global input:not([type=checkbox]),#post-form .prs-global select{width:100%;min-width:0;border:1px solid #d3d5da;background:white;color:#222328;border-radius:10px;padding:9px;font-size:16px;min-height:40px}
#post-form .prs-mute{display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;padding:8px 0}
#post-form .prs-mute input{accent-color:#202124;width:19px;height:19px}
#post-form .prs-feedback{border-top:1px solid #e0e2e5;padding-top:10px;font-size:12px;color:#535965;line-height:1.4}
#post-form .prs-feedback.error{color:#bc2935}
@media(max-width:650px){#post-form .prs-studio{margin:12px -4px;padding:12px;border-radius:14px}#post-form .prs-screen{width:min(190px,63vw)}#post-form .prs-clip{min-width:147px}#post-form .prs-head strong{font-size:15px}}

/* Performance and accessibility stabilization */
@media(max-width:740px){
 .pati-reels-viewport,.pati-reel-item{height:clamp(300px,calc(100dvh - 205px),780px);min-height:0}
 .pati-reels-viewport{overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
 #modal-root .modal:has(#post-form) .modal-content,
 #modal-root .modal:has(#story-form) .modal-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 #modal-root .modal:has(#post-form) .modal-footer,
 #modal-root .modal:has(#story-form) .modal-footer{flex-shrink:0;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
 .story-player .pati-story-interactive{bottom:calc(74px + env(safe-area-inset-bottom,0px));max-height:42dvh;overflow-y:auto}
 .pati-dm-layout .bubble-chat{overflow-wrap:anywhere;min-width:0}
}
@media(prefers-reduced-motion:reduce){
 .pati-reels-viewport{scroll-behavior:auto}
 .pati-card,.pati-profile-tile,.pati-reel-item{animation:none!important;transition:none!important}
}

/* Patiyiz polished sharing icons — refined monochrome UI */
#pati-create-sheet .pati-create-choice{
 gap:14px;min-height:82px;padding:13px 15px;
 background:linear-gradient(120deg,#242528,#1c1d21);
 border:1px solid #45464b;border-radius:17px;
 transition:background .18s,border-color .18s,transform .18s;
}
#pati-create-sheet .pati-create-choice:hover{background:#2c2d32;border-color:#878991;transform:translateY(-1px)}
#pati-create-sheet .pati-create-choice:active{transform:scale(.992)}
#pati-create-sheet .pati-create-choice .pati-choice-icon{
 display:grid;place-items:center;flex:0 0 50px;
 width:50px;height:50px;border-radius:15px;
 background:linear-gradient(135deg,#43444a,#34353a);color:#fff;
 box-shadow:inset 0 1px #ffffff19;
}
#pati-create-sheet .pati-choice-icon svg.icon{
 display:block!important;width:26px!important;height:26px!important;
 stroke:#fff!important;stroke-width:1.85!important;fill:none!important;
}
#pati-create-sheet .pati-choice-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}
#pati-create-sheet .pati-choice-copy b{font-size:15px;font-weight:850;letter-spacing:-.18px}
#pati-create-sheet .pati-choice-copy small{font-size:11px;color:#bdbfc5;line-height:1.45}
#pati-create-sheet .pati-choice-chevron{
 display:block;width:19px;height:19px;stroke:#bfc0c6;stroke-width:2;fill:none;
 transform:rotate(-90deg);flex:0 0 19px;opacity:.8
}
#pati-create-sheet .pati-create-dismiss svg.icon{display:block!important;width:20px!important;height:20px!important;stroke:#fff!important;fill:none!important}
#pati-create-sheet .pati-create-choice:focus-visible{outline:2px solid #fff;outline-offset:3px}
/* Transient, per-account onboarding completion message */
#main-content .pati-onboarding-thanks{
 display:flex;align-items:center;gap:13px;padding:19px 20px;
 margin:7px 0 19px;background:#fff;color:#232428;
 border:1px solid #dfdfe3;border-radius:19px;
 box-shadow:0 8px 26px #0000000c;
 animation:pati-welcome-in .32s ease both;
}
#main-content .pati-onboarding-thanks-icon{
 width:48px;height:48px;flex:0 0 48px;border-radius:15px;
 background:#17181b;color:#fff;display:grid;place-items:center;
}
#main-content .pati-onboarding-thanks-icon .icon{
 display:block!important;width:25px!important;height:25px!important;stroke:#fff!important;fill:none!important;
}
#main-content .pati-onboarding-thanks strong{font-size:15px;font-weight:850}
#main-content .pati-onboarding-thanks p{margin:5px 0 0;color:#676970;font-size:12px;line-height:1.5}
@keyframes pati-welcome-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
/* Premium Reels icon rail */
.pati-reels-head button{display:inline-flex;align-items:center;gap:7px}
.pati-reels-head button svg.icon{display:block!important;width:17px!important;height:17px!important;stroke:#fff!important;fill:none!important}
.pati-reel-rail{right:9px;bottom:31px;gap:11px;max-width:75px}
.pati-reel-rail .pati-reel-action,
.pati-reel-rail .pati-reel-tool{
 display:flex;align-items:center;justify-content:center;flex-direction:column;
 border:1px solid #ffffff24;border-radius:15px;
 background:#0b0c0fb0;color:#fff;
 min-width:59px;width:59px;min-height:59px;
 gap:4px;padding:9px 6px;
 font-size:12px;font-weight:750;line-height:1.1;
 box-shadow:0 2px 15px #00000025;
 text-shadow:none;backdrop-filter:blur(8px);
 transition:background .15s,transform .15s,border-color .15s;
 touch-action:manipulation;
}
.pati-reel-rail .pati-reel-action:hover,
.pati-reel-rail .pati-reel-tool:hover{background:#26272be8;border-color:#ffffff55}
.pati-reel-rail .pati-reel-action:active,
.pati-reel-rail .pati-reel-tool:active{transform:scale(.95)}
.pati-reel-rail .pati-reel-action svg.icon{
 display:block!important;width:26px!important;height:26px!important;
 stroke:#fff!important;stroke-width:1.9!important;fill:none!important;
}
.pati-reel-rail .pati-reel-tool svg.icon{
 display:block!important;width:21px!important;height:21px!important;
 stroke:#fff!important;stroke-width:1.9!important;fill:none!important;
}
.pati-reel-rail .pati-reel-action.active[data-action="like"] svg.icon{
 stroke:#ff7990!important;fill:#ff7990!important;
}
.pati-reel-rail .pati-reel-action.active[data-action="save"] svg.icon{
 stroke:#fff!important;fill:#fff!important;
}
.pati-reel-rail .pati-reel-action.active[data-action="like"]{border-color:#ff799047}
.pati-reel-rail .pati-reel-count{font-size:12px;font-weight:820;color:#fff}
.pati-reel-rail .pati-reel-action-label,
.pati-reel-rail .pati-reel-tool-label{
 font-size:9px;font-weight:750;color:#f0f0f1;white-space:nowrap;
}
.pati-reel-rail .pati-reel-tool{min-height:51px;background:#1e1f22ba;border-color:#ffffff1b}
.pati-reel-rail button:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:740px){
 #pati-create-sheet .pati-create-choice{min-height:80px}
 .pati-reel-rail{gap:8px;right:7px;bottom:calc(16px + env(safe-area-inset-bottom,0px))}
 .pati-reel-rail .pati-reel-action{min-height:56px}
 .pati-reel-rail .pati-reel-tool{min-height:45px}
 .pati-reel-author{right:82px}
}
@media(prefers-reduced-motion:reduce){
 #main-content .pati-onboarding-thanks{animation:none}
 #pati-create-sheet .pati-create-choice,
 .pati-reel-rail .pati-reel-action,
 .pati-reel-rail .pati-reel-tool{transition:none}
}

/* Mobile-first Patiyiz release: edge-to-edge social layout, safe areas and accessible messaging. */
.pati-header-actions{display:flex;align-items:center;gap:9px;margin-left:auto}
.pati-header-actions>button{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer}
.pati-header-actions .pati-count-badge{
 position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;
 background:#1d1e22;color:#fff;padding:0 4px;margin:0;
 border:2px solid #fff;font-size:9px;box-sizing:content-box;
}
.pati-header-actions>button.active{border-color:#74767d!important;background:#e8e8eb!important}
.pati-header-actions button:focus-visible{outline:2px solid #33343a;outline-offset:2px}
#pati-create-sheet .pati-create-choices{gap:9px}
#pati-create-sheet .pati-create-choice[data-action="pati-create-text"] .pati-choice-icon{background:linear-gradient(135deg,#575967,#33343b)}
#modal-root #post-form[data-mode="text"] textarea[name="body"]{
 display:block;width:100%;min-height:190px;resize:vertical;
 padding:16px;border-radius:15px;line-height:1.65;
 background:#f7f7f8;border:1px solid #e0e1e4;
 font-size:16px!important;letter-spacing:.01em;
}
#modal-root #post-form[data-mode="text"] .pati-field label{font-weight:780}
@media(min-width:741px) and (max-width:1050px){
 #app-root>.app-shell{display:grid;grid-template-columns:minmax(175px,210px) minmax(0,1fr)!important;gap:18px!important;max-width:100%!important;padding:20px clamp(12px,2vw,24px) 44px!important}
 #app-root>.app-shell>.main{min-width:0;width:100%;max-width:none}
 #app-root>.app-shell>.right-rail{display:none!important}
}
@media(max-width:740px){
 html,body{width:100%;max-width:100%;overflow-x:clip}
 body{margin:0!important;background:#fff!important}
 #app-root{width:100%;min-width:0;max-width:100%}
 #app-root>.mobile-header{
  width:100%;max-width:100%;box-sizing:border-box;
  min-height:calc(62px + env(safe-area-inset-top,0px))!important;
  padding:calc(9px + env(safe-area-inset-top,0px)) clamp(12px,3.8vw,19px) 9px!important;
  box-shadow:none!important;
 }
 #app-root>.mobile-header .brand-word{font-size:clamp(22px,6vw,27px)!important}
 #app-root>.mobile-header .brand-icon{width:37px;height:37px}
 #app-root>.mobile-header .pati-header-actions{gap:9px;flex-shrink:0}
 #app-root>.mobile-header .pati-header-messages,
 #app-root>.mobile-header .pati-header-notifications{
  display:grid!important;place-items:center!important;
  width:43px!important;height:43px!important;min-width:43px!important;
  background:#f4f4f6!important;border:1px solid #e6e6e9!important;
  border-radius:14px!important;color:#202126!important;padding:0!important;
 }
 #app-root>.mobile-header .pati-header-messages .icon,
 #app-root>.mobile-header .pati-header-notifications .icon{
  display:block!important;width:23px!important;height:23px!important;
  stroke:#212228!important;stroke-width:2!important;fill:none!important;
 }
 #app-root>.app-shell{
  display:block!important;width:100%!important;max-width:100%!important;
  margin:0!important;box-sizing:border-box!important;
  padding:calc(64px + env(safe-area-inset-top,0px)) 0 calc(82px + env(safe-area-inset-bottom,0px))!important;
  min-height:100dvh!important;
 }
 #app-root>.app-shell>.main{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
 #main-content{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
 #main-content>.page-intro{margin:16px 15px 14px!important}
 #main-content .page-title{font-size:clamp(22px,6.5vw,28px)!important}
 #main-content .stories-section{margin:7px 0 12px!important;border-radius:0!important;border-left:0!important;border-right:0!important;padding:15px 12px 9px!important}
 #main-content .pati-progress-card,
 #main-content .pati-onboarding-thanks{margin:10px 12px 15px!important}
 #main-content>.pati-card{margin:0 0 11px!important;border-radius:0!important;border-left:0!important;border-right:0!important;box-shadow:none!important;padding:14px 14px 15px!important}
 #main-content .pati-card{max-width:100%;min-width:0;box-sizing:border-box}
 #main-content .pati-card img,#main-content .pati-card video{max-width:100%}
 #main-content .pati-social-actions{gap:12px!important;justify-content:space-between!important}
 #main-content .pati-social-actions>button{min-width:40px;min-height:42px;touch-action:manipulation}
 #main-content .pati-feed-switch,#main-content .pati-filter-tabs{padding-left:12px;padding-right:12px}
 #main-content .pati-ig-profile{width:100%;max-width:100%;overflow:hidden;padding-bottom:24px}
 #main-content .pati-ig-summary{padding-left:clamp(12px,3.8vw,20px)!important;padding-right:clamp(12px,3.8vw,20px)!important}
 #main-content .pati-ig-actions{display:flex;flex-wrap:wrap;gap:7px;padding-left:12px;padding-right:12px}
 #main-content .pati-ig-actions button{min-height:42px}
 #main-content .pati-ig-highlights{padding-left:14px!important;padding-right:14px!important;gap:14px}
 #main-content .pati-ig-grid{width:100%;max-width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
 #main-content .pati-profile-tile{min-width:0;overflow:hidden}
 #main-content .pati-ig-highlight{min-height:104px}
 #app-root>.mobile-bottom{
  width:100%;max-width:100%;box-sizing:border-box!important;
  min-height:calc(66px + env(safe-area-inset-bottom,0px))!important;
  padding:7px 4px calc(7px + env(safe-area-inset-bottom,0px))!important;
  box-shadow:0 -2px 15px #00000009!important;
 }
 #app-root>.mobile-bottom>.mobile-nav-btn{min-width:0;min-height:49px!important;border-radius:12px!important}
 #app-root>.mobile-bottom>.mobile-nav-btn .icon{width:24px!important;height:24px!important}
 #app-root>.mobile-bottom>.mobile-nav-btn small{font-size:10px!important;font-weight:750!important}
 #pati-create-sheet:not([hidden]){display:flex;align-items:flex-end}
 #pati-create-sheet .pati-create-modal{
  width:100%!important;box-sizing:border-box!important;
  padding:21px clamp(15px,4vw,25px) calc(22px + env(safe-area-inset-bottom,0px))!important;
  border-radius:25px 25px 0 0!important;max-height:92dvh!important;
 }
 #pati-create-sheet .pati-create-choice{min-height:72px!important;padding:10px 13px!important}
 #pati-create-sheet .pati-create-choice .pati-choice-icon{width:47px;height:47px;flex-basis:47px}
 #modal-root .modal:has(#post-form[data-mode="text"]){width:100%;max-width:600px;box-sizing:border-box}
 #modal-root #post-form[data-mode="text"] textarea[name="body"]{min-height:210px}
 #main-content .pati-reels-head{padding:9px 12px!important;margin:0!important;min-height:49px!important;box-sizing:border-box}
 #main-content .pati-reels-viewport{
  display:block!important;width:100vw!important;max-width:100%!important;
  margin:0!important;border:0!important;border-radius:0!important;
  height:calc(100dvh - 181px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;
  min-height:320px!important;
 }
 #main-content .pati-reel-item{
  width:100%!important;max-width:100%!important;
  height:calc(100dvh - 181px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;
  min-height:320px!important;border-radius:0!important;
 }
 #main-content .pati-reel-video{width:100%;height:100%;object-fit:contain}
 #main-content .pati-reel-rail{right:8px;bottom:20px}
 #main-content .pati-reel-author{left:13px;right:80px;bottom:108px}
 #main-content .pati-reel-caption{left:13px;right:80px;bottom:38px}
 #main-content .pati-dm-top{padding:16px 14px 10px}
 #main-content .pati-dm-filters{padding:0 11px 10px;gap:8px}
 #main-content .pati-dm-layout{width:100%!important;max-width:100%!important;margin:0!important;border:0!important;border-radius:0!important}
 #main-content .pati-dm-layout .chat-people,#main-content .pati-dm-layout .chat-window{
  border-radius:0!important;border-left:0!important;border-right:0!important;width:100%!important;
 }
 #main-content .modern-chat.mobile-chat-open .chat-window{
  height:calc(100dvh - 198px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - var(--pati-keyboard-inset,0px))!important;
  max-height:none!important;min-height:210px!important;
 }
 .pati-keyboard-open #main-content .modern-chat.mobile-chat-open .chat-window{
  height:calc(100dvh - 121px - env(safe-area-inset-top,0px) - var(--pati-keyboard-inset,0px))!important;
  min-height:180px!important;
 }
 #main-content .modern-chat .chat-form{padding:11px 12px!important;box-sizing:border-box}
 #main-content .modern-chat .chat-form input{font-size:16px!important}
}
@media(max-width:355px){
 #app-root>.mobile-header .brand-icon{width:31px;height:31px}
 #app-root>.mobile-header .brand-word{font-size:21px!important}
 #app-root>.mobile-header .pati-header-actions{gap:5px}
 #app-root>.mobile-header .pati-header-messages,
 #app-root>.mobile-header .pati-header-notifications{
  width:39px!important;height:39px!important;min-width:39px!important
 }
 #main-content .pati-social-actions{gap:4px!important}
}
@media(prefers-reduced-motion:reduce){
 #pati-create-sheet .pati-create-choice{transition:none}
}

/* Inbox-first direct messages and visible new-chat action. */
.pati-dm-top{display:flex;align-items:center;justify-content:space-between;gap:9px}
.pati-dm-top>strong{font-size:20px;font-weight:850;color:#232428}
.pati-dm-top-actions{display:flex;align-items:center;gap:11px}
.pati-dm-top-actions>span{font-size:11px;color:#797b81;white-space:nowrap}
.pati-dm-new{
 min-height:41px;display:inline-flex;align-items:center;justify-content:center;
 gap:6px;background:#1e1f23;color:#fff;border:0;border-radius:12px;
 font-size:12px;font-weight:800;padding:8px 12px;white-space:nowrap;cursor:pointer
}
.pati-dm-new .icon{width:17px!important;height:17px!important;stroke:#fff!important;fill:none!important}
.pati-dm-new-list{display:grid;gap:3px;max-height:min(60vh,480px);overflow:auto;overscroll-behavior:contain}
.pati-dm-new-hint{color:#76777c;font-size:12px;margin:0 0 12px}
.pati-dm-new-person{
 display:flex;align-items:center;gap:12px;width:100%;min-height:63px;
 border:0;border-bottom:1px solid #ededf0;background:#fff;
 padding:10px 4px;text-align:left;cursor:pointer;color:#292a30;
}
.pati-dm-new-person>span:not(.avatar){display:grid;gap:4px;flex:1;min-width:0}
.pati-dm-new-person strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pati-dm-new-person small{font-size:11px;color:#91939a}
.pati-dm-new-person>.icon{width:20px;height:20px;stroke:#35363c;flex-shrink:0}
.pati-dm-new-person:hover{background:#f5f5f7}
#dm-new-form .modal-footer{display:none}
@media(max-width:740px){
 #main-content .pati-dm-top{margin:0;gap:5px}
 #main-content .pati-dm-top>strong{font-size:18px}
 #main-content .pati-dm-top-actions{gap:7px}
 #main-content .pati-dm-new{min-height:43px;font-size:11px;padding:9px 11px}
}
@media(max-width:355px){
 #main-content .pati-dm-top-actions>span{font-size:9px}
 #main-content .pati-dm-new{padding:8px}
}

/* Feed starts immediately below the stories strip. Media/text tabs, repost, pin controls removed. */
#main-content .pati-feed-posts{width:100%;margin:0;padding:0;min-width:0}
#main-content .pati-feed-posts>.pati-card:first-child{margin-top:0!important}
#main-content .pati-feed-posts>.pati-card{max-width:100%;min-width:0;box-sizing:border-box}
/* Instagram-inspired share sheet with prominent round user portraits. */
#share-post-form .modal-content{padding-bottom:6px}
#share-post-form .modal-footer{display:none!important}
#share-post-form .pati-share-preview{
 display:flex;align-items:center;gap:12px;padding:11px 12px;
 margin:2px 0 17px;background:#f5f5f7;border:1px solid #ebebee;
 border-radius:16px;min-height:70px;
}
#share-post-form .pati-share-preview>img,
#share-post-form .pati-share-preview-icon{
 width:55px;height:55px;min-width:55px;object-fit:cover;
 display:grid;place-items:center;overflow:hidden;flex:0 0 55px;
 border-radius:12px;background:#e8e9ed;color:#313238;
}
#share-post-form .pati-share-preview-icon .icon{width:25px;height:25px}
#share-post-form .pati-share-preview>span:last-child{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
#share-post-form .pati-share-preview b{font-size:13px;color:#24252a;font-weight:850}
#share-post-form .pati-share-preview small{
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
 overflow:hidden;font-size:11px;color:#757780;line-height:1.5;overflow-wrap:anywhere;
}
#share-post-form .pati-share-search{
 position:relative;display:flex;align-items:center;
 width:100%;margin-bottom:15px;
}
#share-post-form .pati-share-search>.icon{position:absolute;left:14px;width:20px;height:20px;stroke:#73757d;pointer-events:none}
#share-post-form #pati-share-search{
 width:100%;min-height:47px;padding:11px 13px 11px 43px;
 border:1px solid #e6e7eb;background:#f4f4f6;color:#24252b;
 border-radius:14px;outline-offset:2px;font-size:16px!important;
}
#share-post-form .pati-share-recipient-title{
 margin:3px 0 12px;font-size:13px;font-weight:850;color:#2a2b30;
}
#share-post-form .pati-share-people-grid{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:13px 9px;max-height:min(46dvh,420px);
 overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
 padding:1px 3px 13px;margin:0 0 13px;
}
#share-post-form .pati-share-person{
 display:flex;flex-direction:column;align-items:center;
 justify-content:flex-start;gap:5px;text-align:center;
 min-width:0;min-height:112px;padding:8px 3px 7px;
 border:1px solid transparent;border-radius:14px;
 background:#fff;color:#22242a;cursor:pointer;
 font-family:inherit;touch-action:manipulation;
}
#share-post-form .pati-share-person:hover,
#share-post-form .pati-share-person:focus-visible{
 background:#f2f2f5;border-color:#e0e0e5;
}
#share-post-form .pati-share-person:active{transform:scale(.97)}
#share-post-form .pati-share-person[hidden],#share-post-form .pati-share-no-match[hidden]{display:none!important}
#share-post-form .pati-share-avatar{
 width:66px;height:66px;flex:0 0 66px;position:relative;
 display:grid;place-items:center;border-radius:50%;
 border:2px solid #dfe0e5;background:#f0f0f2;
 box-shadow:0 2px 9px #0000000c;overflow:hidden;
}
#share-post-form .pati-share-avatar .avatar,
#share-post-form .pati-share-avatar .avatar.l{
 display:grid!important;place-items:center!important;
 width:100%!important;height:100%!important;
 border-radius:50%!important;flex:none!important;
 font-size:24px!important;overflow:hidden!important;
 background:#e1e2e6!important;color:#27282d!important;
}
#share-post-form .pati-share-avatar .avatar img{
 width:100%!important;height:100%!important;border-radius:50%!important;
 object-fit:cover!important;display:block!important;
}
#share-post-form .pati-share-person-name{
 display:block;width:100%;font-size:11px;font-weight:800;
 overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
 line-height:1.35;
}
#share-post-form .pati-share-person>small{
 display:block;width:100%;font-size:10px;
 overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
 color:#96979d;line-height:1.2;
}
#share-post-form .pati-share-empty,
#share-post-form .pati-share-no-match{
 grid-column:1/-1;text-align:center;color:#777982;font-size:12px;
 padding:20px 10px;margin:0;
}
#share-post-form .pati-share-quick{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
 padding-top:13px;margin:0;border-top:1px solid #ededf0;
}
#share-post-form .pati-share-quick button{
 display:flex;flex-direction:column;align-items:center;
 justify-content:center;gap:8px;text-align:center;
 min-height:76px;padding:12px 9px;background:#f4f4f6;
 border:1px solid #e8e8ec;color:#2f3035;
 font-size:11px;font-weight:750;line-height:1.3;
}
#share-post-form .pati-share-quick button .icon{
 display:block;width:23px;height:23px;stroke:#292a30;fill:none;
}
@media(max-width:740px){
 #main-content .pati-feed-posts{margin-top:0!important}
 #main-content .pati-feed-posts>.pati-card:first-child{margin-top:0!important}
 #share-post-form .pati-share-people-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 5px;max-height:min(42dvh,390px)}
 #share-post-form .pati-share-avatar{width:clamp(49px,14vw,66px);height:clamp(49px,14vw,66px);flex-basis:clamp(49px,14vw,66px)}
 #share-post-form .pati-share-person{min-height:101px;padding:7px 2px}
 #share-post-form .pati-share-person-name{font-size:10.5px}
 #share-post-form .pati-share-quick button{min-height:70px}
}
@media(max-width:355px){
 #share-post-form .pati-share-people-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){#share-post-form .pati-share-person:active{transform:none}}

/* Instagram-inspired 2026 social feed — attached story row, media-first cards. */
#main-content .pati-feed-posts{margin-top:0!important;display:block;min-width:0}
#main-content .pati-feed-card{
 background:#fff!important;border:1px solid #eaeaec!important;
 border-radius:17px!important;margin:0 0 13px!important;
 overflow:hidden;box-shadow:none!important;padding:0!important;
}
#main-content .pati-feed-card-header{
 display:flex;align-items:center;justify-content:space-between;
 gap:9px;min-height:61px;padding:9px 13px;background:#fff;
}
#main-content .pati-feed-card-header .pati-profile-row{
 display:flex;align-items:center;flex:1;min-width:0;gap:9px!important;
 overflow:hidden;max-width:calc(100% - 44px)
}
#main-content .pati-feed-card-header .avatar{
 width:40px!important;height:40px!important;min-width:40px!important;
 flex:0 0 40px!important;border-radius:50%!important;overflow:hidden;
 border:1px solid #e5e5e8;
}
#main-content .pati-feed-card-header .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#main-content .pati-feed-card-header .pati-profile-row strong{font-size:13px;font-weight:850;color:#1b1c21}
#main-content .pati-post-more{
 display:flex;align-items:center;justify-content:center;
 flex:0 0 42px;min-width:42px;height:42px;border:0;
 background:transparent;color:#26272c;border-radius:12px;
 font-size:29px;letter-spacing:1px;line-height:1;cursor:pointer;
}
#main-content .pati-post-more:hover{background:#f2f2f4}
#main-content .pati-feed-pet{
 margin:0!important;padding:3px 14px 10px;
 font-size:11px!important;line-height:1.5!important;color:#696a71!important;
}
#main-content .pati-feed-card .pati-carousel,
#main-content .pati-feed-card .pati-video-frame{
 width:100%!important;max-width:100%!important;margin:0!important;
 padding:0!important;border-radius:0!important;overflow:hidden!important;
 background:#121314;
}
#main-content .pati-feed-card .pati-video-frame{aspect-ratio:4/5}
#main-content .pati-feed-card .pati-post-video{
 width:100%!important;height:100%!important;max-height:none!important;
 display:block;object-fit:contain!important;border-radius:0!important;
 margin:0!important;background:#101113;
}
#main-content .pati-feed-card .pati-carousel-track{margin:0!important}
#main-content .pati-feed-card .pati-carousel-slide{min-width:100%}
#main-content .pati-feed-card .pati-photo{
 display:block!important;width:100%!important;aspect-ratio:4/5!important;
 margin:0!important;border-radius:0!important;background:#ededf0!important;
}
#main-content .pati-feed-card .pati-photo img{
 display:block;width:100%!important;height:100%!important;
 object-fit:cover!important;content-visibility:auto;
}
#main-content .pati-feed-card .pati-actionbar.pati-social-actions{
 display:flex!important;align-items:center!important;gap:15px!important;
 margin:0!important;min-height:57px;padding:6px 13px!important;
 background:#fff;border:0!important;border-radius:0!important;
}
#main-content .pati-feed-card .pati-social-actions button{
 display:inline-flex!important;align-items:center!important;
 gap:5px!important;min-height:43px!important;min-width:34px;
 margin:0!important;padding:8px 2px!important;
 background:transparent!important;border:0!important;
 font-size:12px;font-weight:750;color:#23242a!important;
}
#main-content .pati-feed-card .pati-social-actions button .icon{
 width:25px!important;height:25px!important;stroke-width:1.8;
}
#main-content .pati-feed-card .pati-social-actions .pati-save-action{margin-left:0!important}
#main-content .pati-feed-card .pati-social-actions button.active{color:#e53956!important}
#main-content .pati-post-details{padding:0 15px 14px;display:grid;gap:5px;min-width:0}
#main-content .pati-post-like-summary{font-size:12px;color:#17181c;font-weight:850}
#main-content .pati-post-caption{
 font-size:13px!important;font-weight:450;color:#292a30!important;
 line-height:1.48!important;margin:1px 0 0!important;
 overflow-wrap:anywhere;white-space:pre-wrap;
}
#main-content .pati-post-caption strong{font-size:13px;font-weight:850;color:#18191c}
#main-content .pati-post-time{
 font-size:11px;font-weight:500;color:#8d8e96;
 margin-top:2px;line-height:1.3;
}
#main-content .pati-feed-text-content{
 padding:15px 17px;min-height:98px;background:#fafafb;
 border-top:1px solid #efeff1;border-bottom:1px solid #efeff1;
}
#main-content .pati-feed-text-content .pati-post-caption{
 font-size:15px!important;line-height:1.7!important;
}
#post-actions-form .modal-footer{display:none!important}
#post-actions-form .pati-post-menu-list{display:grid;gap:8px}
#post-actions-form .pati-post-menu-list button{
 display:flex;align-items:center;gap:10px;text-align:left;
 border:1px solid #e5e6e9;background:#f8f8fa;color:#25262a;
 padding:14px 12px;border-radius:13px;font-size:13px;font-weight:780;
 min-height:51px;cursor:pointer
}
#post-actions-form .pati-post-menu-list .icon{
 width:21px;height:21px;stroke:#22242a;fill:none
}
#post-actions-form .pati-post-menu-list .danger{color:#b52e42;border-color:#f0dce0}
#post-actions-form .pati-post-menu-list .danger .icon{stroke:#b52e42}
/* Premium direct messages: legible conversation list and friendly bubbles. */
#main-content .pati-dm-top{
 background:#fff;display:flex;align-items:center;
 padding:19px 18px 13px!important;border-bottom:0
}
#main-content .pati-dm-top strong{font-weight:850;font-size:22px}
#main-content .pati-dm-filters{
 background:#fff;padding:1px 16px 13px!important;
 border-bottom:0;gap:8px!important
}
#main-content .pati-dm-filters button{
 border-radius:999px!important;min-height:37px;padding:9px 16px;
 border:1px solid #e8e8eb!important;background:#f6f6f8!important;
 color:#62636a!important;font-size:12px;font-weight:800
}
#main-content .pati-dm-filters button.active{
 background:#212227!important;border-color:#212227!important;color:#fff!important;
}
#main-content .pati-dm-searchbar{
 display:flex;align-items:center;position:relative;background:#fff;
 padding:0 16px 15px;
}
#main-content .pati-dm-searchbar>.icon{
 width:18px;height:18px;position:absolute;left:31px;top:14px;pointer-events:none;
 stroke:#81838a;fill:none
}
#main-content #pati-dm-search{
 box-sizing:border-box;display:block;width:100%;height:45px;
 padding:10px 13px 10px 44px;border:1px solid #e6e6e9;
 background:#f4f4f6;color:#24252a;border-radius:15px;
 font-size:16px;outline-offset:2px
}
#main-content .pati-dm-layout{background:#fff}
#main-content .pati-dm-layout .chat-people{
 background:#fff!important;border:1px solid #e6e7ea!important;
 border-radius:16px;overflow:auto
}
#main-content .pati-dm-layout .chat-list-heading{
 font-size:13px;font-weight:850;color:#23242b;padding:15px 14px;
}
#main-content .pati-dm-layout .chat-person{
 box-sizing:border-box;display:flex;align-items:center;gap:12px;
 width:100%;min-height:78px;padding:12px 13px!important;
 border:0;border-bottom:1px solid #f0f0f2!important;
 background:#fff;color:#22242a;touch-action:manipulation;cursor:pointer;
}
#main-content .pati-dm-layout .chat-person:hover{background:#f5f5f7}
#main-content .pati-dm-layout .chat-person.active{background:#f0f0f3!important}
#main-content .pati-dm-layout .chat-person[hidden]{display:none!important}
#main-content .pati-dm-layout .chat-person>.avatar,
#main-content .pati-dm-layout .chat-head-avatar>.avatar{
 width:51px!important;height:51px!important;min-width:51px!important;
 flex:0 0 51px!important;border-radius:50%!important;overflow:hidden!important;
 border:1px solid #e3e4e8;background:#e8e9ee;
}
#main-content .pati-dm-layout .chat-person>.avatar img,
#main-content .pati-dm-layout .chat-head-avatar .avatar img{
 display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;
}
#main-content .pati-dm-layout .chat-person-info strong{font-size:13px;font-weight:850;color:#23242a}
#main-content .pati-dm-layout .chat-person-info small{margin-top:4px;font-size:11px;color:#8a8b93}
#main-content .pati-dm-layout .chat-person-meta small{font-size:10px;color:#9b9ca2}
#main-content .pati-dm-layout .chat-unread{
 display:inline-grid;place-items:center;min-width:21px;min-height:21px;
 border-radius:100px;background:#222328;color:#fff;font-size:10px;
}
#main-content .pati-dm-layout .chat-window{
 min-width:0;background:#fff;border:1px solid #e7e7eb;
 border-radius:16px;overflow:hidden;
}
#main-content .pati-dm-layout .chat-window>header{
 display:flex;align-items:center;min-height:67px;
 background:#fff;border-bottom:1px solid #f0f0f3;padding:10px 14px;
}
#main-content .pati-dm-layout .chat-history{
 background:#f9f9fa;gap:10px;padding:17px 14px;
}
#main-content .pati-dm-layout .bubble-chat{
 font-size:13px;line-height:1.55;padding:11px 13px;max-width:82%;
 border-radius:17px 17px 17px 5px;
 color:#2b2c31;background:#ececf0;
 overflow-wrap:anywhere
}
#main-content .pati-dm-layout .bubble-chat.mine{
 border-radius:17px 17px 5px 17px;
 color:#fff;background:#202126
}
#main-content .pati-dm-layout .bubble-chat>small{font-size:10px;opacity:.75}
#main-content .pati-dm-layout .chat-form{
 background:#fff;border-top:1px solid #ededf0;
 display:flex;align-items:center;gap:8px;padding:11px 12px
}
#main-content .pati-dm-layout .chat-form input[name="body"]{
 border-radius:22px!important;border:1px solid #e5e5e9!important;
 background:#f6f6f8!important;min-height:43px;font-size:16px!important;
 padding:10px 13px
}
#main-content .pati-dm-layout .chat-form .primary-btn{
 width:44px;min-width:44px;min-height:44px;flex:0 0 44px;
 display:grid;place-items:center;border-radius:50%!important;
 background:#24252a!important;color:#fff
}
@media(max-width:740px){
 #main-content .stories-section{
  margin:0!important;padding:11px 11px 4px!important;
  border-top:0!important;border-bottom:0!important;
  box-shadow:none!important;
 }
 #main-content .stories-heading{display:none!important}
 #main-content .stories-strip{
  display:flex;gap:13px;margin:0!important;padding:5px 1px 8px!important;
  overflow-x:auto;scrollbar-width:none;
 }
 #main-content .story-person{min-width:78px}
 #main-content .story-own-photo,#main-content .story-avatar{
  width:71px!important;height:71px!important;
 }
 #main-content .pati-feed-posts>.pati-feed-card{
  width:100%!important;border-radius:0!important;
  margin:0 0 9px!important;
  border-left:0!important;border-right:0!important;
  border-top:0!important;border-bottom:1px solid #e9e9ec!important;
 }
 #main-content .pati-feed-card-header{padding:8px 13px;min-height:58px}
 #main-content .pati-feed-card .pati-social-actions{min-height:54px;padding:4px 13px!important}
 #main-content .pati-feed-card .pati-social-actions button{min-height:45px!important}
 #main-content .pati-feed-card .pati-post-details{padding-bottom:13px}
 #main-content .pati-feed-card .pati-photo{aspect-ratio:4/5!important}
 #main-content .pati-reels-head{display:none!important}
 #main-content .pati-reels-viewport,
 #main-content .pati-reel-item{
  box-sizing:border-box!important;display:block!important;
  width:100%!important;max-width:100%!important;
  height:calc(100dvh - 132px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;
  max-height:none!important;min-height:0!important;
  border:0!important;margin:0!important;border-radius:0!important;
 }
 #main-content .pati-reels-viewport{
  scroll-snap-type:y mandatory;overscroll-behavior-y:contain;
  background:#0a0b0e!important;
 }
 #main-content .pati-reel-video{
  width:100%!important;height:100%!important;
  max-height:none!important;object-fit:contain!important;
  background:#08090b!important;
 }
 #main-content .pati-reel-rail{right:8px;bottom:15px;gap:7px}
 #main-content .pati-reel-rail .pati-reel-action{
  min-height:49px!important;width:51px!important;min-width:51px!important;
  padding:6px 5px!important
 }
 #main-content .pati-reel-rail .pati-reel-tool{
  min-height:43px!important;width:51px!important;min-width:51px!important;
  padding:6px 5px!important
 }
 #main-content .pati-reel-author{bottom:110px;left:13px;right:70px}
 #main-content .pati-reel-caption{bottom:36px;left:13px;right:70px}
 #main-content .pati-dm-layout .chat-people,
 #main-content .pati-dm-layout .chat-window{
  width:100%!important;border-left:0!important;border-right:0!important;
  border-radius:0!important
 }
 #main-content .pati-dm-layout .chat-person{min-height:78px}
 #main-content .pati-dm-searchbar{padding:0 13px 12px}
 #main-content .pati-dm-searchbar>.icon{left:28px}
 #main-content:has(.mobile-chat-open)>.pati-dm-searchbar{display:none!important}
 #main-content .modern-chat.mobile-chat-open .chat-window{
  height:calc(100dvh - 137px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - var(--pati-keyboard-inset,0px))!important;
  min-height:0!important;max-height:none!important;
 }
 .pati-keyboard-open #main-content .modern-chat.mobile-chat-open .chat-window{
  height:calc(100dvh - 73px - env(safe-area-inset-top,0px) - var(--pati-keyboard-inset,0px))!important;
  min-height:0!important;
 }
 #main-content .pati-dm-layout .bubble-chat{max-width:84%;font-size:13px}
}
@media(max-width:355px){
 #main-content .pati-reel-rail{gap:5px;right:6px;bottom:9px}
 #main-content .pati-reel-rail .pati-reel-action,
 #main-content .pati-reel-rail .pati-reel-tool{min-height:40px!important;width:47px!important;min-width:47px!important}
 #main-content .pati-reel-author{bottom:103px}
}

/* Icon-only Patiyiz logo: upright black, no legacy rotation. */
.brand-icon:has(.patiyiz-chosen-logo){transform:none!important;background:#000!important;box-shadow:none!important;border-radius:11px!important;overflow:hidden!important;padding:0!important}
.brand-icon .patiyiz-chosen-logo{transform:none!important;object-fit:cover!important;width:100%!important;height:100%!important;border-radius:inherit!important}

/* Search-first profile discovery, like a native mobile social application */
#main-content .pati-search-screen{width:100%;max-width:690px;margin:0 auto;background:#fff;min-height:75dvh}
#main-content .pati-search-top{display:flex;align-items:center;gap:11px;padding:17px 15px 11px;background:#fff}
#main-content .pati-search-field{display:flex;align-items:center;flex:1;min-width:0;position:relative;border:0!important;background:#f1f2f4;border-radius:17px;min-height:50px;padding:0 15px;gap:9px}
#main-content .pati-search-field>.icon{height:22px;width:22px;stroke:#777981;fill:none;flex:0 0 22px;stroke-width:2}
#main-content #explore-search{display:block!important;flex:1;min-width:0;width:100%;height:46px!important;outline:none!important;box-shadow:none!important;border:none!important;background:transparent!important;color:#191a1f!important;font-size:16px!important;padding:0!important;letter-spacing:0;font-weight:500}
#main-content #explore-search::-webkit-search-cancel-button{cursor:pointer}
#main-content .pati-search-cancel{flex-shrink:0;min-height:44px;border:0;background:transparent;padding:4px 7px;color:#212229;font-weight:720;font-size:14px}
#main-content .pati-search-results{display:grid;align-content:start;gap:0;padding:3px 0}
#main-content .pati-search-user{display:flex;align-items:center;gap:14px;width:100%;min-height:87px;padding:10px 18px;border:0;border-bottom:1px solid #fafafa;background:#fff;color:#1a1b20;text-align:left;cursor:pointer;touch-action:manipulation}
#main-content .pati-search-user:active{background:#f6f6f8}
#main-content .pati-search-user>.avatar{width:61px!important;height:61px!important;min-width:61px!important;flex:0 0 61px!important;border:1px solid #e7e7ea;border-radius:50%!important;overflow:hidden!important;font-size:23px}
#main-content .pati-search-user>.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#main-content .pati-search-user-info{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
#main-content .pati-search-user-info strong{font-size:15px;font-weight:850;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#main-content .pati-search-user-info small{font-size:13px;color:#82838b;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#main-content .pati-search-empty{text-align:center;color:#90929a;font-size:14px;padding:35px 18px}
#main-content .pati-search-discover{display:flex;align-items:center;justify-content:center;gap:7px;width:calc(100% - 36px);min-height:46px;margin:14px 18px 25px;border:1px solid #e9e9ed;background:#f9f9fa;color:#55565d;border-radius:13px;font-size:12px;font-weight:750}
#main-content .pati-search-discover .icon{width:17px;height:17px;stroke:#55565d}
/* Gallery selection: native permission first, then own phone-sized preview grid */
.pati-gallery-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-end;justify-content:center;overscroll-behavior:contain}
.pati-gallery-shade{position:absolute;inset:0;background:#0008;backdrop-filter:blur(3px)}
.pati-gallery-sheet{position:relative;z-index:1;display:flex;flex-direction:column;width:100%;max-width:720px;height:min(87dvh,870px);min-height:330px;margin:0;background:#fff;color:#191a1e;border-radius:26px 26px 0 0;overflow:hidden;padding-bottom:env(safe-area-inset-bottom,0px);box-shadow:0 -12px 40px #0002}
.pati-gallery-grabber{flex:0 0 auto;width:42px;height:4px;background:#9d9fa6;border-radius:100px;margin:12px auto 7px}
.pati-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 17px;font-size:17px}
.pati-gallery-header strong{font-size:17px;font-weight:850;letter-spacing:-.4px}
.pati-gallery-back{display:grid;place-items:center;min-width:38px;height:38px;border:0;background:#f1f1f4;border-radius:50%;color:#23242a;font-size:23px;cursor:pointer}
.pati-gallery-hd{display:inline-grid;place-items:center;min-width:35px;min-height:27px;border:2px solid #222328;border-radius:6px;font-weight:900;font-size:12px}
.pati-gallery-hint{margin:0;padding:5px 17px 14px;font-size:11px;line-height:1.5;color:#898a90}
.pati-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;flex:1;min-height:0;align-content:start;overflow-y:auto;overscroll-behavior:contain;padding:0;scrollbar-width:thin}
.pati-gallery-tile{position:relative;aspect-ratio:1;min-width:0;border:0;background:#e9e9ec;padding:0;cursor:pointer;overflow:hidden;touch-action:manipulation}
.pati-gallery-tile img{width:100%;height:100%;object-fit:cover;display:block}
.pati-gallery-check{position:absolute;top:9px;right:9px;display:grid;place-items:center;width:27px;height:27px;border:2px solid #fff;border-radius:50%;background:#0006;color:#fff;font-size:12px;font-weight:900;box-shadow:0 1px 6px #0005}
.pati-gallery-tile.selected .pati-gallery-check{background:#202126;border:2px solid #fff}
.pati-gallery-tile.selected:after{content:'';position:absolute;inset:0;border:3px solid #24252b;pointer-events:none}
.pati-gallery-bottom{display:flex;gap:10px;padding:14px 16px calc(13px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #eee;flex:0 0 auto}
.pati-gallery-bottom button{min-height:47px;border-radius:13px;font-size:12px;font-weight:800;cursor:pointer}
.pati-gallery-reselect{flex:1;border:1px solid #dfe0e5;background:#f4f4f6;color:#303136}
.pati-gallery-continue{flex:1.2;border:0;background:#191a1f;color:white}
.pati-gallery-continue:disabled{opacity:.4}
@media(max-width:740px){
 #app-root:has(.pati-search-screen)>.mobile-header{display:none!important}
 #app-root:has(.pati-search-screen)>.app-shell{padding-top:env(safe-area-inset-top,0px)!important}
 #main-content .pati-search-screen{min-height:calc(100dvh - 92px - env(safe-area-inset-bottom,0px))}
 #main-content .pati-search-top{padding:18px 13px 7px;gap:10px}
 #main-content .pati-search-user{min-height:89px;padding:10px 15px}
 .pati-gallery-sheet{max-width:none;height:min(89dvh,940px);border-radius:25px 25px 0 0}
 .pati-gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:355px){
 #main-content .pati-search-top{padding-left:9px;padding-right:9px}
 #main-content .pati-search-user>.avatar{width:52px!important;height:52px!important;min-width:52px!important;flex-basis:52px!important}
 .pati-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .pati-gallery-bottom{padding-left:10px;padding-right:10px}
}
@media(prefers-reduced-motion:reduce){.pati-gallery-shade{backdrop-filter:none}}

/* Explore immediately displays media. Profiles appear only after tapping Search. */
#main-content .pati-explore-media-screen{width:100%;margin:0;min-height:70dvh;background:#fff}
#main-content .pati-explore-media-screen>.pati-explore-search-launch{
 display:flex;align-items:center;gap:11px;width:calc(100% - 26px);
 box-sizing:border-box;margin:10px 13px 13px;padding:0 15px;
 min-height:51px;border:0;background:#f0f1f3;color:#81828a;
 border-radius:16px;text-align:left;font-size:15px;font-weight:560;
 cursor:pointer;touch-action:manipulation;
}
#main-content .pati-explore-media-screen>.pati-explore-search-launch .icon{
 width:22px;height:22px;flex:0 0 22px;stroke:#777981;fill:none;stroke-width:2;
}
#main-content .pati-explore-media-screen .pati-explore-gallery{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:2px;width:100%;margin:0;padding:0;
}
#main-content .pati-explore-media-screen .pati-explore-media{
 display:block;position:relative;min-width:0;width:100%;padding:0;
 aspect-ratio:1;border:0;border-radius:0!important;overflow:hidden;
 background:#e9e9eb;cursor:pointer;touch-action:manipulation;
}
#main-content .pati-explore-media-screen .pati-explore-media img,
#main-content .pati-explore-media-screen .pati-explore-media video{
 display:block;width:100%;height:100%;object-fit:cover;
}
#main-content .pati-explore-media-screen .pati-explore-video-icon{
 position:absolute;top:8px;right:8px;display:grid;place-items:center;
 width:23px;height:23px;border-radius:6px;background:#0006;color:#fff;
}
#main-content .pati-explore-media-screen .pati-explore-video-icon svg{
 width:18px;height:18px;stroke:#fff;fill:none;
}
/* Phone gallery permission: open our sheet first; OS chooser remains the required second step. */
.pati-gallery-grid .pati-gallery-empty{
 grid-column:1/-1;display:flex;align-items:center;justify-content:center;
 flex-direction:column;min-height:220px;padding:28px 25px;
 gap:10px;text-align:center;color:#44464e;
}
.pati-gallery-empty-icon{display:grid;place-items:center;width:70px;height:70px;border-radius:18px;background:#f0f1f3;color:#54565c;font-size:31px}
.pati-gallery-empty strong{font-size:15px;font-weight:820;color:#222328}
.pati-gallery-empty p{max-width:310px;font-size:12px;line-height:1.6;margin:0;color:#898b92}
.pati-gallery-continue[hidden]{display:none!important}
.pati-gallery-bottom:has(.pati-gallery-continue[hidden]) .pati-gallery-reselect{flex:1}
#main-content .pati-dm-gallery{display:inline-grid;place-items:center;cursor:pointer}
@media(max-width:740px){
 #main-content .pati-explore-media-screen>.pati-explore-search-launch{margin:9px 12px 12px;width:calc(100% - 24px);min-height:49px}
 #main-content .pati-explore-media-screen .pati-explore-gallery{gap:2px}
 #main-content .pati-explore-media-screen .pati-explore-media{aspect-ratio:1}
}

/* Patiyiz mobile interaction stage 1: native-feeling, consistent bottom navigation. */
@media(max-width:740px){
 #app-root>.mobile-bottom{
  position:fixed!important;left:0;right:0;bottom:0;z-index:120!important;
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:0!important;align-items:center!important;
  background:#ffffffed!important;
  border-top:1px solid #e9e9ed!important;
  -webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important;
  padding:6px max(7px,env(safe-area-inset-left,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(7px,env(safe-area-inset-right,0px))!important;
  min-height:calc(65px + env(safe-area-inset-bottom,0px))!important;
  box-sizing:border-box!important;
 }
 #app-root>.mobile-bottom>.mobile-nav-btn{
  display:flex!important;position:relative;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;gap:3px!important;
  min-width:0!important;width:100%!important;min-height:49px!important;
  border:0!important;box-shadow:none!important;border-radius:13px!important;
  color:#747680!important;background:transparent!important;
  padding:5px 2px!important;cursor:pointer;touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  transition:color .16s ease,background-color .16s ease,transform .13s ease!important;
 }
 #app-root>.mobile-bottom>.mobile-nav-btn.active{
  color:#15161a!important;background:transparent!important;
 }
 #app-root>.mobile-bottom>.mobile-nav-btn.active::before{
  content:'';position:absolute;top:-7px;left:50%;transform:translateX(-50%);
  height:3px;width:29px;border-radius:0 0 8px 8px;background:#17181b;
 }
 #app-root>.mobile-bottom>.mobile-nav-btn:active{transform:scale(.93)}
 #app-root>.mobile-bottom>.mobile-nav-btn:focus-visible{
  outline:2px solid #34353c!important;outline-offset:-2px;
 }
 #app-root>.mobile-bottom .pati-mobile-nav-glyph{
  display:grid;place-items:center;position:relative;flex:0 0 28px;
  width:38px;height:28px;line-height:1;
 }
 #app-root>.mobile-bottom .pati-mobile-nav-glyph>.icon,
 #app-root>.mobile-bottom .pati-mobile-nav-glyph>svg{
  width:26px!important;height:26px!important;min-width:26px!important;
  stroke:currentColor!important;stroke-width:1.95!important;fill:none!important;
  transition:transform .16s ease,stroke-width .16s ease!important;
 }
 #app-root>.mobile-bottom>.mobile-nav-btn.active .pati-mobile-nav-glyph>.icon{
  stroke-width:2.5!important;
 }
 #app-root>.mobile-bottom>.mobile-nav-btn>small{
  display:block!important;max-width:100%;line-height:1.1!important;
  font-size:10px!important;font-weight:730!important;
  letter-spacing:0!important;white-space:nowrap;
  color:inherit!important;
 }
 #app-root>.mobile-bottom>.mobile-nav-btn.active>small{font-weight:850!important}
 #app-root>.mobile-bottom>.mobile-nav-btn.pati-create-nav{
  background:transparent!important;color:#1d1e22!important;
 }
 #app-root>.mobile-bottom>.pati-create-nav .pati-mobile-nav-glyph{
  display:grid;place-items:center;width:41px!important;height:37px!important;
  flex:0 0 37px!important;border-radius:13px!important;
  background:#1b1c20!important;color:#fff!important;
  box-shadow:0 2px 9px #00000016;
  margin-top:-4px!important;
 }
 #app-root>.mobile-bottom>.pati-create-nav .pati-mobile-nav-glyph .icon{
  stroke:#fff!important;width:23px!important;height:23px!important;
  stroke-width:2.3!important;
 }
 #app-root>.mobile-bottom .pati-mobile-nav-glyph .avatar,
 #app-root>.mobile-bottom .pati-mobile-nav-glyph .avatar.s{
  display:grid!important;place-items:center;
  box-sizing:border-box;width:28px!important;height:28px!important;
  min-width:28px!important;max-width:28px!important;
  border:2px solid transparent!important;
  border-radius:50%!important;overflow:hidden!important;
  color:#393a40;background:#e8e8ec!important;
 }
 #app-root>.mobile-bottom .mobile-nav-btn.active .pati-mobile-nav-glyph .avatar{
  border-color:#17181b!important;
 }
 #app-root>.mobile-bottom .pati-mobile-nav-glyph .avatar img{
  width:100%!important;height:100%!important;
  object-fit:cover!important;border-radius:50%!important;
 }
 #app-root>.mobile-fab{display:none!important}
 #app-root>.app-shell{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))!important}
 #main-content.pati-view-enter{animation:pati-screen-enter .22s cubic-bezier(.2,.7,.2,1) both}
 .pati-reels-viewport{scroll-snap-type:y mandatory;scroll-padding-block:0!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
 .pati-reel-item{scroll-snap-align:start;scroll-snap-stop:always}
 #main-content .pati-feed-card .pati-social-actions button,
 #main-content .pati-ig-actions button,
 #main-content .pati-search-user,
 #main-content .pati-dm-layout .chat-person{touch-action:manipulation}
 #main-content .pati-feed-card .pati-social-actions button:active,
 #main-content .pati-ig-actions button:active{transform:scale(.91)}
}
@keyframes pati-screen-enter{
 from{opacity:.65;transform:translate3d(0,7px,0)}
 to{opacity:1;transform:translate3d(0,0,0)}
}
@media(max-width:355px){
 #app-root>.mobile-bottom .pati-mobile-nav-glyph{width:33px}
 #app-root>.mobile-bottom>.mobile-nav-btn>small{font-size:9px!important}
 #app-root>.mobile-bottom>.pati-create-nav .pati-mobile-nav-glyph{width:37px!important;height:34px!important;flex-basis:34px!important}
}
@media(prefers-reduced-motion:reduce){
 #main-content.pati-view-enter{animation:none!important}
 #app-root>.mobile-bottom>.mobile-nav-btn,
 #app-root>.mobile-bottom .pati-mobile-nav-glyph>.icon,
 #main-content .pati-feed-card .pati-social-actions button{transition:none!important;animation:none!important}
}

/* Always-visible five-tab app navigation, also on laptop/tablet browser widths.
   Mobile layout and keyboard-safety rules above remain unchanged. */
@media(min-width:741px){
 #app-root:not(.hidden)>.mobile-bottom{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  position:fixed!important;
  bottom:14px!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  width:min(560px,calc(100vw - 32px))!important;
  max-width:560px!important;min-height:68px!important;
  box-sizing:border-box!important;
  z-index:120!important;
  gap:3px!important;padding:8px 10px!important;
  border:1px solid #e7e7ec!important;border-radius:20px!important;
  background:rgba(255,255,255,.97)!important;
  box-shadow:0 12px 42px rgba(0,0,0,.15)!important;
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
 }
 #app-root:not(.hidden)>.mobile-bottom>.mobile-nav-btn{
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex-direction:column!important;gap:4px!important;position:relative;
  width:100%;min-width:0!important;min-height:52px!important;
  padding:5px 2px!important;
  border:0!important;border-radius:13px!important;
  background:transparent!important;color:#777983!important;
  cursor:pointer;touch-action:manipulation;
 }
 #app-root:not(.hidden)>.mobile-bottom>.mobile-nav-btn.active{
  color:#16171a!important;background:#f0f0f3!important;
 }
 #app-root:not(.hidden)>.mobile-bottom>.mobile-nav-btn:focus-visible{
  outline:2px solid #25252a!important;outline-offset:-2px;
 }
 #app-root:not(.hidden)>.mobile-bottom .pati-mobile-nav-glyph{
  display:grid!important;place-items:center!important;width:34px;height:29px;
 }
 #app-root:not(.hidden)>.mobile-bottom .pati-mobile-nav-glyph>.icon{
  width:24px!important;height:24px!important;stroke:currentColor!important;
  fill:none!important;stroke-width:2!important;
 }
 #app-root:not(.hidden)>.mobile-bottom>.mobile-nav-btn>small{
  display:block!important;color:inherit!important;
  font-size:11px!important;font-weight:750!important;line-height:1.1!important;
 }
 #app-root:not(.hidden)>.mobile-bottom>.mobile-nav-btn.pati-create-nav{
  color:#191a1d!important;
 }
 #app-root:not(.hidden)>.mobile-bottom>.pati-create-nav .pati-mobile-nav-glyph{
  width:40px!important;height:33px!important;border-radius:11px!important;
  background:#1b1c20!important;color:white!important;
 }
 #app-root:not(.hidden)>.mobile-bottom>.pati-create-nav .pati-mobile-nav-glyph .icon{
  color:white!important;stroke:white!important;width:22px!important;height:22px!important;
 }
 #app-root:not(.hidden)>.mobile-bottom .pati-mobile-nav-glyph .avatar,
 #app-root:not(.hidden)>.mobile-bottom .pati-mobile-nav-glyph .avatar.s{
  width:27px!important;height:27px!important;border:2px solid transparent!important;
  border-radius:50%!important;overflow:hidden!important;
 }
 #app-root:not(.hidden)>.mobile-bottom .mobile-nav-btn.active .pati-mobile-nav-glyph .avatar{
  border-color:#18191b!important;
 }
 #app-root:not(.hidden)>.app-shell{
  padding-bottom:120px!important;
 }
}

/* Five real destinations: Home, Explore, Academy, Pets and Profile.
   The existing + creator remains reachable in one floating action button. */
#app-root>.mobile-bottom>.mobile-nav-btn.pati-create-nav{display:none!important}
#app-root:not(.hidden)>.mobile-fab{
 display:grid!important;place-items:center!important;position:fixed!important;
 z-index:129!important;width:54px!important;height:54px!important;
 border:3px solid #fff!important;border-radius:18px!important;
 background:#17181b!important;color:white!important;
 box-shadow:0 8px 26px rgba(0,0,0,.19)!important;cursor:pointer;
 bottom:calc(83px + env(safe-area-inset-bottom,0px))!important;right:16px!important;
}
#app-root:not(.hidden)>.mobile-fab .icon{width:26px!important;height:26px!important}
#app-root:not(.hidden)>.mobile-fab:focus-visible{outline:2px solid #17181b;outline-offset:3px}
#app-root:not(.hidden)>.mobile-fab[hidden]{display:none!important}
@media(min-width:741px){
 #app-root:not(.hidden)>.mobile-fab{
  bottom:97px!important;right:max(16px,calc((100vw - 700px)/2))!important;
 }
 #app-root:not(.hidden)>.mobile-bottom>.mobile-nav-btn.active{
  background:#ececf0!important;color:#121316!important;
 }
}
@media(max-width:740px){
 #app-root:not(.hidden)>.mobile-fab{
  bottom:calc(84px + env(safe-area-inset-bottom,0px))!important;
 }
}
@media(max-width:740px){
 .pati-keyboard-open #app-root:not(.hidden)>.mobile-fab{display:none!important}
}
.pati-pets-page{max-width:980px;margin:0 auto;padding:20px 16px 110px;color:#17181b}
.pati-pets-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:26px}
.pati-pets-heading h1{font-size:clamp(24px,4vw,32px);margin:0 0 5px;font-weight:850}
.pati-pets-heading p{margin:0;color:#6b6c72;font-size:13px}
.pati-pets-add{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#17181b;color:white;border:0;border-radius:13px;padding:12px 15px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.pati-pets-add .icon{width:17px;height:17px}
.pati-pets-page h2{font-size:17px;font-weight:800;margin:20px 0 13px}
.pati-pets-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pati-pets-tile{display:block;overflow:hidden;padding:0;border:1px solid #e6e6ea;border-radius:17px;text-align:left;background:#fff;cursor:pointer;color:inherit;min-width:0}
.pati-pets-photo{aspect-ratio:1.18;display:grid;place-items:center;background:#f1f1f3;overflow:hidden}
.pati-pets-photo img{width:100%;height:100%;object-fit:cover;display:block}
.pati-pets-photo span{font-size:44px}
.pati-pets-info{padding:10px 12px 12px;display:grid;gap:5px;overflow:hidden}
.pati-pets-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.pati-pets-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#71717a}
.pati-pets-empty{grid-column:1/-1;padding:28px 18px;background:#f7f7f8;border:1px solid #eeeef0;border-radius:16px;text-align:center;color:#76767c}
@media(max-width:500px){
 .pati-pets-page{padding:18px 12px 106px}
 .pati-pets-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .pati-pets-heading{align-items:flex-start}
 .pati-pets-add{padding:10px;font-size:11px}
}

/* Reference design: five fixed tabs, black centered create button, no floating duplicate. */
#app-root>.mobile-bottom>.mobile-nav-btn.pati-create-nav,
#app-root:not(.hidden)>.mobile-bottom>.mobile-nav-btn.pati-create-nav{
 display:flex!important;
}
#app-root:not(.hidden)>.mobile-fab,
#app-root:not(.hidden)>.mobile-fab[hidden],
#app-root>.mobile-fab{
 display:none!important;
}
#app-root>.mobile-bottom>.pati-create-nav .pati-mobile-nav-glyph{
 display:grid!important;place-items:center!important;
 color:#fff!important;background:#1b1c20!important;
 width:41px!important;height:37px!important;border-radius:13px!important;
 margin-top:-4px!important;
}
#app-root>.mobile-bottom>.pati-create-nav .pati-mobile-nav-glyph>.icon{
 width:23px!important;height:23px!important;
 color:#fff!important;stroke:#fff!important;fill:none!important;
 stroke-width:2.3!important;
}
#app-root>.mobile-bottom .mobile-nav-btn.active{color:#15161a!important}
#app-root>.mobile-bottom>.pati-create-nav:active .pati-mobile-nav-glyph{transform:scale(.95)}
#app-root>.mobile-bottom>.mobile-nav-btn[aria-current="page"]>small{
 font-weight:850!important;
}
/* Always-available feature directory in mobile header and profile Menu. */
#app-root>.mobile-header .pati-header-menu{display:none}
@media(max-width:740px){
 #app-root>.mobile-header .pati-header-actions{
  display:flex!important;align-items:center!important;gap:5px!important;
  flex:0 0 auto!important;min-width:0!important;
 }
 #app-root>.mobile-header>.brand{
  flex:1 1 auto!important;min-width:0!important;
  max-width:calc(100% - 116px)!important;
 }
 #app-root>.mobile-header .pati-header-menu,
 #app-root>.mobile-header .pati-header-messages,
 #app-root>.mobile-header .pati-header-notifications{
  display:grid!important;place-items:center!important;
  width:36px!important;height:38px!important;min-width:36px!important;
  flex:0 0 36px!important;
  padding:0!important;position:relative!important;
  border-radius:12px!important;background:#f4f4f6!important;
  border:1px solid #e6e6e9!important;color:#202126!important;
  margin:0!important;transform:none!important;
 }
 #app-root>.mobile-header .pati-header-menu .icon{
  width:21px!important;height:21px!important;fill:none!important;
  stroke:#212228!important;stroke-width:1.9!important;
 }
 #app-root>.mobile-header .pati-header-menu:focus-visible{
  outline:2px solid #16171a!important;outline-offset:2px!important;
 }
 #app-root>.mobile-header .pati-header-actions .pati-count-badge{
  position:absolute;right:-3px;top:-5px;z-index:2;
 }
 #app-root>.mobile-bottom{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media(max-width:355px){
 #app-root>.mobile-header .pati-header-actions{gap:3px!important}
 #app-root>.mobile-header .pati-header-menu,
 #app-root>.mobile-header .pati-header-messages,
 #app-root>.mobile-header .pati-header-notifications{
  width:33px!important;height:35px!important;min-width:33px!important;flex-basis:33px!important;
 }
 #app-root>.mobile-header>.brand{max-width:calc(100% - 107px)!important}
}
/* Feature menu uses the existing tools dialog; all links open real existing routes. */
#tools-form .pati-features-list{padding:2px 0 18px;max-height:calc(78dvh - 105px);overflow-y:auto;overscroll-behavior:contain}
#tools-form .pati-feature-intro{font-size:13px;line-height:1.5;color:#71727a;margin:2px 0 16px}
#tools-form .pati-feature-group{margin:0 0 18px}
#tools-form .pati-feature-group h3{
 font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
 color:#818189;margin:0 0 9px;
}
#tools-form .pati-mobile-menu-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#tools-form .pati-mobile-menu-item{
 display:flex;align-items:center;gap:9px;
 min-width:0;min-height:58px;padding:10px;
 border:1px solid #ececf0;border-radius:13px;
 background:#f9f9fa;text-align:left;color:#1b1c20;
 font:inherit;font-size:12px;font-weight:720;cursor:pointer;
}
#tools-form .pati-mobile-menu-item>.icon{width:20px;height:20px;flex:0 0 20px}
#tools-form .pati-mobile-menu-item>span{flex:1;min-width:0}
#tools-form .pati-mobile-menu-item>.icon:last-child{width:14px;height:14px;flex:0 0 14px;color:#9c9ca3}
#tools-form .pati-mobile-menu-item:focus-visible{outline:2px solid #17181b;outline-offset:1px}
@media(max-width:740px){
 #tools-form .pati-features-list{
  max-height:calc(100dvh - 135px - env(safe-area-inset-bottom,0px));
  padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));
 }
}
@media(max-width:355px){
 #tools-form .pati-mobile-menu-item{font-size:11px;padding:9px 7px;gap:6px}
}

/* PatiCoin rewards and mobile-friendly redemption store */
.paticoin-page{max-width:1030px;margin:0 auto;padding:20px 14px 125px;color:#17181b}
.paticoin-page h1{font-size:28px;margin:0 0 8px}.paticoin-page h2{font-size:19px;margin:26px 0 14px}
.paticoin-hero{border-radius:25px;padding:28px;background:linear-gradient(135deg,#18191d,#36383e);color:#fff;overflow:hidden}
.paticoin-hero>span{font-size:12px;letter-spacing:.14em;font-weight:800;color:#e6d3a2}
.paticoin-hero h1{color:#fff;font-size:36px;margin:12px 0}
.paticoin-hero>strong{display:block;font-size:42px;color:#ffdb7b}
.paticoin-hero>strong small{font-size:18px;color:white}
.paticoin-hero>p{font-size:13px;color:#e0e0e6}
.paticoin-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.paticoin-actions button,.paticoin-shop-head button,.paticoin-item button,.paticoin-confirm{border:0;background:#ffe19a;color:#252019;font-weight:850;padding:12px 15px;border-radius:13px;cursor:pointer}
.paticoin-actions button:nth-child(2){background:#fff}
.paticoin-tasks{display:grid;gap:9px}
.paticoin-task{display:flex;align-items:center;gap:13px;border:1px solid #ececf1;background:#fff;padding:16px 13px;border-radius:17px}
.paticoin-task-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#fff5d7;flex:0 0 38px}
.paticoin-task>div:nth-child(2){flex:1;min-width:0}
.paticoin-task strong,.paticoin-task small{display:block}.paticoin-task strong{font-size:14px}.paticoin-task small{font-size:11px;color:#81818a;margin-top:4px}
.paticoin-task b{font-size:13px;white-space:nowrap;color:#ae7e0d}.paticoin-task b.earned{color:#29804b}
.paticoin-shop-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.paticoin-shop-head p{color:#858590;font-size:12px}
.paticoin-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.paticoin-item{padding:20px 15px;border:1px solid #ececf0;border-radius:19px;background:#fff;min-width:0}
.paticoin-item-icon{display:block;font-size:36px;margin-bottom:12px}
.paticoin-item h3{font-size:16px;margin:0 0 8px}.paticoin-item p{font-size:12px;color:#7b7d83;line-height:1.6;min-height:50px}
.paticoin-item>div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.paticoin-item strong{color:#966a06}.paticoin-order{padding:13px;display:flex;flex-direction:column;gap:4px;border-bottom:1px solid #eeeef1;background:#fff}
.paticoin-order span{font-size:12px;color:#747780}
.paticoin-disclaimer{font-size:12px;line-height:1.65;color:#777983;padding:12px 0}
.paticoin-checkout{display:flex;flex-direction:column;gap:13px}.paticoin-checkout h3{font-size:18px;margin:5px 0}
.paticoin-checkout-item{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:18px;padding:16px;border-radius:15px;background:#fff8e6}
.paticoin-checkout>label{display:flex;align-items:center;gap:10px;padding:13px;background:#f7f7f8;border:1px solid #e7e7ed;border-radius:14px;font-size:13px;font-weight:800}
.paticoin-checkout>label input{accent-color:#202025}.paticoin-pet-selector{display:grid;gap:7px}
.paticoin-pet-selector[hidden]{display:none!important}
.paticoin-pet-selector select{width:100%;padding:12px;border-radius:12px;border:1px solid #e5e5ea}
.paticoin-confirm{background:#1b1c20;color:white;min-height:52px}
.paticoin-confirm:disabled{opacity:.6}
.paticoin-celebration{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px;background:rgba(13,14,18,.9);color:white;animation:patiCoinFade .22s ease}
.paticoin-burst{font-size:72px;animation:patiCoinBounce .75s ease infinite alternate}
.paticoin-won{font-size:clamp(28px,7vw,52px);font-weight:950;color:#ffda70;margin:16px 0}
.paticoin-celebration p{font-size:15px;line-height:1.6;color:white}
.paticoin-celebration button{padding:13px 27px;border:0;background:#ffdc7e;color:#151515;border-radius:14px;font-size:15px;font-weight:850;margin-top:14px;cursor:pointer}
@keyframes patiCoinFade{from{opacity:0}to{opacity:1}}
@keyframes patiCoinBounce{to{transform:translateY(-18px) rotate(12deg)}}
@media(min-width:800px){.paticoin-items{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:420px){.paticoin-shop-head{align-items:flex-start}.paticoin-shop-head button{font-size:11px;padding:10px}.paticoin-page h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){.paticoin-celebration,.paticoin-burst{animation:none!important}}

.paticoin-profile-link{display:flex;gap:10px;flex-wrap:wrap;padding:12px 15px}
.paticoin-profile-link button{flex:1 1 150px;padding:13px 10px;border-radius:13px;border:1px solid #e4d9b6;background:#fff7e2;color:#594618;font:inherit;font-size:12px;font-weight:850;cursor:pointer}

/* Verified users: Instagram-style blue checked seal next to the @handle.
   The badge is rendered only for profiles whose is_verified is true. */
.pati-verified-blue{
 display:inline-grid!important;place-items:center!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 width:22px!important;height:22px!important;min-width:22px!important;
 padding:0!important;margin:0 0 0 4px!important;border-radius:0!important;
 color:#2196f3!important;vertical-align:middle!important;line-height:1!important;
}
.pati-verified-blue svg{display:block!important;width:100%!important;height:100%!important}
#main-content .pati-ig-handle-row{display:flex;align-items:center;justify-content:flex-start;gap:4px;min-width:0;margin:0 0 4px}
#main-content .pati-ig-handle-row .pati-ig-handle{
 font-size:clamp(14px,4vw,18px)!important;font-weight:820!important;color:#17181c!important;
 min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#main-content .pati-ig-handle-row .pati-verified-blue{flex:0 0 22px}
#main-content .pati-ig-info>.pati-ig-name{
 font-size:14px!important;color:#33343a!important;font-weight:650!important;
}
#main-content .pati-ig-actions{display:flex;align-items:center;gap:10px}
#main-content .pati-ig-actions>button{flex:1 1 0;min-height:42px!important}
.pati-feature-add-pet{margin:6px 0 12px}
.pati-feature-add-pet .pati-mobile-menu-item{width:100%!important;min-height:47px!important}
@media(max-width:400px){
 #main-content .pati-ig-handle-row .pati-ig-handle{font-size:14px!important}
 .pati-verified-blue{width:19px!important;height:19px!important;min-width:19px!important}
}

/* PatiCoin + Pati Mağaza shortcuts: slate / lavender, no yellow surface. */
#main-content .paticoin-profile-link{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important;padding:11px 13px!important}
#main-content .paticoin-profile-link button{
 min-width:0!important;min-height:46px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 background:linear-gradient(145deg,#edf1fa,#e9e6f6)!important;
 border:1px solid #d5d9eb!important;color:#313652!important;
 border-radius:15px!important;box-shadow:0 2px 10px rgba(36,41,75,.055)!important;
 font-size:12px!important;font-weight:800!important;
}
#main-content .paticoin-profile-link button:nth-child(2){
 background:linear-gradient(145deg,#f0ebf9,#e7eefa)!important;color:#34314d!important
}
#main-content .paticoin-profile-link button:focus-visible{outline:2px solid #565a85;outline-offset:2px}

/* An Instagram-like row of multiple, independent highlight albums. */
#main-content .pati-ig-highlight-section{overflow:hidden;max-width:100%}
#main-content .pati-ig-highlights{
 display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;
 gap:13px!important;overflow-x:auto!important;overscroll-behavior-x:contain;
 scroll-snap-type:x proximity;scrollbar-width:none;padding:12px 15px 15px!important;
 width:100%!important;max-width:100%!important;min-width:0;
}
#main-content .pati-ig-highlights::-webkit-scrollbar{display:none}
#main-content .pati-ig-highlights>.pati-ig-highlight{
 flex:0 0 77px!important;min-width:77px!important;max-width:77px!important;
 display:flex!important;align-items:center!important;flex-direction:column!important;gap:5px!important;
 scroll-snap-align:start;text-align:center!important;
}
#main-content .pati-ig-highlight .pati-ig-highlight-ring{
 width:70px!important;height:70px!important;min-width:70px!important;
 border-radius:50%!important;border:2px solid #d9dce5!important;
 padding:3px!important;display:grid!important;place-items:center!important;overflow:hidden
}
#main-content .pati-ig-highlight .pati-ig-highlight-ring img{
 width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important
}
#main-content .pati-ig-highlight small{
 display:block!important;width:100%!important;max-width:100%!important;
 overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;
 font-size:11px!important;color:#333640!important;line-height:1.3!important
}
#main-content .pati-new-highlight .pati-ig-highlight-ring{
 background:#f4f5f8!important;border-color:#d7d9e1!important;
 font-size:32px!important;font-weight:320!important;color:#262a38!important
}
@media(max-width:390px){
 #main-content .pati-ig-highlights{gap:9px!important;padding-inline:11px!important}
 #main-content .pati-ig-highlights>.pati-ig-highlight{flex-basis:74px!important;min-width:74px!important;max-width:74px!important}
 #main-content .pati-ig-highlight .pati-ig-highlight-ring{width:66px!important;height:66px!important;min-width:66px!important}
}
/* Own story: "Öne çıkar" sits at the bottom LEFT of the delete button. */
.story-fullscreen .story-highlight-toggle{
 position:absolute!important;z-index:14!important;
 bottom:calc(11px + env(safe-area-inset-bottom,0px))!important;
 left:14px!important;top:auto!important;right:auto!important;
 border:1px solid rgba(255,255,255,.28)!important;
 border-radius:16px!important;color:#fff!important;background:rgba(14,17,29,.8)!important;
 padding:9px 13px!important;font-size:13px!important;min-height:41px!important;
 white-space:nowrap!important;max-width:45%!important;
}
.story-fullscreen .story-delete{
 bottom:calc(11px + env(safe-area-inset-bottom,0px))!important;
 right:14px!important;min-height:41px!important;z-index:14!important
}
.pati-highlight-help{color:#707485;font-size:13px;line-height:1.5;margin:0 0 13px}
#highlight-picker-form .pati-highlight-destinations{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
 max-height:56dvh;overflow-y:auto;padding:6px 2px 18px;
}
#highlight-picker-form .pati-highlight-destination{
 display:flex;align-items:center;flex-direction:column;gap:7px;
 border:1px solid #e5e7ef;background:#f7f8fb;border-radius:16px;
 padding:14px 6px 11px;min-width:0;color:#2b2e39;cursor:pointer;
}
#highlight-picker-form .pati-highlight-destination:focus-visible{outline:2px solid #454765;outline-offset:2px}
#highlight-picker-form .pati-highlight-destination-cover{
 display:grid;place-items:center;width:64px;height:64px;min-width:64px;
 border-radius:50%;border:2px solid #d9ddeb;
 overflow:hidden;background:#eaeff8;color:#303b5b;font-size:28px
}
#highlight-picker-form .pati-highlight-destination-cover img{width:100%;height:100%;object-fit:cover}
#highlight-picker-form .pati-highlight-destination strong{
 font-size:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
#highlight-picker-form .pati-highlight-destination small{font-size:10px;color:#85889b}
@media(max-width:370px){#highlight-picker-form .pati-highlight-destinations{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The story viewer sits at z-index 99999; the album chooser must be above it. */
body.story-fullscreen-open:has(#highlight-picker-form) #modal-root .modal-backdrop,
body.story-fullscreen-open:has(#highlight-album-form) #modal-root .modal-backdrop{
 z-index:100100!important;
}
.story-fullscreen .story-viewers-button{
 left:14px!important;bottom:calc(65px + env(safe-area-inset-bottom,0px))!important;
}

.paticoin-invite{margin-top:24px;padding:20px 16px;border:1px solid #d9def0;background:linear-gradient(140deg,#eef1fc,#f3eefb);border-radius:20px;color:#24283c}
.paticoin-invite h2{margin:0 0 8px;font-size:19px}.paticoin-invite p{font-size:13px;line-height:1.6;color:#555b76}
.paticoin-invite-code{display:flex;align-items:center;gap:12px;justify-content:space-between;background:#fff;border:1px solid #d9dcec;padding:12px;border-radius:14px;margin:14px 0}
.paticoin-invite-code strong{font-size:22px;font-weight:900;letter-spacing:1.5px;color:#343855}
.paticoin-invite-code button,.paticoin-invite-redeem{border:0;border-radius:12px;background:#343854;color:#fff;padding:12px 15px;font-weight:800;cursor:pointer}
.paticoin-invite-entry{display:grid;gap:6px;margin:17px 0 10px;font-size:13px;font-weight:800}
.paticoin-invite-entry input{width:100%;box-sizing:border-box;border:1px solid #cbd0e2;border-radius:13px;padding:13px;font-size:16px;text-transform:uppercase;letter-spacing:1px;background:#fff;color:#1c223a}
.paticoin-invite-redeem{width:100%;min-height:47px}.paticoin-invite-redeem:disabled{opacity:.5}
.paticoin-celebration{z-index:100300!important}
.paticoin-celebration button{min-width:155px}

/* Order fulfillment progress, customer audit trail and delivery evidence */
.paticoin-shop-orders-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:24px 0 10px}
.paticoin-shop-orders-heading h2{margin:0;font-size:18px}
.paticoin-refresh{padding:9px 13px;border:1px solid #d6dbea;background:#f3f4fb;border-radius:12px;color:#343a55;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.paticoin-orders{display:grid;gap:10px}
.paticoin-order{display:grid;gap:9px;background:#fff;border:1px solid #e6e9f0;border-radius:16px;padding:15px;color:#262937}
.paticoin-order>b{font-size:14px}
.paticoin-order span{font-size:12px;color:#707486}
.paticoin-order-status{width:max-content;max-width:100%;font-size:11px;font-weight:850;padding:7px 10px;border-radius:22px;background:#eaf0fa;color:#3b5575}
.paticoin-order-fulfilled{background:#e5f4e9;color:#236346}
.paticoin-order-cancelled{background:#fdeced;color:#9a434a}
.paticoin-order-preparing{background:#fff5df;color:#946318}
.paticoin-order-note{font-size:12px;color:#60677c;line-height:1.5;margin:0}
.paticoin-order>a{font-size:12px;color:#44588e;font-weight:750;text-decoration:underline;text-underline-offset:3px}
.paticoin-order-timeline{border-top:1px solid #ebedf2;padding-top:11px}
.paticoin-order-timeline summary{font-size:12px;cursor:pointer;font-weight:800;color:#434b65}
.paticoin-order-timeline p{font-size:11px;line-height:1.5;color:#777e90;padding:7px 0;border-bottom:1px solid #f0f1f4}

/* Pet wellness — private schedules and weight tracking */
.pati-wellness-page{max-width:940px;margin:0 auto;padding:18px 14px 120px;color:#272c39}
.pati-wellness-heading{border-radius:22px;padding:24px;background:linear-gradient(135deg,#ecf4f2,#ebeefa);margin-bottom:18px}
.pati-wellness-heading span{font-size:11px;font-weight:800;letter-spacing:.12em;color:#52736e}
.pati-wellness-heading h1{font-size:clamp(23px,5vw,32px);margin:7px 0;font-weight:850}
.pati-wellness-heading p{font-size:13px;line-height:1.5;color:#66727b}
.pati-wellness-pet-tabs{display:flex;overflow-x:auto;gap:8px;padding:0 0 14px}
.pati-wellness-pet-tabs button{border:1px solid #e1e4ed;background:#f7f8fa;color:#38434f;padding:10px 16px;border-radius:24px;font-weight:750;white-space:nowrap;cursor:pointer}
.pati-wellness-pet-tabs button.active{background:#283c3c;color:#fff;border-color:#283c3c}
.pati-wellness-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 16px}
.pati-wellness-actions button,.pati-wellness-empty-card button{min-height:45px;background:#2d4143;color:white;border:0;border-radius:14px;font-weight:750;cursor:pointer;padding:10px}
.pati-wellness-actions button:nth-child(2){background:#edf0f8;border:1px solid #d7dded;color:#333a57}
.pati-wellness-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.pati-wellness-summary>div{padding:16px 10px;border:1px solid #e7e8ef;border-radius:15px;display:grid;gap:9px;background:white}
.pati-wellness-summary small{color:#78808d;font-size:11px}
.pati-wellness-summary strong{font-size:clamp(15px,4vw,25px);font-weight:850}
.pati-wellness-page h2{font-size:19px;margin:25px 0 13px}
.pati-wellness-events{display:grid;gap:9px}
.pati-wellness-event{display:flex;gap:11px;padding:14px;border:1px solid #e7e9ef;background:white;border-radius:16px}
.pati-wellness-event-icon{display:grid;place-items:center;background:#f1f4f9;border-radius:11px;width:42px;height:42px;flex:0 0 42px;font-size:22px}
.pati-wellness-event>div:nth-child(2){flex:1;min-width:0;display:grid;gap:5px}
.pati-wellness-event strong{font-size:14px;overflow-wrap:anywhere}
.pati-wellness-event small{font-size:11px;color:#707984;line-height:1.4}
.pati-wellness-urgency{color:#526f85;font-size:11px;font-weight:800}
.pati-wellness-event-actions{display:flex;flex-direction:column;gap:5px}
.pati-wellness-event-actions button,.pati-wellness-weight-row button{border:1px solid #d8e4e1;background:#f0f7f4;color:#2c6251;border-radius:10px;padding:7px 10px;font-size:11px;font-weight:800;cursor:pointer}
.pati-wellness-event-actions button:last-child,.pati-wellness-weight-row button{border:0;background:#f9f0f0;color:#a45a61}
.pati-wellness-weights{border:1px solid #e5e8ef;border-radius:16px;overflow:hidden;background:#fff}
.pati-wellness-weight-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border-bottom:1px solid #eff0f3;font-size:13px}
.pati-wellness-weight-row span{color:#6f7888}.pati-wellness-weight-row strong{margin-left:auto}
.pati-wellness-empty{padding:17px;color:#858b95;font-size:13px}
.pati-wellness-empty-card{text-align:center;padding:34px 18px;border:1px solid #e2e7ee;border-radius:17px}
.pati-wellness-completed{margin:23px 0;color:#606c77}.pati-wellness-completed summary{cursor:pointer;font-weight:700}
.pati-wellness-disclaimer{font-size:12px;color:#828a97;line-height:1.7;padding:16px 0}
.pati-wellness-field{display:grid;gap:7px;font-size:13px;font-weight:760;margin-bottom:14px}
.pati-wellness-field input,.pati-wellness-field textarea,.pati-wellness-field select{display:block;width:100%;min-height:43px;box-sizing:border-box;padding:9px 12px;border:1px solid #d8dfe7;border-radius:12px;font:inherit;color:#263240;background:#fff}
@media(max-width:460px){.pati-wellness-actions{grid-template-columns:1fr}.pati-wellness-summary>div{padding:10px 8px}.pati-wellness-event{gap:8px;padding:10px}.pati-wellness-event-icon{width:34px;height:34px;flex-basis:34px}}
/* Server-scored seven day leaderboard, only public actions */
.pati-active-leaderboard{background:#fff;border:1px solid #e8e9ed;border-radius:18px;margin:10px auto 15px;padding:15px;max-width:940px}
.pati-active-heading{display:flex;justify-content:space-between;margin:0 0 13px}
.pati-active-heading strong{font-size:15px;font-weight:850}
.pati-active-heading small{display:block;color:#8a919a;font-size:11px;margin-top:4px}
.pati-active-users{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.pati-active-person{position:relative;min-width:0;display:flex;align-items:center;flex-direction:column;gap:6px;border:1px solid #eceef2;background:#f8f9fb;padding:12px 5px;border-radius:14px;color:#252b37;cursor:pointer}
.pati-active-person>img,.pati-active-placeholder{width:49px;height:49px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#e9edf7;font-size:21px}
.pati-active-person strong{max-width:100%;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pati-active-person small{font-size:10px;color:#667180}
.pati-active-rank{position:absolute;left:5px;top:5px;border-radius:7px;padding:3px 6px;background:#313d4b;color:#fff;font-size:10px;font-weight:800}
@media(max-width:460px){.pati-active-leaderboard{padding:12px 9px}.pati-active-users{gap:4px}.pati-active-person{padding:14px 2px 8px}.pati-active-person>img,.pati-active-placeholder{width:39px;height:39px}.pati-active-person strong{font-size:9px}.pati-active-rank{left:3px;top:3px;font-size:9px}}


/* 24 Oct 2026 · Patiyiz Akademi learning dashboard */
#main-content .pati-edu-hero{border:1px solid rgba(255,255,255,.08);border-radius:22px;padding:clamp(20px,4vw,38px);box-shadow:0 18px 38px rgba(15,15,20,.12)}
#main-content .pati-edu-summary{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
#main-content .pati-edu-progressbar{height:10px;width:100%;margin:17px 0 8px;border-radius:99px;background:rgba(255,255,255,.22);overflow:hidden}
#main-content .pati-edu-progressbar span{display:block;height:100%;background:linear-gradient(90deg,#b2a9ff,#d7f3d1);border-radius:99px;transition:width .25s ease}
#main-content .pati-edu-progress-text{font-size:12px;color:rgba(255,255,255,.85);margin:0}
#main-content .pati-edu-categories{display:flex;gap:8px;overflow-x:auto;padding:8px 2px 14px;scrollbar-width:thin;scroll-snap-type:x proximity}
#main-content .pati-edu-categories button{flex:none;min-height:40px;padding:9px 15px;border-radius:18px;scroll-snap-align:start}
#main-content .pati-edu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:13px}
#main-content .pati-edu-card{height:100%;text-align:left;min-height:138px;transition:transform .16s ease,box-shadow .16s ease}
#main-content .pati-edu-card:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(18,18,23,.10)}
#main-content .pati-edu-next{margin:18px 0 8px;display:flex;justify-content:flex-end}
#main-content .pati-edu-next button{background:#202127;border:0;border-radius:14px;color:#fff;font-weight:700;padding:13px 17px;min-height:45px;max-width:100%;cursor:pointer}
#main-content .pati-edu-lesson-body .pati-edu-step p{line-height:1.75}
#main-content .pati-edu-lesson-body .pati-edu-quiz button{min-height:42px}
@media(max-width:600px){#main-content .pati-edu-grid{grid-template-columns:1fr}#main-content .pati-edu-card{min-height:120px}#main-content .pati-edu-next button{width:100%}}
@media(prefers-reduced-motion:reduce){#main-content .pati-edu-card,#main-content .pati-edu-progressbar span{transition:none}}


/* Akademi 101 · searchable, touch-friendly course discovery */
#main-content .pati-edu-learning-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:16px 0 8px}
#main-content .pati-edu-search-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#main-content #pati-academy-search{flex:1 1 245px;min-width:0;min-height:46px;border:1px solid #d9dae0;border-radius:14px;padding:11px 14px;background:#fff;color:#212127;font-size:16px;outline-offset:2px}
#main-content #pati-academy-search:focus{border-color:#55566b;box-shadow:0 0 0 3px rgba(50,50,80,.08)}
#main-content .pati-edu-learning-toolbar button{flex:0 1 auto;min-height:46px;border:0;border-radius:14px;background:#23242a;color:#fff;padding:12px 18px;font-weight:700;cursor:pointer}
#main-content .pati-edu-all-done{color:#22734c;font-weight:700;padding:11px}
#main-content .pati-edu-empty{padding:20px 16px;border:1px dashed #ccd0d7;border-radius:14px;text-align:center;color:#555b66}
@media(max-width:520px){#main-content .pati-edu-learning-toolbar{display:grid;grid-template-columns:1fr}#main-content .pati-edu-learning-toolbar button{width:100%}}


/* Premium Akademi — spacious black-first learning experience (2026-10-24) */
#main-content .pati-premium{width:100%;max-width:1120px;margin:0 auto;padding:4px 0 30px;color:#202126}
#main-content .premium-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:7px 0 17px;font-size:11px;font-weight:800;letter-spacing:.11em}
#main-content .premium-status{display:inline-flex;align-items:center;min-height:27px;background:#efeff1;color:#51535e;border-radius:999px;padding:6px 11px;font-size:11px;font-weight:600;letter-spacing:0}
#main-content .premium-status.is-active{background:#e7f7ea;color:#17673b}
#main-content .premium-hero{border-radius:24px;padding:clamp(22px,5vw,48px);background:linear-gradient(140deg,#0f1014,#2a2833 58%,#484050);color:#fff;position:relative;overflow:hidden}
#main-content .premium-hero:after{content:"✦";position:absolute;right:-.06em;bottom:-.55em;color:rgba(255,255,255,.07);font-size:230px;font-weight:900;pointer-events:none}
#main-content .premium-eyebrow{color:#d1c9ed;letter-spacing:.18em;font-size:11px;font-weight:800}
#main-content .premium-hero h1{font-size:clamp(27px,4vw,45px);line-height:1.15;letter-spacing:-.05em;max-width:620px;margin:13px 0}
#main-content .premium-hero p{font-size:15px;max-width:560px;color:#e6e1eb;line-height:1.7}
#main-content .premium-numbers{display:flex;gap:25px;flex-wrap:wrap;margin:25px 0}
#main-content .premium-numbers>div{display:flex;flex-direction:column;gap:2px}
#main-content .premium-numbers strong{font-size:28px;line-height:1.1}
#main-content .premium-numbers small{font-size:11px;color:#cec6d8}
#main-content .premium-outline-btn{position:relative;z-index:1;cursor:pointer;border:1px solid rgba(255,255,255,.45)!important;background:rgba(255,255,255,.09)!important;color:#fff!important;border-radius:13px!important;min-height:44px;padding:12px 17px;font-weight:750}
#main-content .premium-heading{display:flex;align-items:end;justify-content:space-between;margin:32px 0 16px}
#main-content .premium-heading span{font-size:10px;letter-spacing:.15em;font-weight:800;color:#7a688f}
#main-content .premium-heading h2{font-size:clamp(19px,2.6vw,25px);line-height:1.25;margin:7px 0 0;letter-spacing:-.035em}
#main-content .premium-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#main-content .premium-course-card{border:1px solid #e2e2e8;background:#fff;border-radius:19px;padding:23px 18px;display:flex;flex-direction:column;gap:7px;min-height:290px;box-shadow:0 8px 20px rgba(20,20,25,.04)}
#main-content .premium-course-icon{height:53px;width:53px;border-radius:16px;display:grid;place-items:center;font-size:26px;background:#f6f2fb;margin-bottom:7px}
#main-content .premium-course-card small{font-size:11px;color:#71657d;font-weight:750}
#main-content .premium-course-card h3{font-size:20px;line-height:1.3;letter-spacing:-.035em;margin:4px 0}
#main-content .premium-course-card p{font-size:13px;line-height:1.7;color:#646673;margin:1px 0}
#main-content .premium-mini-progress{font-size:12px;color:#77678a;font-weight:700;margin-top:auto}
#main-content .premium-course-card button{cursor:pointer;margin-top:12px;border:0;background:#1e1e24;color:#fff;font-weight:750;min-height:44px;border-radius:12px;padding:12px}
#main-content .premium-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#main-content .premium-plan{border:1px solid #e6e5ed;border-radius:17px;background:#fbfafc;padding:21px}
#main-content .premium-plan small{font-size:12px;font-weight:800;color:#68547b}
#main-content .premium-plan h3{font-size:28px;letter-spacing:-.045em;margin:8px 0 0;color:#242129}
#main-content .premium-plan span{display:block;margin:0 0 10px;font-size:11px;color:#7b7985}
#main-content .premium-plan p{font-size:12px;line-height:1.7;color:#686771}
#main-content .premium-signup{background:#f3f0f6;border:1px solid #e4dce9;padding:25px;border-radius:18px;margin-top:28px}
#main-content .premium-signup h2{font-size:21px;letter-spacing:-.025em;margin:0}
#main-content .premium-signup p{font-size:13px;line-height:1.7;color:#5f5b69;max-width:680px}
#main-content .premium-primary-btn{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:45px;background:#242128;color:#fff;border:0;border-radius:12px;padding:12px 18px;font-size:13px;font-weight:750}
#main-content .premium-soft-btn{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:42px;background:#fff;color:#27222c;border:1px solid #cfcbd6;border-radius:11px;padding:10px 14px;font-weight:650;margin:8px}
#main-content .premium-disclaimer{color:#777783;font-size:11px;line-height:1.65;margin-top:25px}
#main-content .premium-error{padding:12px 14px;margin:14px 0;border-radius:12px;background:#fff1f1;color:#a32b37;border:1px solid #f2d3d3}
#main-content .premium-back{display:inline-flex;align-items:center;border:0;background:transparent;cursor:pointer;color:#55505a;font-weight:700;padding:12px 0;margin-bottom:8px}
#main-content .premium-course-hero{background:linear-gradient(130deg,#16151a,#3c3548);border-radius:20px;padding:28px;color:#fff}
#main-content .premium-course-hero span{font-size:13px;font-weight:650;color:#ded2ea}
#main-content .premium-course-hero h1{font-size:clamp(26px,4vw,35px);margin:9px 0;letter-spacing:-.04em;line-height:1.24}
#main-content .premium-course-hero p{font-size:14px;line-height:1.6;color:#e1dce8}
#main-content .premium-course-hero small{font-size:12px;color:#c5bfd0}
#main-content .premium-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
#main-content .premium-preview-row{border:1px solid #e3e0e8;border-radius:14px;padding:15px;background:#fff;display:flex;gap:10px}
#main-content .premium-preview-row span{font-size:12px;font-weight:800;color:#795c9e}
#main-content .premium-preview-row p{font-size:13px;color:#53505a;margin:0;line-height:1.5}
#main-content .premium-lock{border:1px dashed #cabcd2;background:#faf7fc;border-radius:16px;padding:22px}
#main-content .premium-lock p{font-size:13px;line-height:1.7;color:#65606b}
#main-content .premium-course-progress{padding:18px 0}
#main-content .premium-course-progress strong{font-size:15px}
#main-content .premium-progress{height:9px;border-radius:99px;background:#e2dce8;overflow:hidden;margin-top:12px}
#main-content .premium-progress span{height:100%;display:block;background:linear-gradient(90deg,#8472a3,#aa94c3);border-radius:99px}
#main-content .premium-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#main-content .premium-day-btn{border:1px solid #e4e1e8;background:#fff;min-height:94px;padding:14px;border-radius:13px;text-align:left;display:grid;gap:4px;cursor:pointer}
#main-content .premium-day-btn small{font-size:10px;color:#8b7b9d}
#main-content .premium-day-btn strong{font-size:13px;line-height:1.3}
#main-content .premium-day-btn span{font-size:11px;color:#746884}
#main-content .premium-day-btn.is-finished{background:#edf8ef;border-color:#bbe6c3}
#main-content .premium-day-view{background:#fff;border:1px solid #e1dce8;border-radius:17px;padding:clamp(18px,3vw,31px);margin-top:18px}
#main-content .premium-day-view small{font-size:12px;color:#8a6d9f}
#main-content .premium-day-view h2{font-size:25px;line-height:1.3}
#main-content .premium-day-view h3{font-size:15px;margin-top:22px}
#main-content .premium-day-view p{font-size:14px;line-height:1.8;max-width:780px;color:#52525a}
#main-content .premium-completed{color:#1b6a42!important;font-weight:750}
#main-content .premium-empty{padding:20px;background:#f5f5f7;border-radius:12px}
@media(max-width:850px){#main-content .premium-course-grid,#main-content .premium-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:590px){#main-content .pati-premium{padding:6px 0 20px}#main-content .premium-hero{padding:23px;border-radius:17px}#main-content .premium-course-grid,#main-content .premium-plan-grid,#main-content .premium-preview,#main-content .premium-days{grid-template-columns:1fr}#main-content .premium-course-card{min-height:240px}#main-content .premium-signup{padding:19px}#main-content .premium-numbers{gap:16px}}
@media(prefers-reduced-motion:reduce){#main-content .premium-progress span{transition:none}}


/* Patiyiz 2026-10-24 · private health files + medals + premium day dashboard */
#main-content .health-file,#main-content .pati-achievements{max-width:1120px;margin:0 auto;padding:8px 0 25px;color:#1f2326}
#main-content .hf-header,#main-content .pati-achievements-hero{background:linear-gradient(135deg,#14161b,#363343);border-radius:23px;color:#fff;padding:clamp(23px,4vw,39px)}
#main-content .hf-header>span,#main-content .pati-achievements-hero>span{letter-spacing:.13em;font-size:11px;font-weight:800;color:#ddd3f2}
#main-content .hf-header h1,#main-content .pati-achievements-hero h1{margin:11px 0;font-size:clamp(25px,4.5vw,36px);line-height:1.22;letter-spacing:-.04em}
#main-content .hf-header p,#main-content .pati-achievements-hero p{color:#e3dfea;line-height:1.65;font-size:14px}
#main-content .hf-controls{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:18px 0}
#main-content .hf-pets{display:flex;gap:8px;flex-wrap:wrap}
#main-content .hf-pets button{background:#f4f3f7;color:#3d3b44;border:1px solid #e6e3eb;border-radius:12px;padding:11px 16px;min-height:43px;cursor:pointer;font-weight:700}
#main-content .hf-pets button.active{background:#20212a;color:white}
#main-content .hf-report{cursor:pointer;min-height:43px;background:#fff;color:#363343;border:1px solid #d5cfdb;border-radius:12px;padding:11px 16px;font-weight:700}
#main-content .hf-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:18px}
#main-content .hf-metrics>div{display:flex;flex-direction:column;gap:3px;border:1px solid #e7e4eb;border-radius:15px;background:#fff;padding:17px}
#main-content .hf-metrics strong{font-size:28px;letter-spacing:-.03em}
#main-content .hf-metrics small{font-size:12px;color:#797784}
#main-content .hf-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
#main-content .hf-card{background:#fff;border:1px solid #e9e6ef;border-radius:17px;padding:clamp(17px,2.5vw,25px);min-width:0}
#main-content .hf-card h2{font-size:20px;margin:0 0 8px;letter-spacing:-.025em}
#main-content .hf-card>p{font-size:13px;color:#72717c;line-height:1.7}
#main-content .hf-card form{display:grid;gap:10px;margin-top:16px}
#main-content .hf-card form label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#45434b}
#main-content .hf-card :is(input,select,textarea){font:inherit;width:100%;max-width:100%;border:1px solid #d8d6df;border-radius:11px;padding:11px 12px;color:#292832;background:#fff}
#main-content .hf-card input[type=file]{font-size:12px;padding:10px}
#main-content .hf-primary{cursor:pointer;min-height:45px;border:0;background:#1f2026;color:#fff;border-radius:12px;font-weight:800;padding:12px 16px}
#main-content .hf-primary:disabled{opacity:.58;cursor:wait}
#main-content .hf-record{border-top:1px solid #ebe8f0;padding:16px 0;display:flex;gap:12px;align-items:start;justify-content:space-between}
#main-content .hf-record strong{font-size:13px;line-height:1.5}
#main-content .hf-record small{display:block;margin-top:4px;color:#88848f;font-size:11px}
#main-content .hf-record p{font-size:12px;color:#656371;line-height:1.6;margin:9px 0;overflow-wrap:anywhere}
#main-content .hf-record-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
#main-content .hf-record-actions button{background:#f6f5f8;border:1px solid #e6e3eb;border-radius:10px;padding:9px 11px;font-size:12px;cursor:pointer}
#main-content .hf-empty{padding:18px;border:1px dashed #d7d5dd;border-radius:12px}
#main-content .hf-disclaimer,#main-content .pati-cert-notice{font-size:11px;color:#75717f;line-height:1.7;margin:17px 0}
#main-content .pati-wellness-shortcuts{margin:10px 0}
#main-content .pati-wellness-shortcuts button{border:1px solid #c9ceda;background:#fff;border-radius:13px;min-height:46px;padding:12px 17px;cursor:pointer;font-weight:750;color:#272736}
#main-content .pati-edu-links{margin:13px 0;display:flex;justify-content:flex-end}
#main-content .pati-edu-links button{border:1px solid #d0ccd9;background:#f9f7fd;color:#373041;border-radius:12px;padding:12px 16px;cursor:pointer;font-weight:750}
#main-content .pati-achievements-hero>div{display:grid;gap:3px;margin-top:17px}
#main-content .pati-achievements-hero strong{font-size:27px}
#main-content .pati-achievements-hero small{color:#e3e0e9;font-size:12px}
#main-content .pati-achievements h2{font-size:20px;margin:26px 0 14px;letter-spacing:-.025em}
#main-content .pati-badge-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
#main-content .pati-badge{text-align:center;border:1px solid #e5dfe9;background:#fff;border-radius:16px;padding:19px 10px}
#main-content .pati-badge.locked,#main-content .pati-cert-card.locked{opacity:.64;background:#f7f6f9}
#main-content .pati-badge.earned{border-color:#d9c69f;background:#fff9ec}
#main-content .pati-badge-icon{font-size:29px}
#main-content .pati-badge h3{font-size:14px;margin:9px 0}
#main-content .pati-badge p{font-size:11px;line-height:1.5;color:#747180;margin:0 0 12px}
#main-content .pati-badge small{color:#836e52;font-size:11px;font-weight:700}
#main-content .pati-cert-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#main-content .pati-cert-card{border:1px solid #dedbe6;background:#fff;border-radius:16px;padding:18px;margin:8px 0}
#main-content .pati-cert-card strong{display:block;font-size:15px}
#main-content .pati-cert-card small{display:block;margin:6px 0 15px;color:#706d7c}
#main-content .pati-cert-card p{color:#686776;font-size:12px;line-height:1.65}
#main-content .pati-cert-card button{margin-top:8px;min-height:43px;border:0;border-radius:11px;background:#272730;color:#fff;font-weight:700;padding:10px 14px;cursor:pointer}
#main-content .pati-cert-card button:disabled{background:#dcd9e1;color:#6c6974;cursor:not-allowed}
#main-content .premium-dashboard{border:1px solid #ded8e9;border-radius:19px;background:#faf9fd;padding:clamp(18px,3vw,27px);margin:0 0 20px}
#main-content .premium-dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
#main-content .premium-dashboard-heading span{font-size:10px;font-weight:800;letter-spacing:.15em;color:#79648e}
#main-content .premium-dashboard-heading h2{font-size:22px;letter-spacing:-.03em;margin:9px 0}
#main-content .premium-dashboard-heading p{font-size:12px;color:#77727e}
#main-content .premium-dashboard-heading button,#main-content .premium-next-step button{border:0;background:#25202d;color:white;border-radius:12px;padding:13px 15px;min-height:43px;font-weight:700;cursor:pointer}
#main-content .premium-dash-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}
#main-content .premium-dash-grid article{background:#fff;padding:15px;border-radius:12px;border:1px solid #e5dfeb;display:grid;gap:6px}
#main-content .premium-dash-grid small{color:#777080;font-size:11px}
#main-content .premium-dash-grid strong{font-size:25px}
#main-content .premium-next-step{margin-top:16px;padding:17px;border:1px solid #e1dae9;border-radius:13px;background:#fff;display:flex;gap:12px;align-items:center;justify-content:space-between}
#main-content .premium-next-step h3{font-size:15px;margin:7px 0}
#main-content .premium-next-step p{font-size:12px;color:#726b7b}
#main-content .premium-next-step b{font-size:12px}
#pati-health-print-report,#pati-achievement-print{display:none}
@media(max-width:900px){#main-content .pati-badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){#main-content .hf-columns{grid-template-columns:1fr}#main-content .hf-metrics{gap:7px}#main-content .hf-metrics>div{padding:12px}#main-content .hf-metrics strong{font-size:22px}#main-content .hf-record{flex-wrap:wrap}#main-content .hf-record-actions{justify-content:flex-start}#main-content .pati-badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#main-content .pati-cert-grid{grid-template-columns:1fr}#main-content .premium-next-step{flex-wrap:wrap}#main-content .premium-next-step button{width:100%}}
@media print{
 body>*:not(#pati-health-print-report):not(#pati-achievement-print){display:none!important}
 body>#pati-health-print-report,body>#pati-achievement-print{display:block!important;position:static!important;width:100%!important;max-width:none!important;margin:0!important;padding:12mm!important;color:#111!important;background:#fff!important;font-family:system-ui,sans-serif!important}
 #pati-health-print-report header{display:flex;justify-content:space-between;border-bottom:2px solid #333;padding-bottom:14px;margin-bottom:25px}
 #pati-health-print-report h1{font-size:28px}
 #pati-health-print-report h2{font-size:17px;border-bottom:1px solid #ddd;margin-top:25px}
 #pati-health-print-report article{padding:12px 0;break-inside:avoid}
 #pati-health-print-report p{font-size:12px}
 #pati-health-print-report footer,#pati-achievement-print footer{font-size:10px;color:#777;margin-top:28px}
 #pati-achievement-print .pati-cert-document{text-align:center;border:7px double #4a4053;padding:16mm 12mm;min-height:195mm;display:flex;flex-direction:column;align-items:center;justify-content:center}
 #pati-achievement-print .pati-cert-mark{font-size:14px;letter-spacing:.15em;font-weight:900}
 #pati-achievement-print .pati-cert-flourish{font-size:45px;color:#8a7097;padding:15px}
 #pati-achievement-print h1{font-size:33px;letter-spacing:.12em}
 #pati-achievement-print h2{font-size:26px;text-decoration:underline}
 #pati-achievement-print p{font-size:17px;max-width:560px;line-height:1.7}
 #pati-achievement-print small{margin-top:20px}
}


/* 2026-10-24 · Rebalanced PatiCoin missions, saved archive, clean feed navigation */
.pati-header-coins{display:inline-flex;align-items:center;gap:4px;justify-content:center;white-space:nowrap;min-height:34px;max-height:38px;padding:7px 11px;background:linear-gradient(145deg,#24212b,#44384e)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:999px!important;cursor:pointer;font:inherit;box-shadow:0 3px 10px rgba(32,26,40,.13)}
.pati-header-coins strong{font-size:12px;font-weight:850;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.pati-header-coins span{font-size:15px;line-height:1}
.pati-header-coins:focus-visible{outline:3px solid #ab9bd2;outline-offset:3px}
#main-content .pati-saved-posts{max-width:780px;margin:0 auto}
#main-content .pati-saved-heading{background:linear-gradient(135deg,#22212a,#484354);color:#fff;border-radius:21px;padding:clamp(20px,4vw,33px);margin-bottom:18px}
#main-content .pati-saved-heading>span{font-size:10px;letter-spacing:.13em;color:#d8cfea;font-weight:800}
#main-content .pati-saved-heading h1{font-size:clamp(24px,4vw,34px);line-height:1.2;letter-spacing:-.04em;margin:8px 0}
#main-content .pati-saved-heading p{font-size:13px;color:#e1dce9;line-height:1.65}
#main-content .pati-saved-heading small{font-size:11px;display:inline-flex;border:1px solid rgba(255,255,255,.25);border-radius:100px;padding:8px 13px}
#main-content .pati-saved-empty{padding:24px;border:1px dashed #d7d4dc;border-radius:17px;text-align:center;color:#666472;line-height:1.7}
#main-content .pati-save-action:disabled{opacity:.6;cursor:wait}
#main-content .pati-save-action.active{color:#8e6aa8!important}
#main-content .paticoin-page .paticoin-mission-heading{margin:28px 0 12px;display:flex;align-items:flex-end;justify-content:space-between;gap:13px}
#main-content .paticoin-mission-heading h2{font-size:19px;line-height:1.3;letter-spacing:-.02em;margin:0 0 4px}
#main-content .paticoin-mission-heading p{font-size:12px;line-height:1.5;color:#797681;margin:0}
#main-content .paticoin-mission-heading>span{font-size:11px;font-weight:800;white-space:nowrap;padding:8px 11px;border-radius:100px;background:#f3f0f8;color:#685678}
#main-content .paticoin-task.pati-mission-claimed{background:#f7fbf6;border-color:#e0eddc}
#main-content .paticoin-task.pati-mission-claimed b{color:#498257!important}
#main-content .paticoin-profile-link{display:flex;gap:8px;justify-content:flex-start}
#main-content .paticoin-profile-link button{border:1px solid #d4cfde;background:#f7f5f9;color:#34303c;border-radius:13px;padding:10px 15px;min-height:44px;font-weight:750;cursor:pointer}
@media(max-width:520px){
 .pati-header-coins{padding:6px 9px;min-height:32px;max-height:34px;gap:3px}
 .pati-header-coins strong{font-size:11px}
 .pati-header-coins span{font-size:13px}
 #main-content .paticoin-mission-heading{align-items:start}
 #main-content .paticoin-mission-heading h2{font-size:17px}
}


.pati-desktop-coins{width:calc(100% - 20px);margin:8px 10px 17px;min-height:47px;border-radius:15px;border:1px solid #dad1e1;background:linear-gradient(120deg,#282430,#51445d);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:12px 15px;font-weight:800;box-shadow:0 6px 20px rgba(36,30,43,.10)}
.pati-desktop-coins strong{font-size:19px;font-variant-numeric:tabular-nums}
.pati-desktop-coins small{font-size:12px;font-weight:600;color:#e7deee;margin-left:auto}
.pati-desktop-coins:focus-visible{outline:3px solid #ab9bd2;outline-offset:2px}


/* CHAT STABILITY · 2026-10-24: isolated composer and message scroll; no mobile page bounce. */
#main-content .pati-dm-layout .chat-window{display:flex;flex-direction:column;min-height:0}
#main-content .pati-dm-layout .chat-window>header{flex:0 0 auto}
#main-content .pati-dm-layout .chat-history{
 flex:1 1 auto;min-height:0;overflow-y:auto!important;
 overscroll-behavior:contain;overflow-anchor:none;
 scroll-behavior:auto!important;-webkit-overflow-scrolling:touch;
}
#main-content .pati-dm-layout .chat-form{
 flex:0 0 auto;position:relative;bottom:auto;
 box-sizing:border-box;z-index:3;
}
#main-content .pati-dm-layout .bubble-chat .pati-dm-msg-tools button{min-height:32px}
#main-content .pati-dm-layout .pati-dm-image{max-width:100%;height:auto;display:block}
#main-content .pati-dm-layout .pati-dm-pending{opacity:.75}
@media(max-width:740px){
 html:has(#main-content .pati-dm-layout.mobile-chat-open),
 body:has(#main-content .pati-dm-layout.mobile-chat-open){overflow:hidden!important;overscroll-behavior:none}
 #app-root:not(.hidden):has(.pati-dm-layout.mobile-chat-open)>.mobile-header,
 #app-root:not(.hidden):has(.pati-dm-layout.mobile-chat-open)>.mobile-bottom,
 #app-root:not(.hidden):has(.pati-dm-layout.mobile-chat-open)>.mobile-fab{
  display:none!important;
 }
 #app-root:not(.hidden)>.app-shell:has(.pati-dm-layout.mobile-chat-open){
  position:fixed!important;inset:0 auto auto 0!important;
  width:100vw!important;max-width:none!important;
  height:var(--pati-dm-visual-height,100dvh)!important;
  min-height:0!important;margin:0!important;padding:0!important;
  display:block!important;z-index:160!important;
  background:#fff;overflow:hidden!important;transform:none!important;
 }
 #app-root:not(.hidden)>.app-shell:has(.pati-dm-layout.mobile-chat-open)>#main-content{
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:100%!important;max-height:100%!important;min-height:0!important;
  margin:0!important;padding:0!important;box-sizing:border-box!important;
  overflow:hidden!important;display:flex!important;flex-direction:column!important;
 }
 #main-content:has(.pati-dm-layout.mobile-chat-open)>.pati-dm-top,
 #main-content:has(.pati-dm-layout.mobile-chat-open)>.pati-dm-filters,
 #main-content:has(.pati-dm-layout.mobile-chat-open)>.pati-dm-searchbar{
  display:none!important;
 }
 #main-content .pati-dm-layout.mobile-chat-open{
  display:flex!important;flex:1 1 auto!important;min-height:0!important;
  max-height:none!important;height:100%!important;width:100%!important;
  padding:0!important;margin:0!important;overflow:hidden!important;
 }
 #main-content .pati-dm-layout.mobile-chat-open>.chat-people{display:none!important}
 #main-content .modern-chat.mobile-chat-open .chat-window,
 .pati-keyboard-open #main-content .modern-chat.mobile-chat-open .chat-window{
  display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
  height:100%!important;max-height:100%!important;min-height:0!important;
  width:100%!important;overflow:hidden!important;
  border:0!important;border-radius:0!important;
 }
 #main-content .pati-dm-layout.mobile-chat-open .chat-window>header{
  height:64px;min-height:64px;padding-top:max(8px,env(safe-area-inset-top,0px))!important;
  box-sizing:content-box;flex:0 0 auto;z-index:2;background:#fff;
 }
 #main-content .pati-dm-layout.mobile-chat-open .chat-history{
  display:flex!important;flex:1 1 auto!important;min-height:0!important;
  max-height:none!important;overflow-y:auto!important;padding-bottom:16px!important;
 }
 #main-content .pati-dm-layout.mobile-chat-open .chat-form,
 .pati-keyboard-open #main-content .pati-dm-layout.mobile-chat-open .chat-form{
  position:relative!important;bottom:auto!important;flex:0 0 auto!important;
  z-index:3!important;padding:8px 9px max(9px,env(safe-area-inset-bottom,0px))!important;
  background:#fff!important;box-shadow:0 -3px 12px rgba(20,20,30,.04);
 }
 #main-content .pati-dm-layout.mobile-chat-open .chat-form input[name="body"]{min-width:0!important}
 #main-content .pati-dm-layout.mobile-chat-open .chat-history .bubble-chat{overflow-wrap:anywhere}
}


/* Patiyiz camera-first creation · one screen, inline gallery and caption */
body.pati-camera-active{overflow:hidden!important}
#modal-root:has(#post-form)~#patiyiz-camera-screen{isolation:isolate}
body.pati-camera-active #modal-root{visibility:hidden!important;pointer-events:none!important}
#patiyiz-camera-screen{position:fixed;z-index:20000;inset:0;width:100%;height:100vh;height:100dvh;display:flex;flex-direction:column;background:#08090b;color:#fff;overflow:hidden;font-family:inherit}
#patiyiz-camera-screen [hidden]{display:none!important}
#patiyiz-camera-screen button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
#patiyiz-camera-screen button:focus-visible{outline:2px solid #fff;outline-offset:3px}
#patiyiz-camera-screen .pati-camera-head{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:max(10px,env(safe-area-inset-top,0px)) 18px 10px;background:#0a0b0d;flex:none}
#patiyiz-camera-screen .pati-camera-head strong{font-size:16px;letter-spacing:-.02em}
#patiyiz-camera-screen .pati-camera-head span{font-weight:750;letter-spacing:-.045em;font-size:14px}
#patiyiz-camera-screen .pati-camera-head button{border:0;background:none;font-size:34px;line-height:1;min-width:44px;min-height:40px;text-align:left}
#patiyiz-camera-screen .pati-camera-stage{flex:1 1 auto;min-height:100px;position:relative;overflow:hidden;background:#17181c;display:grid;place-items:center}
#patiyiz-camera-screen .pati-camera-stage video,#patiyiz-camera-screen .pati-camera-stage>img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
#patiyiz-camera-screen .pati-camera-unavailable{z-index:2;position:relative;display:grid;gap:16px;place-items:center;padding:28px;text-align:center}
#patiyiz-camera-screen .pati-camera-unavailable button{padding:12px 17px;border-radius:100px;background:#fff;color:#17181b;border:0;font-weight:700}
#patiyiz-camera-screen .pati-camera-alert{padding:9px 17px;font-size:12px;color:#fff;background:#433035;line-height:1.45;max-height:76px;overflow:auto}
#patiyiz-camera-screen .pati-camera-bottom{padding:12px 16px max(16px,env(safe-area-inset-bottom,0px));background:#0c0d0f;flex:none;display:flex;flex-direction:column;gap:10px}
#patiyiz-camera-screen .pati-camera-controls{display:flex;align-items:center;justify-content:space-between;min-height:70px;padding:0 14px;gap:12px}
#patiyiz-camera-screen .pati-camera-recent{width:55px;height:55px;border:2px solid #fff;border-radius:12px;padding:0;overflow:hidden;background:#25262a}
#patiyiz-camera-screen .pati-camera-recent img{width:100%;height:100%;object-fit:cover}
#patiyiz-camera-screen .pati-camera-shutter{width:72px;height:72px;border:4px solid #f9f9fa;border-radius:100%;padding:5px;display:grid;place-items:center;background:transparent;box-shadow:0 0 0 2px rgba(0,0,0,.2)}
#patiyiz-camera-screen .pati-camera-shutter span{display:block;width:100%;height:100%;border-radius:100%;background:#fff}
#patiyiz-camera-screen .pati-camera-flip{border:0;background:#292b30;border-radius:50%;width:45px;height:45px;font-size:28px}
#patiyiz-camera-screen .pati-camera-selected-count{text-align:center;font-size:12px;color:#c7c8cd}
#patiyiz-camera-screen #pati-camera-caption{width:100%;box-sizing:border-box;min-height:43px;max-height:100px;resize:vertical;background:#1b1c20;border:1px solid #46474b;border-radius:13px;color:#fff;font:inherit;padding:10px 12px}
#patiyiz-camera-screen #pati-camera-publish{min-height:45px;width:100%;border:0;border-radius:13px;background:#fff;color:#141518;font-size:14px;font-weight:850}
#patiyiz-camera-screen #pati-camera-publish:disabled{opacity:.35;cursor:not-allowed}
#patiyiz-camera-screen .pati-camera-gallery-panel{position:absolute;left:0;right:0;bottom:205px;top:34%;z-index:5;background:#121316;border-radius:20px 20px 0 0;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 -12px 30px rgba(0,0,0,.35)}
#patiyiz-camera-screen .pati-camera-gallery-title{display:flex;justify-content:space-between;align-items:center;padding:14px 16px 11px;flex:none}
#patiyiz-camera-screen .pati-camera-gallery-title button{background:#2a2c30;border:0;border-radius:20px;padding:8px 12px}
#patiyiz-camera-screen .pati-camera-gallery-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;-webkit-overflow-scrolling:touch}
#patiyiz-camera-screen .pati-camera-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
#patiyiz-camera-screen .pati-camera-grid-cell{border:0;background:#303136;padding:0;aspect-ratio:1/1;overflow:hidden}
#patiyiz-camera-screen .pati-camera-grid-cell img{width:100%;height:100%;object-fit:cover}
#patiyiz-camera-screen #pati-camera-gallery-state{padding:10px 14px;font-size:12px;color:#c0c0c7}
#patiyiz-camera-screen [data-camera=more],#patiyiz-camera-screen #pati-camera-gallery-fallback{border:1px solid #55565a;background:#2c2d31;color:#fff;border-radius:10px;padding:11px 15px;margin:6px 12px 14px}
@media(max-height:660px){#patiyiz-camera-screen .pati-camera-gallery-panel{bottom:145px;top:22%}#patiyiz-camera-screen .pati-camera-controls{min-height:54px}#patiyiz-camera-screen .pati-camera-shutter{height:54px;width:54px}}


/* User selected Patiyiz display mode; dark mode affects surfaces, not uploaded media. */
#main-content .pati-theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
#main-content .pati-theme-options button{min-height:48px;border:1px solid #d5d5da;background:#f4f4f6;color:#27282b;border-radius:14px;font-size:14px;font-weight:750;cursor:pointer}
#main-content .pati-theme-options button.active{background:#22242a;color:#fff;border-color:#22242a}
#main-content .pati-profile-tile{position:relative;overflow:hidden}
#main-content .pati-profile-view-count{position:absolute;z-index:2;bottom:0;left:0;right:0;display:flex;justify-content:flex-end;align-items:center;gap:4px;padding:6px 9px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.72));text-shadow:0 1px 4px #000;font-size:11px;font-weight:750;font-variant-numeric:tabular-nums;pointer-events:none}
html[data-pati-theme="dark"]{
 color-scheme:dark;
 --pati-pink:#ececf2;--pati-pink-strong:#f9f9fa;
 --pati-soft:#25262c;--pati-rose:#33343a;--pati-line:#3c3e45;
 --pati-ink:#f0f0f2;--pati-muted:#b3b4be;
 --pati-card:#1b1c21;--pati-bg:#101114;
 --pati-shadow:0 8px 25px rgba(0,0,0,.3);
 --bg:#101114;--paper:#1b1c21;--ink:#f0f0f2;--ink-soft:#ceced5;
 --muted:#adb0ba;--border:#393b42;--green:#dddde3;--green-dark:#fff;
 --mint:#25262c;--mint-light:#191a1e;
}
html[data-pati-theme="dark"] body{background:#101114!important;color:#efeff1!important}
html[data-pati-theme="dark"] #app-root,
html[data-pati-theme="dark"] #app-root .app-shell,
html[data-pati-theme="dark"] #app-root .main{background:#101114!important;color:#efeff1!important}
html[data-pati-theme="dark"] #app-root .sidebar,
html[data-pati-theme="dark"] #app-root .right-rail,
html[data-pati-theme="dark"] #app-root .mobile-header,
html[data-pati-theme="dark"] #app-root .mobile-bottom,
html[data-pati-theme="dark"] #app-root .mobile-nav,
html[data-pati-theme="dark"] #app-root .pati-card,
html[data-pati-theme="dark"] #app-root .stories-section,
html[data-pati-theme="dark"] #main-content .pati-ig-profile,
html[data-pati-theme="dark"] #main-content .pati-dm-layout,
html[data-pati-theme="dark"] #main-content .chat-window,
html[data-pati-theme="dark"] #main-content .chat-people,
html[data-pati-theme="dark"] .auth-card,
html[data-pati-theme="dark"] .modal,
html[data-pati-theme="dark"] .modal-content,
html[data-pati-theme="dark"] .modal-header,
html[data-pati-theme="dark"] .modal-footer{
 background:#1b1c21!important;color:#efeff1!important;border-color:#373942!important
}
html[data-pati-theme="dark"] #app-root .pati-feed-card,
html[data-pati-theme="dark"] #app-root .pati-edu-card,
html[data-pati-theme="dark"] #app-root .pati-edu-step,
html[data-pati-theme="dark"] #app-root .pati-story-card,
html[data-pati-theme="dark"] #app-root .pati-settings-list section,
html[data-pati-theme="dark"] #app-root .pati-reels-head,
html[data-pati-theme="dark"] #app-root .pati-ig-highlights,
html[data-pati-theme="dark"] #app-root .pati-ig-tabs,
html[data-pati-theme="dark"] #app-root .pati-feed-switch,
html[data-pati-theme="dark"] #app-root .pati-mobile-menu-list{
 background:#1b1c21!important;color:#efeff1!important;border-color:#373942!important
}
html[data-pati-theme="dark"] #app-root .nav-link,
html[data-pati-theme="dark"] #app-root .brand-word,
html[data-pati-theme="dark"] #main-content .page-title,
html[data-pati-theme="dark"] #main-content .pati-ig-name,
html[data-pati-theme="dark"] #main-content .pati-ig-stats b,
html[data-pati-theme="dark"] #app-root .pati-feed-card-header,
html[data-pati-theme="dark"] #main-content h1,
html[data-pati-theme="dark"] #main-content h2,
html[data-pati-theme="dark"] #main-content h3,
html[data-pati-theme="dark"] #main-content strong,
html[data-pati-theme="dark"] .modal h2{color:#f1f1f4!important}
html[data-pati-theme="dark"] #app-root .nav-link.active,
html[data-pati-theme="dark"] #app-root .nav-link:hover,
html[data-pati-theme="dark"] #app-root .pati-ig-tabs button.active{
 background:#2c2d33!important;color:#fff!important
}
html[data-pati-theme="dark"] #app-root .pati-ig-actions button,
html[data-pati-theme="dark"] #main-content .pati-filter-tabs button,
html[data-pati-theme="dark"] #main-content .pati-feed-follow button,
html[data-pati-theme="dark"] #main-content .pati-theme-options button,
html[data-pati-theme="dark"] .modal button:not(.primary-btn),
html[data-pati-theme="dark"] #app-root .outline-btn{
 background:#2a2c32!important;color:#f0f0f2!important;border-color:#454750!important
}
html[data-pati-theme="dark"] #main-content .pati-theme-options button.active{
 background:#f1f1f3!important;color:#17181d!important;border-color:#f1f1f3!important
}
html[data-pati-theme="dark"] #main-content input,
html[data-pati-theme="dark"] #main-content select,
html[data-pati-theme="dark"] #main-content textarea,
html[data-pati-theme="dark"] #auth-root input,
html[data-pati-theme="dark"] .modal input,
html[data-pati-theme="dark"] .modal select,
html[data-pati-theme="dark"] .modal textarea{
 background:#24262c!important;color:#f7f7f9!important;border-color:#474951!important
}
html[data-pati-theme="dark"] input::placeholder,html[data-pati-theme="dark"] textarea::placeholder{color:#9d9fa8!important}
html[data-pati-theme="dark"] #main-content .pati-actionbar,
html[data-pati-theme="dark"] #app-root .pati-post-details,
html[data-pati-theme="dark"] #main-content .pati-post-caption,
html[data-pati-theme="dark"] #main-content .pati-feed-text-content,
html[data-pati-theme="dark"] #main-content .pati-ig-bio{color:#dedee4!important}
html[data-pati-theme="dark"] #app-root .primary-btn,
html[data-pati-theme="dark"] #app-root .nav-create{
 background:linear-gradient(115deg,#eeeeef,#b9bac3)!important;color:#121315!important
}
html[data-pati-theme="dark"] #main-content .pati-dm-layout .chat-window>header,
html[data-pati-theme="dark"] #main-content .pati-dm-layout .chat-form{background:#1b1c21!important;color:#efeff1!important;border-color:#3b3e45!important}
html[data-pati-theme="dark"] #main-content .pati-dm-layout .bubble-chat{background:#2a2b31;color:#f3f3f5}
html[data-pati-theme="dark"] #main-content .pati-dm-layout .bubble-chat.mine{background:#41434d;color:#fff}
html[data-pati-theme="dark"] #main-content .pati-reel-item{background:#050506}
html[data-pati-theme="dark"] #startup{background:#101114!important;color:#fff!important}
html[data-pati-theme="dark"] #startup .pati-splash-publisher{color:#fff!important}

/* Reels 2. aşama: avatar, follow, double-tap; maintain existing full-screen layouts */
#main-content .pati-reel-author .pati-reel-avatar-link{
 display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 auto;padding:0!important;margin:0;border:0!important;
 border-radius:50%;background:transparent!important;box-shadow:none!important;
 min-width:36px;min-height:36px;cursor:pointer;
}
#main-content .pati-reel-author .pati-reel-avatar-link .avatar{
 width:36px;height:36px;min-width:36px;max-width:36px;
 display:grid;place-items:center;border-radius:50%;overflow:hidden;
}
#main-content .pati-reel-author .pati-reel-follow{
 margin-left:auto;flex:0 0 auto;min-height:32px;min-width:75px;
 border:1px solid #ffffffd9!important;border-radius:9px!important;
 background:rgba(255,255,255,.17)!important;color:#fff!important;
 padding:6px 10px!important;font-size:12px!important;
 font-weight:800!important;white-space:nowrap;cursor:pointer;
}
#main-content .pati-reel-author .pati-reel-follow[aria-pressed="true"]{
 background:rgba(20,20,20,.53)!important;border-color:#ffffff70!important;
}
#main-content .pati-reel-tap{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#main-content .pati-reel-heart-burst{
 position:absolute;left:50%;top:50%;width:90px;height:90px;
 transform:translate(-50%,-50%) scale(.4);opacity:0;pointer-events:none;
 display:grid;place-items:center;color:white;filter:drop-shadow(0 5px 16px #000a);
}
#main-content .pati-reel-heart-burst svg.icon{
 width:90px!important;height:90px!important;fill:#fff!important;stroke:#fff!important;
}
#main-content .pati-reel-heart-burst.pop{
 animation:pati-reels-heart-pop .65s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes pati-reels-heart-pop{
 0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}
 28%{opacity:1;transform:translate(-50%,-50%) scale(1.16)}
 60%{opacity:1;transform:translate(-50%,-50%) scale(1)}
 100%{opacity:0;transform:translate(-50%,-50%) scale(1.25)}
}
@media(prefers-reduced-motion:reduce){
 #main-content .pati-reel-heart-burst.pop{animation:none;opacity:1;transform:translate(-50%,-50%)}
}

/* Patiyiz profile editing and follow-back — 2. aşama */
#main-content .pati-ig-actions button[data-follow-back="true"],
#main-content .pati-ig-actions .primary-btn[data-follow-back="true"],
#main-content .pati-follow-person button[data-follow-back="true"],
#main-content .pati-reel-follow[data-follow-back="true"]{
 background:#1877f2!important;border-color:#1877f2!important;color:#fff!important;
 box-shadow:none!important;font-weight:800!important;
}
#main-content .pati-reel-follow[data-follow-back="true"]{white-space:nowrap;min-width:100px}
#modal-root .modal.pati-profile-edit-modal{
 width:min(100% - 24px,520px)!important;max-width:520px!important;
 border-radius:22px!important;overflow:hidden!important;background:#fff!important;
}
#modal-root .pati-profile-edit-modal .modal-header{
 padding:16px 18px!important;border-bottom:1px solid #f0f0f1!important;
 background:#fff!important;color:#151516!important;
}
#modal-root .pati-profile-edit-modal .modal-content{
 padding:0 18px 16px!important;max-height:calc(100dvh - 205px)!important;
 overflow-y:auto!important;background:#fff!important;
}
#modal-root .pati-profile-edit-modal .pati-edit-cover{
 display:flex;align-items:center;flex-direction:column;gap:12px;
 padding:22px 8px 20px;border-bottom:1px solid #f0f0f2;text-align:center;
}
#modal-root .pati-edit-avatar{
 width:100px;height:100px;border-radius:50%;overflow:hidden;display:grid;
 place-items:center;background:#e9e9eb;color:#262626;font-size:34px;font-weight:800;
 box-shadow:0 0 0 3px #f2f2f4;
}
#modal-root .pati-edit-avatar img{width:100%;height:100%;display:block;object-fit:cover}
#modal-root .pati-edit-photo-tools{
 display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;
}
#modal-root .pati-edit-photo-tools strong{font-size:14px;color:#1b1c1e}
#modal-root .pati-edit-photo-tools small{font-size:11px;color:#81828a}
#modal-root .pati-edit-photo-select{
 color:#1877f2;font-weight:850;font-size:13px;cursor:pointer;
 display:inline-flex;min-height:40px;align-items:center;padding:5px 14px;
 border-radius:10px;background:#eef5ff;
}
#modal-root #pati-profile-photo{
 position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
}
#modal-root .pati-edit-sections{display:grid;gap:14px;padding:20px 0 4px}
#modal-root .pati-edit-section-title{font-size:15px;font-weight:850;color:#202124}
#modal-root .pati-profile-edit-modal .pati-field{margin:0!important;display:grid;gap:6px}
#modal-root .pati-profile-edit-modal .pati-field label{
 font-weight:750;font-size:12px;color:#36383d!important;
}
#modal-root .pati-profile-edit-modal .pati-field input,
#modal-root .pati-profile-edit-modal .pati-field textarea{
 width:100%;background:#f7f7f8!important;color:#202124!important;
 border:1px solid #e4e5e8!important;border-radius:12px!important;
 min-height:47px!important;padding:12px 13px!important;
 box-sizing:border-box;font-size:15px!important;
}
#modal-root .pati-profile-edit-modal .pati-field textarea{
 min-height:100px!important;resize:vertical;
}
#modal-root .pati-edit-hint{font-size:11px;color:#777a83;line-height:1.5;margin:0}
#modal-root .pati-profile-edit-modal .modal-footer{
 background:#fff!important;border-top:1px solid #ededf0!important;padding:12px 16px!important;
 display:flex;gap:10px;
}
#modal-root .pati-profile-edit-modal .modal-footer button[type="submit"]{
 background:#1877f2!important;border-color:#1877f2!important;color:#fff!important;
 flex:1;min-height:44px!important;
}
/* Heart fills red, bookmark fills black after server-confirmed interaction. */
#main-content .pati-social-actions button[data-action="like"].active svg.icon,
#main-content .pati-reel-rail button[data-action="like"].active svg.icon{
 color:#ff3040!important;fill:#ff3040!important;stroke:#ff3040!important;
}
#main-content .pati-social-actions button[data-action="save"].active svg.icon{
 color:#131313!important;fill:#131313!important;stroke:#131313!important;
}
#main-content .pati-reel-rail button[data-action="save"].active svg.icon{
 color:#111!important;fill:#111!important;stroke:#fff!important;stroke-width:2.5px!important;
}
html[data-pati-theme="dark"] #main-content .pati-social-actions button[data-action="save"].active svg.icon{
 fill:#111!important;stroke:#fff!important;
}
@media(max-width:740px){
 #modal-root .modal.pati-profile-edit-modal{
  width:100%!important;max-width:none!important;height:min(96dvh,850px)!important;
  border-radius:20px 20px 0 0!important;margin-top:auto!important;
 }
 #modal-root .pati-profile-edit-modal .modal-content{
  max-height:calc(95dvh - 165px)!important;
  padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))!important;
 }
}

/* Follow-back button beside a real incoming follow notification */
#main-content .pati-alert-row .pati-alert-follow-back{
 display:inline-flex!important;align-items:center;justify-content:center;
 flex:0 0 auto;margin:0 6px;padding:8px 10px!important;
 min-height:34px!important;max-width:125px;white-space:normal;
 border:1px solid #1877f2!important;border-radius:10px!important;
 color:white!important;background:#1877f2!important;
 font-size:11px!important;font-weight:800!important;cursor:pointer;
}
@media(max-width:420px){
 #main-content .pati-alert-row .pati-alert-follow-back{padding:7px 6px!important;font-size:10px!important;max-width:104px}
 #main-content .pati-alert-row .pati-alert-entry{min-width:0;flex:1}
}

/* Patiyiz mobile profile seam: header and the name section share one surface */
@media(max-width:740px){
 body:has(#main-content .pati-ig-profile),
 #app-root:not(.hidden):has(#main-content .pati-ig-profile){
  background:#f7f7f9!important;
 }
 #app-root:not(.hidden):has(#main-content .pati-ig-profile)>.mobile-header{
  background:#f7f7f9!important;
  border-bottom:0!important;box-shadow:none!important;margin:0!important;
 }
 #app-root:not(.hidden)>.app-shell:has(.pati-ig-profile),
 #app-root:not(.hidden)>.app-shell:has(.pati-ig-profile)>#main-content{
  background:#f7f7f9!important;
  margin-top:0!important;padding-top:0!important;
 }
 #app-root:not(.hidden) #main-content>.pati-ig-profile{
  padding-top:0!important;margin-top:0!important;
  background:#f7f7f9!important;
 }
 #main-content .pati-ig-profile .pati-ig-summary{
  border-radius:0!important;margin-top:0!important;
  background:#f7f7f9!important;
 }
 #main-content .pati-ig-profile .pati-ig-bio,
 #main-content .pati-ig-profile .pati-ig-actions,
 #main-content .pati-ig-profile .pati-ig-highlight-section,
 #main-content .pati-ig-profile .pati-ig-tabs,
 #main-content .pati-ig-profile .pati-ig-grid{background:#fff!important}
}
/* Instagram-inspired video comment bottom sheet; keep video visible above it. */
#modal-root .modal-backdrop.pati-instagram-comments-backdrop{
 position:fixed!important;inset:0!important;
 display:flex!important;align-items:flex-end!important;justify-content:center!important;
 padding:0!important;background:rgba(0,0,0,.38)!important;
 z-index:100300!important;
}
#modal-root .modal.pati-instagram-comments{
 position:relative!important;margin:0 auto!important;
 width:min(100%,680px)!important;max-width:680px!important;
 height:min(82dvh,860px)!important;max-height:calc(100dvh - 28px)!important;
 display:flex!important;flex-direction:column!important;
 overflow:hidden!important;box-sizing:border-box!important;
 border:0!important;border-radius:25px 25px 0 0!important;
 color:#f2f2f4!important;background:#181b1e!important;box-shadow:0 -12px 40px #0006!important;
}
#modal-root .pati-instagram-comments .modal-header{
 position:relative!important;flex:0 0 auto!important;
 min-height:74px!important;display:flex!important;align-items:center!important;justify-content:center!important;
 padding:26px 50px 12px!important;background:#181b1e!important;border-bottom:1px solid #303337!important;
}
#modal-root .pati-instagram-comments .modal-header::before{
 content:"";position:absolute;top:12px;left:50%;transform:translateX(-50%);
 width:42px;height:4px;border-radius:99px;background:#8b9099;
}
#modal-root .pati-instagram-comments .modal-header h2{
 margin:0!important;color:#f7f7f8!important;font-size:16px!important;text-align:center!important;font-weight:850!important;
}
#modal-root .pati-instagram-comments .close-modal{
 color:#f7f7f8!important;background:#292c30!important;
 border:0!important;border-radius:50%!important;min-width:32px!important;min-height:32px!important;
 right:12px!important;top:25px!important;
}
#modal-root #comment-form{
 display:flex!important;flex:1 1 auto!important;min-height:0!important;flex-direction:column!important;background:#181b1e!important;
}
#modal-root .pati-instagram-comments .modal-content{
 display:flex!important;flex-direction:column!important;gap:0!important;
 flex:1 1 auto!important;min-height:0!important;max-height:none!important;
 overflow:hidden!important;padding:0 0 3px!important;background:#181b1e!important;
}
#comment-form .pati-comment-post-summary{
 flex:0 0 auto!important;max-height:30%!important;overflow:auto!important;
 padding:14px 18px 12px!important;border-bottom:1px solid #303337!important;
 background:#181b1e!important;
}
#comment-form .pati-comment-post-user{
 display:flex;align-items:center;gap:10px;min-width:0;min-height:38px;margin-bottom:10px;color:#f5f5f6;
}
#comment-form .pati-comment-post-user>.avatar,
#comment-form .pati-comment-post-user>.avatar.s{width:36px!important;height:36px!important;border-radius:50%!important;flex:0 0 36px!important}
#comment-form .pati-comment-post-user strong{font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#comment-form .pati-comment-follow{
 margin-left:auto;flex:0 0 auto;padding:6px 10px!important;min-height:31px!important;
 border:1px solid #6c7179!important;border-radius:10px!important;background:transparent!important;
 font-size:12px!important;color:#fff!important;font-weight:750!important;
}
#comment-form .pati-comment-follow.is-following{color:#9da3aa!important}
#comment-form .pati-comment-post-summary p{font-size:13px!important;line-height:1.5!important;color:#ebedf1!important;margin:6px 0 10px!important;white-space:pre-wrap;overflow-wrap:anywhere}
#comment-form .pati-comment-post-summary>small{color:#a5a9b0!important;font-size:11px!important}
#comment-form .comment-list{
 flex:1 1 auto!important;min-height:0!important;max-height:none!important;
 overflow-y:auto!important;overscroll-behavior:contain;
 padding:6px 12px 16px!important;background:#181b1e!important;
 scrollbar-width:thin;
}
#comment-form .pati-sheet-comment{
 --pati-comment-indent:calc(var(--pati-comment-depth,0) * 13px);
 display:grid!important;grid-template-columns:35px minmax(0,1fr) 37px!important;
 column-gap:10px!important;align-items:start!important;
 margin:0!important;margin-left:var(--pati-comment-indent)!important;
 padding:13px 2px 11px 2px!important;border:0!important;
 color:#f2f3f5!important;
}
#comment-form .pati-sheet-comment .pati-sheet-comment-avatar .avatar{
 width:34px!important;height:34px!important;min-width:34px!important;border-radius:50%!important;
}
#comment-form .pati-sheet-comment-main{min-width:0}
#comment-form .pati-sheet-comment-line{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
#comment-form .pati-sheet-comment-line strong{font-size:13px!important;color:#f3f4f5!important}
#comment-form .pati-sheet-comment-line time{font-size:11px!important;color:#9b9ea5!important}
#comment-form .pati-sheet-comment p{
 margin:3px 0 7px!important;color:#f0f0f2!important;
 font-size:14px!important;line-height:1.43!important;white-space:pre-wrap;overflow-wrap:anywhere;
}
#comment-form .pati-sheet-comment .comment-actions{
 display:flex!important;gap:14px!important;margin:0!important;padding:0!important;
}
#comment-form .pati-sheet-comment .comment-actions button{
 border:0!important;padding:3px 0!important;background:none!important;
 font-size:11px!important;font-weight:700!important;color:#a9adb5!important;
}
#comment-form .pati-comment-heart{
 display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important;
 padding:14px 0 0!important;border:0!important;background:transparent!important;color:#a8aeb7!important;
}
#comment-form .pati-comment-heart svg.icon{width:22px!important;height:22px!important;stroke:#b1b4bd!important;fill:none!important}
#comment-form .pati-comment-heart.active svg.icon{fill:#ff3040!important;stroke:#ff3040!important}
#comment-form .pati-comment-heart small{font-size:11px!important;color:#aab0b7!important}
#comment-form .pati-comment-replies-toggle{
 border:0!important;background:transparent!important;margin:8px 0 0!important;padding:3px 0!important;
 color:#aaafb8!important;text-align:left!important;font-size:12px!important;font-weight:780!important;
}
#comment-form .pati-comment-children{margin-top:7px}
#comment-form .pati-comments-empty{color:#aab0b7!important;text-align:center!important;padding:30px 12px!important;font-size:14px!important}
#comment-form .pati-comment-reply-hint{
 margin:0!important;flex:0 0 auto!important;padding:0 17px!important;background:#25282d!important;
 color:#c7ccd4!important;font-size:12px!important;line-height:1.9!important;
}
#comment-form .pati-comment-reply-hint:empty{display:none!important}
#comment-form .pati-comment-reply-hint button{border:0;background:none;color:#fff;font-weight:800}
#modal-root .pati-instagram-comments .modal-footer{
 display:flex!important;flex-direction:column!important;gap:7px!important;
 margin:0!important;padding:7px 14px max(14px,env(safe-area-inset-bottom,0px))!important;
 flex:0 0 auto!important;border-top:1px solid #34383c!important;background:#181b1e!important;
}
#comment-form .pati-comment-quick{
 display:flex!important;flex-wrap:nowrap;gap:8px;overflow-x:auto;
 margin:0!important;padding:3px 0!important;scrollbar-width:none;
}
#comment-form .pati-comment-quick button{
 flex:0 0 auto!important;border:0!important;background:none!important;
 font-size:19px!important;width:37px;height:34px;padding:0!important;
}
#comment-form .pati-comment-editor-row{
 display:flex!important;align-items:center;gap:10px;width:100%;
}
#comment-form .pati-comment-me .avatar{width:38px!important;height:38px!important;min-width:38px!important;border-radius:50%!important}
#comment-form .pati-comment-editor-row textarea{
 flex:1 1 auto!important;min-width:0!important;height:44px!important;min-height:44px!important;max-height:88px!important;
 padding:11px 13px!important;margin:0!important;resize:none!important;box-sizing:border-box!important;
 background:#24272b!important;border:1px solid #343942!important;border-radius:22px!important;
 color:#fff!important;font-size:15px!important;line-height:1.35!important;
}
#comment-form .pati-comment-editor-row textarea::placeholder{color:#999faa!important}
#comment-form .pati-comment-editor-row .pati-comment-send{
 border:0!important;background:#2e83f7!important;color:#fff!important;
 border-radius:11px!important;padding:9px 12px!important;min-height:39px!important;
 font-size:12px!important;font-weight:850!important;flex:0 0 auto!important;
}
@media(max-width:740px){
 #modal-root .modal.pati-instagram-comments{
  height:min(77dvh,830px)!important;max-height:calc(100dvh - 58px)!important;
  width:100%!important;max-width:none!important;border-radius:25px 25px 0 0!important;
 }
 #comment-form .pati-comment-post-summary{max-height:29%!important}
 #modal-root .pati-instagram-comments .modal-footer{
  padding-bottom:calc(13px + env(safe-area-inset-bottom,0px))!important;
 }
}

/* Patiyiz 2. aşama — Instagram-inspired micro-interactions */
@keyframes patiLikeMicroPop{
 0%{transform:scale(1)}38%{transform:scale(1.27)}65%{transform:scale(.94)}100%{transform:scale(1)}
}
@keyframes patiFollowMicroPop{
 0%{transform:scale(.94);opacity:.7}55%{transform:scale(1.055);opacity:1}100%{transform:scale(1)}
}
#main-content button.pati-like-pop svg.icon,
#main-content button.pati-like-pop{animation:patiLikeMicroPop .34s ease-out both}
#main-content button.pati-follow-pop,
#main-content .pati-reel-follow.pati-follow-pop{animation:patiFollowMicroPop .33s ease-out both}
#main-content .pati-reel-progress{
 position:absolute;left:12px;right:12px;
 bottom:calc(80px + env(safe-area-inset-bottom,0px));
 z-index:19;display:flex;align-items:center;height:25px;
 pointer-events:auto;filter:drop-shadow(0 1px 2px #0009);
}
#main-content .pati-reel-progress input[type="range"]{
 -webkit-appearance:none;appearance:none;width:100%;height:3px;
 margin:0!important;padding:0!important;outline:none;
 border:0!important;border-radius:40px;background:linear-gradient(90deg,#fff 0 var(--pati-reel-progress,0%),#ffffff66 var(--pati-reel-progress,0%) 100%)!important;
 cursor:pointer;touch-action:pan-x;min-height:3px!important;
}
#main-content .pati-reel-progress input[type="range"]::-webkit-slider-thumb{
 -webkit-appearance:none;appearance:none;width:12px;height:12px;
 border-radius:50%;border:2px solid #fff;background:#fff;box-shadow:0 1px 3px #0009;
}
#main-content .pati-reel-progress input[type="range"]::-moz-range-thumb{
 width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#fff;
}
#main-content .pati-carousel-slide .pati-photo img{
 transition:transform .22s ease-out;transform-origin:center center;
 backface-visibility:hidden;
}
#main-content .pati-carousel-slide .pati-photo img.pati-pinching{
 transition:none!important;will-change:transform;
}
#main-content .pati-carousel-slide:has(img.pati-pinching){
 position:relative;z-index:9;overflow:hidden;
}
#main-content .pati-mutual-followers{
 display:flex;align-items:center;gap:10px;min-height:44px;
 padding:8px 14px;background:#fff;color:#737780;font-size:12px;
}
#main-content .pati-mutual-followers strong{color:#24252a;font-size:12px}
#main-content .pati-mutual-avatars{display:flex;align-items:center;padding-left:4px;flex-shrink:0}
#main-content .pati-mutual-avatars button{
 width:28px;height:28px;min-height:28px;border-radius:50%;
 padding:0!important;margin-left:-5px;background:#fff;
 border:2px solid #fff;overflow:hidden;cursor:pointer;
}
#main-content .pati-mutual-avatars .avatar,
#main-content .pati-mutual-avatars .avatar.s{
 display:flex;align-items:center;justify-content:center;width:26px!important;height:26px!important;
 min-width:26px!important;border-radius:50%;font-size:10px;
}
#main-content .pati-dm-typing-indicator{
 display:inline-flex;align-items:center;gap:6px;font-size:11px!important;
 font-weight:760;color:#358bf8!important;white-space:nowrap;
}
#main-content .pati-dm-typing-indicator[hidden]{display:none!important}
#main-content .pati-dm-dots{display:inline-flex;gap:3px;align-items:center;height:13px}
#main-content .pati-dm-dots b{
 width:4px;height:4px;border-radius:50%;background:#358bf8;
 animation:patiDmTypingDot 1.1s infinite ease-in-out;
}
#main-content .pati-dm-dots b:nth-child(2){animation-delay:.15s}
#main-content .pati-dm-dots b:nth-child(3){animation-delay:.3s}
@keyframes patiDmTypingDot{
 0%,65%,100%{transform:translateY(0);opacity:.5}
 35%{transform:translateY(-4px);opacity:1}
}
#main-content .pati-dm-receipts-setting button[data-action="dm-receipts-toggle"]{
 border-radius:11px;padding:10px 14px;background:#111;color:#fff;
 border:1px solid #222;font-weight:800;min-height:40px;
}
#main-content .pati-dm-receipts-setting button[aria-checked="false"]{
 background:#f1f1f3;color:#313438;border-color:#dcdfe2;
}
@media(prefers-reduced-motion:reduce){
 #main-content .pati-like-pop,#main-content .pati-follow-pop,
 #main-content .pati-dm-dots b{animation:none!important}
 #main-content .pati-carousel-slide .pati-photo img{transition:none!important}
}

/* Unified camera-first media flow: square gallery, photo/video modes and recording */
#patiyiz-camera-screen .pati-camera-modes{display:flex;gap:7px;justify-content:center}
#patiyiz-camera-screen .pati-camera-modes button{border:0;border-radius:18px;background:#25262b;padding:7px 20px;color:#e5e6eb;font-size:13px;font-weight:700}
#patiyiz-camera-screen .pati-camera-modes button.active{background:#fff;color:#131416}
#patiyiz-camera-screen .pati-camera-shutter.video-mode span{background:#ef4444}
#patiyiz-camera-screen .pati-camera-shutter.recording span{width:60%;height:60%;border-radius:8px;background:#ef4444}
#patiyiz-camera-screen .pati-camera-actions{display:flex;gap:9px;align-items:center}
#patiyiz-camera-screen .pati-camera-actions #pati-camera-edit{flex:0 0 28%;background:#292a30;border:1px solid #55565d;padding:12px 8px;border-radius:12px;font-weight:750}
#patiyiz-camera-screen .pati-camera-actions #pati-camera-publish{flex:1;min-width:0}
#patiyiz-camera-screen .pati-camera-stage #pati-camera-chosen-video{object-fit:contain;background:#090a0c}
#patiyiz-camera-screen .pati-camera-gallery-scroll [data-camera="video-gallery"]{display:block;width:calc(100% - 24px);border:1px solid #585a61;border-radius:11px;margin:9px 12px 15px;padding:12px;background:#292b31;font-weight:750}
#patiyiz-camera-screen .pati-camera-gallery-panel{bottom:min(235px,39dvh)}
#patiyiz-camera-screen .pati-camera-recent{border-radius:10px;flex:0 0 55px}
@media(max-width:740px){#patiyiz-camera-screen .pati-camera-stage{min-height:0}#patiyiz-camera-screen .pati-camera-bottom{padding-bottom:max(14px,env(safe-area-inset-bottom,0px))}}

/* Camera viewfinders: Instagram-style 1:1 post and 9:16 Story/Reels. */
#patiyiz-camera-screen .pati-camera-stage{min-height:0;display:grid;place-items:center;padding:0;overflow:hidden}
#patiyiz-camera-screen .pati-camera-viewfinder{position:relative;aspect-ratio:9/16;height:100%;width:auto;max-width:100%;max-height:100%;overflow:hidden;background:#0a0b0f}
#patiyiz-camera-screen[data-capture-aspect="square"] .pati-camera-viewfinder{aspect-ratio:1/1;width:min(100%,100dvh);height:auto;max-height:100%}
#patiyiz-camera-screen .pati-camera-viewfinder #pati-camera-live,
#patiyiz-camera-screen .pati-camera-viewfinder #pati-camera-chosen-image,
#patiyiz-camera-screen .pati-camera-viewfinder #pati-camera-chosen-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#patiyiz-camera-screen .pati-camera-viewfinder #pati-camera-chosen-video{object-fit:contain}
#patiyiz-camera-screen.pati-camera-selfie .pati-camera-viewfinder #pati-camera-live{transform:scaleX(-1);object-fit:cover}
#patiyiz-camera-screen .pati-camera-viewfinder .pati-camera-unavailable{position:absolute;inset:0;z-index:2}
#patiyiz-camera-screen .pati-camera-actions #pati-camera-publish{flex:1;width:100%}
#patiyiz-camera-screen .pati-camera-bottom{gap:8px}

/* Reserve screen space for the full portrait camera; caption appears after capture. */
#patiyiz-camera-screen:not(.pati-camera-has-media) #pati-camera-caption,
#patiyiz-camera-screen:not(.pati-camera-has-media) .pati-camera-actions{display:none!important}
#patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-viewfinder{max-width:100%;max-height:100%;height:100%;width:auto}

/* 2026-10-27 · Full-bleed Instagram-style Story/Reels camera on phone.
   The viewfinder fills the viewport; bars and letterboxing are eliminated
   independently of which physical camera (front/rear) is selected. */
#patiyiz-camera-screen .pati-camera-create-tabs{display:flex;gap:9px;justify-content:center;align-items:center;min-height:26px}
#patiyiz-camera-screen .pati-camera-create-tabs button{padding:5px 8px;border:0;background:transparent;color:rgba(255,255,255,.65);font-weight:750;font-size:11px;letter-spacing:.09em}
#patiyiz-camera-screen .pati-camera-create-tabs button.active{color:#fff;text-shadow:0 1px 10px #000;font-weight:900}
#patiyiz-camera-screen .pati-camera-create-tabs button:focus-visible{border-radius:7px}
#patiyiz-camera-screen #pati-camera-retake{min-height:45px;padding:0 14px;border:1px solid rgba(255,255,255,.65);border-radius:13px;background:rgba(10,10,14,.8);font-weight:750}
#patiyiz-camera-screen .pati-camera-actions{align-items:stretch}
@media(max-width:740px){
 #patiyiz-camera-screen[data-capture-aspect="portrait"]{
  display:block!important;position:fixed!important;inset:0!important;width:100%!important;
  height:100dvh!important;min-height:0!important;overflow:hidden;background:#000
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-stage{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  max-width:none!important;min-height:0!important;z-index:0;background:#000;display:block;
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-viewfinder{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  max-width:none!important;max-height:none!important;aspect-ratio:auto!important;
  border-radius:0!important;background:#000;
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-viewfinder #pati-camera-live,
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-viewfinder #pati-camera-chosen-image,
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-viewfinder #pati-camera-chosen-video{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  max-width:none!important;max-height:none!important;object-fit:cover!important;
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"].pati-camera-selfie .pati-camera-viewfinder #pati-camera-live{
  transform:scaleX(-1);object-fit:cover!important
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-head{
  position:absolute!important;top:0;left:0;right:0;z-index:6;
  width:100%;box-sizing:border-box;min-height:72px;
  padding:max(14px,env(safe-area-inset-top,0px)) 16px 14px;
  background:linear-gradient(180deg,rgba(0,0,0,.65),rgba(0,0,0,0));
  color:#fff
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-head button{
  color:#fff;text-shadow:0 1px 6px #000;font-weight:400;
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-bottom{
  position:absolute!important;left:0;right:0;bottom:0;z-index:5;
  box-sizing:border-box;max-height:75dvh;overflow-y:auto;
  padding:64px 16px max(14px,env(safe-area-inset-bottom,0px))!important;
  gap:7px!important;background:linear-gradient(0deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.48) 60%,transparent 100%)!important;
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-controls{
  padding:0 8px!important;min-height:76px;gap:12px
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-recent{
  width:52px;height:52px;flex:0 0 52px;border-radius:11px;border-color:rgba(255,255,255,.88);
  box-shadow:0 2px 14px rgba(0,0,0,.3)
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-shutter{
  width:78px;height:78px;flex:0 0 78px;box-shadow:0 0 0 2px rgba(0,0,0,.4);
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-flip{
  width:50px;height:50px;background:rgba(0,0,0,.38);
  border:1px solid rgba(255,255,255,.35);box-shadow:0 1px 12px rgba(0,0,0,.25)
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-modes{
  order:0;justify-content:center;gap:8px
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-modes button{
  background:rgba(0,0,0,.46);color:rgba(255,255,255,.85);
  border:1px solid rgba(255,255,255,.22);padding:7px 18px
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-modes button.active{
  background:#fff;color:#141518;border-color:#fff
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-selected-count{
  color:#e4e4e9;text-shadow:0 1px 4px #000
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-alert{
  position:absolute;left:14px;right:14px;top:max(82px,calc(env(safe-area-inset-top,0px) + 66px));
  z-index:8;border:1px solid rgba(255,255,255,.3);border-radius:12px;
  background:rgba(26,20,24,.87);color:#fff;max-height:22dvh
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-gallery-panel{
  position:absolute!important;top:22%!important;left:0;right:0;bottom:0!important;
  z-index:9;background:#101114;border-radius:23px 23px 0 0;
  box-shadow:0 -18px 70px rgba(0,0,0,.58)
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-gallery-scroll{
  padding-bottom:max(16px,env(safe-area-inset-bottom,0px))
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"].pati-camera-has-media .pati-camera-controls,
 #patiyiz-camera-screen[data-capture-aspect="portrait"].pati-camera-has-media .pati-camera-modes,
 #patiyiz-camera-screen[data-capture-aspect="portrait"].pati-camera-has-media .pati-camera-create-tabs{
  display:none!important
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"].pati-camera-has-media .pati-camera-bottom{
  padding-top:68px!important;gap:12px!important
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] #pati-camera-caption{
  background:rgba(10,10,13,.7);border:1px solid rgba(255,255,255,.4);
  color:#fff;min-height:58px;max-height:22dvh
 }
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-actions #pati-camera-publish{
  background:#fff;color:#121316;min-height:50px
 }
}
@media(max-width:740px) and (max-height:590px){
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-bottom{padding-top:26px!important}
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-controls{min-height:56px}
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-shutter{width:58px;height:58px;flex-basis:58px}
 #patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-recent{width:44px;height:44px;flex-basis:44px}
}

/* iPhone full-screen camera reliability, independent of CSS viewport/media width.
   iOS standalone windows may report a wider layout viewport than their screen. */
#patiyiz-camera-screen[data-capture-aspect="portrait"]{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:0!important;display:block!important;overflow:hidden!important;background:#000!important}
#patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-stage,
#patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-viewfinder{
 position:absolute!important;inset:0!important;display:block!important;
 width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
 padding:0!important;margin:0!important;aspect-ratio:auto!important;min-height:0!important
}
#patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-viewfinder :is(#pati-camera-live,#pati-camera-chosen-image,#pati-camera-chosen-video){
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 max-width:none!important;max-height:none!important;object-fit:cover!important
}
#patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-head{
 position:absolute!important;top:0!important;left:0!important;right:0!important;z-index:7!important;
 background:linear-gradient(180deg,rgba(0,0,0,.57),transparent)!important;
 padding:max(15px,env(safe-area-inset-top,0px)) 16px 17px!important;
 box-sizing:border-box!important;width:100%!important
}
#patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-bottom{
 position:absolute!important;left:0!important;right:0!important;bottom:0!important;
 z-index:7!important;width:100%!important;box-sizing:border-box!important;
 background:linear-gradient(0deg,rgba(0,0,0,.77),rgba(0,0,0,.32) 58%,transparent)!important;
 padding:48px 16px max(20px,env(safe-area-inset-bottom,0px))!important;
 max-height:70dvh;overflow-y:auto;overscroll-behavior:contain
}
#patiyiz-camera-screen[data-capture-aspect="portrait"]:not(.pati-camera-has-media) .pati-camera-selected-count{display:none!important}
#patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-create-tabs{min-height:23px!important}
#patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-gallery-panel{
 position:absolute!important;top:22%!important;bottom:0!important;left:0!important;right:0!important;z-index:10!important
}
#patiyiz-camera-screen .pati-camera-recent{display:flex!important;align-items:center!important;justify-content:center!important}
#patiyiz-camera-screen .pati-camera-gallery-placeholder{font-size:33px;line-height:1;color:#fff;font-weight:400;pointer-events:none}
#patiyiz-camera-screen .pati-camera-gallery-placeholder[hidden]{display:none!important}
#patiyiz-camera-screen .pati-camera-recent img[hidden]{display:none!important}
#patiyiz-camera-screen .pati-camera-recent img:not([hidden]){width:100%;height:100%;object-fit:cover}
#patiyiz-camera-screen[data-capture-aspect="portrait"] .pati-camera-unavailable{position:absolute;inset:0;z-index:3;align-content:center}
@supports(height:100svh){
 #patiyiz-camera-screen[data-capture-aspect="portrait"]{height:100dvh!important}
}

/* Final camera pack: identical canvas preview and uploaded 1:1 or 9:16 frame. */
#patiyiz-camera-screen .pati-camera-viewfinder #pati-camera-framed{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 object-fit:cover!important;max-width:none!important;max-height:none!important;
 pointer-events:none;background:#000
}
#patiyiz-camera-screen .pati-camera-viewfinder #pati-camera-framed[hidden]{display:none!important}
#patiyiz-camera-screen .pati-camera-tools{
 position:absolute;right:12px;top:max(94px,calc(env(safe-area-inset-top,0px) + 78px));
 z-index:8;display:flex;align-items:center;flex-direction:column;gap:12px;
 color:#fff;font-size:11px;text-shadow:0 1px 7px #000
}
#patiyiz-camera-screen .pati-camera-tools button{
 background:#14151bb0;border:1px solid #fff8;color:#fff;border-radius:50%;
 width:52px;height:52px;font-weight:800;font-size:11px
}
#patiyiz-camera-screen .pati-camera-tools button[aria-pressed="true"]{background:#fff;color:#151515}
#patiyiz-camera-screen .pati-camera-tools label{display:flex;align-items:center;flex-direction:column;gap:5px;padding:7px;background:#15151580;border-radius:13px}
#patiyiz-camera-screen .pati-camera-tools input{max-width:100px;accent-color:#fff;touch-action:none}
#patiyiz-camera-screen .pati-camera-tools [hidden]{display:none!important}
#patiyiz-camera-screen.pati-camera-has-media .pati-camera-tools{display:none!important}
#patiyiz-camera-screen .pati-camera-create-tabs button{touch-action:manipulation}

/* Camera six-pack: frame-matched preview, focus ring, local draft recovery. */
#patiyiz-camera-screen #pati-camera-framed{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 max-height:none!important;max-width:none!important;object-fit:cover!important;pointer-events:none;
}
#patiyiz-camera-screen #pati-camera-framed[hidden]{display:none!important}
#patiyiz-camera-screen .pati-camera-focus{
 position:absolute;z-index:6;width:56px;height:56px;pointer-events:none;
 border:2px solid #fff;border-radius:50%;transform:translate(-50%,-50%);
 box-shadow:0 1px 8px #0008
}
#patiyiz-camera-screen #pati-camera-restore{margin:8px 0;padding:12px;border-radius:12px;
 width:100%;border:1px solid #ffffff65;background:#21232a;color:#fff;font-weight:750}
#patiyiz-camera-screen .pati-camera-tools{right:12px;top:max(100px,calc(env(safe-area-inset-top,0px) + 85px))}
#patiyiz-camera-screen .pati-camera-tools:has(input[hidden]):has(button[hidden]){display:none!important}
#patiyiz-camera-screen .pati-camera-gallery-scroll button[data-camera="fallback"]{display:block;
 width:calc(100% - 24px);margin:8px 12px;background:#fff;color:#111;font-weight:800;padding:12px;border-radius:13px}

/* 2026-10-27: Native system camera / gallery — no browser camera viewport. */
body.pati-system-media-active{overflow:hidden!important}
body.pati-system-media-active #modal-root{visibility:hidden!important;pointer-events:none!important}
#patiyiz-system-media{
 position:fixed;inset:0;z-index:22000;width:100%;height:100vh;height:100dvh;
 overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;
 padding:max(18px,env(safe-area-inset-top,0px)) 16px max(22px,env(safe-area-inset-bottom,0px));
 background:#08090c;color:#fff;font-family:inherit;-webkit-overflow-scrolling:touch
}
#patiyiz-system-media [hidden]{display:none!important}
#patiyiz-system-media *{box-sizing:border-box}
#patiyiz-system-media .pati-system-panel{max-width:580px;min-height:100%;margin:auto;display:flex;flex-direction:column;gap:22px}
#patiyiz-system-media button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
#patiyiz-system-media button:focus-visible,#patiyiz-system-media textarea:focus-visible{outline:2px solid #fff;outline-offset:3px}
#patiyiz-system-media .pati-system-head{display:grid;grid-template-columns:50px 1fr 65px;align-items:center;min-height:55px;gap:8px}
#patiyiz-system-media .pati-system-head button{width:46px;height:46px;border:0;background:transparent;color:#fff;font-size:36px;font-weight:350;line-height:1;text-align:left}
#patiyiz-system-media .pati-system-head strong{text-align:center;font-size:18px;font-weight:850;letter-spacing:-.035em}
#patiyiz-system-media .pati-system-head span{text-align:right;font-weight:850;letter-spacing:-.045em}
#patiyiz-system-media .pati-system-error{background:#3e2529;border:1px solid #bd545b;color:#fff;padding:12px 14px;border-radius:12px;font-size:13px}
#patiyiz-system-media .pati-system-intro{text-align:center;padding:10px 8px 21px}
#patiyiz-system-media .pati-system-intro-symbol{display:grid;place-items:center;width:74px;height:74px;margin:0 auto 16px;border:1px solid #4f5157;border-radius:22px;background:#202127;font-size:45px;font-weight:300}
#patiyiz-system-media .pati-system-intro h2{font-size:22px;letter-spacing:-.035em;margin:0 0 8px;font-weight:850}
#patiyiz-system-media .pati-system-intro p{font-size:14px;color:#b3b6c0;margin:0}
#patiyiz-system-media .pati-system-options{display:flex;flex-direction:column;gap:12px}
#patiyiz-system-media .pati-system-options button{display:flex;align-items:center;gap:16px;min-height:78px;width:100%;border:1px solid #373a42;border-radius:18px;background:#18191e;color:#fff;text-align:left;padding:14px 17px}
#patiyiz-system-media .pati-system-options button:active{background:#2c2f36}
#patiyiz-system-media .pati-system-options .pati-system-option-icon{width:47px;height:47px;flex:0 0 47px;display:grid;place-items:center;border-radius:14px;background:#fff;color:#141519;font-size:27px}
#patiyiz-system-media .pati-system-options strong{display:block;font-size:16px;font-weight:850;margin-bottom:5px}
#patiyiz-system-media .pati-system-options small{display:block;font-size:12px;color:#afb0b8;line-height:1.35}
#patiyiz-system-media .pati-system-modes{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:auto;padding:20px 0 10px}
#patiyiz-system-media .pati-system-modes button{border:0;border-radius:18px;background:transparent;padding:9px 14px;color:#888b95;font-size:12px;font-weight:850;letter-spacing:.035em}
#patiyiz-system-media .pati-system-modes button.active{background:#fff;color:#121317}
#patiyiz-system-media #pati-system-preview{width:100%}
#patiyiz-system-media .pati-system-preview-media{
 width:100%;aspect-ratio:1/1;max-height:min(55dvh,530px);
 overflow:hidden;background:#101116;border-radius:18px;
 display:flex;scroll-snap-type:x mandatory;gap:0;align-items:center
}
#patiyiz-system-media[data-mode="story"] .pati-system-preview-media,
#patiyiz-system-media[data-mode="reels"] .pati-system-preview-media{aspect-ratio:9/16;max-width:min(100%,310px);max-height:43dvh;margin:0 auto}
#patiyiz-system-media .pati-system-preview-media img,
#patiyiz-system-media .pati-system-preview-media video{
 display:block;width:100%;height:100%;object-fit:cover;flex:0 0 100%;scroll-snap-align:center
}
#patiyiz-system-media .pati-system-preview-media video{object-fit:contain;background:#07070a}
#patiyiz-system-media .pati-system-summary{text-align:center;color:#aeb0ba;font-size:12px;margin:10px 0 16px}
#patiyiz-system-media .pati-system-caption-label{display:block;font-weight:800;font-size:14px;margin-bottom:7px}
#patiyiz-system-media #pati-system-caption{width:100%;min-height:70px;max-height:170px;resize:vertical;background:#1d1e24;border:1px solid #44464d;color:#fff;padding:13px;border-radius:14px;font:inherit;font-size:14px}
#patiyiz-system-media .pati-system-publish-actions{display:flex;gap:10px;margin:16px 0}
#patiyiz-system-media .pati-system-publish-actions button{flex:1;min-height:52px;border-radius:14px;border:1px solid #595b62;background:#26272c;color:#fff;font-size:14px;font-weight:850}
#patiyiz-system-media #pati-system-publish{flex:2;border:0;background:#fff;color:#121317}
#patiyiz-system-media #pati-system-publish:disabled{opacity:.4}
@media(max-width:600px){#patiyiz-system-media .pati-system-panel{gap:13px}#patiyiz-system-media .pati-system-intro{padding-top:4px}}

/* Patiyiz premium system media chooser — three distinct device action icons. */
#patiyiz-system-media .pati-system-options{gap:11px}
#patiyiz-system-media .pati-system-options button{
 gap:16px;min-height:84px;padding:13px 16px;border:1px solid #383940;
 background:linear-gradient(115deg,#1c1d22 0%,#16171b 100%);
 border-radius:20px;position:relative;transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
#patiyiz-system-media .pati-system-options button::after{
 content:"";display:block;width:8px;height:8px;border-top:1.8px solid #888b95;
 border-right:1.8px solid #888b95;transform:rotate(45deg);margin-left:auto;flex:none;
}
#patiyiz-system-media .pati-system-options .pati-system-option-icon{
 display:grid;place-items:center;width:54px;height:54px;flex:0 0 54px;
 border-radius:17px;border:1px solid rgba(255,255,255,.10);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.075),0 5px 15px rgba(0,0,0,.14);
 font-size:initial;line-height:normal;transition:transform .18s ease;
}
#patiyiz-system-media .pati-system-options .pati-system-option-icon svg{
 display:block;width:28px;height:28px;fill:none;stroke:currentColor;
}
#patiyiz-system-media .pati-system-options .pati-system-option-photo{
 color:#e3eef5;background:linear-gradient(135deg,#33414d,#20282f)
}
#patiyiz-system-media .pati-system-options .pati-system-option-video{
 color:#ffe1e3;background:linear-gradient(135deg,#493138,#2b2026)
}
#patiyiz-system-media .pati-system-options .pati-system-option-gallery{
 color:#ede7ff;background:linear-gradient(135deg,#3a344b,#24212f)
}
#patiyiz-system-media .pati-system-options button strong{font-size:15.5px;letter-spacing:-.015em}
#patiyiz-system-media .pati-system-options button small{font-size:12.5px;color:#aeb1bb}
@media(hover:hover){
 #patiyiz-system-media .pati-system-options button:hover{border-color:#777b87;background:#24262d}
 #patiyiz-system-media .pati-system-options button:hover .pati-system-option-icon{transform:scale(1.045)}
}
#patiyiz-system-media .pati-system-options button:active{transform:scale(.99)}
@media(prefers-reduced-motion:reduce){
 #patiyiz-system-media .pati-system-options button,
 #patiyiz-system-media .pati-system-options .pati-system-option-icon{transition:none}
}

/* Feed media ratio fix: no black sidebars for portrait Reels videos in the home feed.
   Once media metadata loads, --pati-feed-aspect is its actual pixel ratio. */
#main-content .pati-feed-card .pati-video-frame{
 width:100%!important;height:auto!important;max-height:none!important;
 aspect-ratio:var(--pati-feed-aspect,9 / 16)!important;
 overflow:hidden!important;background:transparent!important;
}
#main-content .pati-feed-card .pati-video-frame .pati-post-video{
 display:block!important;width:100%!important;height:100%!important;
 max-height:none!important;object-fit:cover!important;
 object-position:center!important;margin:0!important;
 background:transparent!important;border-radius:0!important;
}
#main-content .pati-feed-card .pati-carousel{
 width:100%!important;height:auto!important;max-height:none!important;
 aspect-ratio:var(--pati-feed-aspect,4 / 5)!important;
 overflow:hidden!important;background:transparent!important;
}
#main-content .pati-feed-card .pati-carousel-track{
 height:100%!important;align-items:stretch!important;
}
#main-content .pati-feed-card .pati-carousel-slide{
 height:100%!important;min-width:100%!important;overflow:hidden!important;
}
#main-content .pati-feed-card .pati-carousel-slide .pati-photo{
 display:block!important;width:100%!important;height:100%!important;
 aspect-ratio:auto!important;max-height:none!important;
 margin:0!important;border-radius:0!important;background:transparent!important;
}
#main-content .pati-feed-card .pati-carousel-slide .pati-photo img{
 display:block!important;width:100%!important;height:100%!important;
 object-fit:cover!important;object-position:center!important;
}
/* Reels player fills its portrait viewport instead of showing black side bands. */
#main-content .pati-reel-video{
 object-fit:cover!important;object-position:center center!important;
}

/* Mirrored selfie presentation: selected front-camera videos stay visually
   identical to their OS camera preview throughout Patiyiz playback. */
#patiyiz-system-media .pati-system-preview-media video.pati-selfie-mirrored,
#main-content .pati-feed-card .pati-post-video.pati-selfie-mirrored,
#main-content .pati-reel-video.pati-selfie-mirrored,
#story-overlay .story-big-video.pati-selfie-mirrored,
#main-content .pati-profile-tile .pati-selfie-mirrored,
#main-content .pati-explore-media .pati-selfie-mirrored{
 transform:scaleX(-1)!important;
}
#patiyiz-system-media .pati-system-mirror-option{
 display:flex;align-items:center;gap:12px;margin:2px 0 16px;
 border:1px solid #444751;background:#1a1c23;padding:13px 14px;
 border-radius:15px;cursor:pointer;color:#fff;
}
#patiyiz-system-media .pati-system-mirror-option[hidden]{display:none!important}
#patiyiz-system-media .pati-system-mirror-option input{
 flex:none;appearance:auto;accent-color:#f2f2f5;
 width:21px;height:21px;margin:0;cursor:pointer;
}
#patiyiz-system-media .pati-system-mirror-option>span{display:flex;flex-direction:column;gap:4px}
#patiyiz-system-media .pati-system-mirror-option strong{font-size:13px;font-weight:850}
#patiyiz-system-media .pati-system-mirror-option small{font-size:11px;line-height:1.45;color:#c0c2cb}
