.instagram-workspace{max-width:1120px;color:var(--theme-ink);padding-bottom:48px}
.instagram-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:16px 0 24px}.instagram-heading h1{display:flex;align-items:center;gap:12px;font-size:clamp(24px,3vw,32px)}.instagram-heading p{color:var(--theme-muted)}
.instagram-workspace .instagram-heading,.instagram-workspace .instagram-message header{background:transparent!important;color:var(--theme-ink)!important;border:0;padding:0;position:static}.instagram-workspace .instagram-heading h1{color:var(--theme-ink)!important}
.instagram-connection,.instagram-message,#instagramSettings{padding:22px;border:1px solid var(--theme-line);border-radius:18px;background:var(--theme-surface);margin:16px 0}
.instagram-connection{border-left:4px solid var(--theme-accent)}.instagram-connection p{color:var(--theme-muted);line-height:1.7;margin:10px 0 0}
.instagram-toolbar{display:flex;align-items:end;gap:20px;flex-wrap:wrap;margin:24px 0}.instagram-toolbar label{display:grid;gap:8px}.instagram-toolbar select{min-width:160px}.instagram-toolbar a{margin-left:auto;display:inline-flex;align-items:center;gap:6px;color:var(--theme-accent)}
.instagram-workspace :is(button,select){min-height:44px;border:1px solid var(--theme-line);border-radius:10px;padding:10px 14px;background:var(--theme-soft);color:var(--theme-ink);font:inherit}.instagram-workspace button{display:inline-flex;align-items:center;gap:8px}.instagram-workspace button:disabled{opacity:.6;cursor:default}.instagram-message .instagram-save{background:var(--theme-accent)!important;color:var(--theme-on-accent)!important}.instagram-workspace :focus-visible,.instagram-toast :focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
.instagram-message header{display:flex;justify-content:space-between;gap:16px;align-items:baseline}.instagram-message strong,.instagram-preview{overflow-wrap:anywhere;white-space:pre-wrap}.instagram-message time,.instagram-message small,.instagram-scope,#instagramCounts{color:var(--theme-muted)}.instagram-preview{line-height:1.65;margin:16px 0}.instagram-message footer{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.instagram-message small{display:block;margin-top:14px}.instagram-scope{font-size:13px;line-height:1.8}.instagram-empty{padding:38px 20px;text-align:center;border:1px dashed var(--theme-line);border-radius:18px;background:var(--theme-soft);color:var(--theme-muted)}
.instagram-menu-link{display:flex;align-items:center;gap:8px}.instagram-menu-link b{font-size:12px;background:var(--theme-accent);color:var(--theme-on-accent);padding:2px 6px;border-radius:12px}
.instagram-menu-link[hidden],#instagramSettings[hidden],#instagramSetup[hidden]{display:none!important}
body .instagram-toast>header{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;background:transparent!important;color:var(--theme-ink)!important;padding:0!important;margin:0 0 12px!important;border:0!important;position:static!important}body .instagram-toast>header h2{color:var(--theme-ink)!important;font-size:18px!important;margin:0!important}
.instagram-toast{position:fixed;right:22px;bottom:28px;z-index:410;width:min(360px,calc(100vw - 24px));aspect-ratio:4/3;box-sizing:border-box;padding:20px;overflow:auto;border:1px solid var(--theme-line);border-radius:20px;color:var(--theme-ink);background:var(--theme-surface);background:color-mix(in srgb,var(--theme-surface) 92%,transparent);backdrop-filter:blur(16px);box-shadow:0 16px 50px #14274528}.instagram-toast[hidden]{display:none!important}.instagram-toast header{display:flex;align-items:center;justify-content:space-between;gap:12px}.instagram-toast h2{font-size:18px;margin:0}.instagram-toast p{overflow-wrap:anywhere;line-height:1.5;font-size:14px}.instagram-toast a{color:var(--theme-accent);font-weight:700}.instagram-toast button{min-width:44px;min-height:44px;background:transparent;border:1px solid var(--theme-line);color:var(--theme-ink);border-radius:10px}.instagram-toast .instagram-toast-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:720px){.instagram-heading{display:block}.instagram-heading>button{margin-top:8px}.instagram-toolbar{gap:12px}.instagram-toolbar a{margin-left:0}.instagram-message header{align-items:start;flex-direction:column;gap:6px}.instagram-connection,.instagram-message,#instagramSettings{padding:18px}.instagram-toast{right:12px;bottom:calc(78px + env(safe-area-inset-bottom))}.instagram-workspace{padding-bottom:90px}.instagram-message footer select{flex:1;min-width:0}}
