:root{--bg:var(--tg-theme-bg-color,#eef3f8);--card:var(--tg-theme-section-bg-color,#fff);--text:var(--tg-theme-text-color,#0f172a);--muted:var(--tg-theme-hint-color,#64748b);--primary:var(--tg-theme-button-color,#00b2ff);--primary-contrast:var(--tg-theme-button-text-color,#fff);--secondary-bg:var(--tg-theme-secondary-bg-color,#f3f7fb);--separator:var(--tg-theme-section-separator-color,#94a3b847);--header-bg:var(--tg-theme-header-bg-color,#eef3f8eb);--danger:#dc2626;--success:#16a34a;--shadow:0 20px 45px #0f172a14;--ui-scale:.72;--bottom-nav-scale:.58;--bottom-nav-height:60px;--safe-area-top:env(safe-area-inset-top,0px);--safe-area-bottom:env(safe-area-inset-bottom,0px);--safe-area-left:env(safe-area-inset-left,0px);--safe-area-right:env(safe-area-inset-right,0px);--tg-viewport-height:100dvh;--tg-stable-viewport-height:100dvh}*{box-sizing:border-box}html,body{background:var(--bg);width:100%;max-width:100vw;min-height:100%;color:var(--text);overscroll-behavior-y:none;overscroll-behavior-x:none;-webkit-tap-highlight-color:transparent;margin:0;font-family:Inter,system-ui,sans-serif;overflow-x:clip}body{min-height:var(--tg-stable-viewport-height,100dvh);overflow:clip auto}a,button,input,select,textarea{touch-action:manipulation}h1,h2,h3,p{margin:0}a{color:var(--primary)}.layout{height:auto;min-height:var(--tg-stable-viewport-height,100dvh);flex-direction:column;width:100%;max-width:100vw;display:flex;overflow-x:clip}button{border-radius:calc(16px * var(--ui-scale));background:var(--primary);color:var(--primary-contrast);padding:calc(9px * var(--ui-scale)) calc(14px * var(--ui-scale));font-size:clamp(12px, calc(14px * var(--ui-scale)), 14px);cursor:pointer;border:0;justify-content:center;align-items:center;min-height:44px;font-weight:600;text-decoration:none;display:inline-flex}button:disabled{opacity:.55;cursor:not-allowed}.container{width:min(720px,100%);padding:calc(16px * var(--ui-scale)) calc(12px + var(--safe-area-right)) calc(16px * var(--ui-scale) + var(--bottom-nav-height) + var(--safe-area-bottom)) calc(12px + var(--safe-area-left));flex:1;min-width:0;margin:0 auto;overflow-x:clip}.card{background:var(--card);border:1px solid var(--separator);border-radius:calc(24px * var(--ui-scale));padding:calc(18px * var(--ui-scale));box-shadow:var(--shadow);margin-bottom:calc(18px * var(--ui-scale));min-width:0;max-width:100%}.form{gap:calc(14px * var(--ui-scale));display:grid}.form label{gap:calc(8px * var(--ui-scale));font-size:clamp(12px, calc(13px * var(--ui-scale)), 13px);font-weight:600;display:grid}input,textarea,select{border-radius:calc(16px * var(--ui-scale));background:var(--secondary-bg);width:100%;color:var(--text);padding:calc(10px * var(--ui-scale)) calc(12px * var(--ui-scale));font-size:clamp(12px, calc(14px * var(--ui-scale)), 14px);border:1px solid #0000;transition:border-color .2s,box-shadow .2s,background-color .2s}input:focus,textarea:focus,select:focus{background:var(--card);border-color:#00b2ff52;outline:none;box-shadow:0 0 0 4px #00b2ff24}.small-list{padding-left:calc(20px * var(--ui-scale));color:var(--muted);margin:0}.hint,.subtitle{color:var(--muted);line-height:1.45;font-size:clamp(12px, calc(14px * var(--ui-scale)), 14px)}.stack{gap:calc(10px * var(--ui-scale));margin-bottom:calc(18px * var(--ui-scale));display:grid}.error{color:var(--danger)}.success{color:var(--success)}.post-list{gap:calc(12px * var(--ui-scale));margin:0;padding:0;list-style:none;display:grid}.post-item{border:1px solid var(--separator);border-radius:calc(20px * var(--ui-scale));padding:calc(14px * var(--ui-scale));background:var(--secondary-bg);gap:calc(10px * var(--ui-scale));min-width:0;max-width:100%;display:grid}.media-preview-item{padding-top:calc(52px * var(--ui-scale));position:relative}.media-preview-remove{top:calc(10px * var(--ui-scale));right:calc(10px * var(--ui-scale));color:#fff;width:44px;min-width:44px;min-height:44px;font-size:clamp(14px, calc(16px * var(--ui-scale)), 16px);background:#0f172ab8;border-radius:999px;padding:0;line-height:1;position:absolute}.post-item-row{justify-content:space-between;gap:calc(8px * var(--ui-scale));flex-wrap:wrap;align-items:flex-start;display:flex}.status{font-size:clamp(10px, calc(11px * var(--ui-scale)), 11px);padding:calc(4px * var(--ui-scale)) calc(8px * var(--ui-scale));background:#dde7f2;border-radius:999px;font-weight:700;display:inline-flex}.status-scheduled,.status-ok,.status-published,.status-login{color:#166534;background:#dcfce7}.status-failed,.status-offline{color:#991b1b;background:#fee2e2}.status-processing,.status-public{color:#1d4ed8;background:#dbeafe}.warning{color:#92400e}.post-text{white-space:pre-wrap}.post-actions{gap:calc(8px * var(--ui-scale));flex-wrap:wrap;display:flex}.top-margin{margin-top:calc(8px * var(--ui-scale))}.schedule-picker{border:1px solid var(--separator);background:var(--card);border-radius:calc(20px * var(--ui-scale));padding:calc(16px * var(--ui-scale));gap:calc(16px * var(--ui-scale));display:grid;box-shadow:0 8px 24px #0f172a0d}.schedule-picker-calendar{width:min(100%,380px);min-width:0}.schedule-picker-selection{grid-template-columns:minmax(0,380px) minmax(0,180px);align-items:start;gap:16px;width:fit-content;max-width:100%;display:grid}.schedule-picker-month{text-align:center;text-transform:capitalize;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;margin-bottom:8px;display:grid}.schedule-picker-month button,.schedule-picker-day{min-width:42px;min-height:42px;color:var(--text);cursor:pointer;font:inherit;background:0 0;border:0;border-radius:12px}.schedule-picker-month button:hover:not(:disabled),.schedule-picker-day:hover:not(:disabled){background:var(--secondary-bg)}.schedule-picker-month button:focus-visible,.schedule-picker-day:focus-visible{outline-offset:2px;outline:3px solid #00b2ff73}.schedule-picker-month button:disabled,.schedule-picker-day:disabled{opacity:.38;cursor:not-allowed}.schedule-picker-calendar-grid{text-align:center;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;display:grid}.schedule-picker-weekday{min-height:32px;color:var(--muted);place-items:center;font-size:.85em;font-weight:600;display:grid}.schedule-picker-day{justify-self:center;width:min(100%,44px)}.schedule-picker-day-muted{color:var(--muted);opacity:.55}.schedule-picker-day-selected{color:#fff;font-weight:700;background:var(--accent)!important}.schedule-picker-controls{gap:8px;min-width:0;display:grid}.schedule-time-wheel-title,.schedule-time-wheel-label,.schedule-picker-manual{gap:7px;font-size:.95em;font-weight:600;display:grid}.schedule-time-wheels{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.schedule-time-wheel-group{gap:5px;min-width:0;display:grid}.schedule-time-wheel-label{color:var(--muted);text-align:center;font-size:.82em}.schedule-time-wheel{background:var(--secondary-bg);overscroll-behavior:contain;scrollbar-width:none;scroll-snap-type:y mandatory;font-variant-numeric:tabular-nums;border-radius:12px;min-width:0;height:180px;padding-block:72px;overflow-y:auto}.schedule-time-wheel::-webkit-scrollbar{display:none}.schedule-time-wheel:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.schedule-time-wheel[aria-disabled=true]{opacity:.45;cursor:not-allowed}.schedule-time-wheel[aria-disabled=true] .schedule-time-wheel-option{cursor:not-allowed}.schedule-time-wheel-option{scroll-snap-align:center;cursor:pointer;border-radius:8px;place-items:center;height:36px;display:grid}.schedule-time-wheel-option[aria-selected=true]{background:var(--card);color:var(--accent);outline:1px solid var(--accent);font-weight:700}.schedule-picker-controls .hint{margin:0}.schedule-picker-manual input{font-variant-numeric:tabular-nums;letter-spacing:.04em}.schedule-picker-error{border-color:#dc262673}.bottom-nav{z-index:30;padding:0 calc(8px + var(--safe-area-right)) calc(8px + var(--safe-area-bottom)) calc(8px + var(--safe-area-left));touch-action:manipulation;position:fixed;bottom:0;left:0;right:0}.bottom-nav-track{width:min(720px,100%);max-width:100%;padding:calc(5px * var(--bottom-nav-scale));gap:calc(6px * var(--bottom-nav-scale));overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;background:var(--card);border:1px solid var(--separator);border-radius:calc(20px * var(--bottom-nav-scale));box-shadow:var(--shadow);scrollbar-width:none;touch-action:pan-x;flex-wrap:nowrap;margin:0 auto;display:flex;overflow:auto hidden}.bottom-nav-track::-webkit-scrollbar{display:none}.nav-item{touch-action:manipulation;text-align:center;min-width:56px;color:var(--muted);white-space:nowrap;border-radius:12px;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:2px;min-height:44px;padding:6px 7px;text-decoration:none;transition:background-color .12s,color .12s,transform 60ms;display:inline-flex}.nav-item.compact{min-width:48px;padding-inline:6px}.nav-item.active{color:var(--text);background:var(--secondary-bg)}.nav-item:active{transform:scale(.98)}.nav-icon{font-size:14px;line-height:1}.nav-label{white-space:normal;font-size:10px;font-weight:600;line-height:1.2}.card :is(p,a,span,code,strong,li),.post-item :is(p,a,span,code,strong,li){overflow-wrap:anywhere}.auth-page{min-height:var(--tg-stable-viewport-height,100dvh);align-content:center;gap:calc(12px * var(--ui-scale));display:grid}.link-button{color:var(--primary);background:0 0;padding:0}.profile-card{gap:calc(12px * var(--ui-scale));display:grid}.profile-header{gap:calc(12px * var(--ui-scale));align-items:center;display:flex}.avatar{width:calc(52px * var(--ui-scale));height:calc(52px * var(--ui-scale));object-fit:cover;background:#e2e8f0;border-radius:999px}.instagram-section-switcher{top:calc(8px * var(--ui-scale));z-index:2;position:sticky}.instagram-section-tabs{gap:calc(8px * var(--ui-scale));flex-wrap:wrap;display:flex}.instagram-section-tab{background:var(--card);color:var(--text);border:1px solid var(--separator)}.instagram-section-tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}.instagram-tab-panel[hidden]{display:none!important}.direct-conversation-row,.direct-chat-header{align-items:center;gap:calc(12px * var(--ui-scale));display:flex}.direct-conversation-details{justify-content:space-between;align-items:center;gap:calc(8px * var(--ui-scale));flex:1;min-width:0;display:flex}.direct-avatar{flex:0 0 calc(44px * var(--ui-scale));width:calc(44px * var(--ui-scale));height:calc(44px * var(--ui-scale));object-fit:cover;background:#e2e8f0;border-radius:50%;place-items:center;display:grid}.direct-avatar-fallback{color:#334155;font-weight:700}.metric-list{gap:calc(12px * var(--ui-scale));color:var(--muted);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.thumbnail{width:100%;max-width:calc(320px * var(--ui-scale));border-radius:calc(10px * var(--ui-scale));object-fit:cover;background:#e2e8f0}.json-block{padding:calc(14px * var(--ui-scale));border-radius:calc(16px * var(--ui-scale));color:#e2e8f0;white-space:pre-wrap;touch-action:pan-x;background:#0f172a;margin:0;overflow-x:auto}@media (max-width:560px){.schedule-picker{padding:12px}.schedule-picker-calendar-grid{gap:1px}.schedule-picker-day{border-radius:10px;min-width:0;min-height:40px}}@media (max-width:680px){.schedule-picker-selection{grid-template-columns:minmax(0,1fr);width:100%}.schedule-picker-calendar{width:min(100%,380px)}}@media (max-width:560px){.container{padding-left:calc(10px + var(--safe-area-left));padding-right:calc(10px + var(--safe-area-right))}.card{border-radius:calc(20px * var(--ui-scale));padding:calc(16px * var(--ui-scale))}}
